/* ============================================================
   BLEUER DIGITAL — PUBLIC STREAMING PAGES
   Consistent dark platform aesthetic for Movies, TV Shows,
   Live TV and Radio pages
   ============================================================ */

/* ---------- Page Shell ---------- */
.stream-page {
    background: #0a0c12;
    min-height: 100vh;
    color: #e4e7f0;
}

/* ---------- Compact Page Title ---------- */
.stream-page-title {
    background: #0a0c12;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ---------- Page Hero Banner (legacy, kept for fallback) ---------- */
.stream-hero {
    background: #0e1120;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 2.5rem 0 2rem;
}

.stream-hero__title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}

.stream-hero__breadcrumb {
    font-size: 0.82rem;
    color: rgba(255,255,255,.45);
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0; margin: 0;
}

.stream-hero__breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; }
.stream-hero__breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; }
.stream-hero__breadcrumb a:hover { color: #fff; }
.stream-hero__breadcrumb .active { color: rgba(255,255,255,.75); }

/* ---------- Section Label ---------- */
.stream-section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1rem;
    background: #6c63ff;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ---------- Search / Filter Bar ---------- */
.stream-filter-bar {
    background: #0e1120;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.stream-filter-bar .form-control,
.stream-filter-bar .form-select {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #e4e7f0 !important;
    border-radius: 8px;
}

.stream-filter-bar .form-control:focus,
.stream-filter-bar .form-select:focus {
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,.18) !important;
}

.stream-filter-bar .form-control::placeholder { color: rgba(255,255,255,.3); }
.stream-filter-bar .form-select option { background: #141728; color: #e4e7f0; }
.stream-filter-bar .form-label { color: rgba(255,255,255,.55); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Filter Sidebar (TV Shows) ---------- */
.stream-sidebar {
    background: #0e1120;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 1.4rem;
    position: sticky;
    top: 80px;
}

.stream-sidebar__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.25rem;
}

.stream-sidebar .form-control,
.stream-sidebar .form-select {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    color: #e4e7f0 !important;
    border-radius: 8px;
    font-size: 0.85rem;
}

.stream-sidebar .form-control:focus,
.stream-sidebar .form-select:focus {
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,.18) !important;
}

.stream-sidebar .form-control::placeholder { color: rgba(255,255,255,.25); }
.stream-sidebar .form-select option { background: #141728; }
.stream-sidebar .form-label { color: rgba(255,255,255,.45); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.stream-sidebar .form-check-input {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
}

.stream-sidebar .form-check-input:checked {
    background-color: #6c63ff;
    border-color: #6c63ff;
}

.stream-sidebar .form-check-label {
    color: rgba(255,255,255,.7);
    font-size: 0.84rem;
}

/* ---------- Media Card (Movies / TV Shows) ---------- */
.media-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #141728;
    display: block;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,.7);
    text-decoration: none;
}

.media-card__thumb {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    background: #1a1d2e;
}

.media-card__thumb--wide {
    aspect-ratio: 16 / 9;
}

.media-card__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
    padding: 2rem 0.9rem 0.9rem;
}

.media-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.media-card__meta span {
    font-size: 0.72rem;
    color: rgba(255,255,255,.65);
}

.media-card__meta .dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    display: inline-block;
}

/* Resume progress indicator */
.media-card__watched {
    position: absolute;
    top: 10px; right: 10px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,.65);
    z-index: 5;
}

/* Play button on hover */
.media-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: rgba(0,0,0,.25);
    z-index: 1;
}

.media-card__play i {
    font-size: 3rem;
    color: rgba(255,255,255,.9);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.media-card:hover .media-card__play { opacity: 1; }

/* Genre badges on card */
.media-card__badges {
    position: absolute;
    top: 8px; right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

/* ---------- Channel Card (Live TV) ---------- */
.channel-card {
    background: #141728;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,.6);
    border-color: rgba(108,99,255,.35);
}

.channel-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #1a1d2e;
    display: block;
}

.channel-card__logo-wrap {
    aspect-ratio: 16 / 9;
    background: #1a1d2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-card__logo-wrap i {
    font-size: 3rem;
    color: rgba(255,255,255,.2);
}

.channel-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.channel-card__network {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.channel-card__callsign {
    font-size: 0.78rem;
    color: rgba(255,255,255,.45);
    margin: 0;
}

.channel-card__desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,.55);
    margin: 0.2rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-card__footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    gap: 0.5rem;
}

/* Live badge — pulsing red dot */
.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.3);
    color: #f87171;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22em 0.6em;
    border-radius: 4px;
    letter-spacing: .04em;
}

.badge-live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f87171;
    animation: live-pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

.badge-offline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(100,116,139,.12);
    border: 1px solid rgba(100,116,139,.22);
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.22em 0.6em;
    border-radius: 4px;
}

.badge-ch {
    background: rgba(108,99,255,.15);
    border: 1px solid rgba(108,99,255,.25);
    color: #a78bff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22em 0.6em;
    border-radius: 4px;
}

/* ---------- Radio Card ---------- */
.radio-card {
    background: #141728;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.radio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,.55);
    border-color: rgba(108,99,255,.3);
}

.radio-card__icon-wrap {
    background: #1a1d2e;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.radio-card__icon-wrap i {
    font-size: 3.5rem;
    color: rgba(108,99,255,.55);
    z-index: 1;
}

/* Decorative waveform bars */
.radio-card__icon-wrap::before,
.radio-card__icon-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: repeating-linear-gradient(
        90deg,
        rgba(108,99,255,.08) 0px,
        rgba(108,99,255,.08) 2px,
        transparent 2px,
        transparent 8px
    );
}

.radio-card__body {
    padding: 1rem 1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.radio-card__name {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.radio-card__desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,.45);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.radio-card__category {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a78bff;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.radio-card__player {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.radio-card__player audio {
    width: 100%;
    height: 32px;
    outline: none;
    border-radius: 6px;
    filter: invert(1) hue-rotate(200deg) brightness(0.85);
}

/* ---------- Pagination ---------- */
.stream-pagination .page-link {
    background: #141728;
    border-color: rgba(255,255,255,.08);
    color: rgba(255,255,255,.6);
    border-radius: 7px !important;
    margin: 0 2px;
    transition: all 0.18s ease;
    font-size: 0.85rem;
}

.stream-pagination .page-link:hover {
    background: rgba(108,99,255,.15);
    border-color: rgba(108,99,255,.3);
    color: #a78bff;
}

.stream-pagination .page-item.active .page-link {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

/* ---------- A-Z Navigation ---------- */
.stream-az-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem;
    background: #0e1120;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
}

.stream-az-nav__link {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 7px;
    color: rgba(255,255,255,.58);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}

.stream-az-nav__link:hover {
    background: rgba(108,99,255,.15);
    border-color: rgba(108,99,255,.35);
    color: #fff;
    text-decoration: none;
}

.stream-az-nav__link.active {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

/* ---------- Empty State ---------- */
.stream-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(255,255,255,.3);
}

.stream-empty i { font-size: 4rem; display: block; margin-bottom: 1rem; }
.stream-empty h4 { color: rgba(255,255,255,.5); font-weight: 600; }
.stream-empty p  { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn-stream-primary {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.855rem;
    padding: 0.5rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.18s ease;
    text-decoration: none;
}

.btn-stream-primary:hover {
    background: #5a52d5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108,99,255,.4);
    text-decoration: none;
}

.btn-stream-outline {
    background: transparent;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.855rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.18s ease;
    text-decoration: none;
}

.btn-stream-outline:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.28);
    color: #fff;
    text-decoration: none;
}

/* ---------- Results count ---------- */
.stream-results-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,.35);
}

/* ---------- Active filter chips ---------- */
.stream-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(108,99,255,.14);
    border: 1px solid rgba(108,99,255,.25);
    color: #a78bff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22em 0.65em;
    border-radius: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .stream-hero__title { font-size: 1.5rem; }
    .stream-sidebar { position: static; margin-bottom: 1rem; }
    .stream-az-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.65rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
    .stream-az-nav::-webkit-scrollbar {
        height: 0;
    }
    .stream-az-nav__link {
        flex: 0 0 auto;
        min-width: 2.15rem;
        min-height: 2.15rem;
        scroll-snap-align: start;
    }
    .media-card:hover { transform: none; }
    .channel-card:hover { transform: none; }
    .radio-card:hover { transform: none; }
}
