/* Nodulus Daily Premium Design System */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Outfit:wght@300;400;600&family=JetBrains+Mono:wght@400&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #020617;
    --bg-card: rgba(13, 22, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --accent-primary: #00f2fe;
    /* Cyan */
    --accent-secondary: #4facfe;
    /* Blue */
    --accent-glow: rgba(0, 242, 254, 0.5);

    --gradient-main: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Layout */
    --container-width: 1200px;
    --border-radius: 24px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Video/Effect */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(8px) contrast(1.1);
    transform: scale(1.05);
    /* Prevent blur edge artifacts */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.7) 0%, #020617 90%);
    z-index: -1;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(2, 6, 23, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 32px;
    font-weight: 600;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* Main Content */
main {
    padding-top: 120px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero h1 .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* Features Section */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: transform 0.1s ease;
    /* fast for tilt */
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 100%);
    pointer-events: none;
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.feature-card p {
    color: var(--text-muted);
}

/* Terminal Section */
.terminal-section {
    margin: 100px 0;
}

.terminal-window {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: var(--font-code);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #30363d;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-content {
    padding: 24px;
    color: #00f2fe;
    min-height: 200px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 100px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.social-links {
    display: flex;
    gap: 24px;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        gap: 40px;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 30px;
    }
}

/* Enhanced Movie Card Metadata */
.movie-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-imdb {
    color: #f5c518;
    /* IMDb Yellow */
}

.badge-rt {
    color: #fa320a;
    /* RT Red */
}

.card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.card-genres span {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    /* faint white */
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* -------------------------------------
   OTT TRACKER GRID (Redesigned)
   ------------------------------------- */
.ott-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ott-tabs {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ott-tab-btn {
    background: transparent;
    border: none;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ott-tab-btn.active {
    background: var(--accent-primary);
    color: black;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.tracker-grid {
    display: grid;
    /* Bigger Cards: min-width 280px (was smaller) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    /* More breathing room */
    margin-bottom: 50px;
}

.tracker-card {
    background: #1a1c22;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tracker-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.tracker-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    position: relative;
    overflow: hidden;
}

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

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

/* Badges on Poster */
.tracker-provider-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #facc15;
    /* Yellow/Gold from otttrackers */
    color: #000;
    font-weight: 900;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Info Area */
.tracker-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tracker-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.tracker-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tracker-rating {
    color: #facc15;
    /* Yellow star */
    font-weight: 600;
}

.tracker-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tracker-date {
    color: #facc15;
    /* Make date prominent yellow like otttrackers */
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive adjustments */
.tracker-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tracker-title {
    font-size: 0.9rem;
}
}

/* -------------------------------------
   MOVIE DETAILS MODAL (Premium Style)
   ------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* ... (Keep other modal styles standard) ... */

.watch-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--accent-primary);
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.watch-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(0, 242, 254, 0.5);
    background: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 30px;
        margin-top: -50px;
    }

    .modal-backdrop {
        height: 200px;
    }

    .modal-poster {
        width: 140px;
        margin-bottom: 20px;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }

    .modal-meta {
        justify-content: center;
    }
}