.sq-tv {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 4rem) 5% clamp(3rem, 6vw, 6rem);
}
.sq-tv [hidden] { display: none; }
.sq-tv-heading { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sq-tv-heading h1 {
    margin: 0 0 .45rem;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1;
}
.sq-tv-heading p { margin: 0; font-size: clamp(1rem, 2vw, 1.2rem); }
.sq-tv-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
}
.sq-tv-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #161616;
}
.sq-tv-player iframe,
.sq-tv-poster,
.sq-tv-poster img { width: 100%; height: 100%; border: 0; display: block; }
.sq-tv-poster img { object-fit: cover; opacity: .8; }
.sq-tv-play-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: .8rem 1.2rem;
    border-radius: 8px;
    background: var(--yellow, #ffdb00);
    color: #141414;
    font-weight: 850;
    white-space: nowrap;
}
.sq-tv-poster:hover img,
.sq-tv-poster:focus-visible img { opacity: 1; }
.sq-tv-source { margin: 1rem 0 .25rem; color: #494949; font-size: .9rem; font-weight: 650; }
.sq-tv-current { margin: 0 0 .65rem; font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.25; }
.sq-tv-external { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.sq-tv-player-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.sq-tv-library {
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    padding: clamp(.85rem, 2vw, 1.2rem);
}
.sq-tv-library h2 { margin: 0 0 .75rem; font-size: 1.4rem; }
.sq-tv-filters { display: grid; gap: .35rem; margin-bottom: .65rem; }
.sq-tv-filters label { font-size: .9rem; font-weight: 700; }
.sq-tv-filters label:not(:first-child) { margin-top: .3rem; }
.sq-tv-filters select,
.sq-tv-filters input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .45rem .6rem;
    border: 1px solid #777;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: #141414;
}
.sq-tv-empty { margin: 0 0 .75rem; }
.sq-tv-results { color: #494949; font-size: .88rem; }
.sq-tv-videos { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sq-tv-video {
    display: grid;
    grid-template-columns: minmax(72px, 30%) minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .5rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
}
.sq-tv-video[aria-current="true"] { border-color: #9c8000; background: #fff6bf; }
.sq-tv-video:hover { background: #fff6bf; }
.sq-tv-video img,
.sq-tv-thumb-placeholder { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: #181818; }
.sq-tv-video strong { display: block; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.sq-tv-video small { display: block; margin-top: .2rem; color: #494949; }
.sq-tv :focus-visible { outline: 2px solid #715b00; outline-offset: 3px; }
.sq-tv-poster:focus-visible { outline-offset: -4px; outline-color: var(--yellow, #ffdb00); }
@media (max-width: 820px) {
    .sq-tv-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

.sq-tv-submit {
    justify-self: start;
    min-height: 44px;
    margin-top: .3rem;
    padding: .4rem .8rem;
    border: 1px solid #aa8900;
    border-radius: 6px;
    background: var(--yellow, #ffdb00);
    color: #141414;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.sq-tv-pagination { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .8rem; }
.sq-tv-pagination .page-numbers { min-width: 32px; padding: .3rem .45rem; text-align: center; }
.sq-tv-pagination .current { border-radius: 4px; background: #fff6bf; }

.sq-tv-autocomplete { position: relative; }
.sq-tv-options {
    position: absolute;
    z-index: 3;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 19rem;
    overflow: auto;
    margin: .25rem 0 0;
    padding: .25rem;
    list-style: none;
    border: 1px solid #777;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 .4rem 1rem #0002;
    color: #141414;
}
.sq-tv-options li { min-height: 44px; padding: .4rem .55rem; border-radius: 4px; cursor: pointer; }
.sq-tv-options li:hover,
.sq-tv-options [aria-selected="true"] { background: #fff6bf; }
.sq-tv-options strong,
.sq-tv-options small { display: block; overflow-wrap: anywhere; }
.sq-tv-options strong { font-size: .92rem; line-height: 1.3; }
.sq-tv-options small { color: #494949; }
.sq-tv-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.sq-tv-club-videos { margin-block: 2rem 1rem; }
.sq-tv-club-videos .sq-tv-club-cards {
    display: grid;
    gap: .45rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}
.sq-tv-club-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
}
.sq-tv-club-card:hover { background: #fff6bf; }
.sq-tv-club-videos .sq-tv-club-card img {
    width: clamp(72px, 22%, 128px);
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    object-fit: cover;
    margin: 0;
}
.sq-tv-club-card strong,
.sq-tv-club-card small { display: block; overflow-wrap: anywhere; }
.sq-tv-club-card strong { line-height: 1.3; }
.sq-tv-club-card small { color: #494949; }
