:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c471ed;
    --accent-color: #12d8fa;
    --dark-bg: #0a0e27;
    --card-bg: #151a30;
    --card-hover: #1e2541;
    --text-light: #e4e8f0;
    --text-muted: #8f98b3;
    --gradient-anime: linear-gradient(135deg, #ff6b9d 0%, #c471ed 50%, #12d8fa 100%);
    --success-color: #00d9a3;
    --warning-color: #ffa726;
    --danger-color: #ff5252;
    --neon-pink: #ff6b9d;
    --neon-purple: #c471ed;
    --neon-blue: #12d8fa;
}

[data-theme="light"] {
    --dark-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-hover: #f8f9fa;
    --text-light: #1a1a2e;
    --text-muted: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255, 107, 157, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(18, 216, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--card-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-purple), var(--neon-blue));
}

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--card-bg);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
}

.mobile-menu-toggle {
    background: var(--gradient-anime);
    border: none;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-logo i {
    margin-right: 8px;
    font-size: 1.6rem;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-theme-btn {
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-theme-btn:active {
    transform: scale(0.95);
}

.mobile-search-bar {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 107, 157, 0.2);
}

.mobile-search-bar .mobile-search-input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border-radius: 25px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.mobile-search-bar .mobile-search-input::placeholder {
    color: var(--text-muted);
}

.mobile-search-bar .mobile-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-pink);
}

.mobile-search-bar .mobile-search-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-anime);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    border-right: 2px solid rgba(255, 107, 157, 0.3);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-sidebar-close {
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
    background: rgba(255, 107, 157, 0.25);
    transform: rotate(90deg);
}

.mobile-sidebar-content {
    padding: 1.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav-link i {
    font-size: 1.2rem;
    color: var(--neon-pink);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 107, 157, 0.15);
    color: var(--neon-pink);
    transform: translateX(5px);
}

.header {
    background: var(--card-bg);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 157, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue)) 1;
}

.navbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.logo i {
    margin-right: 10px;
    font-size: 2.2rem;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-highlight {
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 8px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-anime);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-pink);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 450px;
    min-width: 250px;
}

.header-search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 30px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.header-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-anime);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.header-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 107, 157, 0.25);
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--neon-pink);
    animation: pulse 2s ease-in-out infinite;
}

.sort-dropdown {
    padding: 12px 24px;
    border-radius: 25px;
    border: 2px solid rgba(196, 113, 237, 0.3);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sort-dropdown:hover {
    background: rgba(196, 113, 237, 0.15);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(196, 113, 237, 0.3);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.anime-card {
    background: var(--card-bg);
    /* border-radius: 20px; */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

.anime-card:hover {
    /* transform: translateY(-12px) scale(1.02); */
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4), 0 0 30px rgba(196, 113, 237, 0.3);
    border-color: var(--neon-pink);
}

.anime-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
}

.anime-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anime-card:hover .anime-image {
    /* transform: scale(1.15); */
}

.anime-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 21, 42, 0.85);
    backdrop-filter: blur(15px);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 107, 157, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.anime-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.98) 0%, rgba(10, 14, 39, 0.85) 20%, transparent 100%);
}

.anime-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}

.anime-meta i {
    margin-right: 5px;
    color: var(--neon-pink);
}

.countdown-container {
    /* background: rgba(255, 107, 157, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 157, 0.25); */
}

.countdown-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.7rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.countdown-item {
    text-align: center;
    /* background: rgba(0, 0, 0, 0.4); */
    border-radius: 10px;
    padding: 0.6rem 0.3rem;
    /* border: 1px solid rgba(255, 107, 157, 0.2); */
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.countdown-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
}

.skeleton-image {
    height: 400px;
}

.skeleton-text {
    height: 20px;
    margin: 15px;
    border-radius: 5px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid rgba(196, 113, 237, 0.3);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-btn:hover, .page-btn.active {
    background: var(--gradient-anime);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.anime-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    max-width: 950px;
    margin: 50px auto;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 107, 157, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.5);
}

.modal-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.98) 0%, transparent 100%);
    padding: 2.5rem;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.modal-japanese-title {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-body {
    padding: 2.5rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-tabs::-webkit-scrollbar {
    height: 3px;
}

.tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--neon-pink);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-anime);
    border-radius: 2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-item i {
    color: var(--neon-pink);
    font-size: 1.2rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-width: 95px;
    font-weight: 600;
}

.info-value {
    color: var(--text-light);
    font-weight: 700;
}

.synopsis {
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.trailer-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.trailer-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-countdown {
    margin-top: 2.5rem;
}

.modal-countdown-title {
    font-size: 1.2rem;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.modal-countdown-display {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-countdown-item {
    text-align: center;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 15px;
    padding: 1.2rem;
    min-width: 90px;
}

.modal-countdown-value {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-countdown-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.character-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 157, 0.08);
    border: 2px solid rgba(255, 107, 157, 0.15);
    border-radius: 18px;
    transition: all 0.3s ease;
}

.character-card:hover {
    background: rgba(255, 107, 157, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.character-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.8rem;
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.character-name {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.character-role {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.scroll-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: var(--gradient-anime);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.4rem;
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(255, 107, 157, 0.6);
}

.footer {
    background: var(--card-bg);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-blue)) 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    background: var(--gradient-anime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section p {
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--neon-pink);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid rgba(255, 107, 157, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--gradient-anime);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    color: var(--text-muted);
    font-weight: 500;
}

.toast-container {
    position: fixed;
    top: 100px;
    right: 25px;
    z-index: 3000;
}

.toast {
    background: var(--card-bg);
    border-left: 4px solid var(--success-color);
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    animation: slideIn 0.3s ease;
    min-width: 280px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast i {
    font-size: 1.3rem;
}

@media (max-width: 1024px) {
    .navbar-custom {
        flex-direction: column;
        gap: 1.2rem;
    }

    .header-search {
        max-width: 100%;
        width: 100%;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .mobile-header {
        display: flex;
    }

    .mobile-search-bar {
        display: block;
    }

    .header {
        display: none;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }

    .anime-image-container {
        height: 280px;
    }

    .anime-info {
        padding: 1rem;
    }

    .anime-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .anime-meta {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }

    .countdown-container {
        padding: 0.7rem;
    }

    .countdown-title {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .countdown {
        gap: 0.3rem;
    }

    .countdown-item {
        padding: 0.4rem 0.2rem;
    }

    .countdown-value {
        font-size: 1.1rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        margin: 1.5rem 0 1rem 0;
        padding: 0;
    }

    .section-title {
        font-size: 1.4rem;
        gap: 8px;
    }

    .section-title i {
        font-size: 1.3rem;
    }

    .sort-dropdown {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .modal-content {
        margin: 15px;
        border-radius: 20px;
    }

    .modal-header {
        height: 250px;
    }

    .modal-overlay {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-japanese-title {
        font-size: 0.9rem;
    }

    .modal-tabs {
        gap: 0;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .character-image {
        width: 65px;
        height: 65px;
    }

    .character-name {
        font-size: 0.8rem;
    }

    .character-role {
        font-size: 0.7rem;
    }

    .modal-countdown-display {
        gap: 0.6rem;
    }

    .modal-countdown-item {
        padding: 0.8rem;
        min-width: 65px;
    }

    .modal-countdown-value {
        font-size: 1.6rem;
    }

    .modal-countdown-label {
        font-size: 0.7rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pagination {
        gap: 0.4rem;
    }

    .page-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        top: 130px;
    }

    .toast {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .anime-image-container {
        height: 240px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .mobile-sidebar {
        width: 260px;
        left: -280px;
    }

    .countdown {
        gap: 0.25rem;
    }

    .countdown-item {
        padding: 0.35rem 0.15rem;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.5rem;
    }
}
