:root {
    --bg: #07111f;
    --panel: #0d1b2d;
    --panel-alt: #13253b;
    --border: rgba(180, 212, 255, 0.14);
    --text: #ecf3ff;
    --muted: #9fb3cf;
    --accent: #ff6b3d;
    --accent-soft: rgba(255, 107, 61, 0.16);
    --success: #3dd598;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Barlow", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 61, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(46, 134, 222, 0.22), transparent 26%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 17, 31, 0.84);
    border-bottom: 1px solid var(--border);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark strong,
.section-title h1,
.section-title h2,
.match-title,
.panel-title,
.share-row h3 {
    font-family: "Space Grotesk", sans-serif;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #ff915b);
    color: #fff;
    box-shadow: var(--shadow);
}

.brand-mark small,
.eyebrow,
.muted {
    display: block;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--text);
}

.hero-shell,
.page-section,
.match-layout {
    padding: 28px 0 56px;
}

.hero-panel,
.content-card,
.match-card,
.sidebar-card,
.empty-state,
.panel,
.stream-card,
.share-row,
.ad-shell,
.info-grid article,
.admin-card {
    background: linear-gradient(180deg, rgba(19, 37, 59, 0.96), rgba(13, 27, 45, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 28px;
}

.hero-top,
.tab-row,
.filter-row,
.info-grid,
.share-buttons,
.match-meta-grid,
.related-grid,
.admin-stats {
    display: grid;
    gap: 18px;
}

.hero-top {
    grid-template-columns: 2fr 1fr;
    align-items: end;
}

.hero-copy p {
    max-width: 62ch;
    color: var(--muted);
}

.pill-list,
.server-tabs,
.category-tabs,
.stream-server-tabs,
.stream-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill,
.server-tab,
.category-tab,
.stream-server-tab,
.stream-button,
.share-btn,
.action-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.2s ease;
    cursor: pointer;
}

.button,
.stream-button.active,
.server-tab.active,
.category-tab.active,
.stream-server-tab.active,
.share-copy,
.action-link {
    background: linear-gradient(135deg, var(--accent), #ff915b);
    color: #fff;
}

.pill,
.server-tab,
.category-tab,
.stream-server-tab,
.stream-button,
.share-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}

.server-tab:not(.active):hover,
.category-tab:not(.active):hover,
.stream-server-tab:not(.active):hover,
.stream-button:not(.active):hover,
.share-btn:hover,
.pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stats-inline span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    color: var(--muted);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.match-grid {
    display: grid;
    gap: 18px;
}

.match-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 18px;
}

.match-poster {
    width: 110px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.match-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(61, 213, 152, 0.14);
}

.match-teams {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 8px 0;
}

.meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.95rem;
}

.status-badge {
    align-self: start;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #ffd0bf;
    font-weight: 700;
}

.ad-shell {
    padding: 16px;
    text-align: center;
}

.ad-shell small {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ad-slot {
    display: flex;
    justify-content: center;
    min-height: 50px;
}

.mobile-sticky-ad {
    display: none;
}

.match-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

.player-shell::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.player-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.stream-panel,
.content-card,
.sidebar-card {
    padding: 22px;
}

.match-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-meta-grid article {
    padding: 16px;
}

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

.info-grid article {
    padding: 18px;
}

.share-buttons {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.share-btn {
    width: 100%;
}

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

.sidebar-card {
    position: sticky;
    top: 96px;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #0b1626;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 9999;
}

.toast-success {
    border-color: rgba(61, 213, 152, 0.35);
}

.toast-error {
    border-color: rgba(255, 107, 61, 0.35);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}

.empty-state,
.panel {
    padding: 24px;
}

@media (max-width: 1024px) {
    .hero-top,
    .match-layout,
    .info-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
    }

    .nav-row,
    .section-title,
    .footer-inner,
    .match-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .match-card {
        grid-template-columns: 1fr;
    }

    .match-poster {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .match-meta-grid {
        grid-template-columns: 1fr;
    }

    .mobile-sticky-ad {
        display: block;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 40;
        padding: 6px 8px;
        background: rgba(5, 10, 18, 0.95);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(12px);
    }
}
