/* ===================================================================
   Aerosmith TV (/tv) — a dark "screen" panel inside the content card.
   Markup: resources/views/tv/show.blade.php; behaviour: public/js/tv.js.
   =================================================================== */
.tv {
    --tv-bg: #141217;
    --tv-panel: #1f1c24;
    --tv-line: rgba(255, 255, 255, .12);
    --tv-muted: rgba(255, 255, 255, .62);
    --tv-red: #c8102e;
    background: var(--tv-bg);
    color: #fff;
    border-radius: 10px;
    padding: 1.75rem 2rem 2rem;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, .66);
}
.tv a { color: inherit; }

/* Header */
.tv-head { margin-bottom: 1.1rem; }
.tv-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.4rem;
    line-height: .95;
    letter-spacing: .02em;
    margin: 0;
}
.tv-title span {
    color: var(--tv-red);
}
.tv-sub { color: var(--tv-muted); margin: .35rem 0 0; }

/* Channels */
.tv-channels { display: flex; flex-direction: column; gap: .6rem; }
.tv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tv-chips__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tv-muted);
    margin-right: .25rem;
}
.tv-chip {
    appearance: none;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .3rem .8rem;
    font-size: .85rem;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, border-color .15s;
}
.tv-chip:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.tv-chip.is-active { background: var(--tv-red); border-color: var(--tv-red); }
.tv-chip:disabled { opacity: .35; cursor: default; }
.tv-chip--link { opacity: .7; }
.tv-chip .tv-chip__n { opacity: .65; font-size: .75rem; margin-left: .15rem; }

.tv-pickers { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.tv-picker { display: flex; align-items: center; gap: .4rem; margin: 0; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.tv-picker .form-select {
    /* A native select with no fixed width is as wide as its longest option, so no
       tour or song name gets cut off. */
    width: auto;
    max-width: 100%;
    background-color: var(--tv-panel);
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.tv-picker .form-select.is-active { border-color: var(--tv-red); box-shadow: 0 0 0 1px var(--tv-red); }
.tv-picker .tv-chips__label { white-space: nowrap; }

.tv-channel-line {
    margin: 1.1rem 0 .75rem;
    font-size: .9rem;
    color: var(--tv-muted);
    min-height: 1.4em;
}
.tv-channel-line strong { color: #fff; }

/* Stage: player + side column */
.tv-stage {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.tv-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.tv-screen > #tv-player,
.tv-screen > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tv-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    border: 0;
    color: #fff;
    background: radial-gradient(ellipse at center, rgba(20, 18, 23, .55), rgba(20, 18, 23, .92));
    cursor: pointer;
}
.tv-start:disabled { cursor: progress; }
.tv-start__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--tv-red);
    display: grid;
    place-items: center;
    font-size: 3rem;
    padding-left: .3rem;
    box-shadow: 0 6px 24px rgba(200, 16, 46, .45);
    transition: transform .15s;
}
.tv-start:not(:disabled):hover .tv-start__icon { transform: scale(1.07); }
.tv-start:disabled .tv-start__icon { opacity: .4; }
.tv-start__label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: .04em;
}
.tv-toast {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, .85);
    border: 1px solid var(--tv-line);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .85rem;
    white-space: nowrap;
}

/* Controls under the screen */
.tv-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-top: .9rem;
}
.tv-transport { display: flex; flex-wrap: wrap; gap: .5rem; }
.tv-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    padding: .45rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
}
.tv-btn:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, .08); }
.tv-btn:disabled { opacity: .35; cursor: default; }
.tv-btn--primary { background: var(--tv-red); border-color: var(--tv-red); padding-inline: 1.4rem; }
.tv-btn--primary:hover:not(:disabled) { background: #a70d26; border-color: #a70d26; }
.tv-btn--ghost { border-color: transparent; color: var(--tv-muted); font-weight: 400; }
.tv-toggles { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.tv-toggle { margin: 0; font-size: .88rem; color: var(--tv-muted); cursor: pointer; }
.tv-toggle .form-check-input { cursor: pointer; background-color: #3a3640; border-color: #555; }
.tv-toggle .form-check-input:checked { background-color: var(--tv-red); border-color: var(--tv-red); }
.tv-toggle .form-check-input:disabled ~ .form-check-label { opacity: .4; }

/* Side column */
.tv-side { display: flex; flex-direction: column; gap: 1rem; }
.tv-now, .tv-upnext {
    background: var(--tv-panel);
    border: 1px solid var(--tv-line);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}
.tv-now { border-top: 3px solid var(--tv-red); }
.tv-now__eyebrow, .tv-upnext__head {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tv-muted);
}
.tv-now__song {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.1rem;
    line-height: 1;
    margin: .3rem 0 .55rem;
}
.tv-now__song a { text-decoration: none; }
.tv-now__song a:hover { text-decoration: underline; }
.tv-now__show { font-weight: 600; }
.tv-now__show a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.tv-now__venue, .tv-now__tour { color: var(--tv-muted); font-size: .9rem; }
.tv-now__tour a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.tv-now__more { display: flex; flex-direction: column; gap: .35rem; margin-top: .8rem; }
.tv-now__more:empty { display: none; }
.tv-more-btn {
    appearance: none;
    text-align: left;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--tv-line);
    color: #fff;
    border-radius: 6px;
    padding: .4rem .65rem;
    font-size: .85rem;
    cursor: pointer;
}
.tv-more-btn:hover { background: rgba(255, 255, 255, .12); }
.tv-more-btn i { color: var(--tv-red); margin-right: .3rem; }

/* Up next */
.tv-upnext__list { list-style: none; margin: .5rem 0 0; padding: 0; }
.tv-upnext__list li + li { border-top: 1px solid var(--tv-line); }
.tv-upnext__item {
    appearance: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    text-align: left;
    background: transparent;
    border: 0;
    color: #fff;
    padding: .45rem 0;
    font-size: .9rem;
    cursor: pointer;
}
.tv-upnext__item:hover .tv-upnext__name { text-decoration: underline; }
.tv-upnext__meta { color: var(--tv-muted); white-space: nowrap; }

.tv-seen { color: var(--tv-muted); font-size: .8rem; }
.tv-seen button {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

@media (max-width: 991.98px) {
    .tv-stage { grid-template-columns: 1fr; }
    /* Player first on narrow screens; the channel pickers follow it. */
    .tv { display: flex; flex-direction: column; }
    .tv-head { order: 0; }
    .tv-channel-line { order: 1; margin-top: 0; }
    .tv-stage { order: 2; }
    .tv-channels {
        order: 3;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid var(--tv-line);
    }
}
@media (max-width: 575.98px) {
    .tv { padding: 1.1rem 1rem 1.25rem; border-radius: 8px; }
    .tv-title { font-size: 2.6rem; }
    .tv-picker { flex-direction: column; align-items: stretch; }
    .tv-picker .form-select { width: 100%; }
    .tv-start__icon { width: 64px; height: 64px; font-size: 2.2rem; }
    .tv-start__label { font-size: 1.3rem; }
    .tv-controls { flex-direction: column; align-items: stretch; }
    .tv-transport .tv-btn--primary { flex: 1; }
}
