:root {
    --bg-dark: #0a0a0f;
    --bg-glass: rgba(20, 20, 30, 0.4);
    --bg-glass-solid: rgba(20, 20, 30, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-yellow: #f5e56b;
    --accent-yellow-dark: #d4c44b;
    --accent-yellow-glow: rgba(245, 229, 107, 0.3);
    --card-radius: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loading-logo { width: 120px; animation: pulse 1.5s ease-in-out infinite; filter: drop-shadow(0 0 20px var(--accent-yellow-glow)); }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 40px var(--accent-yellow)); }
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 300px;
    max-width: 90%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    padding: 12px 24px;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.shrink { top: 10px; padding: 8px 20px; background: var(--bg-glass-solid); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-icon { height: 40px; transition: all 0.3s ease; }
.navbar.shrink .brand-icon { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-yellow); }
.nav-actions { display: flex; gap: 16px; }
.search-toggle, .profile-toggle { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; padding: 8px; border-radius: 50%; }
.search-toggle:hover, .profile-toggle:hover { color: var(--accent-yellow); background: rgba(245, 229, 107, 0.1); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

.mobile-sidebar {
    position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh;
    background: var(--bg-glass-solid); backdrop-filter: blur(20px); border-right: 1px solid var(--border-glass);
    z-index: 1500; transition: left 0.3s ease; padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 24px;
}
.mobile-sidebar.active { left: 0; }
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1400; display: none; }
.sidebar-overlay.active { display: block; }
.mobile-sidebar a { color: var(--text-secondary); text-decoration: none; font-size: 1.1rem; padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.mobile-sidebar a:hover { background: rgba(245, 229, 107, 0.1); color: var(--accent-yellow); }

.search-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px); z-index: 2000; display: none; align-items: center; justify-content: center;
}
.search-overlay.active { display: flex; }
.search-container { width: 90%; max-width: 600px; }
.search-input { width: 100%; padding: 20px; font-size: 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 60px; color: var(--text-primary); outline: none; }
.search-input:focus { border-color: var(--accent-yellow); box-shadow: 0 0 20px var(--accent-yellow-glow); }
.close-search { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-primary); font-size: 2rem; cursor: pointer; }

.hero { position: relative; height: 60vh; min-height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; margin-bottom: 60px; }
.hero-content { max-width: 800px; }
.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 16px; }
.hero-overview { font-size: 1rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.btn { padding: 12px 28px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--accent-yellow); color: #0a0a0f; }
.btn-primary:hover { background: var(--accent-yellow-dark); transform: scale(1.05); box-shadow: 0 0 20px var(--accent-yellow-glow); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--text-primary); backdrop-filter: blur(10px); border: 1px solid var(--border-glass); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }

.section { padding: 40px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.section-title { font-size: 1.6rem; font-weight: 600; }
.section-link { color: var(--accent-yellow); text-decoration: none; font-weight: 500; }

.anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.anime-card {
    background: var(--bg-glass); backdrop-filter: blur(10px); border-radius: var(--card-radius);
    overflow: hidden; transition: all 0.3s ease; cursor: pointer; border: 1px solid var(--border-glass);
    aspect-ratio: 2/3;
}
.anime-card:hover { transform: translateY(-8px); border-color: var(--accent-yellow); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-poster { position: relative; width: 100%; height: 100%; overflow: hidden; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.anime-card:hover .card-poster img { transform: scale(1.05); }
.card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.3s ease; padding: 20px; text-align: center;
}
.anime-card:hover .card-overlay { opacity: 1; }
.play-icon { font-size: 2.5rem; color: var(--accent-yellow); background: rgba(0,0,0,0.5); width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.card-overlay-title { font-size: 0.9rem; font-weight: 600; }
.card-overlay-rating { font-size: 0.8rem; color: var(--accent-yellow); }
.card-overlay-episodes { font-size: 0.75rem; color: var(--text-secondary); }

.watch-container { padding-top: 100px; min-height: 100vh; }
.video-container { background: #000; aspect-ratio: 16/9; }
.video-frame { width: 100%; height: 100%; border: none; }
.watch-info { padding: 40px 5%; background: linear-gradient(to bottom, transparent, var(--bg-glass)); }
.watch-title { font-size: 1.8rem; margin-bottom: 16px; }
.watch-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; color: var(--text-secondary); font-size: 0.9rem; }

.footer { background: var(--bg-glass); backdrop-filter: blur(10px); border-top: 1px solid var(--border-glass); padding: 40px 5%; text-align: center; margin-top: 60px; }
.footer p { color: var(--text-secondary); font-size: 0.85rem; }
.disclaimer { color: rgba(255,255,255,0.4); font-size: 0.75rem; margin-top: 16px; }

@media (max-width: 768px) {
    .navbar { width: 95%; padding: 10px 16px; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-title { font-size: 2rem; }
    .anime-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .section-title { font-size: 1.3rem; }
}

:root {
    --bg-dark: #0a0a0f;
    --bg-glass: rgba(20, 20, 30, 0.4);
    --bg-glass-solid: rgba(20, 20, 30, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-yellow: #f5e56b;
    --accent-yellow-dark: #d4c44b;
    --accent-yellow-glow: rgba(245, 229, 107, 0.3);
    --card-radius: 16px;
    --blur-amount: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0f;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loading-logo {
    width: 120px;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--accent-yellow-glow));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--accent-yellow-glow));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px var(--accent-yellow));
    }
}

.loading-text {
    margin-top: 20px;
    color: var(--accent-yellow);
    font-weight: 600;
    letter-spacing: 2px;
}

.discord-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    width: 320px;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.discord-popup.show {
    transform: translateX(0);
}

.discord-popup h3 {
    color: var(--accent-yellow);
    margin-bottom: 8px;
}

.discord-popup p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.discord-buttons {
    display: flex;
    gap: 12px;
}

.discord-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-btn-join {
    background: #5865F2;
    color: white;
}

.discord-btn-join:hover {
    background: #4752c4;
    transform: scale(1.05);
}

.discord-btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.discord-btn-no:hover {
    background: rgba(255, 255, 255, 0.2);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245, 229, 107, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-yellow-dark);
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 300px;
    max-width: 90%;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    padding: 12px 24px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar.shrink {
    top: 10px;
    padding: 8px 20px;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-icon {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.shrink .brand-icon {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle, .profile-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-toggle:hover, .profile-toggle:hover {
    color: var(--accent-yellow);
    background: rgba(245, 229, 107, 0.1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 60px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-glass-solid);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    z-index: 1500;
    transition: left 0.3s ease;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.mobile-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sidebar a:hover, .mobile-sidebar a.active {
    background: rgba(245, 229, 107, 0.1);
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center 20%;
    z-index: 0;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #0a0a0f, transparent);
}

.hero-trailer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-trailer iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-overview {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-yellow);
    color: #0a0a0f;
}

.btn-primary:hover {
    background: var(--accent-yellow-dark);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

.btn-outline:hover {
    background: var(--accent-yellow);
    color: #0a0a0f;
}

.section {
    padding: 40px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.section-link {
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
}

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

.movie-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    position: relative;
    aspect-ratio: 2/3;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-yellow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-poster {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .card-poster img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-icon:hover {
    transform: scale(1.1);
    background: var(--accent-yellow);
    color: #0a0a0f;
}

.card-overlay-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
}

.card-overlay-rating {
    font-size: 0.85rem;
    color: var(--accent-yellow);
}

.card-overlay-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.watchlist-overlay-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-top: 8px;
}

.watchlist-overlay-btn:hover, .watchlist-overlay-btn.active {
    color: var(--accent-yellow);
    background: rgba(245, 229, 107, 0.2);
}

.watch-container {
    padding-top: 100px;
    min-height: 100vh;
}

.video-container {
    background: #000;
    position: relative;
    aspect-ratio: 16/9;
}

.video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.watch-info {
    padding: 40px 5%;
    background: linear-gradient(to bottom, transparent, var(--bg-glass));
}

.watch-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.watch-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.server-selector, .season-selector, .episode-selector {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 8px 20px;
    border-radius: 40px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.server-selector:hover, .season-selector:hover, .episode-selector:hover {
    border-color: var(--accent-yellow);
}

.server-selector.active {
    background: var(--accent-yellow);
    color: #0a0a0f;
    border-color: var(--accent-yellow);
}

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

.episode-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-card:hover, .episode-card.active {
    border-color: var(--accent-yellow);
    transform: translateY(-4px);
}

.episode-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.episode-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--accent-yellow);
}

.episode-card:hover .episode-play {
    opacity: 1;
}

.episode-info {
    padding: 10px;
}

.episode-number {
    font-size: 0.75rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.episode-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass);
    padding: 40px 5%;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 10px 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .section {
        padding: 30px 4%;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .watch-title {
        font-size: 1.5rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .discord-popup {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}


.search-submit {
    white-space: nowrap;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    transform: scale(1.02);
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
}

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

.movie-card, .hero-content {
    animation: fadeIn 0.6s ease forwards;
}



.fa, .fas, .far, .fab {
    font-family: 'Font Awesome 6 Free';
}


