@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
* {
    box-sizing:border-box
}

html {
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:#f4f7fb;
    color:#12213a
}

body {
    margin:0;
    background:#f4f7fb;
    color:#12213a
}

.app-shell {
    min-height:100vh;
    padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))
}

.topbar {
    height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(20px,calc((100vw - 1180px)/2));
    background:rgba(255,255,255,.86);
    backdrop-filter:blur(18px);
    border-bottom:1px solid #e8edf5;
    position:sticky;
    top:0;
    z-index:20
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#10213d;
    font-weight:850;
    font-size:19px
}

.brand-mark {
    width:38px;
    height:38px;
    border-radius:12px;
    background:var(--accent);
    color:#fff;
    display:grid;
    place-items:center;
    box-shadow:0 7px 20px color-mix(in srgb,var(--accent) 25%,transparent)
}

.brand-mark svg {
    width:20px
}

.top-actions {
    display:flex;
    gap:8px
}

.icon-btn {
    width:42px;
    height:42px;
    border:1px solid #e4eaf3;
    background:#fff;
    color:#50617b;
    border-radius:13px;
    display:grid;
    place-items:center;
    text-decoration:none;
    cursor:pointer
}

.icon-btn:hover {
    border-color:#cbd6e6;
    color:var(--accent)
}

.icon {
    width:20px;
    height:20px
}

.content {
    max-width:1180px;
    margin:auto;
    padding:28px 20px
}

.hero {
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:center;
    background:linear-gradient(135deg,#eaf2ff,#fff 65%);
    border:1px solid #dce8fb;
    border-radius:28px;
    padding:34px;
    overflow:hidden;
    position:relative
}

.hero:after {
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    border-radius:50%;
    background:color-mix(in srgb,var(--accent) 9%,transparent);
    right:-80px;
    top:-100px
}

.eyebrow {
    font-size:11px;
    letter-spacing:.13em;
    font-weight:850;
    color:#72819a;
    text-transform:uppercase
}

.hero h1 {
    font-size:clamp(30px,5vw,48px);
    line-height:1.02;
    margin:9px 0 12px;
    letter-spacing:-.045em
}

.hero h1 span {
    color:var(--accent)
}

.hero p {
    color:#64748b;
    max-width:600px;
    margin:0;
    font-size:15px
}

.hero-time {
    min-width:150px;
    text-align:right;
    position:relative;
    z-index:1
}

.hero-time small,.hero-time span {
    display:block;
    color:#7d8ba0;
    font-size:11px
}

.hero-time strong {
    display:block;
    font-size:38px;
    letter-spacing:-.04em
}

.segmented {
    display:flex;
    gap:6px;
    background:#e9eef5;
    border-radius:15px;
    padding:4px;
    width:max-content;
    margin:22px 0
}

.segmented a {
    display:flex;
    align-items:center;
    gap:8px;
    padding:11px 17px;
    border-radius:11px;
    text-decoration:none;
    color:#63728a;
    font-size:13px;
    font-weight:800
}

.segmented a.active {
    background:#fff;
    color:#17263f;
    box-shadow:0 4px 14px rgba(24,42,69,.08)
}

.segmented svg {
    width:17px
}

.section-head {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:15px;
    margin:30px 0 15px
}

.section-head h2 {
    margin:4px 0 0;
    font-size:25px;
    letter-spacing:-.03em
}

.filter-btn,.outline-btn {
    display:flex;
    align-items:center;
    gap:8px;
    background:#fff;
    border:1px solid #dfe6f0;
    border-radius:12px;
    padding:10px 14px;
    color:#4d5f79;
    font-weight:750;
    text-decoration:none;
    cursor:pointer
}

.filter-btn svg,.outline-btn svg {
    width:17px
}

.chips,.status-tabs {
    display:flex;
    gap:8px;
    overflow:auto;
    padding-bottom:5px;
    margin-bottom:18px
}

.chips a,.status-tab {
    border:1px solid #e1e7f0;
    background:#fff;
    color:#6a7890;
    border-radius:999px;
    padding:9px 14px;
    text-decoration:none;
    white-space:nowrap;
    font-size:12px;
    font-weight:750;
    cursor:pointer
}

.chips a.active,.status-tab.active {
    background:#17263f;
    color:#fff;
    border-color:#17263f
}

.status-tab b {
    margin-left:4px;
    opacity:.7
}

.live-count {
    font-size:12px;
    color:#738199;
    font-weight:750
}

.live-count i,.badge.live i {
    width:7px;
    height:7px;
    background:#ef4444;
    border-radius:50%;
    display:inline-block;
    margin-right:6px;
    box-shadow:0 0 0 4px rgba(239,68,68,.12)
}

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

.game-card {
    background:#fff;
    border:1px solid #e2e8f1;
    border-radius:20px;
    padding:16px;
    box-shadow:0 5px 18px rgba(22,43,73,.045);
    animation:up .45s both;
    animation-delay:var(--delay);
    transition:.2s
}

.game-card:hover {
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(22,43,73,.08)
}

@keyframes up {
    from {
        opacity:0;
        transform:translateY(8px)
    }

    to {
        opacity:1;
        transform:none
    }

}

.game-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:15px
}

.competition {
    font-size:10px;
    color:#7a889d;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.competition svg {
    width:15px;
    color:#8da0ba
}

.badge {
    font-size:9px;
    font-weight:900;
    padding:6px 8px;
    border-radius:999px;
    white-space:nowrap
}

.badge.live {
    color:#e33b3b;
    background:#fff0f0
}

.badge.upcoming {
    color:#55709a;
    background:#eef4fb
}

.badge.finished {
    color:#8a96a8;
    background:#f1f3f6
}

.match {
    display:grid;
    grid-template-columns:1fr 54px 1fr;
    align-items:center;
    text-align:center;
    text-decoration:none;
    color:#162640;
    min-height:140px
}

.team {
    min-width:0
}

.team .crest {
    width:68px;
    height:68px;
    margin:0 auto 9px;
    border-radius:18px;
    background:#f6f8fb;
    border:1px solid #e7ebf2;
    display:grid;
    place-items:center;
    padding:9px
}

.crest img {
    max-width:100%;
    max-height:100%;
    object-fit:contain
}

.crest svg {
    width:27px;
    color:#a5b3c7
}

.team strong {
    font-size:13px;
    line-height:1.25;
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.versus span {
    font-size:25px;
    color:#aab6c6;
    font-weight:850
}

.versus small {
    display:block;
    font-size:10px;
    color:#8794a7;
    margin-top:4px
}

.game-bottom {
    border-top:1px solid #eef1f5;
    padding-top:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:10px;
    color:#8895a8
}

.watch {
    display:flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    color:#fff;
    background:var(--accent);
    border-radius:10px;
    padding:8px 11px;
    font-size:11px;
    font-weight:850
}

.watch svg {
    width:14px
}

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

.channel-card {
    background:#fff;
    border:1px solid #e2e8f1;
    border-radius:18px;
    transition:.2s
}

.channel-card:hover {
    transform:translateY(-2px)
}

.channel-main {
    display:flex;
    align-items:center;
    gap:13px;
    padding:14px;
    text-decoration:none;
    color:#17263f
}

.channel-logo {
    width:58px;
    height:58px;
    flex:0 0 58px;
    background:#f5f7fa;
    border:1px solid #e7ebf2;
    border-radius:15px;
    display:grid;
    place-items:center;
    padding:8px
}

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

.channel-logo svg {
    width:24px;
    color:#a1afc1
}

.channel-info {
    min-width:0;
    flex:1
}

.channel-info>span {
    font-size:9px;
    color:#8190a5;
    text-transform:uppercase;
    font-weight:850
}

.channel-info h3 {
    font-size:14px;
    margin:3px 0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.channel-info p {
    font-size:11px;
    color:#8996a9;
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.live-dot {
    display:inline-block;
    width:6px;
    height:6px;
    background:#22c55e;
    border-radius:50%;
    margin-right:5px
}

.channel-main>.arrow,.channel-main>svg {
    color:#a8b3c3;
    width:17px
}

.empty {
    text-align:center;
    padding:70px 20px;
    color:#7d8ba0
}

.empty svg {
    width:40px;
    height:40px;
    margin-bottom:10px
}

.empty h3 {
    color:#273852;
    margin:0 0 5px
}

.empty p {
    margin:0;
    font-size:13px
}

.bottom-nav {
    position:fixed;
    z-index:60;
    left:0;
    right:0;
    bottom:0;
    transform:none;
    width:100%;
    max-width:none;
    height:70px;
    min-height:70px;
    padding:0 8px env(safe-area-inset-bottom,0px);
    box-sizing:border-box;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border:0;
    border-top:1px solid #e1e7f0;
    border-radius:0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;
    box-shadow:0 -5px 20px rgba(23,39,63,.10);
    overflow:hidden
}

.bottom-nav a,.bottom-nav button {
    min-width:0;
    min-height:58px;
    border:0;
    background:transparent;
    color:#8895a8;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    font-size:10px;
    font-weight:800;
    border-radius:15px;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
    overflow:hidden
}

.bottom-nav a:active,.bottom-nav button:active {
    transform:scale(.96);
    background:rgba(127,145,170,.08)
}

.bottom-nav svg {
    width:20px;
    height:20px;
    flex:0 0 auto
}

.bottom-nav span {
    line-height:1;
    white-space:nowrap
}

.bottom-nav .active {
    color:var(--accent)
}

.search-modal {
    position:fixed;
    inset:0;
    background:rgba(10,22,39,.48);
    backdrop-filter:blur(7px);
    z-index:100;
    display:none;
    align-items:flex-start;
    justify-content:center;
    padding:80px 18px
}

.search-modal.open {
    display:flex
}

.search-box {
    width:min(680px,100%);
    background:#fff;
    border-radius:24px;
    padding:26px;
    box-shadow:0 25px 70px rgba(0,0,0,.2);
    position:relative
}

.close-search {
    position:absolute;
    right:17px;
    top:17px;
    width:38px;
    height:38px;
    border:0;
    border-radius:11px;
    background:#f1f4f8;
    color:#60718a
}

.close-search svg {
    width:18px
}

.search-box h2 {
    margin:7px 0 20px;
    font-size:26px
}

.search-input {
    display:flex;
    align-items:center;
    gap:10px;
    background:#f5f7fa;
    border:1px solid #e0e7f0;
    border-radius:15px;
    padding:5px 6px 5px 13px
}

.search-input svg {
    width:19px;
    color:#8997a9
}

.search-input input {
    flex:1;
    border:0;
    background:transparent;
    outline:0;
    font-size:14px;
    padding:10px
}

.search-input button,.primary-btn {
    border:0;
    background:var(--accent);
    color:#fff;
    border-radius:11px;
    padding:11px 16px;
    font-weight:850;
    cursor:pointer
}

.player-page {
    background:#0b1018;
    color:#fff
}

.player-shell {
    min-height:100vh
}

.player-head {
    height:76px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 max(18px,calc((100vw - 1080px)/2));
    background:#0e1520;
    border-bottom:1px solid #1d2735
}

.player-head h1 {
    font-size:18px;
    margin:2px 0
}

.back {
    width:42px;
    height:42px;
    border-radius:13px;
    background:#172130;
    color:#fff;
    display:grid;
    place-items:center
}

.player-main {
    width:min(1080px,100%);
    margin:auto;
    padding:24px 18px
}

.video-card {
    background:#111923;
    border:1px solid #202c3b;
    border-radius:22px;
    overflow:hidden
}

.player-frame {
    position:relative;
    aspect-ratio:16/9;
    background:#05080c
}

.player-frame iframe {
    width:100%;
    height:100%;
    border:0
}

.player-loading {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:12px;
    background:#070b11;
    z-index:2;
    color:#98a7bc;
    font-size:12px
}

.player-loading.hide {
    opacity:0;
    pointer-events:none
}

.big-icon {
    width:34px!important;
    height:34px!important;
    color:var(--accent)
}

.player-empty {
    height:100%;
    display:grid;
    place-items:center;
    align-content:center;
    text-align:center;
    color:#8e9caf
}

.player-empty h3 {
    margin:10px 0 4px;
    color:#fff
}

.player-empty p {
    margin:0;
    font-size:12px
}

.player-meta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px
}

.player-meta h2 {
    margin:5px 0 0;
    font-size:18px
}

.servers {
    margin-top:24px
}

.server-note {
    font-size:11px;
    color:#75849a
}

.server-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px
}

.server-btn {
    display:flex;
    align-items:center;
    gap:10px;
    text-align:left;
    background:#111923;
    border:1px solid #253142;
    color:#fff;
    border-radius:15px;
    padding:12px;
    cursor:pointer
}

.server-btn.active {
    border-color:var(--accent);
    background:color-mix(in srgb,var(--accent) 10%,#111923)
}

.server-icon {
    width:36px;
    height:36px;
    border-radius:10px;
    background:#1c2736;
    display:grid;
    place-items:center;
    color:#9fb0c6
}

.server-icon svg {
    width:18px
}

.server-btn strong {
    display:block;
    font-size:12px
}

.server-btn small {
    display:block;
    color:#8190a5;
    margin-top:2px
}

.server-check {
    margin-left:auto;
    color:var(--accent);
    opacity:0
}

.server-btn.active .server-check {
    opacity:1
}

.admin-page {
    background:#f4f7fb
}

.admin-shell {
    min-height:100vh
}

.admin-head {
    height:70px;
    background:#fff;
    border-bottom:1px solid #e5ebf3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(18px,calc((100vw - 1000px)/2))
}

.admin-logout {
    color:#ef4444;
    text-decoration:none;
    font-size:12px;
    font-weight:800
}

.admin-content {
    width:min(1000px,100%);
    margin:auto;
    padding:28px 18px 70px
}

.admin-title {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin-bottom:18px
}

.admin-title h1 {
    margin:5px 0 0;
    font-size:30px
}

.panel {
    background:#fff;
    border:1px solid #e0e7f0;
    border-radius:20px;
    padding:20px;
    margin:14px 0
}

.panel-head {
    margin-bottom:17px
}

.panel h2 {
    margin:0;
    font-size:18px
}

.panel-head p,.help {
    font-size:12px;
    color:#77869b
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px
}

.form-grid label {
    font-size:11px;
    font-weight:800;
    color:#64748b;
    display:grid;
    gap:7px
}

.form-grid input,.form-grid select {
    width:100%;
    padding:12px;
    border:1px solid #dfe6ef;
    border-radius:11px;
    outline:0;
    background:#fbfcfe;
    color:#1d2d46
}

.form-grid input:focus,.form-grid select:focus {
    border-color:var(--accent)
}

.form-grid label input+input {
    margin-top:1px
}

.full {
    grid-column:1/-1
}

.text-btn {
    margin-left:10px;
    color:var(--accent);
    text-decoration:none;
    font-size:12px;
    font-weight:800
}

.steps {
    margin:0;
    padding-left:20px
}

.steps li {
    padding:7px 0
}

.steps b {
    display:block;
    font-size:13px
}

.steps span {
    font-size:12px;
    color:#7c8a9f
}

.alert {
    padding:11px 13px;
    border-radius:11px;
    font-size:12px;
    margin-bottom:15px
}

.alert.success {
    background:#ecfdf3;
    color:#16804a
}

.alert.error {
    background:#fff0f0;
    color:#c93434
}

.login-card {
    width:min(450px,calc(100% - 32px));
    margin:10vh auto;
    background:#fff;
    border:1px solid #e0e7f0;
    border-radius:24px;
    padding:28px;
    box-shadow:0 15px 40px rgba(26,44,70,.08)
}

.login-icon {
    width:50px;
    height:50px;
    border-radius:15px;
    background:#edf3ff;
    color:var(--accent);
    display:grid;
    place-items:center;
    margin-bottom:20px
}

.login-icon svg {
    width:25px
}

.login-card h1 {
    font-size:27px;
    margin:6px 0 8px
}

.login-card p,.login-card small {
    font-size:12px;
    color:#7a889c;
    line-height:1.6
}

.login-card form {
    display:grid;
    gap:12px;
    margin:20px 0
}

.login-card label {
    font-size:11px;
    font-weight:800;
    color:#66758a;
    display:grid;
    gap:7px
}

.login-card input {
    padding:13px;
    border:1px solid #dfe6ef;
    border-radius:12px
}

.login-card code {
    background:#f1f4f8;
    padding:2px 4px;
    border-radius:4px
}

@media(max-width:900px) {
    .games-grid,.channel-grid {
        grid-template-columns:repeat(2,1fr)
    }

}

@media(max-width:650px) {
    .content {
        padding:18px 14px
    }

    .hero {
        padding:22px;
        border-radius:22px;
        display:block
    }

    .hero-time {
        text-align:left;
        margin-top:20px
    }

    .hero-time strong {
        font-size:30px
    }

    .games-grid,.channel-grid {
        grid-template-columns:1fr
    }

    .game-card {
        border-radius:18px
    }

    .match {
        min-height:125px
    }

    .server-grid,.form-grid {
        grid-template-columns:1fr
    }

    .topbar {
        padding:0 14px
    }

    .brand {
        font-size:16px
    }

    .section-head {
        margin-top:24px
    }

    .player-main {
        padding:12px 10px
    }

    .player-frame {
        aspect-ratio:16/10
    }

    .player-meta {
        padding:14px
    }

    .admin-title {
        align-items:flex-start;
        gap:12px;
        flex-direction:column
    }

    .panel {
        padding:16px
    }

    .segmented {
        width:100%
    }

    .segmented a {
        flex:1;
        justify-content:center
    }

}

/* v1.3 */ body.theme-dark {
    background:#05070b;
    color:#e8eef7
}

.theme-dark .topbar {
    background:rgba(8,11,17,.88);
    border-color:#171e2a
}

.theme-dark .brand {
    color:#eef4ff
}

.theme-dark .icon-btn,.theme-dark .segmented,.theme-dark .segmented a.active,.theme-dark .filter-btn,.theme-dark .outline-btn,.theme-dark .chips a,.theme-dark .status-tab,.theme-dark .game-card,.theme-dark .channel-card,.theme-dark .search-box {
    background:#0d121a;
    color:#dbe5f2;
    border-color:#202a38
}

.theme-dark .hero {
    background:linear-gradient(135deg,#0e1826,#0a0f17 65%);
    border-color:#1e2c40
}

.theme-dark .hero p,.theme-dark .channel-info p,.theme-dark .game-bottom,.theme-dark .live-count,.theme-dark .eyebrow {
    color:#8797ad
}

.theme-dark .team strong,.theme-dark .channel-main {
    color:#e7eef8
}

.theme-dark .crest,.theme-dark .channel-logo {
    background:#101722;
    border-color:#222e3e
}

.theme-dark .bottom-nav {
    background:rgba(9,13,20,.95);
    border-color:#202a38
}

.theme-dark .search-input {
    background:#101721;
    border-color:#263142
}

.theme-dark .search-input input {
    color:#eef4ff
}

.theme-dark .empty h3 {
    color:#eef4ff
}

.theme-dark .chips a.active,.theme-dark .status-tab.active {
    background:#e9f1fb;
    color:#0b1220;
    border-color:#e9f1fb
}

.theme-dark .description-card {
    background:#111923;
    border-color:#202c3b
}

.theme-dark .description-card p {
    color:#b6c3d5
}

.theme-dark .admin-head,.theme-dark .panel,.theme-dark .stat-card {
    background:#0d121a;
    border-color:#202a38;
    color:#e8eef7
}

.theme-dark .admin-page {
    background:#05070b;
    color:#e8eef7
}

.theme-dark .form-grid input,.theme-dark .form-grid select {
    background:#0a0f16;
    color:#e8eef7;
    border-color:#253142
}

.description-card {
    margin-top:14px;
    background:#111923;
    border:1px solid #202c3b;
    border-radius:18px;
    padding:18px
}

.description-card p {
    margin:9px 0 0;
    color:#b8c5d6;
    font-size:13px;
    line-height:1.65
}

.analytics-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:18px 0
}

.stat-card {
    background:#fff;
    border:1px solid #e0e7f0;
    border-radius:18px;
    padding:18px
}

.stat-card span {
    display:block;
    font-size:11px;
    color:#77869b;
    font-weight:800
}

.stat-card strong {
    display:block;
    font-size:28px;
    margin-top:6px
}

.table-wrap {
    overflow:auto
}

.analytics-table {
    width:100%;
    border-collapse:collapse;
    font-size:11px
}

.analytics-table th,.analytics-table td {
    padding:11px 9px;
    border-bottom:1px solid #e9edf3;
    text-align:left;
    white-space:nowrap
}

.analytics-table th {
    font-size:10px;
    color:#738199;
    text-transform:uppercase
}

.analytics-table code {
    font-size:10px
}

.status-pill {
    padding:5px 7px;
    border-radius:999px;
    font-size:9px;
    font-weight:900
}

.status-pill.online {
    background:#eafaf0;
    color:#16804a
}

.status-pill.offline {
    background:#f0f2f5;
    color:#7d899a
}

.click-list {
    display:grid;
    gap:8px
}

.click-row {
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:12px;
    padding:11px 0;
    border-bottom:1px solid #edf0f4;
    font-size:11px
}

.click-row span,.click-row small {
    color:#7b899d
}

.spa-loading {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:2px;
    background:var(--accent);
    transform:scaleX(0);
    transform-origin:left;
    z-index:9999;
    pointer-events:none
}

.spa-loading.on {
    animation:spa 1s ease-in-out infinite
}

@keyframes spa {
    0% {
        transform:scaleX(.05)
    }

    50% {
        transform:scaleX(.65)
    }

    100% {
        transform:scaleX(.95)
    }

}

@media(max-width:800px) {
    .analytics-grid {
        grid-template-columns:repeat(2,1fr)
    }

    .click-row {
        grid-template-columns:1fr
    }

    .analytics-table th,.analytics-table td {
        padding:9px 7px
    }

}

@media(max-width:500px) {
    .analytics-grid {
        grid-template-columns:1fr 1fr
    }

    .stat-card strong {
        font-size:23px
    }

}

/* v1.4 bottom navigation fix */ html,body {
    max-width:100%;
    overflow-x:hidden
}

.bottom-nav {
    isolation:isolate
}

.theme-dark .bottom-nav {
    box-shadow:0 8px 30px rgba(0,0,0,.38)
}

@media(max-width:650px) {
    .bottom-nav {
        left:0;
        right:0;
        bottom:0;
        width:100%;
        height:68px;
        min-height:68px;
        padding:0 5px env(safe-area-inset-bottom,0px);
        border-radius:0
    }

    .bottom-nav a,.bottom-nav button {
        min-height:56px;
        font-size:9px
    }

    .bottom-nav svg {
        width:19px;
        height:19px
    }

}

/* PlayMoz Lite integration: dark only, no local bottom bar */ .bottom-nav,[data-theme-toggle] {
    display:none!important
}

body,body.theme-dark {
    background:#08090d!important;
    color:#f5f7fb!important
}

.topbar {
    background:rgba(8,9,13,.82)!important;
    border-color:rgba(255,255,255,.08)!important;
    backdrop-filter:blur(18px)
}

.content {
    padding-bottom:34px!important
}

.brand {
    color:#fff!important
}

.game-card,.channel-card,.search-box,.hero,.segmented,.chips a,.status-tab,.filter-btn,.outline-btn {
    background:#101218!important;
    color:#eef1f7!important;
    border-color:#222631!important
}

.channel-main,.team strong {
    color:#fff!important
}

.hero p,.channel-info p,.game-bottom,.eyebrow {
    color:#9098aa!important
}

.search-input {
    background:#11141b!important;
    border-color:#262b36!important
}

.search-input input {
    color:#fff!important
}

@media(max-width:650px) {
    .content {
        padding-bottom:28px!important
    }

}

/* PlayMoz V16 channel theme refresh */ :root {
    --pm-card:rgba(15,19,28,.88);
    --pm-line:rgba(255,255,255,.08)
}

body {
    background:radial-gradient(circle at 15% -10%,rgba(37,99,235,.18),transparent 28%),radial-gradient(circle at 100% 0,rgba(124,58,237,.12),transparent 24%),#07090f
}

.card,.panel,.event-card,.channel-card {
    border-color:var(--pm-line)!important;
    background:linear-gradient(160deg,rgba(18,23,34,.96),rgba(10,13,20,.96))!important;
    box-shadow:0 18px 50px rgba(0,0,0,.24)
}

.event-card,.channel-card {
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}

.event-card:hover,.channel-card:hover {
    transform:translateY(-2px);
    border-color:color-mix(in srgb,var(--accent) 45%,transparent)!important;
    box-shadow:0 22px 60px rgba(0,0,0,.34)
}

/* Single-column image cards with readable overlay content. */
.content .games-grid { display:grid; grid-template-columns:minmax(0,1fr)!important; gap:14px!important; width:100%; max-width:760px; margin-inline:auto; }
.games-grid .game-card { position:relative; isolation:isolate; overflow:hidden; min-width:0; min-height:205px; padding:16px!important; display:flex; flex-direction:column; justify-content:space-between; gap:48px; border-radius:22px!important; border:1px solid rgba(255,255,255,.12)!important; background:#121824!important; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.22)!important; }
.games-grid .game-card::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(180deg,rgba(4,8,16,.78) 0%,rgba(4,8,16,.15) 37%,rgba(4,8,16,.83) 70%,#060a13 100%); }
.game-cover { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .25s ease; }
.game-card:hover .game-cover { transform:scale(1.025); }
.game-overlay-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.game-league { min-width:0; max-width:75%; font-size:11px; line-height:1.4; font-weight:650; color:#f0f3fa; overflow-wrap:anywhere; text-shadow:0 1px 5px #000; }
.game-state { display:inline-flex; align-items:center; gap:5px; flex-shrink:0; padding:6px 8px; border-radius:20px; font-size:8px; line-height:1; font-weight:800; letter-spacing:.3px; color:#fff; background:rgba(24,32,48,.88); border:1px solid rgba(255,255,255,.18); }
.game-state-live { background:#dc204d; border-color:#ff5b80; }
.game-state-live i { width:5px; height:5px; border-radius:50%; background:#fff; }
.game-state-upcoming { color:#c9e0ff; }
.game-state-finished { color:#c0c5d0; }
.game-overlay-body { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.game-caption { min-width:0; flex:1; }
.game-kickoff { display:inline-flex; align-items:center; gap:5px; color:#e1e8f5; font-size:11px; font-weight:650; line-height:1.3; }
.game-kickoff svg { width:13px; height:13px; }
.games-grid .game-overlay-title { margin:6px 0 4px; color:#fff; font-size:18px; line-height:1.25; font-weight:800; letter-spacing:-.25px; overflow-wrap:anywhere; text-shadow:0 2px 8px rgba(0,0,0,.7); }
.game-kind { color:#aab7cc; font-size:10px; line-height:1.3; }
.game-watch { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:5px; padding:0 13px; min-height:40px; border-radius:13px; background:linear-gradient(135deg,#ff345d,#d81d65); border:1px solid rgba(255,255,255,.18); box-shadow:0 4px 14px rgba(230,34,90,.25); color:#fff; text-decoration:none; font-size:11px; line-height:1; font-weight:750; transition:filter .2s ease,transform .2s ease; }
.game-watch svg { width:14px; height:14px; }
.game-watch:hover { filter:brightness(1.15); transform:translateY(-1px); }
.game-watch:focus-visible { outline:3px solid #fff; outline-offset:3px; }
@media(min-width:651px) { .games-grid .game-card { min-height:240px; padding:22px!important; } .games-grid .game-overlay-title { font-size:23px; } .game-league { font-size:13px; } }
@media(max-width:350px) { .games-grid .game-card { padding:13px!important; min-height:195px; } .games-grid .game-overlay-title { font-size:16px; } .game-watch { padding:0 9px; } .game-overlay-body { gap:8px; } }
@media(prefers-reduced-motion:reduce) { .game-cover,.game-watch { transition:none; } }

/* Details page shares the rounded, image-led game styling. */
.player-page { --accent:#f32d60!important; background:#080b12; color:#f6f7fb; }
.player-page .player-head { height:68px; padding:0 max(16px,calc((100vw - 900px)/2)); gap:12px; background:#0e121c; border-color:rgba(255,255,255,.07); }
.detail-brand { flex:1; } .detail-brand strong { font-size:17px; } .detail-brand strong span { color:#ff487a; } .detail-brand small { display:block; font-size:8px; letter-spacing:1.7px; color:#93a1b8; margin-top:4px; }
.player-page .back,.detail-share { width:38px; height:38px; flex-shrink:0; display:grid; place-items:center; color:#e9edf7; border:1px solid #262c3b; border-radius:12px; background:#191e2a; cursor:pointer; }
.detail-share svg { width:17px; height:17px; }
.player-page .player-main { width:min(900px,100%); padding:18px 16px 36px; }
.detail-hero { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; gap:60px; min-height:230px; padding:18px; overflow:hidden; border-radius:24px; border:1px solid rgba(255,255,255,.12); background:#161d2a; }
.detail-cover { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.detail-channel .detail-cover { object-fit:contain; }
.detail-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(5,8,16,.7),rgba(5,8,16,.15) 32%,rgba(5,8,16,.86) 75%,#090e18); }
.detail-hero-top { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.detail-league { font-size:11px; line-height:1.4; font-weight:650; overflow-wrap:anywhere; }
.detail-status { flex-shrink:0; font-size:8px; font-weight:800; padding:6px 9px; border:1px solid rgba(255,255,255,.2); border-radius:20px; background:rgba(20,27,43,.8); }
.detail-hero h1 { font-size:clamp(22px,4vw,32px); line-height:1.2; letter-spacing:-.5px; margin:0 0 12px; overflow-wrap:anywhere; color:#fff; }
.detail-facts { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:11px; color:#c8d3e5; }
.detail-facts span,.detail-source { display:inline-flex; align-items:center; gap:6px; }
.detail-facts svg,.detail-source svg { width:14px; height:14px; flex-shrink:0; }
.detail-section-title { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:6px; margin:23px 0 10px; }
.detail-section-title h2 { margin:0; font-size:16px; } .detail-section-title > span { font-size:10px; color:#94a0b5; }
.player-page .video-card { border-radius:20px; border:1px solid #252b39; background:#111620; }
.player-page .player-meta { padding:12px 14px; gap:12px; font-size:11px; }
.detail-source { min-width:0; color:#d4dcec; } #currentProvider { overflow-wrap:anywhere; }
.detail-options { display:inline-flex; gap:3px; align-items:center; color:#ff668b; text-decoration:none; font-weight:700; flex-shrink:0; } .detail-options svg { width:13px; height:13px; }
.player-page .servers { margin-top:24px; } .player-page .servers h2 { font-size:17px; margin:4px 0 0; } .player-page .eyebrow { font-size:9px; letter-spacing:1px; color:#f76188; }
.player-page .server-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; scroll-margin-top:20px; }
.player-page .server-btn { min-width:0; min-height:66px; padding:12px; border-radius:16px; background:#121722; border:1px solid #252d3d; transition:background .2s,border-color .2s; }
.player-page .server-btn > span:nth-child(2) { min-width:0; } .player-page .server-btn strong { font-size:12px; line-height:1.35; overflow-wrap:anywhere; } .player-page .server-btn small { font-size:10px; color:#a5b0c3; }
.player-page .server-icon { flex-shrink:0; width:32px; height:32px; border-radius:10px; background:#222939; color:#c0cce0; }
.player-page .server-btn.active { border-color:#f32d60; background:linear-gradient(120deg,#321725,#191622); } .player-page .server-btn.active .server-icon { background:#f32d60; color:#fff; } .player-page .server-check { flex-shrink:0; color:#ff5982; }
.player-page .description-card { margin-top:16px; padding:16px; border:1px solid #242b39; border-radius:18px; background:#111620; } .player-page .description-card p { font-size:12px; line-height:1.7; color:#adb9cc; overflow-wrap:anywhere; }
.player-page button:focus-visible,.player-page a:focus-visible { outline:2px solid #ff648d; outline-offset:3px; }
@media(max-width:520px) { .player-page .server-grid { grid-template-columns:minmax(0,1fr); } .detail-hero { min-height:210px; padding:16px; border-radius:21px; } }

/* PlayMoz channels stability patch — scoped, responsive, no changes to ads or membership. */
html { min-width:0; -webkit-text-size-adjust:100%; }
body { min-width:0; overflow-x:clip; }
.app-shell, .player-page, .app-shell main, .player-page main { min-width:0; max-width:100%; }
.app-shell img, .player-page img { max-width:100%; height:auto; }
.content .channel-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.content .channel-card, .content .game-card { min-width:0; max-width:100%; }
.content .channel-info, .content .channel-main, .content .game-overlay-body { min-width:0; }
.content .channel-info h3, .content .channel-info p, .content .game-overlay-title { overflow-wrap:anywhere; }
.content .chips, .content .segmented, .content .status-tabs { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
.content .chips::-webkit-scrollbar, .content .segmented::-webkit-scrollbar, .content .status-tabs::-webkit-scrollbar { display:none; }
.player-page .player-shell, .player-page .player-main, .player-page .video-card, .player-page .player-frame { min-width:0; max-width:100%; }
.player-page .player-frame { width:100%; aspect-ratio:16/9; height:auto; min-height:0; overflow:hidden; position:relative; }
.player-page .player-frame iframe, .player-page .player-frame video { display:block; width:100%; height:100%; border:0; }
.player-page .server-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.player-page .server-btn { min-width:0; overflow-wrap:anywhere; }
@media(max-width:900px) { .content .channel-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
 .content { width:100%; min-width:0; padding-inline:12px; }
 .content .channel-grid { grid-template-columns:minmax(0,1fr)!important; gap:12px; }
 .content .games-grid { grid-template-columns:minmax(0,1fr)!important; }
 .content .channel-info h3 { font-size:14px; line-height:1.3; }
 .content .channel-card { border-radius:16px; }
 .content .hero { flex-direction:column; align-items:stretch; padding:18px; gap:10px; }
 .content .hero-time { min-width:0; text-align:left; }
 .player-page .player-main { width:100%; padding:12px; }
 .player-page .player-head { padding-inline:12px; }
 .player-page .server-grid { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .content .channel-card, .content .game-card { transition:none; } }
/* Shared PlayMoz Lite 3.0 typography (channels interface). */
html,body,button,input,textarea,select{font-family:Manrope,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important}
