/* ============================================================
   IDNSport - Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #07070f;
  --bg-secondary: #0d0d1a;
  --bg-card: #111122;
  --bg-card-hover: #161628;
  --accent-red: #e63946;
  --accent-gold: #ffd60a;
  --accent-blue: #4361ee;
  --accent-green: #06d6a0;
  --text-primary: #f0f0ff;
  --text-secondary: #9090b0;
  --text-muted: #5050708;
  --border: #1e1e35;
  --border-light: #2a2a45;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(230,57,70,0.2);
  --gradient-hero: linear-gradient(135deg, #0d0d1a 0%, #1a0a1a 50%, #0a0d1a 100%);
  --gradient-red: linear-gradient(135deg, #e63946, #c1121f);
  --gradient-gold: linear-gradient(135deg, #ffd60a, #e6ac00);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }

/* ── TYPOGRAPHY ────────────────────── */
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ─────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-3 { padding: 12px; } .p-4 { padding: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── BADGE ─────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-live { background: rgba(230,57,70,0.2); color: var(--accent-red); border: 1px solid rgba(230,57,70,0.4); }
.badge-live::before { content: ''; width: 6px; height: 6px; background: var(--accent-red); border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.badge-football { background: rgba(6,214,160,0.15); color: var(--accent-green); }
.badge-boxing { background: rgba(230,57,70,0.15); color: var(--accent-red); }
.badge-basketball { background: rgba(255,140,0,0.15); color: #ff8c00; }
.badge-badminton { background: rgba(67,97,238,0.15); color: var(--accent-blue); }
.badge-tennis { background: rgba(168,218,20,0.15); color: #a8da14; }
.badge-scheduled { background: rgba(67,97,238,0.15); color: var(--accent-blue); }
.badge-finished { background: rgba(144,144,176,0.15); color: var(--text-secondary); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ── BUTTONS ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--gradient-red); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,70,0.4); }
.btn-gold { background: var(--gradient-gold); color: #000; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,214,10,0.3); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--accent-red); color: var(--accent-red); }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-danger { background: rgba(230,57,70,0.15); color: var(--accent-red); border: 1px solid rgba(230,57,70,0.3); }
.btn-danger:hover { background: var(--accent-red); color: white; }
.btn-success { background: rgba(6,214,160,0.15); color: var(--accent-green); border: 1px solid rgba(6,214,160,0.3); }
.btn-success:hover { background: var(--accent-green); color: #000; }

/* ── FORM ELEMENTS ─────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
  width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--accent-red); }
.form-control::placeholder { color: var(--text-secondary); opacity: 0.6; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── CARDS ─────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 700; }

/* ── NAVBAR ────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,7,15,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px; font-family: 'Oswald', sans-serif;
  font-size: 26px; font-weight: 700;
}
.navbar-brand .logo-icon {
  width: 38px; height: 38px; background: var(--gradient-red); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.navbar-brand span { color: var(--accent-red); }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-card); }
.nav-link.live-btn { color: var(--accent-red); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-red);
  border: none; cursor: pointer; font-weight: 700; font-size: 14px; color: white;
  display: flex; align-items: center; justify-content: center;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 180px; padding: 8px; z-index: 100; display: none;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu, .dropdown-menu.show { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer; transition: background 0.2s; }
.dropdown-item:hover { background: var(--bg-card-hover); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* ── LIVE TICKER ───────────────────── */
.live-ticker {
  background: var(--accent-red); overflow: hidden; height: 34px;
  display: flex; align-items: center;
}
.ticker-label {
  background: rgba(0,0,0,0.3); padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: 11px; white-space: nowrap; letter-spacing: 1px;
  flex-shrink: 0;
}
.ticker-label span { animation: pulse-dot 1.5s infinite; width: 6px; height: 6px; background: white; border-radius: 50%; display: inline-block; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker-scroll 40s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { padding: 0 30px; font-size: 12px; font-weight: 500; }
.ticker-score { font-weight: 800; font-size: 14px; margin: 0 6px; }

@keyframes ticker-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── HERO SECTION ──────────────────── */
.hero {
  background: var(--gradient-hero); min-height: 520px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(67,97,238,0.1) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-red); margin-bottom: 12px; }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--accent-red); }
.hero-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent-red); }
.hero-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual { position: relative; }
.hero-live-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
}
.hero-live-thumb { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #1a0a1a, #0a0f1a); display: flex; align-items: center; justify-content: center; font-size: 60px; position: relative; }
.hero-live-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.hero-live-title { font-size: 14px; font-weight: 700; }
.hero-live-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.floating-match-card {
  position: absolute; top: -20px; right: -20px;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 14px 18px; min-width: 200px; box-shadow: var(--shadow);
}
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.match-team { font-size: 12px; font-weight: 600; text-align: center; }
.match-score { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent-red); }
.match-minute { font-size: 11px; color: var(--accent-red); text-align: center; margin-top: 6px; animation: pulse-dot 2s infinite; }

/* ── SECTION HEADER ────────────────── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 24px; background: var(--gradient-red); border-radius: 2px; }

/* ── ARTICLE CARD ──────────────────── */
.article-card { cursor: pointer; }
.article-card .thumb {
  aspect-ratio: 16/9; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.article-card .title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.article-card .title:hover { color: var(--accent-red); }
.article-card .excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.article-card .footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }
.article-card.featured { grid-column: span 2; }
.article-card.featured .thumb { aspect-ratio: 21/9; font-size: 80px; }

/* ── MATCH WIDGET ──────────────────── */
.match-widget { padding: 16px 20px; }
.match-widget + .match-widget { border-top: 1px solid var(--border); }
.match-row { display: flex; align-items: center; gap: 12px; }
.team-name { flex: 1; font-size: 13px; font-weight: 600; }
.team-name.home { text-align: right; }
.score-box { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; min-width: 60px; text-align: center; }
.match-time-info { font-size: 11px; color: var(--text-secondary); text-align: center; margin-top: 4px; }

/* ── STANDINGS TABLE ───────────────── */
.standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings-table th { padding: 10px 12px; text-align: left; color: var(--text-secondary); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.standings-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: var(--bg-card-hover); }
.pos-indicator { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.pos-top { background: var(--accent-green); }
.pos-relegation { background: var(--accent-red); }

/* ── LIVE STREAM CARD ──────────────── */
.stream-card { cursor: pointer; }
.stream-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a0a1a, #0a0f1a); position: relative; display: flex; align-items: center; justify-content: center; font-size: 50px; overflow: hidden; }
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stream-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.3s; }
.stream-card:hover .stream-overlay { opacity: 1; }
.play-btn { width: 56px; height: 56px; background: rgba(230,57,70,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stream-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.viewer-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); padding: 4px 10px; border-radius: 20px; font-size: 11px; display: flex; align-items: center; gap: 4px; }

/* ── VIDEO PLAYER ──────────────────── */
.video-container { position: relative; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-container video { width: 100%; display: block; }
.player-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player-status { font-size: 18px; font-weight: 700; text-align: center; }

/* ── CHAT ──────────────────────────── */
.chat-container { display: flex; flex-direction: column; height: 400px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; animation: fade-in 0.3s; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-red); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.chat-bubble { background: var(--bg-secondary); border-radius: 0 10px 10px 10px; padding: 8px 12px; max-width: 85%; }
.chat-username { font-size: 11px; font-weight: 700; color: var(--accent-gold); }
.chat-text { font-size: 13px; margin-top: 2px; line-height: 1.4; }
.chat-time { font-size: 10px; color: var(--text-secondary); }
.chat-input-area { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px; color: var(--text-primary); font-size: 13px; font-family: 'Inter', sans-serif; }
.chat-input:focus { outline: none; border-color: var(--accent-red); }
.chat-send { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-red); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── TABS ──────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 20px; overflow-x: auto; }
.tab-btn { padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--text-secondary); transition: all 0.2s; white-space: nowrap; font-family: 'Inter', sans-serif; }
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── SIDEBAR ───────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-header { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ── ADMIN SIDEBAR ─────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--bg-secondary); border-right: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar-brand { padding: 20px; border-bottom: 1px solid var(--border); }
.admin-sidebar-brand h2 { font-family: 'Oswald', sans-serif; font-size: 20px; }
.admin-nav { flex: 1; padding: 12px; }
.admin-nav-section { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); text-transform: uppercase; padding: 12px 12px 6px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s; margin-bottom: 2px;
}
.admin-nav-item:hover, .admin-nav-item.active { background: var(--bg-card); color: var(--text-primary); }
.admin-nav-item.active { color: var(--accent-red); }
.admin-nav-item .icon { width: 18px; text-align: center; }
.admin-main { margin-left: 240px; flex: 1; padding: 24px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-page-title { font-size: 28px; font-weight: 700; }

/* ── STAT CARDS ────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-red); }
.stat-card.green::before { background: linear-gradient(90deg, var(--accent-green), #059669); }
.stat-card.gold::before { background: var(--gradient-gold); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--accent-blue), #3a4bd5); }
.stat-num { font-family: 'Oswald', sans-serif; font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-icon { position: absolute; right: 16px; top: 16px; font-size: 28px; opacity: 0.3; }

/* ── TABLE ─────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-card-hover); }
.table-responsive { overflow-x: auto; }

/* ── MODAL ─────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; background: var(--bg-secondary); border: none; border-radius: 50%; cursor: pointer; color: var(--text-primary); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 24px; }

/* ── TOAST NOTIFICATION ────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9998; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 360px; box-shadow: var(--shadow); animation: slide-in 0.3s; }
.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-blue); }
.toast-icon { font-size: 18px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 13px; }
.toast-msg { font-size: 12px; color: var(--text-secondary); }

@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ── SPORT ICONS ───────────────────── */
.sport-icon-football::before { content: '⚽'; }
.sport-icon-boxing::before { content: '🥊'; }
.sport-icon-basketball::before { content: '🏀'; }
.sport-icon-badminton::before { content: '🏸'; }
.sport-icon-tennis::before { content: '🎾'; }

/* ── LEAGUE PILLS ──────────────────── */
.sport-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.sport-pill { padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); transition: all 0.2s; }
.sport-pill:hover, .sport-pill.active { background: var(--accent-red); border-color: var(--accent-red); color: white; }

/* ── FOOTER ────────────────────────── */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-red); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; }
.social-link:hover { border-color: var(--accent-red); background: rgba(230,57,70,0.1); }

/* ── MOBILE RESPONSIVE ─────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 16px; }
  .navbar-nav { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating-match-card { display: none; }
}

/* ── LOADING SPINNER ───────────────── */
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent-red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px; }

/* ── AUTH PAGES ────────────────────── */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.1) 0%, transparent 60%); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-family: 'Oswald', sans-serif; font-size: 32px; }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.auth-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--bg-card); padding: 0 12px; color: var(--text-secondary); font-size: 12px; position: relative; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 20px; }
.auth-switch a { color: var(--accent-red); font-weight: 600; }

/* ── ARTICLE DETAIL ────────────────── */
.article-content h2 { font-size: 22px; margin: 24px 0 12px; }
.article-content h3 { font-size: 18px; margin: 20px 0 10px; }
.article-content p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { font-size: 15px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 6px; }
.article-content strong { color: var(--text-primary); }

/* ── PAGINATION ────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--accent-red); border-color: var(--accent-red); color: white; }

/* ── MEMBER DASHBOARD ──────────────── */
.member-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; max-width: 1280px; margin: 32px auto; padding: 0 20px; }
.member-sidebar { position: sticky; top: 80px; height: fit-content; }
.profile-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient-red); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; margin: 0 auto 12px; }
.profile-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.profile-role { font-size: 11px; color: var(--accent-gold); text-transform: uppercase; font-weight: 600; }

/* ── BROADCAST CONTROLS ────────────── */
.broadcast-panel { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.broadcast-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.webcam-preview { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.webcam-preview video { width: 100%; height: 100%; object-fit: cover; }
.obs-info { background: rgba(67,97,238,0.1); border: 1px solid rgba(67,97,238,0.3); border-radius: var(--radius); padding: 16px; }
.obs-info .key-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.obs-info .key-value { flex: 1; background: var(--bg-primary); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px; font-family: monospace; word-break: break-all; color: var(--accent-gold); }

/* ── NOTIFICATION BADGE ────────────── */
.notif-badge { position: relative; }
.notif-badge::after { content: attr(data-count); position: absolute; top: -4px; right: -6px; background: var(--accent-red); color: white; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ── LOGO BRANDING ─────────────────── */
.navbar-brand-logo {
  max-height: 42px;
  max-width: 160px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

/* ── FULLSCREEN VIDEO RULES ────────── */
.video-container {
  position: relative;
  width: 100%;
  background: #000;
}

.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
  overflow: hidden !important;
  z-index: 999999 !important;
}

.video-container:fullscreen #embed-container,
.video-container:-webkit-full-screen #embed-container,
.video-container:-moz-full-screen #embed-container,
.video-container:-ms-fullscreen #embed-container {
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: unset !important;
  display: block !important;
}

.video-container:fullscreen iframe,
.video-container:-webkit-full-screen iframe,
.video-container:-moz-full-screen iframe,
.video-container:-ms-fullscreen iframe {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  border: none !important;
}

.video-container:fullscreen video,
.video-container:-webkit-full-screen video,
.video-container:-moz-full-screen video,
.video-container:-ms-fullscreen video {
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  object-fit: contain !important;
}

/* ── STUDIO & RECORDING SYSTEM (OBS STYLE) ── */
.badge-vod {
  background: rgba(42, 157, 143, 0.2);
  color: #2ec4b6;
  border: 1px solid rgba(46, 196, 182, 0.4);
}
.rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
}
.rec-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1s infinite;
}
.studio-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}
.studio-hud > * {
  pointer-events: auto;
}
.vu-meter-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
}
.vu-bar-bg {
  width: 70px;
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.vu-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06d6a0 60%, #ffd60a 85%, #e63946 100%);
  transition: width 0.08s ease;
}
.btn-studio {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-studio:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
}
.btn-studio.active {
  background: rgba(230, 57, 70, 0.2);
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-red);
  transition: width 0.2s ease;
}

