/**
 * TechnoSports OTT & Entertainment Hub Styling
 * Version: 1.0.0
 */

/* ==========================================================================
   Base Layout & Variables
   ========================================================================== */
:root {
    --ts-ott-bg: #0b0f19;
    --ts-ott-card-bg: #111827;
    --ts-ott-card-border: rgba(255, 255, 255, 0.08);
    --ts-ott-text-main: #f8fafc;
    --ts-ott-text-muted: #94a3b8;
    --ts-ott-accent: #e50914;
    --ts-ott-gold: #eab308;
}

.light-mode {
    --ts-ott-bg: #f8fafc;
    --ts-ott-card-bg: #ffffff;
    --ts-ott-card-border: #e2e8f0;
    --ts-ott-text-main: #0f172a;
    --ts-ott-text-muted: #64748b;
}

.ts-ott-hub-main {
    background-color: var(--ts-ott-bg);
    color: var(--ts-ott-text-main);
    min-height: 100vh;
    padding-bottom: 60px;
    font-family: inherit;
}

.ts-ott-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Hero Spotlight Section
   ========================================================================== */
.ts-ott-hero-section {
    position: relative;
    background-size: cover;
    background-position: center top;
    padding: 80px 0 60px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--ts-ott-card-border);
}

.ts-ott-hero-content {
    max-width: 720px;
}

.ts-ott-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ts-ott-hero-badge-platform {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ts-ott-hero-badge-tag {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
}

.ts-ott-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ts-ott-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ts-ott-hero-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f1f5f9;
}

.ts-ott-hero-rating strong {
    font-size: 16px;
    color: #facc15;
}

.ts-ott-hero-dot {
    color: #64748b;
}

.ts-ott-hero-maturity {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.ts-ott-hero-synopsis {
    font-size: 15px;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.ts-ott-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ts-ott-hero-btn-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ts-ott-hero-btn-trailer:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.ts-ott-hero-btn-stream {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.ts-ott-hero-btn-stream:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================================================
   Sub Navigation Bar
   ========================================================================== */
.ts-ott-subnav-bar {
    background: var(--ts-ott-card-bg);
    border-top: 1px solid var(--ts-ott-card-border);
    border-bottom: 1px solid var(--ts-ott-card-border);
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ts-ott-subnav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-ott-subnav-links::-webkit-scrollbar {
    display: none;
}

.ts-ott-subnav-links li a {
    display: block;
    padding: 14px 18px;
    color: var(--ts-ott-text-muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.ts-ott-subnav-links li.active a,
.ts-ott-subnav-links li a:hover {
    color: var(--ts-ott-text-main);
    border-bottom-color: var(--ts-ott-accent);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.ts-ott-page-header {
    padding: 35px 0 20px;
    border-bottom: 1px solid var(--ts-ott-card-border);
}

.ts-ott-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ts-ott-text-muted);
    margin-bottom: 12px;
}

.ts-ott-breadcrumbs a {
    color: var(--ts-ott-text-muted);
    text-decoration: none;
}

.ts-ott-breadcrumbs a:hover {
    color: var(--ts-ott-text-main);
}

.ts-ott-current {
    color: var(--ts-ott-text-main);
    font-weight: 600;
}

.ts-ott-page-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}

.ts-ott-page-description {
    font-size: 15px;
    color: var(--ts-ott-text-muted);
    max-width: 850px;
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Filter Panel (91mobiles style)
   ========================================================================== */
.ts-ott-filter-panel {
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ts-ott-filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ts-ott-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-ott-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 90px;
}

.ts-ott-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ts-ott-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ts-ott-pill:hover {
    color: var(--ts-ott-text-main);
    border-color: rgba(255, 255, 255, 0.3);
}

.light-mode .ts-ott-pill:hover {
    border-color: #94a3b8;
}

.ts-ott-pill.active {
    background: var(--pill-color, var(--ts-ott-accent));
    border-color: var(--pill-color, var(--ts-ott-accent));
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ts-ott-filter-secondary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ts-ott-card-border);
    flex-wrap: wrap;
}

.ts-ott-filter-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ts-ott-filter-select-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ts-ott-text-muted);
}

.ts-ott-select {
    background: var(--ts-ott-bg);
    color: var(--ts-ott-text-main);
    border: 1px solid var(--ts-ott-card-border);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.ts-ott-select:focus {
    border-color: var(--ts-ott-accent);
}

.ts-ott-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-muted);
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s ease;
}

.ts-ott-filter-reset-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================================================
   Results Meta & Spinner
   ========================================================================== */
.ts-ott-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-results-count strong {
    color: var(--ts-ott-text-main);
    font-weight: 700;
}

.ts-ott-loader-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ts-ott-accent);
    font-weight: 600;
}

.ts-ott-spin {
    animation: ts-spin 1s linear infinite;
}

@keyframes ts-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Cards Grid & Rails
   ========================================================================== */
.ts-ott-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 22px;
}

.ts-ott-cards-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.ts-ott-cards-rail .ts-ott-card {
    flex: 0 0 210px;
    scroll-snap-align: start;
}

/* ==========================================================================
   Single OTT Card
   ========================================================================== */
.ts-ott-card {
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.ts-ott-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
    border-color: rgba(255, 255, 255, 0.3);
}

.light-mode .ts-ott-card:hover {
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    border-color: #94a3b8;
}

.ts-ott-card:active {
    transform: translateY(-2px) scale(0.99);
}

.ts-ott-card-poster-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1e293b;
}

.ts-ott-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ts-ott-card:hover .ts-ott-card-poster {
    transform: scale(1.05);
}

/* Badges on Poster */
.ts-ott-platform-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid transparent;
}

.ts-ott-rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 4px;
}

.ts-ott-rank-badge.top-1 {
    background: #eab308;
    color: #0f172a;
    border-color: #facc15;
}

.ts-ott-rank-badge.top-2 {
    background: #94a3b8;
    color: #0f172a;
    border-color: #cbd5e1;
}

.ts-ott-rank-badge.top-3 {
    background: #b45309;
    color: #ffffff;
    border-color: #d97706;
}

/* Card overlay buttons hidden for clean one-tap movie detail navigation */
.ts-ott-card-overlay,
.ts-ott-card .ts-ott-btn-trailer,
.ts-ott-card .ts-ott-btn-details,
.ts-ott-card .ts-ott-btn-stream {
    display: none !important;
}

/* Info Box */
.ts-ott-card-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ts-ott-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.ts-ott-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    color: var(--ts-ott-text-main);
}

/* The IMDb badge already says what the number is; the star beside it is redundant on cards. */
.ts-ott-rating .ts-ott-imdb-card-badge + svg {
    display: none;
}

.ts-ott-rating strong {
    font-size: 13px;
    color: var(--ts-ott-gold);
}

.ts-ott-rating small {
    color: var(--ts-ott-text-muted);
}

.ts-ott-maturity {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--ts-ott-text-muted);
    border: 1px solid var(--ts-ott-card-border);
    padding: 1px 5px;
    border-radius: 3px;
}

.ts-ott-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: var(--ts-ott-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-ott-card-genres {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ts-ott-genre-tag {
    font-size: 11px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-lang-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--ts-ott-text-muted);
    background: var(--ts-ott-bg);
    border: 1px solid var(--ts-ott-card-border);
    padding: 1px 5px;
    border-radius: 3px;
}

.ts-ott-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ts-ott-text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--ts-ott-card-border);
}

/* ==========================================================================
   Section Headers in Hub
   ========================================================================== */
.ts-ott-sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.ts-ott-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.ts-ott-section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.25;
}

.ts-ott-section-subtitle {
    font-size: 14px;
    color: var(--ts-ott-text-muted);
    margin: 0;
}

.ts-ott-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-ott-accent);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.ts-ott-view-all-link:hover {
    gap: 10px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.ts-ott-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--ts-ott-card-bg);
    border: 1px dashed var(--ts-ott-card-border);
    border-radius: 12px;
}

.ts-ott-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ts-ott-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ts-ott-empty-state p {
    color: var(--ts-ott-text-muted);
    margin: 0;
}

/* ==========================================================================
   Trailer Modal
   ========================================================================== */
.ts-ott-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ts-ott-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.ts-ott-modal-dialog {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    width: 100%;
    max-width: 860px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.ts-ott-modal-backdrop.is-active .ts-ott-modal-dialog {
    transform: scale(1);
}

.ts-ott-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-ott-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.ts-ott-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    transition: color 0.2s ease;
}

.ts-ott-modal-close:hover {
    color: #ffffff;
}

.ts-ott-modal-body {
    padding: 0;
}

.ts-ott-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

.ts-ott-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .ts-ott-hero-section {
        padding: 50px 0 40px;
    }

    .ts-ott-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ts-ott-filter-panel {
        padding: 15px;
        gap: 12px;
    }

    .ts-ott-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ts-ott-filter-label {
        min-width: unset;
    }

    .ts-ott-filter-pills {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .ts-ott-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .ts-ott-pill {
        white-space: nowrap;
    }

    .ts-ott-filter-secondary {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ts-ott-filter-select-group {
        justify-content: space-between;
    }

    .ts-ott-filter-reset-btn {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ts-ott-card-info {
        padding: 10px;
    }

    .ts-ott-card-title {
        font-size: 13px;
    }
}

/* ==========================================================================
   Cinematic Auto-Rotating Hero Section
   ========================================================================== */
.ts-ott-hero-cinematic {
    position: relative;
    min-height: 580px;
    padding: 60px 0 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0b0f19;
}

.ts-ott-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ts-ott-hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center 25%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.ts-ott-hero-slide.is-active {
    opacity: 1;
    transform: scale(1.03);
}

.ts-ott-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.82) 45%, rgba(11, 15, 25, 0.4) 100%),
                linear-gradient(180deg, rgba(11, 15, 25, 0.2) 0%, rgba(11, 15, 25, 0.98) 100%);
    pointer-events: none;
}

.ts-ott-hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.ts-ott-hero-content {
    max-width: 680px;
}

.ts-ott-hero-badge-type {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.ts-ott-hero-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ts-ott-hero-genre-chip {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
}

.ts-ott-hero-rating-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

/* Hero Thumbnails Navigation Rail */
.ts-ott-hero-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    max-width: 320px;
    width: 100%;
}

.ts-ott-hero-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.ts-ott-hero-thumb:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-4px);
}

.ts-ott-hero-thumb.is-active {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--thumb-accent, #e50914);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ts-ott-hero-thumb img {
    width: 44px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.ts-ott-hero-thumb-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.ts-ott-hero-thumb-platform {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ts-ott-hero-thumb-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-ott-hero-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--thumb-accent, #e50914);
    width: 0%;
    transition: width 0.1s linear;
}

.ts-ott-hero-thumb.is-active .ts-ott-hero-thumb-progress {
    width: 100%;
    transition: width 6s linear;
}

.ts-ott-scroll-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255, 255, 255, 0.5);
    animation: ts-bounce 2s infinite;
}

@keyframes ts-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

/* ==========================================================================
   Platform Quick-Filter Strip
   ========================================================================== */
.ts-ott-platform-strip {
    background: var(--ts-ott-card-bg);
    border-bottom: 1px solid var(--ts-ott-card-border);
    padding: 14px 0;
    margin-bottom: 30px;
}

.ts-ott-platform-strip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ts-ott-platform-strip-inner::-webkit-scrollbar {
    display: none;
}

.ts-ott-platform-strip-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ts-ott-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin-right: 4px;
}

.ts-ott-platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--chip-color, var(--ts-ott-text-main));
    background: var(--chip-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--chip-border, var(--ts-ott-card-border));
    padding: 8px 16px;
    border-radius: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ts-ott-platform-chip:hover {
    background: var(--chip-color);
    border-color: var(--chip-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Live Pulsating Indicator
   ========================================================================== */
.ts-ott-live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: ts-pulse 1.6s infinite;
}

@keyframes ts-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ==========================================================================
   Trending Leaderboard View
   ========================================================================== */
.ts-ott-trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-ott-trending-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.2s ease;
}

.ts-ott-trending-row:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.light-mode .ts-ott-trending-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.ts-ott-trending-rank {
    font-size: 24px;
    font-weight: 900;
    color: var(--ts-ott-text-muted);
    min-width: 32px;
    text-align: center;
}

.ts-ott-trending-rank.rank-gold {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.ts-ott-trending-rank.rank-silver {
    color: #cbd5e1;
}

.ts-ott-trending-thumb img {
    width: 48px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.ts-ott-trending-info {
    flex: 1;
    min-width: 0;
}

.ts-ott-trending-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ts-ott-text-main);
}

.ts-ott-trending-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ts-ott-text-muted);
    flex-wrap: wrap;
}

.ts-ott-trending-synopsis {
    font-size: 13px;
    color: var(--ts-ott-text-muted);
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ts-ott-trending-actions,
.ts-ott-trending-stream-btn,
.ts-ott-btn-trailer-sm {
    display: none !important;
}

.ts-ott-trending-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ts-ott-trending-row:hover .ts-ott-trending-nav-arrow {
    transform: translateX(4px);
    color: var(--ts-ott-accent);
}

/* ==========================================================================
   Platform Hero Banner (Sub-page)
   ========================================================================== */
.ts-ott-platform-hero-banner {
    background: linear-gradient(135deg, var(--plat-bg, #1e293b) 0%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid var(--plat-bdr, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    color: #ffffff;
}

.ts-ott-platform-hero-banner .ts-ott-page-title {
    color: #ffffff;
}

.ts-ott-platform-hero-banner .ts-ott-page-description {
    color: #cbd5e1;
}

.light-mode .ts-ott-platform-hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid var(--plat-bdr, #e2e8f0);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.light-mode .ts-ott-platform-hero-banner .ts-ott-page-title {
    color: #0f172a;
}

.light-mode .ts-ott-platform-hero-banner .ts-ott-page-description {
    color: #475569;
}

.light-mode .ts-ott-platform-hero-banner .ts-ott-breadcrumbs a {
    color: #64748b;
}

.light-mode .ts-ott-platform-hero-banner .ts-ott-breadcrumbs .ts-ott-current {
    color: #0f172a;
}

.light-mode .ts-ott-platform-switcher {
    border-top: 1px solid #e2e8f0;
}

.light-mode .ts-ott-platform-switch-item {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ts-ott-platform-hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.ts-ott-platform-badge-hero {
    display: inline-block;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.ts-ott-platform-switcher {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none;
}

.ts-ott-platform-switcher::-webkit-scrollbar {
    display: none;
}

.ts-ott-platform-switch-item {
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-ott-text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.ts-ott-platform-switch-item:hover,
.ts-ott-platform-switch-item.is-active {
    color: var(--sw-text, #ffffff);
    background: var(--sw-color, var(--ts-ott-accent));
}

.ts-ott-platform-hero-emblem-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ts-ott-platform-hero-emblem-box .ts-ott-plat-svg {
    border-radius: 12px;
}

/* ==========================================================================
   Apple TV+ Polished Visual Aesthetics
   ========================================================================== */
.ts-ott-platform-hero-appletv {
    background: radial-gradient(ellipse at 80% 20%, rgba(0, 113, 227, 0.25) 0%, rgba(15, 23, 42, 0.98) 75%), linear-gradient(135deg, #1e293b 0%, #080c14 100%) !important;
    border: 1px solid rgba(0, 113, 227, 0.45) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 113, 227, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.light-mode .ts-ott-platform-hero-appletv {
    background: radial-gradient(ellipse at 85% 15%, rgba(0, 113, 227, 0.15) 0%, #ffffff 65%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(0, 113, 227, 0.35) !important;
    box-shadow: 0 16px 40px -10px rgba(0, 113, 227, 0.18), inset 0 1px 0 #ffffff !important;
}

.ts-ott-platform-hero-appletv .ts-ott-platform-hero-emblem-box {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 113, 227, 0.35);
    padding: 6px;
    border-radius: 14px;
}

.light-mode .ts-ott-platform-hero-appletv .ts-ott-platform-hero-emblem-box {
    background: #000000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 113, 227, 0.25);
}

.ts-ott-platform-hero-appletv .ts-ott-platform-badge-hero {
    background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.45);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ts-ott-platform-hero-appletv .ts-ott-hero-btn-stream {
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-ott-platform-hero-appletv .ts-ott-hero-btn-stream:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 113, 227, 0.65);
}

/* Platform Section Header */
.ts-ott-platform-section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ts-ott-platform-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-ott-platform-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ==========================================================================
   AI Status Bar
   ========================================================================== */
.ts-ott-ai-status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 10px;
    margin-top: 30px;
    font-size: 13px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #6366f1;
}

/* ==========================================================================
   Responsive Overrides for Cinematic Hero
   ========================================================================== */
@media (max-width: 960px) {
    .ts-ott-hero-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-ott-hero-thumbnails {
        max-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .ts-ott-hero-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .ts-ott-hero-thumb {
        flex: 0 0 200px;
    }
}

/* ==========================================================================
   Movie & Web Series Detail Page (.ts-ott-title-detail-page)
   ========================================================================== */
.ts-ott-title-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    padding: 30px 0 60px;
    border-bottom: 1px solid var(--ts-ott-card-border);
    background: var(--ts-ott-bg);
}

.ts-ott-title-hero-backdrop {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center 25%;
    filter: blur(4px);
    opacity: 0.55;
    transform: scale(1.04);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.light-mode .ts-ott-title-hero-backdrop {
    opacity: 0.40;
    filter: blur(4px) contrast(1.08);
}

.ts-ott-title-hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.72) 45%, rgba(11, 15, 25, 0.35) 100%),
        linear-gradient(to bottom, rgba(11, 15, 25, 0.2) 0%, rgba(11, 15, 25, 0.65) 60%, var(--ts-ott-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.light-mode .ts-ott-title-hero-gradient {
    background: 
        linear-gradient(to right, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.80) 45%, rgba(248, 250, 252, 0.45) 100%),
        linear-gradient(to bottom, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.75) 65%, var(--ts-ott-bg) 100%);
}

.ts-ott-title-hero-container {
    position: relative;
    z-index: 2;
}

.ts-ott-title-hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Left Column: Poster */
.ts-ott-title-poster-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-ott-title-poster-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.light-mode .ts-ott-title-poster-card {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.ts-ott-detail-poster-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.ts-ott-poster-stream-box {
    padding: 14px;
    background: var(--ts-ott-card-bg);
    border-top: 1px solid var(--ts-ott-card-border);
}

.ts-ott-btn-stream-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.ts-ott-btn-stream-hero:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #ffffff !important;
}

/* Right Column: Title & Metadata */
.ts-ott-title-info-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ts-ott-meta-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ts-ott-pill-type,
.ts-ott-pill-maturity,
.ts-ott-pill-runtime,
.ts-ott-pill-lang,
.ts-ott-pill-year {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.light-mode .ts-ott-pill-type,
.light-mode .ts-ott-pill-maturity,
.light-mode .ts-ott-pill-runtime,
.light-mode .ts-ott-pill-lang,
.light-mode .ts-ott-pill-year {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.ts-ott-title-main {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 4px 0;
    color: var(--ts-ott-text-main);
    letter-spacing: -0.02em;
}

.ts-ott-rating-ribbon {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ts-ott-imdb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5c518;
    color: #000000;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin-right: 2px;
}

.ts-ott-imdb-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5c518;
    color: #000000;
    font-weight: 900;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: -0.3px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 3px;
}

.ts-ott-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
}

.ts-ott-rating-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--ts-ott-gold);
    line-height: 1;
}

.ts-ott-rating-max {
    font-size: 13px;
    color: var(--ts-ott-text-muted);
}

.ts-ott-rating-count-pill {
    font-size: 12px;
    color: var(--ts-ott-text-muted);
    margin-left: 2px;
}

.ts-ott-verified-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.ts-ott-genre-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ts-ott-genre-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-muted);
}

.light-mode .ts-ott-genre-pill {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.ts-ott-synopsis-box {
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    padding: 20px 24px;
}

.ts-ott-synopsis-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ts-ott-text-main);
}

.ts-ott-synopsis-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ts-ott-text-muted);
    margin: 0;
}

.ts-ott-key-credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 10px;
}

.light-mode .ts-ott-key-credits-grid {
    background: #f8fafc;
}

.ts-ott-credit-label {
    display: block;
    font-size: 11.5px;
    color: var(--ts-ott-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.ts-ott-credit-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ts-ott-text-main);
}

.ts-ott-credit-item-with-thumb,
.ts-ott-credit-with-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-ott-credit-thumb-link {
    display: inline-block;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.light-mode .ts-ott-credit-thumb-link {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ts-ott-credit-thumb-link:hover {
    transform: scale(1.08);
    border-color: #e50914;
}

.ts-ott-credit-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-ott-credit-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ts-ott-credit-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ts-ott-credit-value a:hover {
    color: #e50914;
}

.ts-ott-cast-card-filmmaker {
    border-color: rgba(229, 9, 20, 0.3) !important;
}

.ts-ott-filmmaker-role {
    color: #e50914 !important;
    font-weight: 700 !important;
}

.ts-ott-hero-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ts-ott-btn-action-trailer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    background: #e50914;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ts-ott-btn-action-trailer:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #ffffff !important;
}

.ts-ott-btn-action-cast {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-main) !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.light-mode .ts-ott-btn-action-cast {
    background: #ffffff;
    border-color: #cbd5e1;
}

.ts-ott-btn-action-cast:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ts-ott-btn-action-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--ts-ott-card-border);
    color: var(--ts-ott-text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ts-ott-btn-action-share:hover {
    color: var(--ts-ott-text-main);
    border-color: var(--ts-ott-text-main);
}

/* Detail Sections Wrapper */
.ts-ott-detail-sections-wrap {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.ts-ott-section-block {
    position: relative;
}

.ts-ott-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 15px;
    flex-wrap: wrap;
}

.ts-ott-section-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ts-ott-section-heading {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.25;
    color: var(--ts-ott-text-main);
}

.ts-ott-section-subheading {
    font-size: 14px;
    color: var(--ts-ott-text-muted);
    margin: 0;
    max-width: 720px;
}

/* ==========================================================================
   Section 1: Theater Video Player Frame (Movie Detail Page Only)
   ========================================================================== */
.ts-ott-theater-player-frame {
    background: #000000;
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.ts-ott-video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #05070c;
}

.ts-ott-video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ts-ott-video-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0b0f19;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.ts-ott-hd-badge {
    font-size: 10px;
    font-weight: 800;
    background: #e50914;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.ts-ott-yt-external-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-ott-yt-external-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   Section 2: Actor Info with Images & Cast Grid (Movie Detail Page Only)
   ========================================================================== */
.ts-ott-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.ts-ott-cast-card {
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ts-ott-cast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
}

.light-mode .ts-ott-cast-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.ts-ott-cast-photo-link {
    display: block;
    text-decoration: none;
    margin-bottom: 12px;
}

.ts-ott-cast-photo-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid var(--ts-ott-card-border);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #1e293b;
}

.ts-ott-cast-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ts-ott-cast-card:hover .ts-ott-cast-photo {
    transform: scale(1.08);
}

.ts-ott-cast-info {
    width: 100%;
}

.ts-ott-cast-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ts-ott-cast-name a {
    color: var(--ts-ott-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-ott-cast-name a:hover {
    color: var(--ts-ott-accent);
}

.ts-ott-cast-role {
    font-size: 12.5px;
    color: var(--ts-ott-text-muted);
    margin: 0 0 10px;
    line-height: 1.3;
}

.ts-ott-cast-artist-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ts-ott-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: gap 0.2s ease;
}

.ts-ott-cast-artist-link:hover {
    gap: 6px;
}

/* ==========================================================================
   Section 3: Photo Gallery & Glassmorphic Carousel Modal
   ========================================================================== */
.ts-ott-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.ts-ott-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ts-ott-card-border);
    aspect-ratio: 16 / 9;
    background: var(--ts-ott-card-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ts-ott-gallery-item:hover,
.ts-ott-gallery-item:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.6);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(229, 9, 20, 0.2);
}

.ts-ott-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-ott-gallery-item:hover .ts-ott-gallery-img {
    transform: scale(1.06);
}

.ts-ott-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
    transition: opacity 0.25s ease;
}

.ts-ott-gallery-zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.ts-ott-gallery-item:hover .ts-ott-gallery-zoom-badge {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Glassmorphic Gallery Carousel Modal
   -------------------------------------------------------------------------- */
.ts-ott-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-ott-gallery-modal:not(.is-open) {
    display: none !important;
}

.ts-ott-gallery-modal.is-open {
    display: flex !important;
    opacity: 1;
}

.ts-ott-gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    cursor: pointer;
}

.ts-ott-gallery-modal-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: rgba(18, 24, 38, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
    animation: tsGalleryModalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tsGalleryModalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Header */
.ts-ott-gallery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-ott-gallery-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-ott-gallery-modal-icon {
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ts-ott-gallery-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.ts-ott-gallery-modal-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-top: 2px;
}

.ts-ott-gallery-modal-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ts-ott-gallery-counter {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.ts-ott-gallery-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ts-ott-gallery-close:hover {
    background: rgba(239, 68, 68, 0.85);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* Modal Stage (Main Image Area) */
.ts-ott-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58vh;
    min-height: 340px;
    padding: 16px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(10, 15, 28, 0.7) 100%);
    user-select: none;
}

.ts-ott-gallery-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-ott-gallery-active-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ts-ott-gallery-active-img.ts-fade-out {
    opacity: 0.2;
    transform: scale(0.98);
}

.ts-ott-gallery-caption-pill {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 18px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Navigation Arrows */
.ts-ott-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ts-ott-gallery-prev {
    left: 18px;
}

.ts-ott-gallery-next {
    right: 18px;
}

.ts-ott-gallery-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Bottom Thumbnail Strip with Hover Navigation */
.ts-ott-gallery-thumbs-wrap {
    padding: 12px 20px 16px;
    background: rgba(10, 15, 28, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-ott-gallery-thumbs-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-align: center;
}

.ts-ott-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ts-ott-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ts-ott-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.ts-ott-gallery-thumb-btn {
    position: relative;
    flex: 0 0 92px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #000000;
    padding: 0;
    cursor: pointer;
    opacity: 0.45;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ts-ott-gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-ott-thumb-num {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
}

/* Hover between images state */
.ts-ott-gallery-thumb-btn:hover,
.ts-ott-gallery-thumb-btn.is-hovered {
    opacity: 1;
    transform: translateY(-3px) scale(1.08);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Active clicked state */
.ts-ott-gallery-thumb-btn.is-active {
    opacity: 1;
    border-color: #e50914;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.55);
}

/* Body lock when modal is open */
body.ts-ott-modal-locked {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .ts-ott-gallery-stage {
        height: 48vh;
        min-height: 260px;
        padding: 8px;
    }

    .ts-ott-gallery-nav {
        width: 38px;
        height: 38px;
    }

    .ts-ott-gallery-prev {
        left: 8px;
    }

    .ts-ott-gallery-next {
        right: 8px;
    }

    .ts-ott-gallery-thumb-btn {
        flex: 0 0 74px;
        height: 42px;
    }
}

/* ==========================================================================
   Section 4: Related News & Editorial (Movie Detail Page Only)
   ========================================================================== */
.ts-ott-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ts-ott-news-card {
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-ott-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.light-mode .ts-ott-news-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.ts-ott-news-thumb-wrap,
.ts-ott-news-thumb-link {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f1422;
    display: block;
}

.ts-ott-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ts-ott-news-card:hover .ts-ott-news-thumb {
    transform: scale(1.05);
}

/* Portrait / poster stand-ins: whole image over a blurred copy of itself, no hard crop. */
.ts-ott-news-thumb-wrap.is-letterbox::before,
.ts-ott-news-thumb-link.is-letterbox::before {
    content: "";
    position: absolute;
    inset: -12%;
    background: var(--ts-news-bg) center / cover no-repeat;
    filter: blur(18px) brightness(0.6);
}
.ts-ott-news-thumb-wrap.is-letterbox .ts-ott-news-thumb,
.ts-ott-news-thumb-link.is-letterbox .ts-ott-news-thumb {
    position: relative;
    object-fit: contain;
}
.ts-ott-news-card:hover .is-letterbox .ts-ott-news-thumb {
    transform: none;
}
.ts-ott-news-title,
.ts-ott-news-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ts-ott-news-title { -webkit-line-clamp: 3; line-clamp: 3; }
.ts-ott-news-excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
.ts-ott-news-read-more {
    margin-top: auto;
    padding-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ts-ott-accent);
    text-decoration: none;
}
.ts-ott-news-read-more:hover { text-decoration: underline; }

.ts-ott-news-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ts-ott-news-date {
    font-size: 11.5px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.ts-ott-news-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.ts-ott-news-title a {
    color: var(--ts-ott-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ts-ott-news-title a:hover {
    color: var(--ts-ott-accent);
}

.ts-ott-news-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ts-ott-text-muted);
    margin: 0;
}

/* ==========================================================================
   Section 5: Where to Watch Guide Card (Revamped)
   ========================================================================== */
.ts-ott-watch-directory-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.ts-ott-watch-guide-card {
    background: var(--ts-ott-card-bg, #111827);
    border: 1px solid var(--ts-ott-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ts-ott-watch-guide-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--plat-color, #e50914);
    border-radius: 16px 0 0 16px;
}

.ts-ott-watch-guide-card:hover {
    border-color: var(--plat-bdr, rgba(229, 9, 20, 0.4));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.ts-ott-watch-guide-main {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.ts-ott-watch-plat-col {
    flex-shrink: 0;
}

.ts-ott-watch-plat-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.ts-ott-watch-plat-logo svg {
    max-width: 38px;
    max-height: 38px;
}

.ts-ott-watch-guide-info {
    flex: 1;
    min-width: 0;
}

.ts-ott-watch-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ts-ott-watch-plat-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: var(--ts-ott-text-main, #ffffff);
    line-height: 1.2;
}

.ts-ott-watch-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ts-ott-watch-plat-desc {
    font-size: 14px;
    color: var(--ts-ott-text-muted, #94a3b8);
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.ts-ott-watch-specs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-ott-watch-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ts-ott-card-border, rgba(255, 255, 255, 0.08));
    font-size: 12px;
    font-weight: 600;
    color: var(--ts-ott-text-main, #ffffff);
}

.ts-ott-watch-spec-item svg {
    color: var(--plat-color, #e50914);
    opacity: 0.9;
    flex-shrink: 0;
}

.ts-ott-watch-guide-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ts-ott-btn-stream-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.ts-ott-btn-stream-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    filter: brightness(1.12);
    color: #ffffff !important;
}

.ts-ott-watch-direct-hint {
    font-size: 11px;
    color: var(--ts-ott-text-muted, #94a3b8);
    letter-spacing: 0.2px;
}

/* Light mode overrides */
.light-mode .ts-ott-watch-guide-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.light-mode .ts-ott-watch-guide-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .ts-ott-watch-spec-item {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-mode .ts-ott-watch-plat-desc {
    color: #64748b;
}

.light-mode .ts-ott-watch-direct-hint {
    color: #94a3b8;
}

@media (max-width: 860px) {
    .ts-ott-watch-guide-card {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
        gap: 20px;
    }

    .ts-ott-watch-guide-main {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .ts-ott-watch-guide-cta-col {
        width: 100%;
        align-items: stretch;
    }

    .ts-ott-btn-stream-direct {
        width: 100%;
    }

    .ts-ott-watch-direct-hint {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .ts-ott-watch-guide-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ts-ott-watch-plat-logo {
        width: 52px;
        height: 52px;
    }
}

/* ==========================================================================
   Artist Profile Page (.ts-ott-artist-profile-page)
   ========================================================================== */
.ts-ott-artist-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 50px;
    border-bottom: 1px solid var(--ts-ott-card-border);
    background: var(--ts-ott-bg);
}

.ts-ott-artist-hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(229, 9, 20, 0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ts-ott-artist-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.6) 0%, var(--ts-ott-bg) 100%);
    pointer-events: none;
    z-index: 1;
}

.light-mode .ts-ott-artist-hero-gradient {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.7) 0%, var(--ts-ott-bg) 100%);
}

.ts-ott-artist-hero-container {
    position: relative;
    z-index: 2;
}

.ts-ott-artist-header-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}

.ts-ott-artist-photo-col {
    display: flex;
    justify-content: center;
}

.ts-ott-artist-avatar-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--ts-ott-card-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    background: #1e293b;
}

.ts-ott-artist-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-ott-artist-bio-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ts-ott-artist-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ts-ott-artist-profession-pill {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #e50914;
    padding: 4px 12px;
    border-radius: 20px;
}

.ts-ott-artist-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: var(--ts-ott-text-main);
}

.ts-ott-artist-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 4px 0;
}

.ts-ott-artist-fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
}

.ts-ott-artist-fact-wide {
    grid-column: 1 / -1;
}

.ts-ott-artist-fact-icon {
    font-size: 22px;
    line-height: 1;
}

.ts-ott-artist-fact-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ts-ott-text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.ts-ott-artist-fact-value {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ts-ott-text-main);
}

.ts-ott-artist-bio-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ts-ott-text-muted);
}

.ts-ott-artist-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ts-ott-artist-content-wrap {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.ts-ott-artist-role-tag {
    font-size: 12px;
    margin: 6px 0 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ts-ott-card-border);
    display: inline-block;
}

.light-mode .ts-ott-artist-role-tag {
    background: #f1f5f9;
}

/* ==========================================================================
   Responsive Breakpoints for Movie Detail & Artist Pages
   ========================================================================== */
@media (max-width: 900px) {
    .ts-ott-title-hero-grid,
    .ts-ott-artist-header-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ts-ott-title-poster-col {
        max-width: 320px;
        margin: 0 auto;
    }

    .ts-ott-title-info-col,
    .ts-ott-artist-bio-col {
        text-align: left;
    }

    .ts-ott-watch-guide-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .ts-ott-cast-photo-wrapper {
        width: 86px;
        height: 86px;
    }

    .ts-ott-cast-name {
        font-size: 13.5px;
    }

    .ts-ott-cast-role {
        font-size: 11.5px;
    }

    .ts-ott-artist-avatar-wrap {
        width: 160px;
        height: 160px;
    }

    .ts-ott-gallery-grid,
    .ts-ott-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   OTT Platform Vector SVG Logos & Badges
   ========================================================================== */
.ts-ott-plat-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.ts-ott-platform-badge-hero,
.ts-ott-platform-badge-large,
.ts-ott-hero-badge-platform,
.ts-ott-btn-stream-hero,
.ts-ott-btn-stream-guide,
.ts-ott-btn-stream-direct,
.ts-ott-platform-switch-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ts-ott-platform-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-ott-platform-logo-wrap .ts-ott-plat-svg {
    flex-shrink: 0;
}

/* ==========================================================================
   15. ENTERTAINMENT AI ASSISTANT (Recommendations & TechnoSports News)
   ========================================================================== */
.ts-ott-assistant-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Trigger Button */
.ts-ott-assistant-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), 0 8px 10px -6px rgba(16, 185, 129, 0.2);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ts-ott-assistant-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px -4px rgba(16, 185, 129, 0.5), 0 10px 12px -5px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}

.ts-ott-assistant-btn.is-active {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.light-mode .ts-ott-assistant-btn.is-active {
    background: #1e293b;
    color: #ffffff;
}

.ts-ott-assistant-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-ott-assistant-btn-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    line-height: 1;
}

/* Floating Assistant Panel */
.ts-ott-assistant-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f8fafc;
    z-index: 100000;
}

.light-mode .ts-ott-assistant-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

/* Panel Header */
.ts-ott-asst-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.light-mode .ts-ott-asst-header {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.ts-ott-asst-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-ott-asst-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
}

.ts-ott-asst-title {
    font-size: 14.5px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.light-mode .ts-ott-asst-title {
    color: #0f172a;
}

.ts-ott-asst-sub {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.light-mode .ts-ott-asst-sub {
    color: #64748b;
}

.ts-ott-asst-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ts-ott-asst-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .ts-ott-asst-close:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.06);
}

/* Messages Stream */
.ts-ott-asst-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.ts-ott-asst-messages::-webkit-scrollbar {
    width: 5px;
}

.ts-ott-asst-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.light-mode .ts-ott-asst-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

/* Chat Bubbles */
.ts-ott-asst-msg {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    animation: tsAsstFadeIn 0.25s ease-out;
}

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

.ts-ott-asst-user {
    align-self: flex-end;
}

.ts-ott-asst-user .ts-ott-asst-bubble {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 14px 14px 2px 14px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.ts-ott-asst-bot {
    align-self: flex-start;
    max-width: 96%;
}

.ts-ott-asst-bot .ts-ott-asst-bubble {
    background: rgba(30, 41, 59, 0.7);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px 14px 14px 2px;
    padding: 12px 15px;
    font-size: 13.5px;
    line-height: 1.6;
}

.light-mode .ts-ott-asst-bot .ts-ott-asst-bubble {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.ts-ott-asst-bubble a {
    color: #34d399;
    text-decoration: underline;
    font-weight: 600;
}

.light-mode .ts-ott-asst-bubble a {
    color: #059669;
}

.ts-ott-asst-bubble strong {
    color: #ffffff;
}

.light-mode .ts-ott-asst-bubble strong {
    color: #0f172a;
}

.ts-ott-asst-list {
    margin: 6px 0 6px 18px;
    padding: 0;
}

.ts-ott-asst-list li {
    margin-bottom: 4px;
}

/* Starter Prompt Chips */
.ts-ott-asst-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ts-ott-asst-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 16px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.ts-ott-asst-chip:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
}

.light-mode .ts-ott-asst-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.light-mode .ts-ott-asst-chip:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

/* TechnoSports News Cards inside Chat */
.ts-ott-asst-news-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.ts-ott-asst-news-card {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.light-mode .ts-ott-asst-news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ts-ott-asst-news-card:hover {
    border-color: #10b981;
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.06);
}

.ts-ott-asst-news-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ts-ott-asst-news-body {
    flex: 1;
    min-width: 0;
}

.ts-ott-asst-news-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ts-ott-asst-news-title {
    font-size: 12.5px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #f1f5f9;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.light-mode .ts-ott-asst-news-title {
    color: #0f172a;
}

.ts-ott-asst-news-date {
    font-size: 10.5px;
    color: #94a3b8;
}

/* OTT Title Cards inside Chat */
.ts-ott-asst-titles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.ts-ott-asst-title-card {
    display: block;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.light-mode .ts-ott-asst-title-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.ts-ott-asst-title-card:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
}

.ts-ott-asst-title-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ts-ott-asst-title-plat {
    color: #38bdf8;
}

.ts-ott-asst-title-rate {
    color: #eab308;
}

.ts-ott-asst-title-heading {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
}

.light-mode .ts-ott-asst-title-heading {
    color: #0f172a;
}

.ts-ott-asst-title-link {
    font-size: 11px;
    color: #10b981;
    font-weight: 700;
}

/* Typing Indicator */
.ts-ott-asst-typing {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #94a3b8;
}

.ts-ott-asst-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 4px;
    animation: tsDotBounce 1.4s infinite ease-in-out both;
}

.ts-ott-asst-dot:nth-child(1) { animation-delay: -0.32s; }
.ts-ott-asst-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes tsDotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input Form */
.ts-ott-asst-form {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.light-mode .ts-ott-asst-form {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.ts-ott-asst-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 9px 15px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.light-mode .ts-ott-asst-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.ts-ott-asst-input:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .ts-ott-asst-input:focus {
    border-color: #10b981;
    background: #ffffff;
}

.ts-ott-asst-send {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ts-ott-asst-send:hover {
    transform: scale(1.06);
    background: #059669;
}

.ts-ott-asst-footer-note {
    font-size: 10px;
    color: #64748b;
    text-align: center;
    padding: 6px 12px 8px;
    background: rgba(15, 23, 42, 0.9);
}

.light-mode .ts-ott-asst-footer-note {
    background: #f8fafc;
    color: #94a3b8;
}

/* Backdrop Overlay for Assistant Focus and Mobile Sheet */
.ts-ott-asst-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 22, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999998;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.ts-ott-asst-drag-handle {
    display: none;
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    margin: 6px auto 10px auto;
}

.light-mode .ts-ott-asst-drag-handle {
    background: rgba(0, 0, 0, 0.2);
}

.ts-ott-asst-mobile-label {
    display: none;
}

.ts-ott-asst-desktop-label {
    display: inline;
}

/* Prevent scroll-to-top collision on entertainment pages */
#scroll-to-top {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(20px + env(safe-area-inset-right, 0px)) !important;
}

body.ts-ott-asst-locked {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Mobile Responsive Drawer Bottom Sheet */
@media (max-width: 640px) {
    .ts-ott-assistant-root,
    #ts-ott-assistant-root {
        bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
        right: calc(16px + env(safe-area-inset-right, 0px)) !important;
        left: auto !important;
        top: auto !important;
    }

    .ts-ott-assistant-btn,
    #ts-ott-assistant-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 7px;
        border-radius: 999px;
        box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.6), 0 3px 8px rgba(0, 0, 0, 0.3);
    }

    .ts-ott-asst-desktop-label {
        display: none !important;
    }

    .ts-ott-asst-mobile-label {
        display: inline !important;
        font-size: 13px;
        font-weight: 700;
    }

    .ts-ott-assistant-panel,
    #ts-ott-assistant-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100vw;
        max-width: 100vw;
        height: min(85vh, 660px);
        max-height: 86vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.6);
        z-index: 1000000;
    }

    .light-mode .ts-ott-assistant-panel,
    .light-mode #ts-ott-assistant-panel {
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
    }

    .ts-ott-asst-drag-handle {
        display: block;
    }

    .ts-ott-asst-input {
        font-size: 16px !important; /* CRITICAL: prevents iOS Safari auto zoom */
        padding: 10px 14px;
    }

    .ts-ott-asst-chips {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 8px;
        scrollbar-width: none;
    }

    .ts-ott-asst-chips::-webkit-scrollbar {
        display: none;
    }

    .ts-ott-asst-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 7px 13px;
    }

    .ts-ott-asst-form {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================================================
   Section 2a: All Seasons & Episode Streaming Guide
   ========================================================================== */
.ts-ott-seasons-guide-block {
    margin-top: 10px;
    margin-bottom: 20px;
}

.ts-ott-seasons-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ts-ott-card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--ts-ott-card-border, rgba(255, 255, 255, 0.1));
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
}

.ts-ott-seasons-count-num {
    background: var(--ts-ott-accent, #e50914);
    color: #ffffff;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.ts-ott-seasons-count-label {
    color: var(--ts-ott-text-muted, #94a3b8);
    font-weight: 600;
}

.ts-ott-seasons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ts-ott-season-card {
    background: var(--ts-ott-card-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--ts-ott-card-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ts-ott-season-card:hover {
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.ts-ott-season-card.is-latest-season {
    border: 2px solid var(--season-accent, var(--ts-ott-accent, #e50914));
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.15);
}

.ts-ott-season-card-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.ts-ott-season-poster-col {
    flex-shrink: 0;
    width: 140px;
}

.ts-ott-season-poster-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    aspect-ratio: 2 / 3;
    background: #111;
}

.ts-ott-season-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ts-ott-season-status-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.ts-ott-season-status-pill.latest {
    background: var(--season-accent, #e50914);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ts-ott-season-status-pill.original {
    background: rgba(0, 0, 0, 0.88);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.ts-ott-season-info-col {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-ott-season-header-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-ott-season-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ts-ott-season-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ts-ott-text-main, #ffffff);
    margin: 0;
    line-height: 1.25;
}

.ts-ott-season-year-chip {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ts-ott-text-muted, #94a3b8);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.ts-ott-season-metrics-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ts-ott-season-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ts-ott-card-border, rgba(255, 255, 255, 0.08));
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ts-ott-text-main, #ffffff);
}

.ts-ott-season-metric-chip.rating {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.08);
}

.ts-ott-season-metric-chip.rating strong {
    color: #eab308;
}

.ts-ott-season-metric-chip.platform {
    font-weight: 700;
}

.ts-ott-season-synopsis {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ts-ott-text-muted, #94a3b8);
    margin: 0;
}

.ts-ott-season-actions-row {
    margin-top: 6px;
}

.ts-ott-btn-season-stream {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--btn-color, var(--ts-ott-accent, #e50914));
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ts-ott-btn-season-stream:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .ts-ott-season-card-inner {
        flex-direction: column;
        gap: 16px;
    }
    .ts-ott-season-poster-col {
        width: 100%;
        max-width: 140px;
        margin: 0 auto;
    }
    .ts-ott-season-actions-row .ts-ott-btn-season-stream {
        width: 100%;
        justify-content: center;
    }
}

/* v8.14: hero meta shows only facts we have; empty fields carry [hidden]. */
.ts-ott-hero-meta > [hidden] { display: none !important; }
.ts-ott-hero-meta > span:not([hidden]) ~ span:not([hidden])::before { content: "•"; margin-right: 8px; opacity: .6; }
.ts-ott-title-sources a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   In Theatres -> OTT tracker
   ========================================================================== */
.ts-ott-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.4;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
    border: 1px solid transparent;
    white-space: nowrap;
}
.ts-ott-status-badge.is-theatres { background: #f59e0b; color: #1a1200; border-color: rgba(253, 230, 138, 0.7); }
.ts-ott-status-badge.is-upcoming { background: #6366f1; border-color: rgba(165, 180, 252, 0.7); }
.ts-ott-status-badge.is-ott      { background: #10b981; color: #02150f; border-color: rgba(110, 231, 183, 0.7); }
.ts-ott-status-badge.is-rent     { background: #0ea5e9; border-color: rgba(125, 211, 252, 0.7); }
.ts-ott-status-badge.is-awaited  { background: #f43f5e; border-color: rgba(253, 164, 175, 0.7); }
.ts-ott-status-badge-inline { position: static; align-self: flex-start; font-size: 11px; padding: 4px 10px; }

/* Platform that already has the film, under the status badge on a card poster. */
.ts-ott-card-plat-chip {
    position: absolute;
    top: 38px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px 2px 3px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0 !important;
}

.ts-ott-theatre-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ts-ott-theatre-tabs::-webkit-scrollbar { display: none; }
.ts-ott-theatre-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--ts-ott-card-border);
    background: var(--ts-ott-card-bg);
    color: var(--ts-ott-text-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.ts-ott-theatre-tab.active { background: #f59e0b; border-color: #f59e0b; color: #1a1200; }
.ts-ott-theatre-tab-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}
.ts-ott-theatre-tab.active .ts-ott-theatre-tab-count { background: rgba(26, 18, 0, 0.18); }

.ts-ott-theatre-howto {
    margin: 28px 0 8px;
    padding: 14px 18px;
    border: 1px solid var(--ts-ott-card-border);
    border-radius: 12px;
    background: var(--ts-ott-card-bg);
    color: var(--ts-ott-text-muted);
    font-size: 14px;
}
.ts-ott-theatre-howto summary { cursor: pointer; font-weight: 700; color: var(--ts-ott-text-main); }
.ts-ott-theatre-howto p { margin: 10px 0 0; line-height: 1.55; }

/* Title page panel */
.ts-ott-theatre-panel .ts-ott-section-header-row { align-items: flex-start; }
.ts-ott-theatre-headline { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--ts-ott-text-main); }
.ts-ott-theatre-timeline {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ts-ott-theatre-timeline li {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--ts-ott-card-border);
    background: var(--ts-ott-card-bg);
    color: var(--ts-ott-text-muted);
    font-size: 14px;
}
.ts-ott-theatre-timeline li strong { color: var(--ts-ott-text-main); }
.ts-ott-theatre-timeline li strong em { font-style: normal; font-weight: 500; color: var(--ts-ott-text-muted); }
.ts-ott-theatre-timeline li.is-done { border-color: rgba(16, 185, 129, 0.5); }
.ts-ott-theatre-timeline li.is-next { border-color: rgba(99, 102, 241, 0.6); }
.ts-ott-theatre-timeline li.is-estimate { border-style: dashed; border-color: rgba(245, 158, 11, 0.6); }

.ts-ott-theatre-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ts-ott-theatre-facts li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ts-ott-card-bg);
    border: 1px solid var(--ts-ott-card-border);
    font-size: 14px;
}
.ts-ott-theatre-facts li > span { color: var(--ts-ott-text-muted); }
.ts-ott-theatre-facts li > strong { color: var(--ts-ott-text-main); text-align: right; }
.ts-ott-theatre-facts small { display: block; font-weight: 500; color: var(--ts-ott-text-muted); }
.ts-ott-theatre-plats { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ts-ott-theatre-plat { display: inline-flex; align-items: center; gap: 6px; }
.ts-ott-band-high   { color: #10b981 !important; }
.ts-ott-band-medium { color: #f59e0b !important; }
.ts-ott-band-low    { color: #94a3b8 !important; }
.ts-ott-theatre-note, .ts-ott-theatre-source { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ts-ott-text-muted); }
.ts-ott-theatre-source { font-size: 12px; opacity: 0.85; }

@media (max-width: 480px) {
    .ts-ott-theatre-facts li > strong { text-align: left; }
    .ts-ott-theatre-plats { justify-content: flex-start; }
}
