/* 
   GDTVN Premium Styling 
   Aesthetics: Modern Netflix / Apple TV+ UI. Deep pure blacks, glassmorphism, fluid typography.
*/

:root {
    --bg-primary: #000000;
    --bg-secondary: #0F0F0F;
    --bg-overlay: rgba(0, 0, 0, 0.85);

    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;

    --accent-red: #E50914; /* Netflix Red */
    --accent-red-hover: #b8070f;
    --accent-glass: rgba(255, 255, 255, 0.1);

    --hero-gradient: linear-gradient(0deg, #000000 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    --card-gradient: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);

    --max-width: 1600px;
    --padding-x: 4vw;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }

/* Base Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.8rem; border-radius: 4px;
    font-weight: 600; font-size: 1rem;
    font-family: var(--font-main);
    cursor: pointer; border: none;
    transition: all var(--transition-fast);
    gap: 0.5rem; letter-spacing: 0.5px;
}
.btn-primary { background-color: var(--text-primary); color: #000; }
.btn-primary:hover { background-color: rgba(255,255,255,0.75); transform: scale(1.02); }

.btn-accent { background-color: var(--accent-red); color: #fff; }
.btn-accent:hover { background-color: var(--accent-red-hover); transform: scale(1.02); }

.btn-outline { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn-outline:hover { border-color: #fff; background-color: rgba(255, 255, 255, 0.1); }

.btn-glass { background-color: rgba(60, 60, 65, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #fff; }
.btn-glass:hover { background-color: rgba(80, 80, 85, 0.6); }

.btn-large { padding: 0.9rem 2.5rem; font-size: 1.2rem; border-radius: 4px; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.5rem var(--padding-x);
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: background-color var(--transition-smooth), padding var(--transition-smooth);
}
.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 1rem var(--padding-x);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.logo a { font-size: 2.2rem; font-weight: 800; letter-spacing: -2px; color: var(--accent-red); text-transform: uppercase; }

.main-nav { display: flex; margin-right: auto; margin-left: 1.5rem; }
.nav-links { display: flex; gap: 0.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #e5e5e5; display: inline-flex; align-items: center; padding: 0.5rem; border-radius: 4px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; font-weight: 600; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.auth-buttons { display: flex; gap: 1rem; align-items: center; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 3px; background-color: #fff; border-radius: 2px; }

/* Hero Section */
.hero-section {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: flex-end;
    padding: 0 var(--padding-x) 10vh var(--padding-x);
    margin-top: 0;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center top;
    z-index: -2;
    transition: opacity 0.4s ease-in-out, background-image 0.4s ease-in-out;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--hero-gradient); z-index: -1;
}
.hero-content {
    max-width: 900px; animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: opacity 0.4s ease-in-out;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.badge-accent { background-color: var(--accent-red); color: #fff; padding: 0.3rem 0.6rem; border-radius: 2px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; display: inline-block; }

.hero-title { font-size: 5vw; font-weight: 800; line-height: 1.05; margin-bottom: 1rem; letter-spacing: -2px; }
.hero-subtitle { font-size: 1.5rem; color: #d4d4d4; margin-bottom: 2.5rem; max-width: 90%; font-weight: 400; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.hero-actions { display: flex; gap: 1.5rem; }
.text-shadow { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9); }

/* Content Slider Carousel */
.content-slider-section { padding: 3rem var(--padding-x) 1.5rem var(--padding-x); position: relative; z-index: 10; margin-top: -6rem; }
.content-slider-section:nth-of-type(n+3) { margin-top: 0; padding-top: 1rem; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; padding: 0 1vw; position: relative; z-index: 10; }
.section-title { font-size: 1.4rem; font-weight: 700; color: #e5e5e5; }
.see-all { font-size: 1rem; font-weight: 600; color: #54b9c5; display: flex; align-items: center; gap: 4px; transition: color 0.2s; }
.see-all:hover { color: #fff; }

.slider-container { position: relative; margin: 0 -4vw; padding: 0 4vw; }
.slider-track {
    display: flex; gap: 0.8vw; overflow-x: auto; scroll-behavior: smooth;
    padding: 3rem 1vw; margin: -3rem -1vw; /* Buffer space for massive hover scale */
    scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }

/* Movie Card */
.movie-card {
    flex: 0 0 calc(100vw / 6 - 1.2vw); /* Roughly 6 cards across on desktop */
    min-width: 220px; max-width: 350px;
    position: relative; border-radius: 4px; overflow: hidden;
    cursor: pointer; transition: transform var(--transition-smooth), opacity 0.3s;
    aspect-ratio: 16/9; background: #111;
}
.movie-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--transition-smooth); }

.movie-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 3rem 1.5rem 1rem 1.5rem;
    background: var(--card-gradient);
    transform: translateY(20px); opacity: 0; transition: all var(--transition-smooth);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.movie-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; text-shadow: 0 2px 4px rgba(0,0,0,1); }
.movie-meta { font-size: 0.85rem; color: #e5e5e5; display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 0.5rem; }
.movie-match { color: #46d369; font-weight: 800; }

.add-to-list-btn {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10;
    opacity: 0; transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.add-to-list-btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.movie-card:hover .add-to-list-btn { opacity: 1; }
.add-to-list-btn:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.1); border-color: #fff; }
.add-to-list-btn.in-list { opacity: 1; background: rgba(0,0,0,0.6); border-color: var(--accent-red); }
.add-to-list-btn.in-list svg { transform: scale(1.1); }

.slider-track:hover .movie-card { opacity: 0.5; }
.slider-track:hover .movie-card:hover { 
    opacity: 1; 
    transform: scale(1.3) translateY(-10%); 
    z-index: 99; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9); 
    border-radius: 6px; 
}

.movie-card:hover .movie-info { transform: translateY(0); opacity: 1; }

.progress-container { width: 100%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; background: var(--accent-red); }

.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition-smooth); z-index: 5;
}
.play-overlay svg { width: 54px; height: 54px; fill: #fff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8)); transform: scale(0.8); transition: transform var(--transition-smooth); }
.movie-card:hover .play-overlay { opacity: 1; background: rgba(0,0,0,0.4); }
.movie-card:hover .play-overlay svg { transform: scale(1); }

/* Slider Controls */
.slider-btn {
    position: absolute; top: 0; bottom: 0; width: 4vw;
    background: rgba(0, 0, 0, 0.3); color: #fff; border: none;
    font-size: 3rem; cursor: pointer; z-index: 20;
    opacity: 0; transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px);
}
.slider-container:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(0, 0, 0, 0.7); transform: scaleX(1.1); }
.prev-btn { left: 0; transform-origin: left center; }
.next-btn { right: 0; transform-origin: right center; }

/* Live TV / EPG Styles */
.live-badge {
    background: var(--primary-accent);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.epg-grid {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}
.epg-time-header {
    display: flex;
    padding: 10px 0 10px 150px; /* Offset for channel info */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.5);
    min-width: 800px;
}
.epg-time-slot {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}
.epg-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 800px;
}
.epg-row:last-child {
    border-bottom: none;
}
.epg-channel-info {
    width: 150px;
    flex-shrink: 0;
    padding: 20px 15px;
    background: rgba(0,0,0,0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.channel-num { color: var(--text-muted); font-size: 0.8rem; }
.channel-name { font-weight: 600; font-size: 0.95rem; }

.epg-programs {
    display: flex;
    flex: 1;
    padding: 5px;
    gap: 5px;
}
.epg-program {
    background: rgba(40, 40, 40, 0.6);
    padding: 12px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    overflow: hidden;
}
.epg-program:hover {
    background: rgba(60, 60, 60, 0.9);
}
.epg-program.active {
    background: rgba(229, 9, 20, 0.2);
    border-left: 3px solid var(--primary-accent);
}
.epg-program h4 { margin: 0 0 5px 0; font-size: 0.95rem; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.epg-program p { margin: 0; font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* Call to Action Banner */
.signup-banner {
    margin: 8rem var(--padding-x) 4rem; padding: 6rem 2rem;
    background: linear-gradient(135deg, #1A0505, #000000);
    border-radius: 8px; text-align: center; border: 1px solid rgba(229, 9, 20, 0.3);
    position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(229, 9, 20, 0.1);
}
.signup-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(229,9,20,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.signup-banner h2 { font-size: 3rem; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -1px; }
.signup-banner p { color: var(--text-secondary); font-size: 1.3rem; margin-bottom: 3rem; max-width: 650px; margin-left: auto; margin-right: auto; }

/* Ads - Premium Banners */
.ad-container { display: flex; justify-content: center; align-items: center; margin: 2rem auto; width: 100%; border-radius: 4px; overflow: hidden; position: relative; transition: transform 0.3s, box-shadow 0.3s; background: linear-gradient(45deg, #0a0a0a, #1a1a1a); border: 1px solid rgba(255,255,255,0.1); }
.ad-container:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.ad-leaderboard { max-width: 800px; height: auto; aspect-ratio: 799 / 225; margin-top: 6rem; }
.ad-rectangle { max-width: 300px; height: 250px; margin: 0; }
.ad-rectangle-wrapper { display: flex; gap: 2rem; justify-content: center; border: none; margin-top: 5rem; margin-bottom: 5rem; background: transparent; transform: none !important; box-shadow: none !important; }

/* Content for Ads */
.ad-content { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: #fff; padding: 1rem; text-align: center; }
.ad-content span.ad-label { position: absolute; top: 5px; right: 5px; font-size: 0.6rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.ad-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.2rem; background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ad-leaderboard .ad-title { font-size: 1.8rem; }
.ad-rectangle .ad-title { font-size: 1.5rem; }
.ad-desc { font-size: 0.85rem; color: #aaa; margin-bottom: 0.5rem; }
.ad-cta { font-size: 0.8rem; font-weight: 700; color: var(--accent-red); margin-top: auto; }

/* Footer */
.site-footer { background-color: var(--bg-secondary); padding: 5rem var(--padding-x) 3rem var(--padding-x); margin-top: 4rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--accent-red); letter-spacing: -2px; }
.about-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; max-width: 450px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff; font-weight: 700; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: 1rem; font-weight: 500; }
.footer-col ul li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;}
.social-links { display: flex; gap: 1.5rem; }
.social-links a { font-weight: 700; color: #fff; font-size: 1.2rem; }

/* Subscription / Pricing Modal */
.pricing-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.pricing-modal-overlay.active { opacity: 1; pointer-events: auto; }
.pricing-modal-content {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; padding: 3rem; width: 90%; max-width: 900px;
    position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.pricing-modal-overlay.active .pricing-modal-content { transform: translateY(0); }
.close-pricing-btn {
    position: absolute; top: 15px; right: 20px; background: transparent;
    border: none; color: var(--text-secondary); font-size: 2rem; cursor: pointer;
    transition: color 0.2s;
}
.close-pricing-btn:hover { color: #fff; }
.pricing-header { text-align: center; margin-bottom: 3rem; }
.pricing-header h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.pricing-header p { color: var(--text-secondary); }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 1.5rem; }
.toggle-switch { width: 50px; height: 26px; background: var(--accent-red); border-radius: 13px; position: relative; cursor: pointer; }
.toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.badge-saving { background: rgba(70, 211, 105, 0.2); color: #46d369; font-size: 0.75rem; padding: 2px 6px; border-radius: 10px; margin-left: 5px; }

.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pricing-card {
    background: rgba(40, 40, 40, 0.3); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; padding: 2.5rem 2rem;
    display: flex; flex-direction: column; position: relative;
    transition: transform 0.3s, border-color 0.3s;
}
.pricing-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.pricing-card.premium { background: linear-gradient(145deg, rgba(229,9,20,0.1), rgba(0,0,0,0)); border-color: rgba(229,9,20,0.3); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-red); color: #fff; font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px; letter-spacing: 1px;
}
.pricing-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; color: #fff; }
.price { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.price span { font-size: 2.5rem; font-weight: 800; color: #fff; margin-right: 2px; }
.features-list { list-style: none; padding: 0; margin-bottom: 2.5rem; flex-grow: 1; }
.features-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; font-size: 0.95rem; color: #e5e5e5; }
.features-list li svg { width: 18px; height: 18px; fill: #46d369; flex-shrink: 0; }
.features-list li.disabled { color: var(--text-secondary); }
.features-list li.disabled svg { fill: var(--text-secondary); }

/* Responsive */
@media (max-width: 1200px) {
    .movie-card { flex: 0 0 calc(100vw / 4 - 2vw); }
    .hero-title { font-size: 6vw; }
}
@media (max-width: 992px) {
    .movie-card { flex: 0 0 calc(100vw / 3 - 3vw); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-col { grid-column: span 2; }
}
@media (max-width: 768px) {
    .site-header { padding: 1rem var(--padding-x); }
    .main-nav {
        display: flex; flex-direction: column; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        padding: 6rem 2rem 12rem; transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 900; margin-left: 0; overflow-y: auto; justify-content: flex-start;
    }
    .main-nav.active { right: 0; }
    .nav-links { flex-direction: column; gap: 1.5rem; align-items: center; width: 100%; margin-bottom: 2rem;}
    .nav-links a { font-size: 1.5rem; border-bottom: none; display:block; padding: 0.5rem;}

    .auth-buttons {
        display: flex; flex-direction: column; gap: 1rem; width: 100%;
        position: fixed; top: auto; right: -100%; bottom: 2rem; left: auto;
        padding: 0 4vw; z-index: 950;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .auth-buttons.active { right: 0; }
    .auth-buttons .btn { width: 100%; margin: 0; justify-content: center; padding: 1rem; }
    
    .menu-toggle { display: flex; z-index: 1000; position: relative; width: 30px; }
    .menu-toggle span { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-actions { flex-direction: column; }
    .btn-large { width: 100%; }
    .ad-leaderboard, .hidden-mobile { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-col { grid-column: span 1; }
    .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; text-align: center; }
    .movie-card { flex: 0 0 calc(100vw / 2 - 4vw); }
    .slider-track { padding-bottom: 3rem; margin-bottom: -2rem; }
    .slider-btn { display: none; }
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-modal-content { padding: 1.5rem; width: 95%; max-height: 90vh; overflow-y: auto; }
    .auth-modal-content { padding: 25px; width: 95%; }
}

/* Legal Pages */
.legal-hero {
    padding: 120px 5% 60px;
    text-align: center;
    background: linear-gradient(to bottom, #111, var(--bg-color));
}
.legal-hero h1 { font-size: 3rem; margin-bottom: 20px; color: #fff; }
.legal-hero p { color: var(--text-muted); font-size: 1.1rem; }

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px;
}
.legal-container.with-tabs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
@media (min-width: 768px) {
    .legal-container.with-tabs {
        flex-direction: row;
        align-items: flex-start;
    }
}
.legal-tabs {
    flex: 0 0 250px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: left;
    padding: 15px 25px;
    font-size: 1.05rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.tab-btn.active {
    color: #fff;
    border-left-color: var(--accent-red);
    background: rgba(229,9,20,0.1);
    font-weight: 600;
}

.legal-content-area {
    flex: 1;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    color: #e5e5e5;
    line-height: 1.7;
    min-height: 500px;
}
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.legal-content-area h2 { color: #fff; margin: 0 0 15px; font-size: 1.5rem; }
.legal-content-area h3 { color: #ccc; margin: 20px 0 10px; font-size: 1.2rem; }
.legal-content-area p { margin-bottom: 15px; }
.legal-content-area ul { margin-bottom: 20px; padding-left: 20px; }
.legal-content-area li { margin-bottom: 8px; }

/* Video Player Modal */
.video-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.98); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all var(--transition-smooth);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.video-modal-overlay.active { opacity: 1; visibility: visible; }
.video-player-container {
    position: relative; width: 100%; max-width: 1600px; /* almost full screen */
    aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 100px rgba(0, 0, 0, 1);
    border-radius: 0; overflow: hidden; transform: scale(0.95);
    transition: transform var(--transition-smooth);
}
.video-modal-overlay.active .video-player-container { transform: scale(1); }
.video-player-container iframe { width: 100%; height: 100%; border: none; background: #000; }
.close-video-btn {
    position: absolute; top: 20px; right: 30px; background: rgba(0,0,0,0.6);
    border: none; color: #fff; font-size: 2.5rem; line-height: 1;
    width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); transition: all var(--transition-fast);
}
.close-video-btn:hover { background: #fff; color: #000; transform: scale(1.1); }

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 2500;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.auth-modal-overlay.active { opacity: 1; pointer-events: auto; }

.auth-modal-content {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    width: 90%; max-width: 420px; padding: 40px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.auth-modal-overlay.active .auth-modal-content { transform: translateY(0); }

.close-auth-btn {
    position: absolute; top: 15px; right: 20px;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 2rem; cursor: pointer;
    line-height: 1; transition: color 0.2s ease;
}
.close-auth-btn:hover { color: #fff; }

.auth-form-container { display: none; }
.auth-form-container.active { display: block; animation: fadeIn 0.3s ease; }

.auth-form-container h2 { font-size: 2rem; margin-bottom: 5px; color: #fff; text-align: center; }
.auth-form-container p { color: var(--text-muted); text-align: center; margin-bottom: 30px; font-size: 0.95rem; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; color: #ccc; }
.auth-form .form-group input {
    width: 100%; padding: 14px 15px; border-radius: 6px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-family: inherit; font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-form .form-group input:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(229,9,20,0.2); }
.auth-submit { margin-top: 10px; padding: 14px; font-size: 1.1rem; border-radius: 6px; font-weight: 700; box-shadow: 0 4px 15px rgba(229,9,20,0.4); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); }
.auth-links a { color: var(--text-primary); text-decoration: underline; transition: color var(--transition-fast); }
.auth-links a:hover { color: var(--accent-red); }

/* --- Featured Event Integration --- */
.featured-event-section {
    padding: 80px 4%;
    background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(5,5,5,1));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 3px solid #00d563; /* Accent matching the flyer's booking button */
    position: relative;
}

.event-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}

.event-content {
    flex: 1;
    min-width: 320px;
}

.event-content h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.8);
}

.event-content .event-subtitle {
    display: inline-block;
    color: #00d563; /* Green accent */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(0, 213, 99, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 213, 99, 0.3);
}

.event-content p {
    color: #cbd5e0;
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
}

.event-book-btn {
    display: inline-block;
    background: #00d563; 
    color: #fff;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 213, 99, 0.4);
    letter-spacing: 1px;
}

.event-book-btn:hover {
    background: #00b955;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 213, 99, 0.6);
    color: #fff;
}

.event-flyer-wrapper {
    flex: 0 1 450px; 
    display: flex;
    justify-content: center;
    position: relative;
}

/* Add a subtle glow behind the flyer */
.event-flyer-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 213, 99, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.event-flyer {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(0, 191, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.event-flyer:hover {
    transform: scale(1.03) rotate(-1deg);
}

@media (max-width: 960px) {
    .featured-event-section { padding: 60px 5%; }
    .event-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .event-content { display: flex; flex-direction: column; align-items: center; }
    .event-content h2 { font-size: 2.5rem; }
    .event-content p { font-size: 1.1rem; }
    .event-flyer-wrapper { width: 100%; flex: 1 1 auto; max-width: 500px; }
    .event-flyer { max-width: 100%; border-radius: 8px; }
}