:root {
    --bg: #0e1116;
    --bg-elev: #161b22;
    --fg: #e6edf3;
    --fg-dim: #8b949e;
    --accent: #4493f8;
    --accent-fg: #ffffff;
    --error: #f85149;
    --warn: #d29922;
    --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

/* ── android banner ────────────────────────────────────────────────── */
.android-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #1c2d3f;
    border-bottom: 1px solid #2a4a6b;
    font-size: 14px;
    color: var(--fg);
}
.android-banner span { flex: 1; }
.android-banner-btn {
    padding: 6px 14px;
    background: var(--accent);
    color: var(--accent-fg);
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.android-banner-close {
    background: none;
    border: none;
    color: var(--fg-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

/* ── header ────────────────────────────────────────────────────────── */
header {
    padding: 16px 24px;
    border-bottom: 1px solid #21262d;
    display: flex;
    align-items: center;
}
header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.fixture-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #f0b429;
    text-decoration: none;
    border: 1px solid rgba(240,180,41,.3);
    border-radius: 99px;
    padding: 5px 13px;
    background: rgba(240,180,41,.08);
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.fixture-link:hover {
    background: rgba(240,180,41,.18);
    border-color: rgba(240,180,41,.6);
}

/* ── main layout ───────────────────────────────────────────────────── */
main {
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── status chip ───────────────────────────────────────────────────── */
.status {
    padding: 8px 12px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--fg-dim);
    font-size: 13px;
    margin-bottom: 10px;
}
.status[data-kind="error"] { color: var(--error); }
.status[data-kind="warn"]  { color: var(--warn); }

/* ── channel strip ─────────────────────────────────────────────────── */
.channel-strip { width: 100%; }

.channels {
    list-style: none;
    padding: 4px 2px 8px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-elev);
    border: 1px solid #21262d;
    border-radius: var(--radius);
    color: var(--fg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 120ms, transform 120ms, background 120ms;
    white-space: nowrap;
}
.channel-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.channel-btn.active {
    border-color: var(--accent);
    background: #1a2332;
    color: var(--accent);
}
.channel-btn .play-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 120ms;
}
.channel-btn.active .play-icon {
    background: #1c6ed4;
}

/* ── player section ────────────────────────────────────────────────── */
.player-section { width: 100%; }

.player-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-height: 24px;
}
.now-playing {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
}
.player-status {
    font-size: 12px;
    color: var(--fg-dim);
}
.player-status[data-kind="error"] { color: var(--error); }

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #21262d;
}

/* ── Video.js / city-theme overrides ───────────────────────────────── */

/* Fill the aspect-ratio container */
.video-wrap .video-js {
    width: 100%;
    height: 100%;
    font-family: inherit;
}
.video-wrap .video-js .vjs-tech {
    width: 100%;
    height: 100%;
}

/* Control bar — gradient fade from transparent so video shows through */
.video-wrap .vjs-control-bar {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    height: 3.4em;
    padding: 0 6px;
}

/* Progress bar & volume level — site accent colour */
.video-wrap .vjs-play-progress,
.video-wrap .vjs-play-progress::before,
.video-wrap .vjs-volume-level,
.video-wrap .vjs-volume-level::before {
    background: var(--accent);
}
.video-wrap .vjs-load-progress,
.video-wrap .vjs-load-progress div {
    background: rgba(68, 147, 248, 0.25);
}
.video-wrap .vjs-slider {
    background: rgba(255, 255, 255, 0.15);
}

/* LIVE badge */
.video-wrap .vjs-live-control {
    display: flex;
    align-items: center;
}
.video-wrap .vjs-live-display {
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Pulse the red dot when actually at the live edge */
.video-wrap .vjs-liveui .vjs-seek-to-live-control.vjs-at-live-edge .vjs-icon-placeholder::before {
    color: #ff4444;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Big play button — circular, centred, blurred glass */
.video-wrap .vjs-big-play-button {
    width: 68px;
    height: 68px;
    line-height: 68px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    transition: background 150ms, border-color 150ms, transform 150ms;
}
.video-wrap .vjs-big-play-button:hover,
.video-wrap .vjs-big-play-button:focus {
    background: rgba(68, 147, 248, 0.55);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
}
.video-wrap .vjs-big-play-button .vjs-icon-placeholder::before {
    font-size: 2em;
    line-height: 68px;
}

/* Tooltip / time display */
.video-wrap .vjs-time-tooltip,
.video-wrap .vjs-mouse-display .vjs-time-tooltip {
    background: var(--bg-elev);
    color: var(--fg);
    border-radius: 4px;
    font-size: 11px;
}

/* Focus rings — keep keyboard nav visible but subtle */
.video-wrap .vjs-button:focus .vjs-icon-placeholder::before,
.video-wrap .vjs-control:focus .vjs-icon-placeholder::before {
    text-shadow: 0 0 0 2px var(--accent);
}
/* ── watermark ─────────────────────────────────────────────────────── */
.watermark {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.03em;
    pointer-events: none;
    user-select: none;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* swap .watermark text for an image when ready:
   <img class="watermark" src="/logo.png" alt="" style="width:100px"> */

@media (max-width: 768px) and (orientation: portrait) {
    .watermark { display: none; }
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: var(--fg-dim);
    font-size: 15px;
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 4;
}
.overlay.hidden { display: none; }

/* ── unmute prompt ─────────────────────────────────────────────────── */
.unmute-prompt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    animation: fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.unmute-prompt[hidden] { display: none; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.unmute-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    padding: 14px 28px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 150ms, border-color 150ms, transform 150ms, box-shadow 150ms;
    animation: unmute-pulse 2.4s ease-in-out 0.8s infinite;
}
.unmute-btn:hover,
.unmute-prompt:focus-within .unmute-btn {
    background: rgba(68, 147, 248, 0.4);
    border-color: var(--accent);
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(68, 147, 248, 0.2);
    animation: none;
}
.unmute-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}
@keyframes unmute-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(68, 147, 248, 0); }
    50%       { box-shadow: 0 0 0 10px rgba(68, 147, 248, 0.18); }
}

/* ── spinner ───────────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ── match strip ───────────────────────────────────────────────────── */
.match-strip-section { width: 100%; }

.match-strip-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.match-strip-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-dim);
    display: flex;
    align-items: center;
    gap: 7px;
}
.ms-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: ms-blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ms-blink {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .3; transform: scale(.65); }
}
.match-strip-all {
    margin-left: auto;
    font-size: 12px;
    color: var(--fg-dim);
    text-decoration: none;
    transition: color .15s;
}
.match-strip-all:hover { color: var(--accent); }

.match-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    touch-action: pan-x;
}
.match-strip::-webkit-scrollbar { display: none; }

.ms-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--bg-elev);
    border: 1px solid #21262d;
    border-radius: var(--radius);
    padding: 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: border-color .15s;
}
.ms-card:hover { border-color: #3d444d; }
.ms-card-live {
    border-color: rgba(239,68,68,.35);
    background: linear-gradient(135deg, #161b22 0%, #1c1420 100%);
}
.ms-card-live:hover { border-color: rgba(239,68,68,.6); }

.ms-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #f0b429;
    background: rgba(240,180,41,.1);
    border: 1px solid rgba(240,180,41,.2);
    border-radius: 4px;
    padding: 2px 6px;
    align-self: flex-start;
}
.ms-tag-ko { color: var(--fg-dim); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }

.ms-teams {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ms-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}
.ms-team-r { align-items: flex-end; text-align: right; }
.ms-flag { font-size: 22px; line-height: 1; }
.ms-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.ms-team-r .ms-name { text-align: right; }

.ms-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding: 0 4px;
}
.ms-vs {
    font-size: 10px;
    font-weight: 700;
    color: var(--fg-dim);
    letter-spacing: .08em;
}
.ms-live-text { color: #ef4444; }
.ms-time {
    font-size: 13px;
    font-weight: 800;
    color: #f0b429;
    letter-spacing: -.01em;
}
.ms-date {
    font-size: 10px;
    color: var(--fg-dim);
    font-weight: 500;
    margin-top: 1px;
}
.ms-score {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.ms-venue {
    font-size: 10px;
    color: var(--fg-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .75;
}

/* ── chat overlay (inside .video-wrap) ─────────────────────────────── */
.chat-overlay {
    position: absolute;
    bottom: 3.6em;    /* sit above the VJS control bar */
    left: 0;
    right: 0;
    height: 45%;
    pointer-events: none;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 0 14px 6px;
    overflow: hidden;
}

.chat-bubble {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 18px;
    max-width: 75%;
    word-break: break-word;
    animation: bubble-rise 5s ease forwards;
    pointer-events: none;
    line-height: 1.35;
}

.bubble-nick {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
    margin-right: 5px;
    letter-spacing: 0.01em;
}

.chat-bubble-emoji {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 30px;
    padding: 0 4px;
    animation: bubble-emoji 3.5s ease forwards;
}

@keyframes bubble-rise {
    0%   { opacity: 0; transform: translateY(6px); }
    8%   { opacity: 1; transform: translateY(0); }
    65%  { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes bubble-emoji {
    0%   { opacity: 0; transform: translateY(8px) scale(0.75); }
    12%  { opacity: 1; transform: translateY(0) scale(1.15); }
    22%  { transform: scale(1); }
    65%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ── debug stats panel ──────────────────────────────────────────────── */
#debug-panel {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 10;
    min-width: 260px;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.debug-title {
    font-size: 11px;
    font-weight: bold;
    color: #aaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 4px;
}
.debug-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.debug-key {
    color: #888;
    flex-shrink: 0;
}
.debug-val {
    color: #fff;
    text-align: right;
    word-break: break-all;
    max-width: 160px;
}

/* ── room bar ───────────────────────────────────────────────────────── */
.room-bar {
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid #21262d;
    border-radius: var(--radius);
    padding: 12px 16px;
}

.room-create-btn {
    background: none;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: var(--fg-dim);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 7px 16px;
    cursor: pointer;
    transition: border-color 120ms, color 120ms, background 120ms;
}
.room-create-btn:hover {
    border-color: var(--accent);
    color: var(--fg);
    background: rgba(68, 147, 248, 0.07);
}

.room-active { display: flex; flex-direction: column; gap: 10px; }
.room-active[hidden] { display: none; }

.room-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.room-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fg-dim);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.room-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .08em;
    background: rgba(68, 147, 248, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    user-select: all;
}

.room-btn {
    background: none;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: var(--fg-dim);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    padding: 4px 12px;
    cursor: pointer;
    transition: border-color 120ms, color 120ms, background 120ms;
    white-space: nowrap;
}
.room-btn:hover {
    border-color: var(--accent);
    color: var(--fg);
    background: rgba(68, 147, 248, 0.07);
}
.room-btn-leave:hover {
    border-color: var(--error);
    color: var(--error);
    background: rgba(248, 81, 73, 0.07);
}
.room-btn-send {
    border-color: var(--accent);
    color: var(--accent);
    flex-shrink: 0;
}
.room-btn-send:hover {
    background: var(--accent);
    color: var(--accent-fg);
}

.room-nick-input {
    width: 80px;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: var(--fg);
    font-size: 13px;
    font-family: inherit;
    padding: 7px 8px;
    outline: none;
    transition: border-color 120ms;
}
.room-nick-input:focus { border-color: var(--accent); }
.room-nick-input::placeholder { color: var(--fg-dim); opacity: .7; }

.room-emoji-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.emoji-btn {
    background: none;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    line-height: 1;
    transition: transform 120ms, border-color 120ms, background 120ms;
}
.emoji-btn:hover {
    transform: scale(1.18);
    border-color: #555;
    background: rgba(255,255,255,.06);
}
.emoji-btn:active { transform: scale(0.95); }

.room-chat-form {
    display: flex;
    gap: 8px;
}
.room-chat-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: var(--fg);
    font-size: 13px;
    font-family: inherit;
    padding: 7px 12px;
    outline: none;
    transition: border-color 120ms;
    min-width: 0;
}
.room-chat-input:focus { border-color: var(--accent); }
.room-chat-input::placeholder { color: var(--fg-dim); opacity: .7; }

/* ════════════════════════════════════════════════════════════════════
   YouTube-alike player page
   ════════════════════════════════════════════════════════════════════ */

:root {
    --yt-bg:        #0f0f0f;
    --yt-bg2:       #1a1a1a;
    --yt-border:    #3f3f3f;
    --yt-fg:        #f1f1f1;
    --yt-fg-dim:    #aaaaaa;
    --yt-red:       #ff0000;
    --yt-red-dark:  #cc0000;
}

body.player-page {
    background: var(--yt-bg);
    color: var(--yt-fg);
}

/* ── YouTube-style header ──────────────────────────────────────────── */
.yt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    background: var(--yt-bg);
    border-bottom: 1px solid var(--yt-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.yt-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-logo-icon {
    width: 100px;
    height: 22px;
    overflow: visible;
}

.yt-logo:hover text {
    opacity: 0.8;
}

/* ── Page layout ───────────────────────────────────────────────────── */
.yt-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.yt-primary {
    width: 100%;
}

/* ── Video container ───────────────────────────────────────────────── */
body.player-page .video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 0;           /* YouTube has no rounded corners on the player */
    overflow: hidden;
    border: none;
}

/* ── Below-video metadata ──────────────────────────────────────────── */
.yt-below-video {
    padding: 12px 0 0;
    border-bottom: 1px solid var(--yt-border);
    padding-bottom: 16px;
}

.yt-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--yt-fg);
}

.yt-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.yt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yt-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 3px 8px 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    user-select: none;
}

.yt-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: yt-live-pulse 1.8s ease-in-out infinite;
}

@keyframes yt-live-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.85); }
}

.yt-status {
    margin: 0;
    font-size: 13px;
    color: var(--yt-fg-dim);
}
.yt-status[data-kind="error"] { color: var(--error); }
.yt-status[data-kind="warn"]  { color: var(--warn); }

/* ── Overlay ───────────────────────────────────────────────────────── */
body.player-page .overlay {
    background: rgba(0, 0, 0, 0.75);
    gap: 10px;
    font-size: 14px;
    color: var(--yt-fg-dim);
}

body.player-page .overlay .overlay-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* ── Video.js overrides — YouTube style ────────────────────────────── */

/* Fill the container */
body.player-page .video-wrap .video-js {
    width: 100%;
    height: 100%;
    font-family: inherit;
}
body.player-page .video-wrap .video-js .vjs-tech {
    width: 100%;
    height: 100%;
}

/* Hide city-theme artifacts */
body.player-page .video-wrap .video-js.vjs-theme-city .vjs-control-bar { background: none; }

/* Control bar — gradient, YouTube proportions */
body.player-page .video-wrap .vjs-control-bar {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    height: 3.6em;
    padding: 0 8px;
    transition: opacity 0.2s;
}

/* Progress bar — YouTube red */
body.player-page .video-wrap .vjs-play-progress,
body.player-page .video-wrap .vjs-play-progress::before {
    background: var(--yt-red);
}
body.player-page .video-wrap .vjs-play-progress::before {
    /* The circle scrubber dot */
    top: -4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    content: '';
}
body.player-page .video-wrap .vjs-progress-holder:hover .vjs-play-progress::before {
    transform: scale(1);
}

/* Loaded / buffered bar */
body.player-page .video-wrap .vjs-load-progress,
body.player-page .video-wrap .vjs-load-progress div {
    background: rgba(255, 255, 255, 0.25);
}

/* Track (the unfilled part) */
body.player-page .video-wrap .vjs-slider {
    background: rgba(255, 255, 255, 0.2);
}

/* Volume level */
body.player-page .video-wrap .vjs-volume-level,
body.player-page .video-wrap .vjs-volume-level::before {
    background: #fff;
}

/* Progress bar height — thicker on hover like YouTube */
body.player-page .video-wrap .vjs-progress-control .vjs-slider {
    height: 3px;
    transition: height 0.1s;
}
body.player-page .video-wrap .vjs-progress-control:hover .vjs-slider {
    height: 5px;
}

/* LIVE badge */
body.player-page .video-wrap .vjs-live-display {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
body.player-page .video-wrap .vjs-seek-to-live-control.vjs-at-live-edge .vjs-icon-placeholder::before {
    color: var(--yt-red);
    animation: live-pulse 1.6s ease-in-out infinite;
}

/* Big play button — YouTube style: no border, dark circle */
body.player-page .video-wrap .vjs-big-play-button {
    width: 68px;
    height: 68px;
    line-height: 68px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    transition: background 150ms, transform 150ms;
}
body.player-page .video-wrap .vjs-big-play-button:hover,
body.player-page .video-wrap .vjs-big-play-button:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.08);
}
body.player-page .video-wrap .vjs-big-play-button .vjs-icon-placeholder::before {
    font-size: 2.2em;
    line-height: 68px;
    color: #fff;
}

/* Tooltip */
body.player-page .video-wrap .vjs-time-tooltip,
body.player-page .video-wrap .vjs-mouse-display .vjs-time-tooltip {
    background: rgba(28,28,28,0.9);
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    padding: 3px 6px;
}

/* Focus outline — keep keyboard nav accessible */
body.player-page .video-wrap .vjs-button:focus .vjs-icon-placeholder::before,
body.player-page .video-wrap .vjs-control:focus .vjs-icon-placeholder::before {
    text-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
