:root {
    --explore-rail: 236px;
    --explore-bg: #f7f6f3;
    --explore-surface: #fff;
    --explore-muted-surface: #efede7;
    --explore-edge: #e3dfd5;
    --explore-text: #201e19;
    --explore-muted: #635d51;
    --explore-gold: var(--brand-foil);
    --explore-active: #f4ead4;
    --explore-button: var(--brand-gold);
    --explore-live: #bb263e;
}
[data-theme="dark"] {
    --explore-bg: var(--brand-ink);
    --explore-surface: var(--brand-surface);
    --explore-muted-surface: var(--brand-raised);
    --explore-edge: var(--brand-edge);
    --explore-text: var(--brand-text);
    --explore-muted: var(--brand-muted);
    --explore-gold: var(--brand-gold);
    --explore-active: var(--brand-raised);
    --explore-live: #ff8192;
}
body { background: var(--explore-bg); }
.explore-content, .explore-footer { margin-inline-start: var(--explore-rail); }
.explore-content { min-height: 78vh; }
.explore-nav, .explore-home, .explore-clip-dialog, #scoreViewTitle { color: var(--explore-text); }
.explore-nav {
    position: fixed;
    z-index: 100;
    inset: 0 auto 0 0;
    width: var(--explore-rail);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 22px 18px;
    background: var(--explore-surface);
    border: 0;
    border-inline-end: 1px solid var(--explore-edge);
    box-shadow: none;
}
.explore-brand { display: flex; align-items: center; align-self: start; gap: 7px; min-height: 55px; padding: 0 2px; color: inherit; text-decoration: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.06em; }
.explore-brand img { display: block; width: 39px; height: 39px; border-radius: 8px; object-fit: cover; }
.explore-nav-links { display: grid; gap: 5px; }
.explore-nav-links a, .explore-quiet, .explore-primary, .explore-sports button, .explore-clip-card, .explore-match {
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}
.explore-nav-links a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 10px; border-radius: 10px; font-size: .875rem; font-weight: 650; }
.explore-nav-icon { display: grid; place-items: center; width: 23px; color: var(--explore-muted); font-size: 1.35rem; line-height: 1; }
.explore-nav-links a:hover, .explore-quiet:hover, .explore-sports button:hover { background: var(--explore-muted-surface); }
.explore-nav-links a[aria-current="page"], .explore-sports button[aria-pressed="true"] {
    color: var(--explore-gold);
    background: var(--explore-active);
    border-color: var(--explore-gold);
}
.explore-nav-links a[aria-current="page"] .explore-nav-icon { color: inherit; }
.explore-search { position: relative; min-width: 0; }
.explore-search-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    min-height: 44px;
    background: var(--explore-muted-surface);
    border: 1px solid var(--explore-edge);
    border-radius: 10px;
}
.explore-search input { width: 100%; min-width: 0; color: inherit; border: 0; background: transparent; font: inherit; font-size: .875rem; }
.explore-search input::placeholder { color: var(--explore-muted); opacity: 1; }
.explore-search-icon { flex: 0 0 13px; height: 13px; border: 1.5px solid var(--explore-muted); border-radius: 50%; position: relative; }
.explore-search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--explore-muted); transform: rotate(45deg); bottom: -2px; right: -4px; }
.explore-search .search-results { width: min(310px, calc(100vw - 28px)); min-width: 0; left: 0; top: calc(100% + 6px); }
.explore-search .search-result-item { color: inherit; text-decoration: none; }
.explore-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.explore-account { border-top: 1px solid var(--explore-edge); padding-top: 15px; }
.explore-account #authButtons { flex-wrap: wrap; gap: 6px; }
.explore-account .user-dropdown { inset: calc(100% + 6px) auto auto 0; min-width: 175px; }
.explore-account .dropdown-item { width: 100%; border: 0; background: transparent; text-align: start; }
.explore-account .dropdown-item:hover { background: var(--explore-muted-surface); color: var(--explore-text); }
.explore-quiet, .explore-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 9px 13px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .875rem;
    font-weight: 700;
    background: transparent;
}
.explore-primary { background: var(--explore-button); color: var(--brand-ink); }
.explore-primary:hover { background: var(--brand-gold); color: var(--brand-ink); }
.explore-quiet { border-color: var(--explore-edge); }
.explore-quiet:disabled { opacity: .45; cursor: default; }
.explore-menu { margin-top: auto; align-self: start; min-width: 42px; }
.explore-nav :focus-visible, .explore-home :focus-visible, .explore-clip-dialog :focus-visible {
    outline: 2px solid var(--explore-gold);
    outline-offset: 3px;
}
.explore-home {
    display: block;
    max-width: 1520px;
    margin-inline: auto;
    padding: 22px clamp(20px, 3.1vw, 54px) 24px;
}
.explore-content [hidden], .explore-home [hidden], .explore-nav [hidden] { display: none !important; }
.explore-sports {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 5px 5px 12px;
    margin: -5px -5px 20px;
}
.explore-sports button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    min-height: 43px;
    border: 1px solid var(--explore-edge);
    border-radius: 999px;
    background: var(--explore-surface);
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
}
.sport-icon {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--sport-icon-width, 1.1em);
    aspect-ratio: 1;
    line-height: 1;
}
.sport-icon-art {
    background: var(--sport-icon-art) var(--sport-icon-position) / var(--sport-icon-size) no-repeat;
}
#exploreSports .sport-icon-art { --sport-icon-width: 25px; }
#footerSports { --sport-icon-width: 1rem; }
.explore-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.explore-heading h1, .explore-heading h2, #scoreViewTitle { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.045em; line-height: 1.12; font-weight: 750; }
.explore-section-link { margin-inline-start: auto; color: var(--explore-gold); font-size: .875rem; font-weight: 700; }
.explore-count { align-self: center; color: var(--explore-live); font-size: .875rem; font-weight: 750; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--explore-live) 10%, transparent); }
.explore-live-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.explore-live-grid.is-empty { grid-template-columns: minmax(0, 1fr); }
.explore-feature { min-width: 0; background: var(--explore-surface); border: 1px solid var(--explore-edge); border-radius: 15px; overflow: hidden; }
.explore-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    color: #f8f5ed;
    background-color: var(--brand-ink);
    background-image: linear-gradient(120deg, color-mix(in srgb, var(--brand-ink) 50%, transparent), var(--brand-ink) 76%), repeating-linear-gradient(135deg, transparent 0 27px, color-mix(in srgb, var(--brand-gold) 9%, transparent) 27px 28px), var(--explore-poster, radial-gradient(ellipse at 25% 15%, #514126, var(--brand-ink) 70%));
    background-position: center;
    background-size: cover;
}
.explore-live-grid.is-empty .explore-stage { aspect-ratio: auto; min-height: 160px; }
.explore-stage-teams { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; pointer-events: none; }
.explore-stage-teams img { width: 23%; max-width: 145px; max-height: 62%; object-fit: contain; opacity: .16; }
.explore-stage:has(#exploreMedia video), .explore-stage:has(#exploreMedia iframe) { background: #090a08; }
.explore-stage:has(#exploreMedia video) .explore-stage-teams, .explore-stage:has(#exploreMedia iframe) .explore-stage-teams { visibility: hidden; }
.explore-stage-copy { display: grid; justify-items: center; gap: 12px; padding: 14px; text-align: center; z-index: 1; font-weight: 650; }
.explore-stage-copy > p:empty { display: none; }
#exploreMedia, #exploreMedia video, #exploreMedia iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#exploreMedia:empty { pointer-events: none; }
.explore-score-panel { display: grid; gap: 12px; padding: 15px 17px; }
.explore-score-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--explore-muted); font-size: .875rem; }
.explore-score-meta a { color: var(--explore-gold); font-weight: 700; }
.explore-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.explore-score-total { white-space: nowrap; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.explore-team { display: flex; align-items: center; gap: 8px; min-width: 0; line-height: 1.2; }
.explore-team-away { flex-direction: row-reverse; text-align: end; }
.explore-team-name { overflow-wrap: anywhere; }
.explore-team-logo { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 50%; background: var(--explore-muted-surface); color: var(--explore-muted); font-size: .75rem; font-weight: 700; }
.explore-team-logo img { grid-area: 1 / 1; width: 86%; height: 86%; object-fit: contain; }
.explore-team-logo > span { grid-area: 1 / 1; }
.explore-live-list { display: grid; gap: 8px; max-height: 514px; overflow-y: auto; padding: 2px 3px; }
.explore-match { display: grid; gap: 8px; width: 100%; min-width: 0; text-align: start; padding: 12px; border: 1px solid var(--explore-edge); border-radius: 12px; background: var(--explore-surface); font-size: .875rem; }
.explore-match:hover { border-color: var(--explore-gold); }
.explore-match[aria-pressed="true"] { background: var(--explore-active); border-color: var(--explore-gold); }
.explore-match-meta, .explore-match-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.explore-match-meta { color: var(--explore-muted); font-size: .8125rem; }
.explore-match-progress {
    --match-progress-fill: linear-gradient(90deg, var(--explore-live), var(--explore-gold));
    display: block;
    width: 100%;
    height: 4px;
    appearance: none;
    border: 0;
    border-radius: 99px;
    overflow: hidden;
    background: var(--explore-edge);
}
.explore-match-progress::-webkit-progress-bar { background: transparent; }
.explore-match-progress::-webkit-progress-value { border-radius: inherit; background: var(--match-progress-fill); }
.explore-match-progress::-moz-progress-bar { border-radius: inherit; background: var(--match-progress-fill); }
.explore-match-update {
    display: flex;
    align-items: start;
    gap: 7px;
    min-width: 0;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--explore-edge);
    color: var(--explore-text);
    font-size: .75rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.explore-match-update.is-empty { color: var(--explore-muted); }
.explore-live-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; color: var(--explore-muted); }
.explore-live-label { color: var(--explore-live); font-weight: 750; flex: none; }
.explore-clips { margin-top: 30px; }
.explore-clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.explore-clip-card { min-width: 0; text-align: start; display: grid; gap: 7px; padding: 0; border: 0; background: none; border-radius: 10px; }
.explore-clip-cover { display: grid; place-items: center; position: relative; aspect-ratio: 3 / 4; background: var(--explore-muted-surface); border-radius: 10px; overflow: hidden; }
.explore-clip-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.explore-clip-cover span { z-index: 1; background: color-mix(in srgb, var(--brand-ink) 85%, transparent); color: #fff; border-radius: 50%; display: grid; place-items: center; width: 38px; height: 38px; }
.explore-clip-card:hover .explore-clip-cover { outline: 2px solid var(--explore-gold); }
.explore-clip-card strong { overflow-wrap: anywhere; font-size: .875rem; }
.explore-clip-card small { color: var(--explore-muted); font-size: .8125rem; }
.explore-clips-message { background: var(--explore-surface); color: var(--explore-muted); border: 1px solid var(--explore-edge); border-radius: 12px; padding: 18px; }
.explore-clip-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(400px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 12px;
    background: var(--explore-surface);
    border: 1px solid var(--explore-edge);
    border-radius: 14px;
}
.explore-clip-dialog::backdrop { background: #090909d9; }
.explore-dialog-header, .explore-dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.explore-dialog-header h2 { font-size: 1.05rem; overflow-wrap: anywhere; }
.explore-clip-dialog video { display: block; width: 100%; max-height: calc(100dvh - 167px); aspect-ratio: 9 / 16; background: #090909; margin: 8px 0; touch-action: pan-x; }
.explore-ad:empty { display: none; }
.explore-ad { margin-top: 22px; }
.explore-ad img { max-width: 100%; max-height: 145px; object-fit: contain; border-radius: 10px; }
.score-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1450px) {
    #scoreView .container { grid-template-columns: 210px minmax(0, 1fr); }
    #scoreView .right-sidebar { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
    #scoreView .container { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
    :root { --explore-rail: 0px; }
    .explore-nav {
        position: sticky;
        inset: 0 0 auto;
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border: 0;
        border-bottom: 1px solid var(--explore-edge);
    }
    .explore-brand { min-height: 42px; font-size: 1.1rem; gap: 4px; align-self: center; }
    .explore-brand img { width: 27px; height: 27px; }
    .explore-nav-links { grid-column: 1 / -1; grid-row: 2; display: flex; overflow: auto; scrollbar-width: none; gap: 2px; }
    .explore-nav-links a { min-height: 36px; flex: none; padding: 5px 8px; white-space: nowrap; }
    .explore-nav-icon { width: 16px; }
    .explore-account { padding: 0; border: 0; }
    .explore-account .user-dropdown { right: 0; left: auto; }
    .explore-account #authButtons button:nth-child(2) { display: none; }
    .explore-menu { margin: 0; }
    #live, #sports-clips { scroll-margin-top: 115px; }
}
@media (max-width: 650px) {
    .explore-home { padding: 14px 14px 22px; }
    .explore-sports { margin-bottom: 10px; }
    .explore-live-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .explore-live-list { max-height: 250px; }
    .explore-scoreboard { gap: 8px; }
    .explore-score-panel { padding: 11px; }
    .explore-scoreboard .explore-team { flex-direction: column; text-align: center; font-size: .875rem; }
    .explore-clips { margin-top: 22px; }
    .explore-clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 475px) {
    .explore-nav-links { justify-content: space-between; }
    .explore-nav-links a { flex: 0 1 auto; gap: 3px; font-size: .8125rem; }
    .explore-nav-links .explore-nav-icon { display: none; }
    .explore-account #userName { max-width: 88px; overflow: hidden; text-overflow: ellipsis; display: block; white-space: nowrap; }
}

.explore-section-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-inline-start: auto; }
.explore-section-links a { color: var(--explore-gold); font-size: .875rem; font-weight: 700; }
.explore-streamers { margin-top: 30px; }
.explore-streamer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore-streamer-grid:not(:empty) + .explore-clips-message { margin-top: 12px; }
.explore-streamer-card { display: grid; align-content: start; gap: 7px; min-width: 0; color: inherit; text-decoration: none; border-radius: 10px; }
.explore-streamer-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--explore-edge);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--explore-active), var(--explore-muted-surface));
}
.explore-streamer-card:hover .explore-streamer-cover { border-color: var(--explore-gold); }
.explore-streamer-cover img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.explore-streamer-initial { color: var(--explore-gold); opacity: .55; font-size: 2rem; font-weight: 750; }
.explore-streamer-badge {
    position: absolute;
    inset: 8px auto auto 8px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #bd2642;
    color: #fff;
    font-size: .75rem;
    font-weight: 750;
}
.explore-streamer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; color: var(--explore-muted); font-size: .8125rem; }
.explore-streamer-card strong, .explore-streamer-meta span { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    #streamers-live { scroll-margin-top: 115px; }
}
@media (max-width: 740px) {
    .explore-streamer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 475px) {
    .explore-section-links { flex-basis: 100%; }
    #live > .explore-heading { flex-wrap: wrap; gap: 8px 10px; }
}


.explore-nav-links .explore-nav-matches { display: none; }

@media (max-width: 700px), (max-width: 1000px) and (max-height: 550px) and (orientation: landscape) and (pointer: coarse) {
    .explore-nav-links { justify-content: flex-start; scrollbar-width: none; touch-action: pan-x; }
    .explore-nav-links a { flex: none; padding-inline: 10px; }
    .explore-nav-links .explore-nav-matches { display: flex; order: -2; }
    .explore-nav-links a[data-explore-view="channels"] { order: -3; }
    .explore-nav-links a[data-explore-view="scores"] { order: -1; }
}
