/**
 * TV.gen.tr - Program Detail Page (OneCommunity Harmonized White Theme)
 * Perfectly styled to match OneCommunity Child Theme design language
 * (Open Sans, #2e2e2e text, #ffd300 accents, var(--dd-main-border-color) borders)
 */

/* ==========================================================================
   Base Layout & OneCommunity Compatibility
   ========================================================================== */
.tv-program-single-view {
    width: 100%;
    margin: 0 auto;
    color: #2e2e2e;
    box-sizing: border-box;
}

.tv-program-single-view *,
.tv-program-single-view *::before,
.tv-program-single-view *::after {
    box-sizing: border-box;
}

/* Ensure fullwidth content inside wrapper */
body.single-program main#content.no-sidebar {
    width: 100% !important;
    float: none !important;
    margin-bottom: 25px !important;
}

body.single-program .sidebar {
    display: none !important;
}

/* Maintain native OneCommunity single-post-details */
.single-program .single-post-details {
    margin-top: 15px;
    margin-bottom: 25px;
}

/* ==========================================================================
   Hero Cover & Backdrop Section (Matching User Mockup)
   ========================================================================== */
.tv-hero-backdrop {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-bottom: 30px;
    border: 1px solid rgba(220, 215, 205, 0.75);
    background-color: #f7f3ec;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

.tv-hero-overlay {
    background: linear-gradient(135deg, rgba(251, 248, 243, 0.94) 0%, rgba(245, 240, 233, 0.92) 50%, rgba(239, 233, 224, 0.90) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 26px 28px;
    display: flex;
    gap: 28px;
    align-items: stretch;
}

/* Poster Card (Vertical 2:3 with tv.gen.tr watermark) */
.tv-hero-poster-col {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
}

.tv-hero-poster-card {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #1e1915;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-hero-poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.25s ease;
}

.tv-hero-poster-card:hover img {
    transform: scale(1.02);
}

/* Watermark Badge (Circular white badge with tv.gen.tr) */
.tv-poster-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 26px;
    box-sizing: border-box;
    user-select: none;
    pointer-events: none;
}

.tv-poster-watermark .tv-wm-tv {
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.tv-poster-watermark .tv-wm-domain {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1;
    margin-left: 1px;
}

/* Right Details Column */
.tv-hero-details-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Line 1: Orijinal Adı */
.tv-hero-orig-row {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tv-orig-label {
    color: #555555;
    font-weight: 500;
    margin-right: 4px;
}

.tv-orig-val {
    color: #1a1a1a;
    font-weight: 700;
}

/* Line 2: Meta Pill Chips (Pills) */
.tv-hero-pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tv-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 210, 200, 0.85);
    font-size: 12px;
    font-weight: 600;
    color: #2d2d2d;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.15s ease;
}

a.tv-pill:hover {
    background: #ffffff;
    border-color: #ffd300;
    color: #1a1a1a;
}

.tv-pill-age {
    background: #ffd300 !important;
    border-color: #ffd300 !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

/* Line 3: Two Side-by-Side Cards (Puan & Nerede İzlenir?) */
.tv-hero-subcards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.tv-subcard {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(225, 220, 210, 0.9);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}

.tv-subcard-body {
    flex: 1 1 auto;
    min-width: 0;
}

.tv-subcard-header {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

/* Score row */
.tv-subcard-score-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
    margin-bottom: 5px;
}

.tv-score-star {
    font-size: 16px;
    line-height: 1;
    color: #eab308;
}

.tv-score-number {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.tv-score-scale {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
}

/* IMDb row */
.tv-subcard-imdb-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tv-imdb-label {
    font-size: 11px;
    font-weight: 700;
    color: #555555;
}

.tv-imdb-badge {
    display: inline-block;
    background: #e2b616;
    color: #000000;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

a.tv-imdb-badge:hover {
    background: #d4a70f;
    color: #000000;
}

/* Provider Logos in Card 2 */
.tv-provider-logos-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 34px;
}

.tv-provider-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    max-width: 80px;
    padding: 3px 6px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(215, 210, 200, 0.7);
    transition: all 0.15s ease;
}

.tv-provider-logo-link:hover {
    border-color: #ffd300;
    transform: translateY(-1px);
}

.tv-provider-logo-link img {
    max-height: 26px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.tv-provider-fallback {
    font-size: 11px;
    font-weight: 700;
    color: #2e2e2e;
}

.tv-provider-empty {
    font-size: 12px;
    color: #888888;
    font-style: italic;
}

/* Dark Oval [ İZLE ] Button */
.tv-subcard-action {
    flex: 0 0 auto;
}

.tv-subcard-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e1915;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 8px 22px;
    border-radius: 9999px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tv-subcard-btn-dark:hover {
    background-color: #38302b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Line 4: EYLEM DÜĞMELERİ */
.tv-hero-actions-container {
    margin-bottom: 14px;
}

.tv-actions-header {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.tv-actions-buttons-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.2;
}

.tv-action-btn-dark {
    background-color: #1e1915;
    color: #ffffff;
    border: 1px solid #1e1915;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tv-action-btn-dark:hover {
    background-color: #38302b;
    border-color: #38302b;
    color: #ffffff;
    transform: translateY(-1px);
}

.tv-action-btn-light {
    background: rgba(255, 255, 255, 0.82);
    color: #1e1915;
    border: 1px solid rgba(215, 210, 200, 0.9);
}

.tv-action-btn-light:hover {
    background: #ffffff;
    border-color: #ffd300;
    color: #1e1915;
    transform: translateY(-1px);
}

.tv-action-btn-light.active {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.tv-act-icon {
    font-size: 12px;
    line-height: 1;
}

.tv-icon-plus {
    font-size: 15px;
    font-weight: 700;
}

.tv-icon-check {
    font-size: 14px;
    font-weight: 700;
}

.tv-btn-counter {
    font-size: 11px;
    opacity: 0.8;
}

/* Line 5: Dizi Detayları (Synopsis) */
.tv-hero-synopsis-wrap {
    margin-top: 4px;
}

.tv-synopsis-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.tv-synopsis-content {
    font-size: 13px;
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0;
}

.tv-synopsis-content p {
    margin: 0 0 8px 0;
}

.tv-synopsis-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Section Headers (OneCommunity Sidebar Title Style)
   ========================================================================== */
.tv-section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--dd-main-border-color, #e8e8e8);
    padding-bottom: 12px;
}

.tv-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2e2e2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.tv-badge-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: #ffd300;
    color: #2e2e2e;
    letter-spacing: 0.04em;
}

.tv-section-subinfo {
    font-size: 12px;
    color: #8e8e8e;
    font-weight: 600;
}

/* ==========================================================================
   Cast Section (Oyuncular - Circular Avatars)
   ========================================================================== */
.tv-cast-section {
    background: #ffffff;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.tv-cast-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.tv-cast-row::-webkit-scrollbar {
    height: 6px;
}

.tv-cast-row::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.tv-cast-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tv-cast-card {
    flex: 0 0 100px;
    width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-cast-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 2px;
    background: #ffffff;
    border: 2px solid var(--dd-main-border-color, #e8e8e8);
    overflow: hidden;
    margin-bottom: 8px;
    display: inline-block;
    transition: all 0.15s ease;
}

.tv-cast-avatar-wrap:hover {
    border-color: #ffd300;
    transform: translateY(-2px);
}

.tv-cast-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.tv-cast-name {
    font-size: 12px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.3;
    margin-bottom: 2px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-cast-name:hover {
    color: #007acc;
}

.tv-cast-role {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e8e;
    text-transform: uppercase;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Two-Column Content Grid
   ========================================================================== */
.tv-main-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.tv-main-col-left {
    flex: 1 1 65%;
    min-width: 0;
}

.tv-main-col-right {
    flex: 0 0 35%;
    width: 35%;
    min-width: 300px;
}

/* General Content Block Card */
.tv-block-card {
    background: #ffffff;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 25px;
}

/* ==========================================================================
   Yayın Akışı (Broadcast Schedule Cards)
   ========================================================================== */
.tv-schedule-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 15px;
}

.tv-schedule-card {
    background: #ffffff;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
}

.tv-schedule-card:hover {
    border-color: #ffd300;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.tv-schedule-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2e2e2e;
    overflow: hidden;
}

.tv-schedule-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tv-schedule-badge-channel {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #ffd300;
    color: #2e2e2e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
}

.tv-schedule-badge-time {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.tv-schedule-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tv-schedule-time-row {
    font-size: 11px;
    font-weight: 700;
    color: #007acc;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.tv-schedule-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #2e2e2e;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.tv-schedule-card-desc {
    font-size: 12px;
    color: #686868;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-schedule-empty {
    padding: 24px;
    text-align: center;
    background: #fbfbfb;
    border: 1px dashed var(--dd-main-border-color, #e8e8e8);
    border-radius: 6px;
    color: #8e8e8e;
}

.tv-schedule-empty i {
    font-size: 26px;
    color: #b0b0b0;
    margin-bottom: 8px;
    display: block;
}

/* ==========================================================================
   Related News (Haberler)
   ========================================================================== */
.tv-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 15px;
}

.tv-news-card {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.tv-news-card:hover {
    border-color: #ffd300;
}

.tv-news-thumb {
    width: 75px;
    height: 55px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.tv-news-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-news-card-date {
    font-size: 11px;
    color: #989898;
}

/* ==========================================================================
   Program Details & Credits Table
   ========================================================================== */
.tv-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px 18px;
    margin-top: 14px;
    border-top: 1px solid var(--dd-main-border-color, #e8e8e8);
    padding-top: 14px;
}

.tv-detail-item {
    font-size: 13px;
}

.tv-detail-label {
    font-weight: 700;
    color: #8e8e8e;
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-size: 11px;
}

.tv-detail-value {
    color: #2e2e2e;
    font-weight: 600;
}

.tv-detail-value a {
    color: #007acc;
    text-decoration: none;
}

.tv-detail-value a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   User Reviews & Forum Discussion (Right Column)
   ========================================================================== */
/* Forum Banner CTA */
.tv-forum-banner-box {
    background: #fffdf5;
    border: 1px solid #fae8a4;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 16px;
}

.tv-forum-banner-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #b78103;
    margin-bottom: 6px;
}

.tv-forum-topic-link {
    font-size: 13px;
    font-weight: 700;
    color: #2e2e2e;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.35;
}

.tv-forum-topic-link:hover {
    color: #007acc;
    text-decoration: underline;
}

.tv-forum-cta-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #2e2e2e;
    background-color: #ffd300;
    padding: 5px 14px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tv-forum-cta-btn:hover {
    background-color: #ffb606;
    color: #2e2e2e;
}

/* User Review Preview Cards */
.tv-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tv-review-card {
    background: #fbfbfb;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 6px;
    padding: 12px;
}

.tv-review-card:hover {
    background: #ffffff;
    border-color: #ffd300;
}

.tv-review-stars {
    color: #f59e0b;
    font-size: 11px;
    margin-bottom: 5px;
}

.tv-review-quote {
    font-size: 12px;
    line-height: 1.45;
    color: #555555;
    margin: 0 0 8px 0;
}

.tv-review-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tv-review-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.tv-review-author-name {
    font-size: 12px;
    font-weight: 700;
    color: #2e2e2e;
}

.tv-review-time {
    font-size: 11px;
    color: #989898;
    margin-left: auto;
}

.tv-reviews-empty {
    background: #fbfbfb;
    border: 1px dashed var(--dd-main-border-color, #e8e8e8);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    color: #8e8e8e;
    font-size: 13px;
}

/* ==========================================================================
   BuddyPress Group CTA Card
   ========================================================================== */
.tv-group-cta-card {
    background: #ffffff;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 22px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tv-group-cta-avatar {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--dd-main-border-color, #e8e8e8);
}

.tv-group-cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tv-group-cta-info {
    flex: 1;
    min-width: 0;
}

.tv-group-cta-title {
    font-size: 14px;
    font-weight: 700;
    color: #2e2e2e;
    margin: 0 0 3px 0;
}

.tv-group-cta-title a {
    color: inherit;
    text-decoration: none;
}

.tv-group-cta-title a:hover {
    color: #007acc;
}

.tv-group-cta-desc {
    font-size: 11px;
    color: #8e8e8e;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tv-group-btn {
    font-size: 11px;
    font-weight: 700;
    color: #2e2e2e;
    background-color: #ffd300;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
}

.tv-group-btn:hover {
    background-color: #ffb606;
    color: #2e2e2e;
}

/* ==========================================================================
   Tags & Share Buttons
   ========================================================================== */
.tv-tags-wrap {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tv-tag-chip {
    font-size: 11px;
    font-weight: 600;
    color: #555555;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    text-decoration: none;
}

.tv-tag-chip:hover {
    background: #ffd300;
    color: #2e2e2e;
}

.tv-share-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.tv-share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tv-share-icon:hover {
    background: #ffd300;
    color: #2e2e2e;
}

/* ==========================================================================
   Trailer Modal
   ========================================================================== */
.tv-trailer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.tv-trailer-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
}

.tv-modal-content {
    position: relative;
    width: 90%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.tv-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tv-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    line-height: 1;
}

body.tv-modal-locked {
    overflow: hidden;
}

/* Toast Notice */
.tv-toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #2e2e2e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.tv-toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media screen and (max-width: 991px) {
    .tv-main-grid {
        flex-direction: column;
    }

    .tv-main-col-left,
    .tv-main-col-right {
        width: 100%;
        flex: 1 1 100%;
    }

    .tv-hero-overlay {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: linear-gradient(180deg, rgba(251, 248, 243, 0.96) 0%, rgba(245, 240, 233, 0.94) 50%, rgba(239, 233, 224, 0.92) 100%);
        padding: 22px 18px;
        gap: 20px;
    }

    .tv-hero-poster-col {
        flex: 0 0 auto;
        width: 190px;
        margin: 0 auto;
    }

    .tv-hero-orig-row {
        text-align: center;
    }

    .tv-hero-pills-row {
        justify-content: center;
    }

    .tv-actions-header {
        text-align: center;
    }

    .tv-actions-buttons-row {
        justify-content: center;
    }

    .tv-hero-synopsis-wrap {
        text-align: left;
    }
}

@media screen and (max-width: 680px) {
    .tv-hero-subcards-grid {
        grid-template-columns: 1fr;
    }

    .tv-subcard {
        padding: 10px 14px;
    }

    .tv-subcard-btn-dark {
        padding: 7px 18px;
    }

    .tv-schedule-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .tv-actions-buttons-row {
        flex-direction: column;
        width: 100%;
    }

    .tv-action-btn {
        width: 100%;
        justify-content: center;
    }

    .tv-subcard {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tv-subcard-action {
        width: 100%;
    }

    .tv-subcard-btn-dark {
        width: 100%;
        text-align: center;
    }
}
