/* ============ GOOGLE FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-2: #8b5cf6;
    --red: #ef4444;
    --green: #22c55e;
    --orange: #f97316;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ AMBIENT GLOW BACKGROUND ============ */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #3b82f6;
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    top: 40%;
    right: -15%;
    animation-delay: -8s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: -10%;
    left: 30%;
    animation-delay: -15s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9);
    }
}

/* ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border-bottom: 1px solid var(--border-glass);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ============ MAIN ============ */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    position: relative;
    z-index: 1;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    padding: 48px 48px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.06));
    border: 1px solid var(--border-glass);
    overflow: hidden;
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    max-width: 600px;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.hero-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============ SECTION HEADERS ============ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header .see-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.section-header .see-all:hover {
    gap: 8px;
}

/* ============ LIVE NOW TICKER ============ */
.live-ticker {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 40px;
    scrollbar-width: none;
}

.live-ticker::-webkit-scrollbar {
    display: none;
}

.ticker-card {
    min-width: 320px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.ticker-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ticker-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ticker-league {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-live-badge .tdot {
    width: 5px;
    height: 5px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ticker-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticker-team .team-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.ticker-team .team-flag {
    font-size: 1.2rem;
    margin-right: 8px;
}

.ticker-team .team-left {
    display: flex;
    align-items: center;
}

.ticker-team .team-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ticker-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}

/* ============ CHANNELS TABLE ============ */
.channels-table {
    margin-bottom: 40px;
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all 0.2s;
    gap: 16px;
    text-decoration: none;
}

.channel-row:hover {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.ch-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ch-name {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

.ch-quality {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.ch-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.channel-row:hover .ch-arrow {
    transform: translateX(4px);
}

/* ============ FEATURES GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.feature-icon.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

.feature-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ SOCIAL FOOTER ============ */
.social-footer {
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.social-footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.social-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn.ig::before {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.yt::before {
    background: #FF0000;
}

.social-btn.tg::before {
    background: #0088cc;
}

.social-btn.fb::before {
    background: #1877F2;
}

.social-btn i {
    position: relative;
    z-index: 1;
}

/* ============ WATCH PAGE LAYOUT ============ */
.watch-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.sidebar-column {
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: calc(100vh - 120px);
    position: sticky;
    top: 90px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    color: var(--text-primary);
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.sidebar-item.active .item-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
}

.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.item-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============ PLAYER CARD ============ */
.player-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.player-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

#player-container {
    width: 100%;
    height: 100%;
    background: #000;
}

.shaka-video-container {
    width: 100%;
    height: 100%;
}

.shaka-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.overlay-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.tag-live {
    background: rgba(220, 38, 38, 0.85);
    color: white;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.3);
}

.tag-live .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0.2;
    }
}

.tag-channel {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.player-info {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-glass);
}

.info-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.info-badges {
    display: flex;
    gap: 8px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.info-badge i {
    color: var(--accent);
    font-size: 0.6rem;
}

/* ============ WATCH SOCIAL ============ */
.social-section {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.social-text h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.social-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============ RESPONSIVENESS ============ */
@media (max-width: 900px) {
    .watch-container {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        height: auto;
        max-height: 400px;
        position: static;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 32px 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-nav .nav-link {
        display: none;
    }
}

@media (max-width: 640px) {
    header {
        padding: 10px 16px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .live-pill {
        padding: 4px 10px;
        font-size: 0.6rem;
    }

    .main {
        padding: 16px 12px 32px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat .stat-num {
        font-size: 1.2rem;
    }

    .ticker-card {
        min-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .social-footer {
        flex-direction: column;
        text-align: center;
    }

    .player-card {
        border-radius: 16px;
    }

    .player-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .social-section {
        flex-direction: column;
        text-align: center;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }
}

/* ============ ANTI-IFRAME ============ */
#message {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1001;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}