:root {
    --bg-dark: #0f172a;
    --bg-darker: #0b1120;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --accent-secondary: #ec4899;
    --border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background animated shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(0,0,0,0) 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 60%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-fallback {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    width: 200px;
    font-size: 0.95rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.header-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.header-text p {
    color: var(--text-muted);
    font-weight: 500;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

/* List View */
.anime-grid.list-view {
    grid-template-columns: 1fr;
}

.anime-grid.list-view .anime-card {
    flex-direction: row;
    height: auto;
    align-items: center;
    padding: 1rem;
}

.anime-grid.list-view .card-visual {
    height: 60px;
    width: 60px;
    flex-shrink: 0;
    border-radius: 8px;
}

.anime-grid.list-view .card-visual h3 {
    font-size: 1.5rem;
}

.anime-grid.list-view .card-content {
    padding: 0 0 0 1rem;
    flex-grow: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Anime Card */
.anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-visual {
    height: 140px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(30,41,59,1) 100%);
    opacity: 0.8;
}

.card-visual h3 {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    text-transform: uppercase;
    font-weight: 800;
    mix-blend-mode: overlay;
    user-select: none;
}

.card-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.anime-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-main);
}

.anime-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.instructions {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #a78bfa;
}

.instructions pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    font-family: monospace;
    overflow-x: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-actions {
        justify-content: space-between;
    }
    
    .search-box {
        flex-grow: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .card-visual {
        height: 100px;
    }
    
    .anime-title {
        font-size: 1rem;
    }
}
/* Append these to css/style.css */
.hero-section {
    padding: 6rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.badge {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.page-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-controls .header-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.site-footer {
    margin-top: 5rem;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: var(--glass-blur);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 4rem 1rem 2rem;
    }
    .page-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

.cover-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; } 
.card-visual h3 { z-index: 1; }
/* Streaming Modal Styles */
.streaming-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.streaming-modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.streaming-content {
    width: 100%;
    max-width: 900px;
    height: 90vh;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.streaming-modal:not(.hidden) .streaming-content {
    transform: translateY(0) scale(1);
}

.close-streaming {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.close-streaming:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.streaming-header {
    height: 35vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background-size: cover;
    background-position: center;
}

.streaming-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
}

.streaming-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.streaming-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streaming-info {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.streaming-info h2 {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1.1;
}

.season-selector-wrapper {
    position: relative;
    min-width: 180px;
}

.season-select {
    width: 100%;
    appearance: none;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    color: white;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.season-select option {
    background: var(--bg-dark);
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.episodes-container {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.episodes-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.episode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.episode-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.episode-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    min-width: 40px;
}

.episode-info {
    display: flex;
    flex-direction: column;
}

.episode-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.episode-play {
    color: var(--accent);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.episode-card:hover .episode-play {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .streaming-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .streaming-info h2 {
        font-size: 1.8rem;
    }
    .season-selector-wrapper {
        width: 100%;
    }
}
