/* ===================================================
   Show Drawer Modal
   show-drawer.css — show-specific styles only.
   Modal shell matches plan drawer via .plan-drawer in
   view-plan-drawer.css (shared with channel-drawer).
   =================================================== */

/* ===================================================
   Watch On Section
   =================================================== */
.show-drawer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.show-drawer-section-title {
    font-family: var(--font-family-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Horizontal drag-scroll row */
.show-watch-on-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scrollbar-width: none;
    align-items: flex-start;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    cursor: grab;
}

.show-watch-on-grid::-webkit-scrollbar {
    display: none;
}

/* Item wrapper: card + schedule stacked */
.show-watch-on-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Schedule text below the card */
.show-watch-on-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.show-watch-on-schedule-day {
    font-family: var(--font-family-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.show-watch-on-schedule-time {
    font-family: var(--font-family-body);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Each "Watch On" card — mirrors .genre-movies-box from channel drawer */
.show-watch-on-card {
    display: flex;
    width: 110px;
    height: 110px;
    padding: 10px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    background: #fff;
    gap: 0;
}

/* Gradient border — mirrors .genre-movies-box::before */
.show-watch-on-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(90deg, #FC9D81 0%, #D50656 100%);
    border-radius: 12px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -2;
}

/* Channel logo — mirrors .genre-movies-icon */
.show-watch-on-card-logo {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.show-watch-on-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Name + channel number — mirrors .genre-movies-box-footer */
.show-watch-on-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-family: var(--font-family-body);
    font-size: 0.75rem;
    text-align: center;
}

.show-watch-on-card-name {
    font-weight: 800;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.show-watch-on-card-channel {
    font-weight: 400;
    font-size: 0.75rem;
    color: #888;
}

.show-watch-on-card-schedule {
    font-size: 0.6875rem;
    color: #888;
    line-height: 1.4;
    text-align: center;
}

/* ===================================================
   Other Recommended Shows
   =================================================== */
.show-drawer-recommended {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Horizontal drag-scroll carousel */
.show-drawer-recommended-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    cursor: grab;
}

.show-drawer-recommended-grid::-webkit-scrollbar {
    display: none;
}

/* Individual recommended show card — mirrors .hero-article-swimlane-cards */
.show-drawer-rec-card {
    flex-shrink: 0;
    width: 320px;
    height: 145px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    background: #2A2E36;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

/* Full-bleed image — same as .card-image */
.show-drawer-rec-card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.show-drawer-rec-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark gradient overlay — same as .card-image::after */
.show-drawer-rec-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 90%);
    pointer-events: none;
}

/* ── Show Drawer: Apps section is display-only, no pointer cursor ── */
#ShowAvailableApps .sr-app-card-border,
#ShowAvailableApps .sr-app-card-border * {
    cursor: default !important;
    pointer-events: none !important;
}

/* Label pinned to bottom — same as .card-label */
.show-drawer-rec-card-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-family-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ===================================================
   Raise play button above the hero-info overlay (z-index: 4)
   so clicks reach it inside the show drawer
   =================================================== */
.show-drawer .channel-drawer-play-btn {
    z-index: 5;
}

/* ===================================================
   Apps cards — match channel plan card size in drawer (≤768px)
   =================================================== */
@media (max-width: 768px) {
    .show-drawer .channel-apps-swimlane .sr-app-card-border,
    .show-drawer #ShowAvailableAppsList .sr-app-card-border {
        width: 115px;
        height: 100px;
        flex-shrink: 0;
    }

    .show-drawer .channel-apps-swimlane .sr-app-card,
    .show-drawer #ShowAvailableAppsList .sr-app-card {
        height: 100%;
    }

    .show-drawer .channel-apps-swimlane .sr-app-card-logo-wrap,
    .show-drawer #ShowAvailableAppsList .sr-app-card-logo-wrap {
        flex: 1;
        min-height: 0;
        padding: 10px 8px;
    }

    .show-drawer .channel-apps-swimlane .sr-app-card-logo,
    .show-drawer #ShowAvailableAppsList .sr-app-card-logo {
        height: 28px;
        max-width: 100%;
    }

    .show-drawer .channel-apps-swimlane .sr-app-card-footer,
    .show-drawer #ShowAvailableAppsList .sr-app-card-footer {
        padding: 8px var(--spacing-sm);
    }

    .show-drawer .channel-apps-swimlane .sr-app-card-name,
    .show-drawer #ShowAvailableAppsList .sr-app-card-name {
        font-family: var(--font-family-body);
        font-size: 0.8125rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 576px) {
    .show-drawer-rec-card {
        width: 220px;
        height: 100px;
    }

    .show-watch-on-card {
        min-width: 68px;
        padding: var(--spacing-sm);
    }
}
