* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1530 50%, #0d0820 100%);
    background-attachment: fixed;
    color: #e8e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Custom Scrollbar - Global */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.8) 0%, rgba(13, 8, 32, 0.8) 100%);
    border-radius: 10px;
    border: 1px solid rgba(138, 92, 246, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(138, 92, 246, 0.6) 0%, rgba(167, 139, 250, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(10, 14, 26, 0.3);
    box-shadow: 0 2px 10px rgba(138, 92, 246, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(138, 92, 246, 0.8) 0%, rgba(167, 139, 250, 0.8) 100%);
    border-color: rgba(138, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(138, 92, 246, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(138, 92, 246, 1) 0%, rgba(167, 139, 250, 1) 100%);
}

/* Scrollbar corner where horizontal and vertical scrollbars meet */
::-webkit-scrollbar-corner {
    background: rgba(10, 14, 26, 0.8);
}

/* Firefox Scrollbar Styles */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 92, 246, 0.6) rgba(10, 14, 26, 0.8);
}

.navbar {
    background: rgba(10, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(138, 92, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #e8e8f0;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.navbar a:hover {
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.5);
}

/* Navbar logo styles */
.logo-link {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 72px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.3));
}

.navbar-logo:hover {
    filter: drop-shadow(0 0 12px rgba(110, 231, 183, 0.6));
    transform: scale(1.05);
}

/* push specific nav item to the right */
.nav-right {
    margin-left: auto;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Novel Banner Styles */
.novel-banner {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 1.2s ease;
}

.novel-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    transition: left 2s ease;
    z-index: 0;
}

.novel-banner:hover::before {
    left: 0;
}

.novel-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    width: 50px;
    height: 50px;
    background-image: url('../images/mooncake.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) scaleX(1);
    transition: left 2s ease, transform 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.novel-banner:hover::after {
    left: calc(100% + 10px);
    transform: translateY(-50%) scaleX(-1);
}

.novel-banner .banner-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.novel-banner .hover-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.novel-banner:hover .default-text {
    opacity: 0;
    transform: translateY(-10px);
}

.novel-banner:hover .hover-text {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.novel-banner:hover {
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hero Logo */
.hero-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-logo a {
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
    animation: heroGlow 3s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.hero-logo a:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(110, 231, 183, 0.8));
    animation: none;
}

@keyframes heroGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(110, 231, 183, 0.5));
    }
}

@media (max-width: 768px) {
    .hero-logo img {
        max-width: 100%;
    }
}

footer {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.9) 0%, rgba(13, 8, 32, 0.9) 100%);
    border-top: 1px solid rgba(138, 92, 246, 0.2);
    padding: 3rem 2rem;
    text-align: center;
    color: #b8b8c8;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #6ee7b7;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.5);
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(138, 92, 246, 0.1);
    font-size: 0.85rem;
}

.legal-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: #6ee7b7;
    text-decoration: underline;
}

.legal-links .separator {
    color: #4b5563;
}

/* Legal Content Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-section {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.6) 0%, rgba(13, 8, 32, 0.6) 100%);
    border: 1px solid rgba(138, 92, 246, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.legal-section h2 {
    color: #c084fc;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-section h3 {
    color: #a78bfa;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-section p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: #d1d5db;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #6ee7b7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #10b981;
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Contact Box Styles */
.contact-box {
    background: rgba(26, 21, 48, 0.4);
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.contact-box h3 {
    color: #a78bfa;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-box p {
    margin-bottom: 1rem;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* FAQ Styles */
.faq-item {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.6) 0%, rgba(13, 8, 32, 0.6) 100%);
    border: 1px solid rgba(138, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(110, 231, 183, 0.4);
    box-shadow: 0 8px 32px rgba(110, 231, 183, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    color: #c084fc;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    cursor: pointer;
}

.faq-answer {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1rem;
}

.faq-answer ul {
    margin-top: 0.75rem;
    margin-left: 2rem;
    margin-bottom: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer a {
    color: #6ee7b7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: #10b981;
    text-decoration: underline;
}

/* Episode Grid Styles */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.episode-card {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.8) 0%, rgba(13, 8, 32, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(138, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.episode-card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 231, 183, 0.6);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.episode-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d1b69 0%, #1e1347 50%, #14082e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-card:hover .episode-image img {
    transform: scale(1.05);
}

.episode-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 8, 32, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.episode-content {
    padding: 1.5rem;
}

.episode-header {
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.episode-title {
    font-size: 1.4rem;
    color: #e8e8f0;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.episode-description {
    color: #b8b8c8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    min-height: 80px;
}

.watch-button {
    display: inline-block;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
}

.watch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: transparent;
}

.watch-button:hover::after {
    content: "Lightfold H.U.E.";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    white-space: nowrap;
}

.watch-button:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.6);
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: transparent;
}

.watch-button:active::after {
    content: "... Lift off ...";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    white-space: nowrap;
}

/* News Broadcast Section */
.news-broadcast {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 2px solid rgba(138, 92, 246, 0.4);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
    animation: broadcastGlow 3s ease-in-out infinite;
}

@keyframes broadcastGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
        border-color: rgba(138, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(110, 231, 183, 0.3);
        border-color: rgba(110, 231, 183, 0.5);
    }
}

.broadcast-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.broadcast-icon {
    width: 24px;
    height: 24px;
    color: #6ee7b7;
    animation: pulse 2s infinite;
    flex-shrink: 0;
    display: block;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.broadcast-badge {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.broadcast-content {
    margin-left: 2rem;
}

.broadcast-title {
    color: #c084fc;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.broadcast-message {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.broadcast-message a {
    color: #6ee7b7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.broadcast-message a:hover {
    color: #10b981;
    text-decoration: underline;
}

.broadcast-date {
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive Broadcast */
@media (max-width: 768px) {
    .news-broadcast {
        padding: 1.25rem 1.5rem;
    }
    
    .broadcast-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .broadcast-title {
        font-size: 1.25rem;
    }
    
    .broadcast-message {
        font-size: 0.95rem;
    }
}

/* Season Selector Styles */
.season-selector-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.season-selector-wrapper label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#seasonSelector {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.9) 0%, rgba(13, 8, 32, 0.9) 100%);
    border: 2px solid rgba(138, 92, 246, 0.4);
    color: #e8e8f0;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    outline: none;
}

#seasonSelector:hover {
    border-color: rgba(110, 231, 183, 0.6);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

#seasonSelector:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

#seasonSelector option {
    background: #1a1530;
    color: #e8e8f0;
    padding: 0.5rem;
}

/* Video Player Styles */
.player-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.player-main {
    min-width: 0;
}

.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(138, 92, 246, 0.3);
    border: 1px solid rgba(138, 92, 246, 0.2);
    position: relative;
}

.video-container > video {
    border-radius: 12px;
    overflow: hidden;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

/* Theater Mode Button */
.theater-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
}

.video-container:hover .theater-button {
    opacity: 1;
    pointer-events: auto;
}

.theater-button:hover {
    background: rgba(124, 58, 237, 0.8);
    border-color: rgba(110, 231, 183, 0.6);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(110, 231, 183, 0.4);
}

.theater-button:active {
    transform: scale(0.95);
}

.theater-icon {
    width: 24px;
    height: 24px;
    color: #e8e8f0;
    display: block;
}

/* Custom Video Controls */
/* Custom Video Player Controls */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.video-controls-overlay * {
    pointer-events: auto;
}

/* Center Play/Pause Button */
.center-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 14, 26, 0.9);
    border: 3px solid rgba(138, 92, 246, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    opacity: 0;
}

.video-container:hover .center-play-button,
.video-container.paused .center-play-button {
    opacity: 1;
}

.center-play-button:hover {
    background: rgba(124, 58, 237, 0.95);
    border-color: rgba(110, 231, 183, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(110, 231, 183, 0.6);
}

.center-play-button svg {
    width: 36px;
    height: 36px;
    color: #e8e8f0;
}

/* Video Control Bar */
.video-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.85) 70%, transparent 100%);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem 1rem;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    opacity: 1;
}

/* Hide controls during playback when not hovering */
.video-container:not(.paused):not(:hover) .video-control-bar:not(.show) {
    transform: translateY(calc(100% + 10px));
    opacity: 0;
    pointer-events: none;
}

/* Progress Bar */
.progress-container {
    position: relative;
    margin-bottom: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    overflow: visible;
    transition: height 0.2s ease;
    width: 100%;
}

.progress-container:hover .progress-bar {
    height: 8px;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    width: 0%;
}

.progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #8a5cf6 0%, #6ee7b7 100%);
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 10px rgba(110, 231, 183, 0.5);
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #6ee7b7;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    left: 0%;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

/* Time Tooltip */
.time-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translateX(-50%);
    background: rgba(10, 14, 26, 0.95);
    color: #e8e8f0;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 10px;
    border: 1px solid rgba(138, 92, 246, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease;
}

.progress-container:hover .time-tooltip {
    opacity: 1;
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 36px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    position: relative;
}

.controls-left {
    overflow: visible;
    z-index: 15;
}

/* Control Buttons */
.control-btn {
    background: transparent;
    border: none;
    color: #e8e8f0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 36px;
    width: 36px;
}

.control-btn:hover {
    background: rgba(138, 92, 246, 0.3);
    color: #6ee7b7;
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.control-btn .speed-text {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

/* Speed button needs more width for text */
#speedBtn {
    width: auto;
    min-width: 50px;
    padding: 0.5rem 0.75rem;
}

/* Volume Controls */
.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 20;
}

.volume-slider-container {
    width: 0;
    overflow: visible;
    transition: width 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    height: 20px;
}

.volume-container:hover .volume-slider-container {
    width: 80px;
    opacity: 1;
    pointer-events: auto;
}

.volume-slider {
    width: 80px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    position: relative;
    align-self: center;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('../images/mooncake.png') center/cover no-repeat;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 25;
    margin-top: -7.5px;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: url('../images/mooncake.png') center/cover no-repeat;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 25;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.volume-slider::-moz-range-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Volume fill effect */
.volume-slider {
    background: linear-gradient(90deg, 
        #8a5cf6 0%, 
        #6ee7b7 var(--volume-percent, 100%), 
        rgba(255, 255, 255, 0.2) var(--volume-percent, 100%));
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8e8f0;
    user-select: none;
    white-space: nowrap;
    min-width: 90px;
    justify-content: center;
}

.time-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0.1rem;
}

/* Speed & Settings Menus */
.speed-container,
.settings-container {
    position: relative;
}

.speed-menu,
.settings-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    border: 1px solid rgba(138, 92, 246, 0.4);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 140px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.speed-menu.show,
.settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Settings Menu Sections */
.settings-section {
    padding: 0.25rem 0;
}

.settings-label {
    padding: 0.5rem 1rem 0.35rem;
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(138, 92, 246, 0.2);
    margin-bottom: 0.25rem;
}

.speed-option,
.quality-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #e8e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.speed-option:hover,
.quality-option:hover {
    background: rgba(138, 92, 246, 0.3);
    color: #6ee7b7;
}

.speed-option.active,
.quality-option.active {
    background: rgba(138, 92, 246, 0.5);
    color: #6ee7b7;
}

.speed-option.active::after,
.quality-option.active::after {
    content: '✓';
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Settings Submenu Navigation */
.settings-main-menu,
.settings-submenu {
    min-width: 200px;
}

.settings-menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #e8e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.settings-menu-item:hover {
    background: rgba(138, 92, 246, 0.3);
    color: #6ee7b7;
}

.settings-value {
    color: #a78bfa;
    font-size: 0.85rem;
    margin-right: auto;
}

.settings-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.settings-back {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(138, 92, 246, 0.2);
    margin-bottom: 0.5rem;
}

.settings-back:hover {
    background: rgba(138, 92, 246, 0.2);
    color: #6ee7b7;
}

.settings-back svg {
    width: 20px;
    height: 20px;
}

.settings-submenu {
    display: none;
}

/* Skip & Theater Buttons (repositioned) */
.skip-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 14, 26, 0.9);
    border: 2px solid rgba(138, 92, 246, 0.5);
    border-radius: 8px;
    padding: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.video-container:hover .skip-button {
    opacity: 1;
}

.skip-button:hover {
    background: rgba(124, 58, 237, 0.9);
    border-color: rgba(110, 231, 183, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(110, 231, 183, 0.5);
}

.skip-button svg {
    width: 20px;
    height: 20px;
    color: #e8e8f0;
    display: block;
}

.theater-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 14, 26, 0.9);
    border: 2px solid rgba(138, 92, 246, 0.5);
    border-radius: 8px;
    padding: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.video-container:hover .theater-button {
    opacity: 1;
}

.theater-button:hover {
    background: rgba(124, 58, 237, 0.9);
    border-color: rgba(110, 231, 183, 0.8);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(110, 231, 183, 0.5);
}

.theater-button svg {
    width: 20px;
    height: 20px;
    color: #e8e8f0;
    display: block;
}

/* Hide native video controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Theater Mode Layout */
.player-layout.theater-mode {
    grid-template-columns: 1fr;
}

.player-layout.theater-mode .playlist-sidebar {
    display: none;
}

.player-layout.theater-mode .video-container {
    margin-bottom: 2rem;
}

.video-info {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.9) 0%, rgba(13, 8, 32, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(138, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-title {
    font-size: 2.25rem;
    background: linear-gradient(90deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.video-description {
    color: #c0c0d0;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Episode Credits Section */
.episode-credits {
    background: rgba(16, 12, 34, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(138, 92, 246, 0.15);
}

.credits-heading {
    font-size: 1rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(138, 92, 246, 0.3);
    padding-bottom: 0.5rem;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cast-member {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(138, 92, 246, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 92, 246, 0.2);
}

.cast-member:hover {
    background: rgba(138, 92, 246, 0.2);
    border-color: rgba(110, 231, 183, 0.4);
    transform: translateY(-2px);
}

.cast-member-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6ee7b7;
    flex-shrink: 0;
    background: rgba(138, 92, 246, 0.2);
}

.cast-member-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.actor-name {
    color: #6ee7b7;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.character-name {
    color: #a78bfa;
    font-size: 0.85rem;
    font-style: italic;
}

.credits-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.credits-section {
    margin-bottom: 1rem;
}

.credits-names {
    color: #c0c0d0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.credits-names .credit-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(138, 92, 246, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.credits-names .credit-person:hover {
    background: rgba(138, 92, 246, 0.2);
    color: #6ee7b7;
}

.credit-person-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #a78bfa;
    flex-shrink: 0;
    background: rgba(138, 92, 246, 0.2);
}

.credit-person-name {
    flex: 1;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

button {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.back-button {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.4);
}

.back-button:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Navigation Icon Styles */
.nav-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

#prevBtn .nav-icon {
    margin-right: 0.5rem;
}

#nextBtn .nav-icon {
    margin-left: 0.5rem;
}

#prevBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

#nextBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

#prevBtn:hover .nav-icon {
    transform: translateX(-3px);
}

#nextBtn:hover .nav-icon {
    transform: translateX(3px);
}

/* Playlist Sidebar Styles */
.playlist-sidebar {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.9) 0%, rgba(13, 8, 32, 0.9) 100%);
    border: 1px solid rgba(138, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.playlist-sidebar::-webkit-scrollbar {
    width: 8px;
}

.playlist-sidebar::-webkit-scrollbar-track {
    background: rgba(26, 21, 48, 0.5);
    border-radius: 4px;
}

.playlist-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 4px;
}

.playlist-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.playlist-title {
    color: #c084fc;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Season Switcher Styles */
.season-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(17, 24, 39, 0.5);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(138, 92, 246, 0.2);
}

.season-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(138, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.season-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    color: #c084fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.season-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #a855f7;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
}

.season-btn.active:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: #34d399;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(26, 21, 48, 0.4);
    border: 1px solid rgba(138, 92, 246, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(26, 21, 48, 0.7);
    border-color: rgba(110, 231, 183, 0.4);
    transform: translateX(5px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-color: rgba(168, 85, 247, 0.6);
}

.playlist-item.active:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
}

.playlist-thumbnail {
    position: relative;
    width: 100px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
}

.playlist-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.playlist-episode {
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.playlist-info .playlist-title {
    color: #e8e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
    text-align: left;
    letter-spacing: 0;
    text-transform: none;
}

.playlist-item.active .playlist-episode {
    color: #6ee7b7;
}

.playlist-item.active .playlist-info .playlist-title {
    color: #fff;
}

/* Responsive Playlist */
@media (max-width: 1200px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
    
    .playlist-sidebar {
        position: relative;
        top: 0;
        max-height: 500px;
        order: 2;
    }
}

/* FAQ Styles */
.faq-item {
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.8) 0%, rgba(13, 8, 32, 0.8) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(138, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(110, 231, 183, 0.4);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
}

.faq-question {
    font-size: 1.5rem;
    color: #a78bfa;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.faq-answer {
    color: #c0c0d0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .episode-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    .navbar {
        padding: 1rem;
    }

    .navbar-logo {
        height: 50px;
    }

    .nav-right {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .episode-description {
        min-height: auto;
    }

    .video-title {
        font-size: 1.75rem;
    }

    .controls {
        flex-direction: column;
    }

    .faq-question {
        font-size: 1.25rem;
    }

    .faq-answer {
        font-size: 1rem;
    }

    .container {
        max-width: 900px;
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: 2px solid rgba(138, 92, 246, 0.4);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#backToTop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: rgba(110, 231, 183, 0.6);
}

#backToTop:active {
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
    #backToTop {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .navbar-logo {
        height: 40px;
    }

    .nav-right {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-right a {
        padding: 0.5rem 0.75rem;
    }

    .novel-banner {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .novel-banner::after {
        width: 40px;
        height: 40px;
        left: -50px;
    }
}

/* Error Page Styles */
.error-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 4rem;
}

.error-content {
    flex: 1;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(167, 139, 250, 0.3);
    letter-spacing: -0.05em;
}

.error-title {
    font-size: 3rem;
    color: #e8e8f0;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.error-message {
    font-size: 1.25rem;
    color: #c0c0d0;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-button {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.3px;
    border: 2px solid transparent;
}

.error-button.primary {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.error-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.error-button.secondary {
    background: transparent;
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.5);
}

.error-button.secondary:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: #a78bfa;
    transform: translateY(-2px);
}

.error-illustration {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.3));
    animation: errorFloat 3s ease-in-out infinite;
}

@keyframes errorFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.error-svg circle {
    animation: errorPulse 2s ease-in-out infinite;
}

.error-svg circle:nth-child(1) {
    animation-delay: 0s;
}

.error-svg circle:nth-child(2) {
    animation-delay: 0.3s;
}

.error-svg circle:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes errorPulse {
    0%, 100% {
        opacity: 0.3;
        stroke-width: 2;
    }
    50% {
        opacity: 0.8;
        stroke-width: 3;
    }
}

/* Error Page Responsive */
@media (max-width: 968px) {
    .error-page {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .error-illustration {
        flex: 0 0 200px;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2.25rem;
    }
    
    .error-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .error-code {
        font-size: 4.5rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-illustration {
        flex: 0 0 150px;
    }
}

/* Codec Error Modal */
.codec-error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(26, 21, 48, 0.98) 0%, rgba(13, 8, 32, 0.98) 100%);
    border: 2px solid #a78bfa;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(167, 139, 250, 0.6), 0 0 100px rgba(167, 139, 250, 0.3);
    animation: modalFadeIn 0.3s ease-out;
    margin: 0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.codec-error-message h3 {
    color: #e879f9;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(232, 121, 249, 0.5);
}

.codec-error-message p {
    color: #c0c0d0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.codec-error-message strong {
    color: #6ee7b7;
    font-weight: 700;
}

.codec-error-message .solutions-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.codec-error-message .solutions-list p {
    color: #6ee7b7;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.codec-error-message .button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.codec-error-message a {
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.codec-error-message .download-btn {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.codec-error-message .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
}

.codec-error-message .archive-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.codec-error-message .archive-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6);
}

.codec-error-message button {
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(167, 139, 250, 0.5);
    color: #a78bfa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.codec-error-message button:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: #a78bfa;
    transform: scale(1.05);
}

/* Custom scrollbar for codec error modal */
.codec-error-message::-webkit-scrollbar {
    width: 8px;
}

.codec-error-message::-webkit-scrollbar-track {
    background: rgba(13, 8, 32, 0.5);
    border-radius: 10px;
}

.codec-error-message::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 10px;
}

.codec-error-message::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

/* Firefox Warning Banner */
.firefox-warning-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95) 0%, rgba(168, 85, 247, 0.95) 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 650px;
    width: 90%;
    font-size: 0.95rem;
    animation: bannerSlideIn 0.4s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes bannerSlideIn {
    from {
        top: 50px;
        opacity: 0;
    }
    to {
        top: 70px;
        opacity: 1;
    }
}

.firefox-warning-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.firefox-warning-banner button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive Codec Error */
@media (max-width: 768px) {
    .codec-error-message {
        padding: 1.5rem;
        max-width: 95%;
        width: 95%;
        max-height: 90vh;
        font-size: 0.95rem;
    }
    
    .codec-error-message h3 {
        font-size: 1.35rem;
    }
    
    .codec-error-message p {
        font-size: 0.95rem;
    }
    
    .codec-error-message .solutions-list {
        padding-left: 1rem;
    }
    
    .codec-error-message .solutions-list p {
        font-size: 0.9rem;
    }
    
    .codec-error-message .button-group {
        flex-direction: column;
    }
    
    .codec-error-message a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .firefox-warning-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }
    
    .firefox-warning-banner button {
        width: 100%;
    }
        /* Custom Video Controls - Mobile */
    .video-control-bar {
        padding: 0.4rem 0.75rem 0.6rem;
    }
    
    .controls-row {
        gap: 0.5rem;
    }
    
    .controls-left,
    .controls-right {
        gap: 0.25rem;
    }
    
    .control-btn {
        padding: 0.4rem;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .time-display {
        font-size: 0.8rem;
    }
    
    .volume-container:hover .volume-slider-container {
        width: 0; /* Disable hover expand on mobile */
    }
    
    .volume-slider-container {
        display: none; /* Hide volume slider on mobile */
    }
    
    .control-btn .speed-text {
        font-size: 0.8rem;
        min-width: 28px;
    }
    
    .speed-menu,
    .quality-menu {
        min-width: 100px;
        font-size: 0.85rem;
    }
}

