:root {
    color-scheme: dark;
    --ink: #f7f9fc;
    --muted: #94a3b8;
    --muted-strong: #c8d3e0;
    --night: #050b14;
    --panel: rgba(12, 23, 40, 0.84);
    --panel-strong: #101d31;
    --line: rgba(255, 255, 255, 0.1);
    --line-bright: rgba(255, 255, 255, 0.18);
    --coral: #ff5f64;
    --coral-dark: #e7444b;
    --aqua: #50d7d2;
    --gold: #ffc857;
    --success: #67e8a8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --header-height: 72px;
    --footer-height: 42px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    min-height: 100svh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 14%, rgba(80, 215, 210, 0.09), transparent 31%),
        radial-gradient(circle at 84% 80%, rgba(255, 95, 100, 0.11), transparent 30%),
        linear-gradient(145deg, #040912 0%, #07111f 48%, #050a13 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.38;
}

.ambient-one {
    top: -180px;
    left: -120px;
    background: rgba(80, 215, 210, 0.28);
}

.ambient-two {
    right: -160px;
    bottom: -180px;
    background: rgba(255, 95, 100, 0.27);
}

.site-shell {
    width: 100%;
    max-width: 1024px;
    height: 100svh;
    margin: 0 auto;
    display: grid;
    grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
    overflow: hidden;
    background: rgba(5, 11, 20, 0.58);
    border-inline: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.site-header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(16px, 3.5vw, 38px);
    border-bottom: 1px solid var(--line);
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 780;
    letter-spacing: -0.04em;
}

.brand-symbol {
    position: relative;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--coral), #ff7b65);
    box-shadow: 0 9px 24px rgba(255, 95, 100, 0.28);
}

.brand-symbol::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid white;
}

.brand-symbol span {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--aqua);
    border: 2px solid #07111f;
}

.brand-name {
    font-size: 20px;
}

.brand-name span {
    color: var(--coral);
}

.main-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(2px, 1vw, 10px);
}

.nav-link {
    position: relative;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--aqua);
    transform: translateX(-50%);
}

.nav-cta {
    padding-inline: 14px;
    color: white;
    background: rgba(255, 95, 100, 0.13);
    border: 1px solid rgba(255, 95, 100, 0.25);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-cta.is-active {
    background: var(--coral);
}

.nav-user {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.user-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(80, 215, 210, 0.38);
    border-radius: 50%;
    color: #04121a;
    background: linear-gradient(145deg, var(--aqua), #8de8cf);
    box-shadow: 0 8px 20px rgba(80, 215, 210, 0.16);
    font-size: 12px;
    font-weight: 900;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-logout {
    margin: 0;
}

.nav-logout-button {
    cursor: pointer;
    font: inherit;
}

.site-main {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 clamp(16px, 3.5vw, 38px);
    color: #75859a;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.site-footer p {
    margin: 0;
}

.footer-signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    white-space: nowrap;
}

.footer-signal i,
.live-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(103, 232, 168, 0.1);
}

.eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--aqua);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 20px;
    height: 1px;
    background: currentColor;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    box-shadow: 0 12px 30px rgba(255, 95, 100, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
    box-shadow: 0 15px 34px rgba(255, 95, 100, 0.32);
}

.button-secondary {
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--line-bright);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.button:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible,
input:focus-visible,
.password-field button:focus-visible,
.form-options a:focus-visible,
.form-switch a:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 2px;
}

.button-full {
    width: 100%;
}

/* Welcome */

.welcome-page {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(10px, 1.8vh, 18px);
    padding: clamp(15px, 2.6vh, 28px) clamp(18px, 4vw, 42px);
}

.hero-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
    align-items: center;
    gap: clamp(24px, 5vw, 58px);
}

.hero-copy {
    min-width: 0;
}

.hero-copy h1,
.auth-intro h1,
.register-summary h1 {
    margin: clamp(10px, 1.8vh, 18px) 0 0;
    color: white;
    font-size: clamp(38px, 6.1vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.064em;
    font-weight: 640;
}

.hero-copy h1 strong,
.auth-intro h1 strong,
.register-summary h1 strong {
    color: var(--coral);
    font-weight: 820;
}

.hero-summary {
    max-width: 560px;
    margin: clamp(12px, 2.1vh, 20px) 0 0;
    color: var(--muted-strong);
    font-size: clamp(14px, 1.7vw, 17px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(16px, 2.7vh, 28px);
}

.hero-stats {
    margin: clamp(16px, 2.6vh, 26px) 0 0;
    display: flex;
    gap: 0;
}

.hero-stats div {
    min-width: 92px;
    padding: 0 18px;
    border-left: 1px solid var(--line-bright);
}

.hero-stats div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stats dt {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 820;
    line-height: 1;
}

.hero-stats dd {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-visual {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
}

.screen-card {
    position: relative;
    width: 100%;
    padding: clamp(16px, 2.3vw, 24px);
    overflow: hidden;
    border: 1px solid var(--line-bright);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        var(--panel);
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

.screen-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 32%);
}

.screen-topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
}

.featured-logo-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.featured-logo {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.94);
    transition: transform 180ms ease, border-color 180ms ease;
}

.featured-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(80, 215, 210, 0.5);
}

.featured-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.screen-link {
    position: relative;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 12px;
    font-weight: 720;
}

.screen-link:hover,
.screen-link:focus-visible {
    color: white;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.feature-strip article {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.feature-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--aqua);
    background: rgba(80, 215, 210, 0.08);
    font-size: 9px;
    font-weight: 850;
}

.feature-strip h2 {
    margin: 0;
    font-size: 12px;
}

.feature-strip p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

/* Channels */

.channels-page {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(7px, 1.2vh, 11px);
    padding: clamp(10px, 1.8vh, 18px) clamp(14px, 3vw, 30px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h1 {
    margin: 5px 0 0;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.channel-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--muted);
}

.channel-total strong {
    color: var(--coral);
    font-size: 24px;
}

.channel-total span {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.channel-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(5px, 0.9vw, 9px);
}

.channel-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: 8px;
    padding: clamp(6px, 0.9vw, 9px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.channel-card:hover,
.channel-card:focus-visible {
    border-color: rgba(80, 215, 210, 0.42);
    background: linear-gradient(145deg, rgba(80, 215, 210, 0.09), rgba(255, 255, 255, 0.025));
    transform: translateY(-2px);
}

.channel-card:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 2px;
}

.channel-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -34px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(80, 215, 210, 0.035);
}

.channel-logo-wrap {
    min-width: 0;
    max-height: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
}

.channel-logo-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.channel-meta {
    min-width: 0;
}

.channel-meta span {
    color: var(--aqua);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.channel-meta h2 {
    margin: 2px 0 0;
    overflow: hidden;
    font-size: clamp(10px, 1.25vw, 14px);
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-number {
    position: absolute;
    top: 6px;
    right: 8px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 8px;
    font-weight: 800;
}

/* Player */

.player-page {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(7px, 1.25vh, 12px);
    padding: clamp(9px, 1.7vh, 17px) clamp(14px, 3vw, 30px);
}

.player-heading,
.player-channel-identity,
.schedule-heading {
    min-width: 0;
    display: flex;
    align-items: center;
}

.player-heading {
    justify-content: space-between;
    gap: 16px;
}

.player-channel-identity {
    gap: 11px;
}

.player-channel-logo {
    width: clamp(38px, 5vw, 48px);
    height: clamp(38px, 5vw, 48px);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 5px;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
}

.player-channel-logo img,
.player-placeholder-logo img,
.suggested-channel img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.player-heading h1 {
    margin: 4px 0 0;
    overflow: hidden;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1;
    letter-spacing: -0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-back {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--line-bright);
    border-radius: 10px;
    color: var(--muted-strong);
    text-decoration: none;
    font-size: 10px;
    font-weight: 760;
    white-space: nowrap;
}

.player-back:hover,
.player-back:focus-visible {
    color: white;
    border-color: rgba(80, 215, 210, 0.42);
    background: rgba(80, 215, 210, 0.06);
}

.player-back:focus-visible,
.suggested-channel:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 2px;
}

.watch-layout {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.34fr);
    gap: clamp(8px, 1.3vw, 13px);
}

.player-column {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(7px, 1.1vh, 10px);
}

.video-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-bright);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 40%, rgba(80, 215, 210, 0.08), transparent 38%),
        linear-gradient(145deg, #091421, #050a12);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3);
}

.video-stage::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 15px;
    z-index: 2;
    pointer-events: none;
}

.channel-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
    background: #02060c;
}

.video-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 95, 100, 0.08);
    filter: blur(55px);
}

.player-placeholder {
    position: relative;
    max-width: 480px;
    display: grid;
    grid-template-columns: clamp(76px, 11vw, 118px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2.5vw, 25px);
}

.player-placeholder-logo {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(10px, 1.6vw, 16px);
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.connection-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--aqua);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.connection-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.09);
}

.player-placeholder h2 {
    margin: 7px 0 0;
    font-size: clamp(17px, 2.5vw, 25px);
    letter-spacing: -0.035em;
}

.player-placeholder p {
    max-width: 370px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.current-program {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 16px;
    padding: 11px 14px;
    border: 1px solid rgba(80, 215, 210, 0.17);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(80, 215, 210, 0.075), rgba(255, 255, 255, 0.018));
}

.programme-kicker {
    color: var(--coral);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.current-program h2,
.suggested-panel h2,
.schedule-heading h2 {
    margin: 3px 0 0;
    font-size: 12px;
    letter-spacing: -0.02em;
}

.current-program p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.media-credit {
    display: block;
    margin-top: 3px;
    color: var(--muted-strong);
    font-size: 7px;
}

.media-credit a {
    color: var(--aqua);
    text-decoration: none;
}

.media-credit a:hover,
.media-credit a:focus-visible {
    text-decoration: underline;
}

.suggested-panel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: clamp(10px, 1.5vw, 14px);
    border: 1px solid var(--line-bright);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.suggested-list {
    min-height: 0;
    display: grid;
    grid-auto-rows: minmax(52px, auto);
    gap: 6px;
    padding-right: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(80, 215, 210, 0.6) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.suggested-list::-webkit-scrollbar {
    width: 7px;
}

.suggested-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.suggested-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(80, 215, 210, 0.58);
}

.suggested-channel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 8px;
    padding: 5px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
}

.suggested-channel:hover {
    border-color: rgba(80, 215, 210, 0.34);
    background: rgba(80, 215, 210, 0.055);
}

.suggested-channel > span {
    grid-row: 1 / -1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.95);
}

.suggested-channel strong {
    align-self: end;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggested-channel small {
    align-self: start;
    margin-top: 2px;
    color: var(--muted);
    font-size: 7px;
}

.suggested-timing {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.suggested-timing > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 7px;
}

.suggested-timing strong {
    color: var(--muted-strong);
    font-weight: 720;
}

.scroll-hint {
    display: block;
    color: var(--muted);
    font-size: 7px;
}

.programme-progress {
    height: 4px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.programme-progress i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--coral), var(--gold));
}

.schedule-panel {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 95, 100, 0.17);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 95, 100, 0.07), rgba(255, 255, 255, 0.018));
}

.schedule-heading {
    justify-content: space-between;
    gap: 10px;
}

.schedule-heading > span {
    display: none;
    color: var(--muted);
    font-size: 8px;
}

.schedule-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.schedule-list article {
    min-width: 0;
    padding-left: 9px;
    border-left: 1px solid var(--line-bright);
}

.schedule-list span,
.schedule-list strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-list span {
    color: var(--aqua);
    font-size: 7px;
    font-weight: 780;
    text-transform: uppercase;
}

.schedule-list strong {
    margin-top: 3px;
    color: var(--muted-strong);
    font-size: 8px;
    font-weight: 650;
}

/* Forms */

.auth-page,
.register-page {
    height: 100%;
    min-height: 0;
    display: grid;
    align-items: center;
    gap: clamp(24px, 5vw, 62px);
    padding: clamp(14px, 2.4vh, 25px) clamp(18px, 5vw, 54px);
}

.auth-page {
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
}

.register-page {
    grid-template-columns: minmax(250px, 0.72fr) minmax(430px, 1.28fr);
}

.auth-intro,
.register-summary {
    min-width: 0;
}

.auth-intro h1,
.register-summary h1 {
    font-size: clamp(38px, 5.4vw, 58px);
}

.auth-intro > p:not(.eyebrow),
.register-summary > p:not(.eyebrow) {
    margin: 16px 0 0;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.55;
}

.auth-benefits {
    margin-top: 22px;
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-benefits i {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--aqua);
    background: rgba(80, 215, 210, 0.09);
    font-style: normal;
    font-size: 10px;
}

.auth-card,
.register-card {
    min-width: 0;
    width: 100%;
    margin: auto;
    border: 1px solid var(--line-bright);
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.063), rgba(255, 255, 255, 0.018));
    box-shadow: var(--shadow);
}

.auth-card {
    max-width: 470px;
    padding: clamp(18px, 3.2vh, 30px);
}

.register-card {
    max-width: 620px;
    padding: clamp(16px, 2.5vh, 24px);
}

.form-heading {
    margin-bottom: 18px;
}

.form-kicker,
.register-topline span {
    color: var(--coral);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.form-heading h2,
.register-topline h2 {
    margin: 5px 0 0;
    font-size: clamp(20px, 3vw, 28px);
    letter-spacing: -0.035em;
}

.form-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.field > span:first-child {
    color: var(--muted-strong);
    font-size: 10px;
    font-weight: 730;
}

.field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line-bright);
    border-radius: 11px;
    outline: none;
    color: white;
    background: rgba(3, 9, 17, 0.5);
    font-size: 12px;
    transition: border-color 160ms ease, background 160ms ease;
}

.field input::placeholder {
    color: #65758a;
}

.field input:focus {
    border-color: rgba(80, 215, 210, 0.62);
    background: rgba(3, 9, 17, 0.72);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 58px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 7px;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    color: var(--aqua);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 15px;
    color: var(--muted);
    font-size: 10px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-option input {
    accent-color: var(--coral);
}

.form-options a,
.form-switch a {
    color: var(--aqua);
    text-decoration: none;
    font-weight: 720;
}

.form-message {
    min-height: 16px;
    margin: 7px 0 0;
    color: var(--gold);
    font-size: 9px;
    line-height: 1.35;
    text-align: center;
}

.form-message.is-error {
    color: var(--coral);
}

.form-switch {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.step-list {
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
}

.step-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.step-list li > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-bright);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 820;
}

.step-list li.is-current,
.step-list li.is-complete {
    color: white;
}

.step-list li.is-current > span {
    color: white;
    border-color: var(--coral);
    background: var(--coral);
}

.step-list li.is-complete > span {
    color: var(--aqua);
    border-color: rgba(80, 215, 210, 0.4);
    background: rgba(80, 215, 210, 0.08);
}

.step-list strong,
.step-list small {
    display: block;
}

.step-list strong {
    font-size: 11px;
}

.step-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.register-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.register-topline h2 {
    font-size: 22px;
}

.mini-progress {
    width: 96px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.mini-progress i {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--coral), var(--gold));
    transition: width 180ms ease;
}

.form-step {
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 11px;
}

.field-wide {
    grid-column: 1 / -1;
}

.form-note {
    min-height: 50px;
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(80, 215, 210, 0.14);
    border-radius: 11px;
    background: rgba(80, 215, 210, 0.045);
}

.form-note > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--aqua);
    background: rgba(80, 215, 210, 0.1);
    font-size: 10px;
    font-weight: 850;
}

.form-note p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.wizard-actions .button {
    min-width: 112px;
}

.wizard-actions .button-primary {
    margin-left: auto;
}

.wizard-actions button:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.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;
}

/* Responsive, fixed-viewport layouts */

@media (max-width: 760px) {
    :root {
        --header-height: 62px;
        --footer-height: 36px;
    }

    .site-header {
        gap: 8px;
        padding-inline: 12px;
    }

    .brand-name {
        display: none;
    }

    .brand-symbol {
        width: 31px;
        height: 31px;
        border-radius: 10px;
    }

    .main-nav {
        flex: 1;
    }

    .nav-link {
        flex: 0 1 auto;
        padding: 8px 6px;
        font-size: 11px;
    }

    .nav-cta {
        padding-inline: 8px;
    }

    .nav-user {
        gap: 0;
    }

    .user-name {
        display: none;
    }

    .user-avatar {
        width: 29px;
        height: 29px;
    }

    .site-footer {
        padding-inline: 13px;
        font-size: 9px;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 0.72fr);
        gap: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 8vw, 48px);
    }

    .hero-summary {
        font-size: 12px;
    }

    .hero-stats div {
        min-width: 70px;
        padding-inline: 10px;
    }

    .featured-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-logo:nth-child(n+5) {
        display: none;
    }

    .feature-strip p {
        display: none;
    }

    .channel-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .channel-card {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        justify-items: center;
        gap: 3px;
        padding: 5px;
        text-align: center;
    }

    .channel-logo-wrap {
        width: min(100%, 66px);
        height: 100%;
        max-height: 66px;
    }

    .channel-meta span,
    .channel-number {
        display: none;
    }

    .channel-meta h2 {
        max-width: 100%;
        margin: 0;
        font-size: clamp(8px, 1.8vw, 11px);
    }

    .watch-layout {
        grid-template-columns: minmax(0, 1fr) 154px;
    }

    .suggested-panel {
        padding: 9px;
    }

    .suggested-channel {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 6px;
        padding: 4px 5px;
    }

    .suggested-channel > span {
        width: 32px;
        height: 32px;
    }

    .schedule-panel {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .auth-page,
    .register-page {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 12px clamp(15px, 5vw, 34px);
    }

    .auth-intro,
    .register-summary {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 8px 16px;
    }

    .auth-intro .eyebrow,
    .register-summary .eyebrow {
        grid-column: 1 / -1;
    }

    .auth-intro h1,
    .register-summary h1 {
        margin-top: 4px;
        font-size: 31px;
        white-space: nowrap;
    }

    .auth-intro h1 br,
    .register-summary h1 br {
        display: none;
    }

    .auth-intro > p:not(.eyebrow),
    .register-summary > p:not(.eyebrow),
    .auth-benefits,
    .step-list {
        display: none;
    }

    .auth-card,
    .register-card {
        max-width: 620px;
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .welcome-page {
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 12px 14px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: center;
        gap: 11px;
    }

    .hero-copy h1 {
        margin-top: 7px;
        font-size: clamp(32px, 11vw, 44px);
    }

    .hero-summary {
        margin-top: 9px;
        line-height: 1.4;
    }

    .hero-actions {
        margin-top: 12px;
    }

    .hero-actions .button {
        min-height: 39px;
        padding-inline: 13px;
        font-size: 11px;
    }

    .hero-stats {
        margin-top: 12px;
    }

    .hero-stats dt {
        font-size: 20px;
    }

    .hero-stats dd {
        font-size: 8px;
    }

    .screen-card {
        max-height: 172px;
        padding: 11px;
        border-radius: 20px;
        transform: none;
    }

    .screen-topline {
        margin-bottom: 8px;
    }

    .featured-logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .featured-logo {
        padding: 6px;
        border-radius: 10px;
    }

    .featured-logo:nth-child(n+5) {
        display: none;
    }

    .screen-link {
        margin-top: 8px;
        font-size: 10px;
    }

    .feature-strip {
        gap: 5px;
    }

    .feature-strip article {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 4px;
        padding: 6px 4px;
        text-align: center;
    }

    .feature-icon {
        width: 23px;
        height: 23px;
        border-radius: 7px;
        font-size: 7px;
    }

    .feature-strip h2 {
        font-size: 9px;
    }

    .channels-page {
        padding: 8px 10px;
    }

    .section-heading h1 {
        font-size: 22px;
    }

    .channel-total strong {
        font-size: 22px;
    }

    .channel-card {
        border-radius: 11px;
    }

    .channel-meta h2 {
        font-size: clamp(7px, 2.15vw, 10px);
    }

    .player-page {
        gap: 6px;
        padding: 7px 9px;
    }

    .player-channel-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .player-heading h1 {
        font-size: 20px;
    }

    .player-back {
        min-height: 30px;
        padding-inline: 9px;
        font-size: 8px;
    }

    .watch-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) 66px;
        gap: 6px;
    }

    .player-column {
        gap: 6px;
    }

    .video-stage {
        padding: 0;
        border-radius: 15px;
    }

    .video-stage::before {
        inset: 7px;
        border-radius: 10px;
    }

    .player-placeholder {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .player-placeholder-logo {
        padding: 8px;
        border-radius: 15px;
    }

    .player-placeholder h2 {
        margin-top: 4px;
        font-size: 15px;
    }

    .player-placeholder p {
        margin-top: 4px;
        font-size: 8px;
    }

    .current-program {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 7px 9px;
        border-radius: 12px;
    }

    .current-program p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .suggested-panel {
        grid-template-columns: 82px minmax(0, 1fr);
        grid-template-rows: 1fr;
        align-items: center;
        gap: 6px;
        padding: 6px;
        border-radius: 13px;
    }

    .suggested-panel h2 {
        font-size: 10px;
    }

    .suggested-list {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        gap: 4px;
        padding-right: 0;
        padding-bottom: 3px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
    }

    .suggested-channel {
        display: grid;
        flex: 0 0 52px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        place-items: center;
        padding: 3px;
        scroll-snap-align: start;
    }

    .suggested-channel > span {
        grid-row: auto;
        width: 42px;
        height: 42px;
    }

    .suggested-channel strong,
    .suggested-channel small,
    .suggested-timing {
        display: none;
    }

    .schedule-panel {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 7px;
        padding: 7px 8px;
        border-radius: 12px;
    }

    .schedule-heading h2 {
        font-size: 9px;
    }

    .schedule-list {
        gap: 4px;
    }

    .schedule-list article {
        padding-left: 5px;
    }

    .schedule-list strong {
        font-size: 7px;
    }

    .auth-page,
    .register-page {
        padding: 10px 12px;
    }

    .auth-intro h1,
    .register-summary h1 {
        font-size: 27px;
    }

    .form-heading {
        margin-bottom: 12px;
    }

    .form-heading h2,
    .register-topline h2 {
        font-size: 20px;
    }

    .field {
        margin-bottom: 9px;
    }

    .field input {
        height: 39px;
    }

    .register-card {
        padding: 13px;
    }

    .register-topline {
        margin-bottom: 10px;
    }

    .field-grid {
        gap: 0 8px;
    }

    .form-note {
        min-height: 44px;
        padding: 6px 8px;
    }

    .wizard-actions .button {
        min-width: 92px;
        min-height: 39px;
        padding-inline: 11px;
        font-size: 10px;
    }
}

@media (max-width: 410px) {
    .nav-link {
        padding-inline: 4px;
        font-size: 10px;
    }

    .nav-cta {
        max-width: 76px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-signal {
        display: none;
    }

    .hero-summary {
        max-width: 330px;
    }

    .hero-stats div:nth-child(2) {
        display: none;
    }

    .channel-card {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 4px;
    }

    .player-back {
        width: 31px;
        overflow: hidden;
        color: transparent;
        white-space: nowrap;
    }

    .player-back span {
        color: var(--muted-strong);
    }

    .player-placeholder {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .player-placeholder p {
        display: none;
    }

    .suggested-panel {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .suggested-channel > span {
        width: 36px;
        height: 36px;
    }

    .schedule-panel {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .schedule-list article:nth-child(3) {
        display: none;
    }

    .schedule-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-height: 650px) {
    :root {
        --header-height: 58px;
        --footer-height: 32px;
    }

    .welcome-page,
    .channels-page,
    .auth-page,
    .register-page {
        padding-block: 9px;
    }

    .hero-copy h1 {
        font-size: clamp(31px, 7vh, 48px);
    }

    .hero-summary {
        margin-top: 9px;
        line-height: 1.38;
    }

    .hero-actions,
    .hero-stats {
        margin-top: 10px;
    }

    .feature-strip p,
    .auth-benefits,
    .register-summary > p:not(.eyebrow) {
        display: none;
    }

    .auth-intro h1,
    .register-summary h1 {
        font-size: 34px;
    }

    .auth-intro > p:not(.eyebrow) {
        margin-top: 10px;
        font-size: 12px;
    }

    .step-list {
        margin-top: 12px;
        gap: 6px;
    }

    .step-list li > span {
        width: 28px;
        height: 28px;
    }

    .auth-card,
    .register-card {
        padding-block: 14px;
    }

    .form-heading {
        margin-bottom: 11px;
    }

    .field {
        margin-bottom: 8px;
    }

    .field input {
        height: 38px;
    }

    .player-page {
        gap: 6px;
        padding-block: 7px;
    }

    .player-channel-logo {
        width: 34px;
        height: 34px;
    }

    .player-heading h1 {
        font-size: 21px;
    }

    .current-program {
        padding-block: 7px;
    }

    .schedule-panel {
        padding-block: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Security, privacy and administrator surfaces */
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #07111f;
}

.skip-link:focus { transform: translateY(0); }

.status-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(91, 232, 226, .35);
    border-radius: 12px;
    background: rgba(91, 232, 226, .08);
    color: var(--muted-strong);
    font-size: 12px;
}

.footer-links { display: flex; gap: 14px; align-items: center; }
.footer-links a { color: var(--muted); font-size: 10px; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }

.cookie-banner {
    position: fixed;
    z-index: 900;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(900px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 18, 31, .98);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; color: var(--ink); }
.cookie-banner p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cookie-banner [data-consent-message] { color: #ffb95a; font-size: 11px; }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: center; }
.cookie-actions .button { min-height: 38px; padding: 8px 13px; font-size: 10px; }
.cookie-actions a { color: var(--muted-strong); font-size: 10px; }

.policy-page,
.statistics-page {
    width: min(100%, 1024px);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow: auto;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 42px) 36px;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.policy-page > header { max-width: 760px; margin-bottom: 24px; }
.policy-page h1, .statistics-page h1 { margin: 7px 0 8px; color: var(--ink); font-size: clamp(32px, 5vw, 54px); letter-spacing: -.04em; }
.policy-page h2, .data-panel h2 { margin: 0 0 9px; color: var(--ink); font-size: 17px; }
.policy-page p, .policy-page li { color: var(--muted); font-size: 13px; line-height: 1.68; }
.policy-page a, .data-panel a { color: var(--aqua); }
.policy-page section { margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.policy-page ul { margin: 0; padding-left: 20px; }
.policy-table { margin: 0; }
.policy-table div { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.policy-table div:first-child { border-top: 0; }
.policy-table dt { color: var(--ink); font-weight: 700; }
.policy-table dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.statistics-page .section-heading { margin: 14px 0 18px; }
.statistics-page .section-heading p { color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-cards article { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.stat-cards span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat-cards strong { display: block; margin-top: 7px; color: var(--ink); font-size: 24px; }
.data-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.table-scroll { overflow: auto; }
.data-panel table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 11px; }
.data-panel th, .data-panel td { padding: 10px 9px; border-top: 1px solid var(--line); text-align: left; color: var(--muted); }
.data-panel thead th { border-top: 0; color: var(--muted-strong); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.data-panel tbody th { color: var(--ink); }
.status-pill { display: inline-flex; padding: 3px 7px; border-radius: 99px; background: rgba(91,232,226,.1); color: var(--aqua); font-size: 9px; text-transform: uppercase; }

@media (max-width: 760px) {
    .cookie-banner { grid-template-columns: 1fr; }
    .cookie-actions { justify-content: flex-start; }
    .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-links { gap: 8px; }
}

/* Protected adaptive stream status */
.stream-quality {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 36px);
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(4, 10, 18, 0.8);
    color: #f5f8fc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.stream-quality span {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 0 4px rgba(80, 215, 210, 0.12);
}

.stream-quality strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-error {
    position: absolute;
    z-index: 4;
    left: 18px;
    right: 18px;
    bottom: 58px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 95, 100, 0.35);
    border-radius: 10px;
    background: rgba(43, 10, 16, 0.88);
    color: #ffd8da;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 620px) {
    .stream-quality {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        padding: 6px 9px;
    }

    .stream-quality strong {
        font-size: 9px;
    }
}