@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --card: #21262d;
    --border: rgba(48, 54, 61, 0.8);
    --accent: #00d68f;
    --accent-glow: rgba(0, 214, 143, 0.25);
    --sport-blue: #1a73e8;
    --sport-green: #00c853;
    --text: #f0f6fc;
    --text-dim: #8b949e;
    --live: #f85149;
    --gradient-sport: linear-gradient(135deg, #1a73e8 0%, #00d68f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* === HEADER === */
.site-header {
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.15) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-wrap img {
    height: 36px;
}

.logo-wrap span {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1px;
    background: var(--gradient-sport);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    background: var(--gradient-sport);
    color: #fff;
    border-color: transparent;
}

.header-cta {
    background: var(--gradient-sport);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 4px 15px var(--accent-glow);
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .header-cta {
        padding: 8px 14px;
        font-size: 0.7rem;
    }

    .logo-wrap span {
        font-size: 0.85rem;
    }
}

/* === BANNER GRID (5x2 Small) === */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-slot {
    aspect-ratio: 3 / 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.banner-slot:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.banner-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slot.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.55rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
    }

    .banner-slot {
        aspect-ratio: 3.5 / 1;
    }
}

/* === MAIN LAYOUT === */
.main-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .main-wrap {
        grid-template-columns: 1fr;
    }
}

/* === VIDEO PLAYER === */
.player-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.video-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-box iframe,
.video-box video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Player Poster Overlay */
.player-poster {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
    transition: 0.3s;
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-poster .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.player-poster .play-btn i {
    width: 70px;
    height: 70px;
    color: var(--accent);
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.player-poster .play-btn span {
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 2px 10px #000;
}

.player-poster.hidden {
    opacity: 0;
    pointer-events: none;
}

/* BetPro Watermark */
.player-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 20;
    pointer-events: none;
}

.player-watermark img {
    height: 50px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

@media (max-width: 768px) {
    .player-watermark img {
        height: 35px;
    }
}

.player-info {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, var(--card) 0%, var(--surface) 100%);
    border-top: 1px solid var(--border);
}

.player-info h3 {
    font-size: 1rem;
    font-weight: 700;
}

.player-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.live-tag {
    background: rgba(248, 81, 73, 0.15);
    color: var(--live);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.live-tag .dot {
    width: 8px;
    height: 8px;
    background: var(--live);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* === CHANNEL SIDEBAR === */
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.sidebar-title {
    padding: 15px 18px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    width: 18px;
    color: var(--accent);
}

.channel-scroll {
    max-height: 450px;
    overflow-y: auto;
}

.ch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

.ch-item:hover {
    background: var(--card);
}

.ch-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    padding: 4px;
}

.ch-item .ch-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.ch-item .ch-info p {
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* === MOBILE NAV === */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(180deg, var(--surface) 0%, #0a0d12 100%);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 75px;
    }
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 10px;
    transition: 0.2s;
}

.mobile-nav a i {
    width: 22px;
    height: 22px;
}

.mobile-nav a.active {
    color: #fff;
    background: var(--gradient-sport);
}

/* === LIVE SCORE PAGE === */
.score-header {
    text-align: center;
    padding: 35px 20px 20px;
    background: linear-gradient(180deg, rgba(26, 115, 232, 0.1) 0%, transparent 100%);
}

.score-header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-sport);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-header p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 8px;
}

.search-wrap {
    max-width: 500px;
    margin: 15px auto;
    position: relative;
}

.search-wrap input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 14px 20px 14px 45px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.search-wrap i {
    position: absolute;
    left: 15px;
    top: 14px;
    width: 18px;
    color: var(--text-dim);
}

.league-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 15px;
    overflow: hidden;
}

.league-head {
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--card) 0%, var(--surface) 100%);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.league-head i {
    width: 16px;
    color: var(--sport-blue);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.team-col {
    text-align: center;
}

.team-col img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 6px;
}

.team-col span {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

.score-col {
    text-align: center;
}

.score-col .score {
    font-size: 1.5rem;
    font-weight: 900;
}

.score-col .score em {
    font-style: normal;
    color: var(--accent);
    opacity: 0.5;
    margin: 0 5px;
}

.score-col .timer {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent);
    margin-top: 6px;
    background: rgba(0, 214, 143, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

@media (max-width: 600px) {
    .match-row {
        grid-template-columns: 1fr 80px 1fr;
        padding: 12px;
    }

    .team-col img {
        width: 30px;
        height: 30px;
    }

    .team-col span {
        font-size: 0.7rem;
    }

    .score-col .score {
        font-size: 1.2rem;
    }
}