/**
 * News Channel Directory & StreamOTT Platform - Frontend Stylesheet
 * Engineered & Developed by Shaurya R Joshi.
 *
 * Real OTT platform aesthetics: dark cinematic theme, glassmorphism,
 * responsive 16:9 card grids, category rail, hero billboard, and smooth micro-animations.
 *
 * @package NewsChannelDirectory
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================
   Design Tokens & CSS Custom Properties
   ============================================= */
:root {
    --ncd-primary: #e50914;
    --ncd-primary-hover: #ff1e27;
    --ncd-primary-glow: rgba(229, 9, 20, 0.35);
    --ncd-secondary: #0a0b10;
    --ncd-accent-cyan: #00e5ff;
    --ncd-accent-gold: #ffb800;
    --ncd-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ncd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ncd-radius-sm: 8px;
    --ncd-radius-md: 14px;
    --ncd-radius-lg: 20px;
    --ncd-radius-full: 9999px;
    --ncd-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"], body.ncd-ott-body, body.ncd-theme-dark {
    --ncd-bg: #07080c;
    --ncd-bg-surface: #0e1118;
    --ncd-bg-card: #131722;
    --ncd-bg-card-hover: #1c2233;
    --ncd-text: #f3f4f6;
    --ncd-text-muted: #9ca3af;
    --ncd-border: rgba(255, 255, 255, 0.08);
    --ncd-border-hover: rgba(255, 255, 255, 0.22);
    --ncd-glass: rgba(255, 255, 255, 0.04);
    --ncd-glass-hover: rgba(255, 255, 255, 0.08);
    --ncd-header-bg: rgba(7, 8, 12, 0.88);
    --ncd-shadow-card: 0 10px 24px -5px rgba(0, 0, 0, 0.6);
    --ncd-shadow-hover: 0 20px 38px -8px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 9, 20, 0.22);
}

[data-theme="light"], body.ncd-theme-light {
    --ncd-bg: #f8fafc;
    --ncd-bg-surface: #ffffff;
    --ncd-bg-card: #ffffff;
    --ncd-bg-card-hover: #f1f5f9;
    --ncd-text: #0f172a;
    --ncd-text-muted: #64748b;
    --ncd-border: rgba(0, 0, 0, 0.08);
    --ncd-border-hover: rgba(0, 0, 0, 0.18);
    --ncd-glass: rgba(0, 0, 0, 0.03);
    --ncd-glass-hover: rgba(0, 0, 0, 0.06);
    --ncd-header-bg: rgba(255, 255, 255, 0.92);
    --ncd-shadow-card: 0 8px 20px rgba(0, 0, 0, 0.06);
    --ncd-shadow-hover: 0 18px 30px rgba(0, 0, 0, 0.12);
}

/* Base resets for standalone OTT body */
body.ncd-ott-body {
    margin: 0;
    padding: 0;
    background: var(--ncd-bg);
    color: var(--ncd-text);
    font-family: var(--ncd-font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* =============================================
   Header & Navigation
   ============================================= */
.ncd-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ncd-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ncd-border);
    transition: var(--ncd-transition);
}

.ncd-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.ncd-brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ncd-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e50914 0%, #b80610 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--ncd-primary-glow);
}

.ncd-brand-titles {
    display: flex;
    flex-direction: column;
}

.ncd-brand-main {
    font-family: var(--ncd-font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ncd-text);
    line-height: 1.1;
}

.ncd-brand-accent {
    color: var(--ncd-primary);
}

.ncd-brand-author {
    font-size: 11px;
    font-weight: 600;
    color: var(--ncd-text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ncd-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ncd-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ncd-text-muted);
    text-decoration: none;
    border-radius: var(--ncd-radius-full);
    transition: var(--ncd-transition);
}

.ncd-nav-link:hover,
.ncd-nav-link.active {
    color: #fff;
    background: var(--ncd-glass-hover);
}

.ncd-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ncd-live-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--ncd-radius-full);
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.ncd-live-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e50914;
    box-shadow: 0 0 10px #e50914;
    animation: ncdPulseDot 1.4s infinite ease-in-out;
}

.ncd-live-ticker-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ff3b30;
    font-family: var(--ncd-font-display);
}

.ncd-header-search-toggle,
.ncd-dark-mode-toggle,
.ncd-mobile-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ncd-border);
    background: var(--ncd-glass);
    color: var(--ncd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ncd-transition);
}

.ncd-header-search-toggle:hover,
.ncd-dark-mode-toggle:hover,
.ncd-mobile-menu-toggle:hover {
    background: var(--ncd-glass-hover);
    border-color: var(--ncd-border-hover);
}

.ncd-mobile-menu-toggle {
    display: none;
}

/* =============================================
   Main Directory Container
   ============================================= */
.ncd-ott-directory {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px 80px;
    box-sizing: border-box;
    font-family: var(--ncd-font-body);
}

/* =============================================
   Hero Billboard Showcase (OTT Spotlight)
   ============================================= */
.ncd-hero-billboard {
    position: relative;
    border-radius: var(--ncd-radius-lg);
    margin: 28px 0 40px;
    padding: 56px 48px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 27, 40, 0.95) 0%, rgba(13, 16, 25, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.ncd-hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ncd-hero-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 160%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, transparent 65%);
    filter: blur(50px);
}

.ncd-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.ncd-hero-left {
    flex: 1;
    max-width: 680px;
}

.ncd-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ncd-live-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--ncd-radius-full);
    background: #e50914;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.5);
    font-family: var(--ncd-font-display);
}

.ncd-live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: ncdPulseWhite 1.2s infinite;
}

.ncd-hero-cat-badge {
    padding: 5px 12px;
    border-radius: var(--ncd-radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 600;
}

.ncd-hero-res-badge {
    padding: 5px 12px;
    border-radius: var(--ncd-radius-full);
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #00e5ff;
    font-size: 12px;
    font-weight: 700;
}

.ncd-hero-title {
    font-family: var(--ncd-font-display);
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ncd-hero-desc {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 28px;
}

.ncd-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.ncd-btn-hero-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #e50914;
    color: #fff;
    font-family: var(--ncd-font-display);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--ncd-radius-md);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
    transition: var(--ncd-transition);
}

.ncd-btn-hero-play:hover {
    background: #ff1e27;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
}

.ncd-btn-hero-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    font-family: var(--ncd-font-display);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ncd-radius-md);
    transition: var(--ncd-transition);
}

.ncd-btn-hero-browse:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ncd-hero-attribution {
    font-size: 13px;
    color: #64748b;
}

.ncd-hero-attribution strong {
    color: #cbd5e1;
}

/* Hero Right Preview Card */
.ncd-hero-right {
    flex-shrink: 0;
    width: 320px;
}

.ncd-hero-card-preview {
    display: block;
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ncd-radius-lg);
    padding: 24px;
    text-decoration: none;
    transition: var(--ncd-transition);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.ncd-hero-card-preview:hover {
    border-color: var(--ncd-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 48px rgba(229, 9, 20, 0.25);
}

.ncd-hero-logo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080a10;
    border-radius: var(--ncd-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.ncd-hero-logo-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.ncd-hero-play-pulse {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ncd-hero-card-preview:hover .ncd-hero-play-pulse {
    opacity: 1;
}

.ncd-hero-card-footer {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ncd-card-now-playing {
    font-size: 11px;
    font-weight: 800;
    color: #e50914;
    letter-spacing: 1px;
}

.ncd-card-featured-name {
    font-family: var(--ncd-font-display);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* =============================================
   Toolbar: Headline & Instant Search
   ============================================= */
.ncd-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ncd-section-headline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ncd-browse-title {
    font-family: var(--ncd-font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--ncd-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.ncd-title-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e50914;
    box-shadow: 0 0 12px #e50914;
}

.ncd-total-channels-pill {
    padding: 5px 12px;
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--ncd-text-muted);
}

.ncd-ott-search-wrap {
    flex: 1;
    max-width: 440px;
}

.ncd-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.ncd-search-icon {
    position: absolute;
    left: 18px;
    color: var(--ncd-text-muted);
    pointer-events: none;
    z-index: 1;
}

.ncd-search-input {
    width: 100%;
    padding: 13px 44px 13px 48px;
    font-size: 14px;
    font-family: var(--ncd-font-body);
    border: 1px solid var(--ncd-border);
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    color: var(--ncd-text);
    outline: none;
    transition: var(--ncd-transition);
    backdrop-filter: blur(12px);
}

.ncd-search-input:focus {
    border-color: var(--ncd-primary);
    box-shadow: 0 0 0 3px var(--ncd-primary-glow);
    background: var(--ncd-bg-surface);
}

.ncd-search-clear {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--ncd-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   Category Horizontal Rail (Netflix/Prime Style)
   ============================================= */
.ncd-category-rail-wrap {
    position: relative;
    margin-bottom: 24px;
}

.ncd-category-rail {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ncd-category-rail::-webkit-scrollbar {
    height: 6px;
}

.ncd-category-rail::-webkit-scrollbar-track {
    background: transparent;
}

.ncd-category-rail::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--ncd-radius-full);
}

.ncd-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    color: var(--ncd-text);
    font-family: var(--ncd-font-display);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--ncd-transition);
}

.ncd-category-pill:hover {
    background: var(--ncd-glass-hover);
    border-color: var(--ncd-border-hover);
    transform: translateY(-1px);
}

.ncd-category-pill.active {
    background: var(--ncd-primary);
    border-color: var(--ncd-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--ncd-primary-glow);
}

.ncd-pill-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--ncd-radius-full);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
}

/* =============================================
   Filter Status & Resolution Bar
   ============================================= */
.ncd-filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    border-radius: var(--ncd-radius-md);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ncd-results-indicator {
    font-size: 14px;
    font-weight: 600;
    color: var(--ncd-text-muted);
}

.ncd-quality-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ncd-quality-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ncd-text-muted);
    text-transform: uppercase;
}

.ncd-quality-chip {
    padding: 4px 12px;
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    color: var(--ncd-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ncd-transition);
}

.ncd-quality-chip:hover {
    background: var(--ncd-glass-hover);
}

.ncd-quality-chip.active {
    background: #00e5ff;
    color: #07080c;
    border-color: #00e5ff;
    font-weight: 700;
}

.ncd-language-filter { display: inline-flex; align-items: center; gap: 8px; color: var(--ncd-text-muted); font-size: 12px; font-weight: 700; }
.ncd-language-filter select { min-height: 36px; max-width: 150px; padding: 6px 28px 6px 10px; border: 1px solid var(--ncd-border); border-radius: 999px; background: var(--ncd-glass); color: var(--ncd-text); font: inherit; }
.ncd-channel-number { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 800; }

/* =============================================
   OTT Channel Grid (Responsive Cinema Layout)
   ============================================= */
.ncd-ott-grid {
    display: grid;
    grid-template-columns: repeat(var(--ncd-columns, 4), 1fr);
    gap: 22px;
}

@media (max-width: 1280px) {
    .ncd-ott-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .ncd-ott-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .ncd-ott-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   OTT Channel Card (Netflix/Hotstar Style)
   ============================================= */
.ncd-channel-card {
    position: relative;
    border-radius: var(--ncd-radius-md);
    background: var(--ncd-bg-card);
    border: 1px solid var(--ncd-border);
    box-shadow: var(--ncd-shadow-card);
    overflow: hidden;
    transition: var(--ncd-transition);
    will-change: transform, box-shadow;
}

.ncd-channel-card:hover {
    transform: translateY(-6px) scale(1.025);
    background: var(--ncd-bg-card-hover);
    border-color: var(--ncd-border-hover);
    box-shadow: var(--ncd-shadow-hover);
    z-index: 10;
}

.ncd-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 16:9 Image/Logo Backdrop */
.ncd-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at center, #1a2030 0%, #0d1018 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ncd-card-logo-wrap {
    width: 100%;
    height: 100%;
    padding: 22px 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ncd-channel-card:hover .ncd-card-logo-wrap {
    transform: scale(1.08);
}

.ncd-card-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Floating Overlay Badges */
.ncd-live-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--ncd-radius-full);
    background: rgba(229, 9, 20, 0.9);
    color: #ffffff;
    font-family: var(--ncd-font-display);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    z-index: 2;
}

.ncd-live-pulse {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: ncdPulseWhite 1.2s infinite;
}

.ncd-res-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: var(--ncd-font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: rgba(0, 0, 0, 0.7);
    color: #94a3b8;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.ncd-res-1080p {
    color: #00e5ff;
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.12);
}

.ncd-res-720p {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.12);
}

.ncd-res-2160p, .ncd-res-4k-hdr {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.15);
}

/* Card Hover Play Icon Overlay */
.ncd-card-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 12, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}

.ncd-channel-card:hover .ncd-card-hover-play {
    opacity: 1;
}

.ncd-card-hover-play svg {
    filter: drop-shadow(0 0 14px rgba(229, 9, 20, 0.8));
    transform: scale(0.9);
    transition: transform 0.22s ease;
}

.ncd-channel-card:hover .ncd-card-hover-play svg {
    transform: scale(1.1);
}

/* Card Info Box */
.ncd-card-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ncd-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ncd-card-category {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ncd-card-title {
    font-family: var(--ncd-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ncd-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

/* =============================================
   Curator / Shaurya R Joshi Branding Strip
   ============================================= */
.ncd-ott-curation-strip {
    margin-top: 48px;
    padding: 18px 24px;
    border-radius: var(--ncd-radius-md);
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.12) 0%, rgba(20, 24, 33, 0.6) 100%);
    border: 1px solid rgba(229, 9, 20, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ncd-curation-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ncd-text-muted);
}

.ncd-curation-inner strong {
    color: #ffffff;
    font-weight: 700;
}

.ncd-curation-icon {
    font-size: 18px;
}

/* Empty State */
.ncd-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--ncd-text-muted);
}

.ncd-no-results h3 {
    font-family: var(--ncd-font-display);
    font-size: 20px;
    color: var(--ncd-text);
    margin: 12px 0 6px;
}

/* =============================================
   Footer Styles
   ============================================= */
.ncd-footer {
    border-top: 1px solid var(--ncd-border);
    background: var(--ncd-bg-surface);
    padding: 56px 28px 36px;
    margin-top: 60px;
    font-family: var(--ncd-font-body);
}

.ncd-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.ncd-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .ncd-footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.ncd-footer-tagline {
    font-size: 14px;
    color: var(--ncd-text-muted);
    line-height: 1.6;
    margin: 14px 0 20px;
    max-width: 420px;
}

.ncd-developer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    font-size: 13px;
    color: var(--ncd-text-muted);
}

.ncd-dev-name {
    color: #e50914;
    font-weight: 700;
}

.ncd-footer-heading {
    font-family: var(--ncd-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ncd-text);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ncd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ncd-footer-links a {
    color: var(--ncd-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.ncd-footer-badges-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ncd-pill-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--ncd-radius-full);
    background: var(--ncd-glass);
    border: 1px solid var(--ncd-border);
    font-size: 12px;
    color: var(--ncd-text-muted);
}

.ncd-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--ncd-border);
    font-size: 13px;
    color: var(--ncd-text-muted);
    flex-wrap: wrap;
    gap: 14px;
}

.ncd-heart {
    color: #e50914;
}

/* Animations */
@keyframes ncdPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes ncdPulseWhite {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

/* Mobile responsive styles */
@media (max-width: 900px) {
    .ncd-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .ncd-hero-right {
        width: 100%;
    }
    .ncd-hero-title {
        font-size: 32px;
    }
    .ncd-header-nav {
        display: none;
    }
    .ncd-mobile-menu-toggle {
        display: flex;
    }
}

/* Phone-first refinements: keep the directory easy to browse with one hand. */
@media (max-width: 640px) {
    .ncd-header-inner {
        height: 60px;
        padding: 0 14px;
    }

    .ncd-brand-icon { width: 34px; height: 34px; }
    .ncd-brand-main { font-size: 17px; }
    .ncd-brand-author, .ncd-live-ticker { display: none; }
    .ncd-header-right { gap: 8px; }
    .ncd-header-search-toggle, .ncd-dark-mode-toggle, .ncd-mobile-menu-toggle { width: 44px; height: 44px; }

    .ncd-ott-directory { padding: 0 14px 32px; }
    .ncd-hero-billboard { margin: 14px 0 28px; padding: 28px 20px; border-radius: 16px; }
    .ncd-hero-content { gap: 24px; }
    .ncd-hero-title { font-size: clamp(28px, 9vw, 38px); margin-bottom: 10px; }
    .ncd-hero-desc { font-size: 14px; line-height: 1.5; }
    .ncd-hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
    .ncd-btn-hero-play, .ncd-btn-hero-browse { min-height: 48px; justify-content: center; }
    .ncd-hero-right { display: none; }
    .ncd-hero-attribution { margin-top: 18px; }

    .ncd-toolbar-top { align-items: stretch; gap: 14px; }
    .ncd-section-headline { align-items: flex-start; gap: 8px; }
    .ncd-browse-title { font-size: 19px; }
    .ncd-ott-search-wrap { width: 100%; }
    .ncd-search-box { min-height: 48px; }
    .ncd-search-input { min-height: 48px; font-size: 16px; }

    .ncd-category-rail-wrap { margin-left: -14px; margin-right: -14px; }
    .ncd-category-rail { padding: 4px 14px 14px; gap: 8px; scroll-snap-type: x proximity; }
    .ncd-category-pill { min-height: 42px; padding: 8px 14px; font-size: 13px; scroll-snap-align: start; }
    .ncd-filter-status-bar { align-items: stretch; padding: 12px; margin-bottom: 18px; }
    .ncd-quality-filter { overflow-x: auto; padding-bottom: 2px; }
    .ncd-language-filter { justify-content: space-between; width: 100%; }
    .ncd-language-filter select { flex: 1; max-width: none; }
    .ncd-quality-chip { min-height: 36px; white-space: nowrap; }

    .ncd-ott-grid { gap: 10px; }
    .ncd-channel-card { border-radius: 10px; }
    .ncd-card-image { padding: 10px; }
    .ncd-card-info { padding: 10px; }
    .ncd-card-title { font-size: 13px; }
    .ncd-card-category { font-size: 10px; }
    .ncd-live-badge-overlay, .ncd-res-badge { font-size: 9px; }

    .ncd-footer { padding: 36px 18px 24px; margin-top: 38px; }
    .ncd-footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
    .ncd-brand-main { font-size: 15px; }
    .ncd-header-right .ncd-dark-mode-toggle { display: none; }
    .ncd-ott-directory { padding-left: 10px; padding-right: 10px; }
    .ncd-category-rail-wrap { margin-left: -10px; margin-right: -10px; }
    .ncd-category-rail { padding-left: 10px; padding-right: 10px; }
    .ncd-ott-grid { gap: 8px; }
    .ncd-card-info { padding: 8px; }
}
