/* HRS TV — layout and player chrome on top of the main site theme */

.page-tv.tv-playing .tv-chrome {
    display: none;
}

.page-tv .tv-gate {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
}

.page-tv .tv-gate .section-header {
    margin-bottom: 0.9rem;
}

.page-tv .tv-gate .section-header h2 {
    font-size: clamp(2.4rem, 6vw, 4.6rem) !important;
    line-height: 0.9 !important;
}

.page-tv .tv-gate .section-header p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.page-tv .tv-gate .section-header h2,
.page-tv .tv-gate .section-header p {
    color: #000000 !important;
}

.tv-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.tv-copy,
.tv-panel,
.tv-gate-panel {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1.35rem;
    text-align: left;
    overflow: hidden;
    border: none;
    box-shadow: none;
    color: #000000 !important;
}

.tv-gate-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1.15rem 0 1.25rem;
}

.tv-features--compact {
    margin-bottom: 0;
}

.tv-gate-state[hidden] {
    display: none !important;
}

.tv-gate-state--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    margin: 0;
}

.tv-gate-state--loading p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-gate-message {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-gate-message.is-error {
    color: #b42318 !important;
}

.tv-copy h3,
.tv-panel h3 {
    font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
    font-weight: 700;
    font-size: 2.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.45rem;
    color: #000000 !important;
}

.tv-copy p,
.tv-panel p,
.tv-panel label {
    color: #000000 !important;
}

.tv-copy > p,
.tv-panel__lede {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 0.95rem;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-features {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0 0 0.95rem;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-features li {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0.2rem;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.tv-status {
    min-height: 1.5rem;
    margin: 0 0 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-status.is-error {
    color: #b42318 !important;
}

.tv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.95rem;
}

.tv-actions .cta-button {
    min-height: 38px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    margin: 0.1rem 0;
}

.tv-panel__price {
    margin: -0.35rem 0 0.75rem !important;
    font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hrs-orange) !important;
}

.tv-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tv-field-row {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr;
    gap: 0.75rem;
}

.tv-field label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.62) !important;
}

.tv-field input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: #000000;
    background: #ffffff;
}

.tv-field input:focus {
    border-color: var(--hrs-orange);
}

.tv-panel .cta-button {
    width: 100%;
    margin-top: 0.4rem;
}

.tv-panel--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.tv-session-user {
    margin: 0 0 0.55rem !important;
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.45;
}

.tv-session-meta {
    margin: 0 0 1rem !important;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-manage {
    margin: 0 0 1rem !important;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.72) !important;
}

.tv-manage a {
    color: var(--hrs-orange) !important;
    font-weight: 600;
    text-decoration: none;
}

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

#accountPanel .tv-actions {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

#tvLogoutButton {
    width: 100%;
}

.tv-fine-print {
    margin: 0.85rem 0 0 !important;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.62) !important;
}

.tv-fine-print.is-error {
    color: #b42318 !important;
}

/* Fullscreen player — must override main site section rules (position: relative, padding) */

.page-tv.tv-playing {
    overflow: hidden;
    height: 100dvh;
}

@media (min-width: 768px) {
    html:has(body.page-tv.tv-playing),
    body.page-tv.tv-playing {
        overflow: hidden !important;
        scrollbar-gutter: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html:has(body.page-tv.tv-playing)::-webkit-scrollbar,
    body.page-tv.tv-playing::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
    }
}

.page-tv.tv-playing main {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
}

.page-tv.tv-playing #gate {
    display: none !important;
}

.page-tv main > section.tv-player {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    z-index: 1100;
    background: #000000;
    overflow: hidden;
}

.tv-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
}

.tv-player__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.tv-player__frame .youtube-slot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

.tv-player__frame iframe,
.tv-player__frame .youtube-slot,
.tv-player__frame .youtube-slot iframe,
.tv-player__frame .tv-native-video {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
    background: #000000;
}

.tv-player__frame .tv-native-video {
    object-fit: contain;
}

.tv-player__frame .tv-embed-x {
    width: min(100%, 560px) !important;
    margin: 0 auto;
    background: #000000;
}

.tv-player__frame .link-split {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: 0;
    background: #000000;
    overflow: hidden;
}

.link-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    color: #ffffff;
    overflow: hidden;
}

.link-split__qr {
    flex: 0 0 auto;
    height: 100%;
    width: auto;
    aspect-ratio: 1;
    max-width: min(100%, 100dvh);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2vh, 1.5rem);
    background: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.link-split__qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.link-split__qr-fallback {
    padding: 1rem;
    color: #333333;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.link-split__content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.75rem;
    box-sizing: border-box;
    padding: clamp(1rem, 2vh, 1.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vh, 2rem);
    background: radial-gradient(circle at top right, rgba(255, 75, 17, 0.18), rgba(0, 0, 0, 0.96) 62%);
    cursor: pointer;
    color: #ffffff !important;
}

.tv-player__frame .link-split__title,
.tv-player__frame .link-split__meta,
.tv-player__frame .link-split__url,
.tv-player__frame .link-split__hint {
    color: rgba(255, 255, 255, 0.92) !important;
}

.tv-player__frame .link-split__eyebrow {
    color: #ff4b11 !important;
}

.link-split__thumb {
    display: block;
    width: min(100%, 720px);
    max-height: min(42vh, 420px);
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.link-split__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff4b11;
}

.link-split__title {
    margin: 0;
    font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    font-style: italic;
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.link-split__meta,
.link-split__url,
.link-split__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.link-split__url {
    font-size: 0.92rem;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.62);
}

.link-split__hint {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .link-split {
        flex-direction: column;
    }

    .link-split__qr {
        width: 100%;
        height: auto;
        max-width: none;
        aspect-ratio: 1;
        max-height: 42vh;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .link-split__content {
        flex: 1 1 auto;
        min-height: 0;
        justify-content: flex-start;
    }
}

.tv-empty-state {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tv-end-slide {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    padding: 2rem;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(255, 75, 17, 0.18), transparent 36rem),
        linear-gradient(135deg, #050505 0%, #121212 52%, #050505 100%);
}

.tv-tuning {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 4rem;
    margin-bottom: 0.25rem;
}

.tv-tuning span {
    width: 0.45rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #ff4b11;
    box-shadow: 0 0 16px rgba(255, 75, 17, 0.72);
    animation: tv-tuning-pulse 1.1s ease-in-out infinite;
}

.tv-tuning span:nth-child(2) {
    animation-delay: 0.14s;
}

.tv-tuning span:nth-child(3) {
    animation-delay: 0.28s;
}

.tv-tuning span:nth-child(4) {
    animation-delay: 0.42s;
}

.tv-end-slide__kicker,
.tv-end-slide__title,
.tv-end-slide__body {
    margin: 0;
}

.tv-end-slide__kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ff4b11;
}

.tv-end-slide__title {
    font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    line-height: 0.9;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tv-end-slide__body {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

@keyframes tv-tuning-pulse {
    0%,
    100% {
        height: 1rem;
        opacity: 0.45;
    }

    50% {
        height: 4rem;
        opacity: 1;
    }
}

.tv-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    z-index: 6;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.tv-progress[hidden] {
    display: none !important;
}

.tv-progress__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4b11, #ff7a45);
    box-shadow: 0 0 14px rgba(255, 75, 17, 0.55);
}

.tv-open-layer {
    display: none !important;
}

.tv-hud-reveal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    z-index: 4;
    background: transparent;
    pointer-events: none;
}

.tv-player--hud-idle .tv-hud-reveal {
    pointer-events: auto;
}

.tv-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}

.tv-player--hud-idle .tv-hud {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.tv-hud__info {
    min-width: 0;
}

.tv-hud__kicker,
.tv-hud__title,
.tv-hud__meta {
    margin: 0;
}

.tv-hud__kicker {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff4b11;
}

.tv-hud__title {
    margin-top: 0.15rem;
    font-family: 'Barlow Condensed', 'Archivo Black', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.65rem);
    font-style: italic;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tv-hud__meta {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.tv-hud__actions {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: center;
    gap: 0.65rem;
    justify-content: end;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tv-hud__btn {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
    min-height: 38px;
    padding: 0.58rem 0.82rem;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tv-hud__btn:hover,
.tv-hud__btn:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    outline: none;
}

.tv-hud__btn.is-active {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--hrs-orange);
}

.tv-hud__group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
}

.tv-hud__group--transport {
    order: 1;
}

.tv-volume {
    order: 2;
    gap: 0.45rem;
    padding-left: 0.35rem;
    padding-right: 0.55rem;
}

.tv-hud__group--mode {
    order: 3;
}

.tv-hud__group--session {
    order: 4;
}

.tv-volume__mute {
    min-width: 54px;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.tv-volume__range {
    width: clamp(96px, 10vw, 150px);
    accent-color: var(--hrs-orange);
    cursor: pointer;
}

.tv-volume__label {
    min-width: 3.1rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.05em;
    text-align: right;
}

.tv-hud__btn--exit {
    background: var(--hrs-navbar-gradient);
    border-color: transparent;
}

.page-tv .footer {
    background: transparent !important;
    color: #ffffff !important;
}

.page-tv .footer .footer-section h4,
.page-tv .footer .footer-section p,
.page-tv .footer .footer-section a,
.page-tv .footer .footer-bottom p {
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .tv-shell {
        grid-template-columns: 1fr;
    }

    .tv-hud {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .tv-hud__actions {
        justify-content: start;
        grid-template-columns: repeat(2, minmax(0, auto));
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-tv .tv-nav-menu {
        display: none;
    }

    .page-tv .tv-gate {
        padding-top: 5.5rem;
    }
}

@media (max-width: 560px) {
    .tv-field-row {
        grid-template-columns: 1fr;
    }

    .tv-actions .cta-button {
        width: 100%;
    }

    .tv-hud__btn {
        flex: 1 1 calc(50% - 0.25rem);
    }

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

    .tv-hud__group {
        width: 100%;
        box-sizing: border-box;
    }

    .tv-hud__group--transport .tv-hud__btn {
        flex: 1 1 0;
    }

    .tv-volume {
        flex: 1 1 100%;
    }

    .tv-volume__range {
        flex: 1 1 auto;
        width: auto;
    }

    .tv-hud__btn--exit {
        flex-basis: 100%;
    }
}
