/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 0 0% 4%;
    --foreground: 0 0% 98%;
    --card: 0 0% 7%;
    --primary: 190 100% 42%;
    --accent: 280 100% 60%;
    --muted: 0 0% 10%;
    --muted-foreground: 0 0% 64%;
    --border: 0 0% 15%;
    --radius: 0.75rem;
}

.dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --primary: 0 0% 98%;
    --accent: 240 3.7% 15.9%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --border: 240 3.7% 15.9%;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Typography */

.font-gaming {
    font-family: 'Orbitron', monospace;
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
    color: hsl(var(--foreground));
    text-decoration: none;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--background));
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    box-shadow: 0 0 20px hsl(var(--primary) / 0.5);
}

.btn-outline {
    border: 1px solid hsl(var(--border));
    background: transparent;
}

.btn-outline:hover {
    background: hsl(var(--muted));
    border-color: hsl(var(--primary));
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}


/* Badge */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.live-badge {
    background: #ef4444;
    color: white;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.game-badge {
    background: transparent;
    border: 1px solid hsl(var(--border));
}


/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    font-size: 2rem;
    color: hsl(var(--primary));
    text-shadow: 0 0 10px hsl(var(--primary));
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: hsl(var(--foreground));
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.3s;
    position: relative;
    font-size: 1.25rem;
}

.icon-btn:hover {
    background: hsl(var(--muted));
}

.notification-dot {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: hsl(var(--accent));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid hsl(var(--primary) / 0.2);
}

.user-info {
    display: none;
}

@media (min-width: 1024px) {
    .user-info {
        display: block;
    }
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-level {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.menu-btn {
    background: transparent;
    border: none;
    color: hsl(var(--foreground));
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}


/* Mobile Menu */

.mobile-menu {
    position: fixed;
    top: 4rem;
    right: 0;
    width: 20rem;
    max-width: 100vw;
    height: calc(100vh - 4rem);
    background: hsl(var(--background) / 0.98);
    backdrop-filter: blur(10px);
    border-left: 1px solid hsl(var(--border));
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateX(0);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.mobile-menu-header .avatar {
    width: 3rem;
    height: 3rem;
}

.mobile-menu-links {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.mobile-link:hover {
    background: hsl(var(--card));
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border));
}

.mobile-footer-text {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 0.75rem;
}


/* Hero Section */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsl(var(--background)), hsl(var(--background) / 0.8), hsl(var(--background) / 0.6));
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(153, 51, 255, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)), hsl(var(--primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-teams {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.125rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-emoji {
    font-size: 1.5rem;
}

.vs {
    color: hsl(var(--primary));
    font-weight: 700;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: hsl(var(--muted-foreground));
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .hero-sidebar {
        display: block;
    }
}

.hero-sidebar h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-streams {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-stream-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-stream-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2);
}

.featured-stream-card.active {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 20px hsl(var(--primary) / 0.5);
}

.featured-stream-thumb {
    width: 6rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.featured-stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.featured-stream-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-stream-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.hero-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: hsl(var(--muted-foreground) / 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-indicator.active {
    background: hsl(var(--primary));
    box-shadow: 0 0 10px hsl(var(--primary));
}


/* Sections */

.section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.875rem;
    font-weight: 700;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: hsl(var(--muted-foreground));
}

.text-center {
    text-align: center;
}


/* Live Streams */

.live-streams {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 50%, hsl(var(--card)) 100%);
}

.streams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .streams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .streams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stream-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.stream-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px hsl(var(--primary) / 0.2);
}

.stream-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.stream-card:hover .stream-thumb img {
    transform: scale(1.1);
}

.stream-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.stream-card:hover .stream-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.stream-play-btn {
    opacity: 0;
    transition: all 0.3s;
}

.stream-card:hover .stream-play-btn {
    opacity: 1;
}

.stream-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stream-content {
    padding: 1rem;
}

.stream-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stream-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.stream-card:hover .stream-title {
    color: hsl(var(--primary));
}

.stream-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}


/* Teams Section */

.teams-section {
    background: hsl(var(--background));
}

.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}

.team-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px hsl(var(--primary) / 0.2);
}

.team-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.team-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-logo {
    position: relative;
}

.team-logo img {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid hsl(var(--primary) / 0.2);
}

.team-rank {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.team-rank.gold {
    background: linear-gradient(to bottom, #fbbf24, #d97706);
    color: black;
}

.team-rank.silver {
    background: linear-gradient(to bottom, #d1d5db, #6b7280);
    color: black;
}

.team-rank.bronze {
    background: linear-gradient(to bottom, #d97706, #92400e);
    color: white;
}

.team-name {
    font-weight: 700;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.team-card:hover .team-name {
    color: hsl(var(--primary));
}

.team-region {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.team-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.team-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.team-stat-label {
    color: hsl(var(--muted-foreground));
}

.team-form {
    margin-bottom: 1rem;
}

.team-form-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
    display: block;
}

.team-form-badges {
    display: flex;
    gap: 0.25rem;
}

.form-badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.form-badge.win {
    background: #22c55e;
    color: white;
}

.form-badge.loss {
    background: #ef4444;
    color: white;
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.team-followers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}


/* Tournaments */

.tournaments-section {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 50%, hsl(var(--card)) 100%);
}

.featured-tournament {
    margin-bottom: 3rem;
}

.featured-tournament-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .featured-tournament-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Зураг | Info */
        gap: 1rem;
        align-items: stretch;
    }
}

.featured-tournament-image {
    position: relative;
    aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
    .featured-tournament-image {
        aspect-ratio: 1 / 1;
    }
}

.featured-tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tournament-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.featured-tournament-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Buttons доор, details дээд талд */
}

.featured-tournament-info button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.tournament-details {
    margin-bottom: 1.5rem;
}

.tournament-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.75rem;
}

.countdown {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.countdown-item {
    background: hsl(var(--primary) / 0.1);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 3.125rem;
    text-align: center;
}

.countdown-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.countdown-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

#tournamentsGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    #tournamentsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #tournamentsGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tournament-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.tournament-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.tournament-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px hsl(var(--primary) / 0.2);
}

.tournament-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tournament-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tournament-card:hover .tournament-thumb img {
    transform: scale(1.1);
}

.tournament-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.tournament-card-content {
    padding: 1rem;
}

.tournament-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.tournament-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-actions {
    display: flex;
    gap: 0.5rem;
}


/* News Section */

.news-section {
    background: hsl(var(--background));
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .news-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.news-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.news-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-article {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.news-article:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px hsl(var(--primary) / 0.2);
}

.news-article img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-article h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.news-article p {
    padding: 0 1rem 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .news-article:first-child .news-article-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.news-article-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-article:hover .news-article-image img {
    transform: scale(1.1);
}

.news-article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.news-article-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.news-article-body {
    padding: 1.5rem;
}

.news-article-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.news-article:hover .news-article-title {
    color: hsl(var(--primary));
}

.news-article-excerpt {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.news-article-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.news-article-stats-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    transition: all 0.3s;
}

.highlight-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px hsl(var(--primary) / 0.2);
}

.highlight-card img {
    width: 6rem;
    height: 4rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
}

.highlight-card span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.highlight-thumb {
    position: relative;
    width: 6rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.highlight-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.highlight-card:hover .highlight-title {
    color: hsl(var(--primary));
}

.highlight-meta {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.highlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.trending-topics {
    margin-top: 2rem;
}

.trending-topics h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.625rem;
    background: hsl(var(--muted));
    border-radius: 9999px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}


/* Footer */

.footer {
    background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(var(--muted)) 50%, hsl(var(--card)) 100%);
    border-top: 1px solid hsl(var(--border));
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 20rem;
}

.footer-brand p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.newsletter h4 {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-links h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: hsl(var(--primary));
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 1024px) {
    .footer-social {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-social h4 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .social-links {
        flex-direction: row;
        gap: 1rem;
    }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: hsl(var(--primary));
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.stat {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: hsl(var(--primary));
}

.stat-label {
    font-size: 0.75rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-legal {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.footer-legal a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: hsl(var(--primary));
}


/* Utilities */

.desktop-only {
    display: none !important;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex !important;
    }
}

.mobile-only {
    display: block !important;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

.mt-8 {
    margin-top: 2rem;
}


/* Animations */

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}


/* Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.4);
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #1a1c23;
    border-right: 1px solid #1a1c23;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 30px 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #94a3b8;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background-color: #2d2f39;
    color: #fff;
}

.sidebar-link.active {
    background-color: #3b82f6;
    color: #fff;
}

.sidebar-link .icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
}

@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}
/* ═══════════════════════════════════════════════
   DRAWER
═══════════════════════════════════════════════ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 200;
    display: flex;
    justify-content: flex-end;
    transition: background 0.3s;
    pointer-events: none;
}

.drawer-overlay.drawer-open {
    background: rgba(0,0,0,0.6);
    pointer-events: all;
    backdrop-filter: blur(3px);
}

.drawer {
    width: min(480px, 100vw);
    height: 100vh;
    background: hsl(var(--card));
    border-left: 1px solid hsl(var(--border));
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.drawer-overlay.drawer-open .drawer {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: hsl(var(--card));
    z-index: 1;
}

.drawer-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 3rem);
}

.drawer-close {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.drawer-close:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--muted));
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.drawer-thumb {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 16/9;
    background: hsl(var(--muted));
}

.drawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.drawer-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.drawer-thumb:hover .drawer-thumb-overlay {
    opacity: 1;
}

.drawer-play-btn {
    background: hsl(var(--primary));
    color: hsl(var(--background));
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.drawer-play-btn:hover {
    transform: scale(1.05);
}

.drawer-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.drawer-meta-item {
    background: hsl(var(--muted));
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

.drawer-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.drawer-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--muted));
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.drawer-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.drawer-team img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.drawer-vs {
    font-family: 'Orbitron', monospace;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.drawer-team-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.drawer-team-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */

#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 300;
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 320px;
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 0.25s, transform 0.25s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border-color: rgba(34,197,94,0.25);
}

.toast-info {
    background: rgba(0,180,216,0.12);
    color: hsl(var(--foreground));
    border-color: rgba(0,180,216,0.2);
}

.toast-error {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.25);
}

/* ═══════════════════════════════════════════════
   BUTTON STATES
═══════════════════════════════════════════════ */

.btn.following {
    border-color: #22c55e;
    color: #22c55e;
}

.btn.reminder-set {
    border-color: hsl(var(--accent));
    color: hsl(var(--accent));
}

/* ═══════════════════════════════════════════════
   HIGHLIGHT PLAY OVERLAY
═══════════════════════════════════════════════ */

.highlight-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.5rem;
    color: white;
    border-radius: 0.5rem;
}

.highlight-card:hover .highlight-play-overlay {
    opacity: 1;
}

.highlight-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--border));
    cursor: pointer;
    transition: opacity 0.2s;
}

.highlight-card:hover { opacity: 0.85; }
.highlight-card:last-child { border-bottom: none; }
.highlight-card > div:first-child { flex-shrink: 0; width: 7rem; }
.highlight-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0.5rem; display: block; }
.highlight-card h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; line-height: 1.3; }
