/* ═══════════════════════════════════════════════════════════════
   KUZENLERS — Custom Styles (Tailwind Extension)
   Only styles that Tailwind CDN can't handle
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
   Tek kaynak — renk/aralık/yarıçap değerleri buradan türetilsin.
   Tailwind config'deki renkler bu token'lara karşılık gelir.
   ───────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --color-primary: #9ffb06;
  --color-primary-dim: #8bdc00;
  --color-on-primary: #102000;

  /* Surfaces */
  --color-bg: #131313;
  --color-surface: #131313;
  --color-surface-low: #1c1b1b;
  --color-surface-mid: #201f1f;
  --color-surface-high: #2a2a2a;
  --color-surface-highest: #353534;

  /* Text */
  --color-text: #e5e2e1;
  --color-text-muted: #a1a1aa;
  --color-text-dim: #71717a;

  /* Semantic */
  --color-success: #22c55e;
  --color-warning: #ffb800;
  --color-error: #ff4444;
  --color-info: #38bdf8;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-glow: 0 0 20px rgba(159, 251, 6, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index scale */
  --z-base: 1;
  --z-sticky: 40;
  --z-fixed: 50;
  --z-modal: 500;
  --z-toast: 10000;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}


.font-headline { font-family: 'Space Grotesk', sans-serif; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glass Effect */
.glass {
  background: rgba(32, 31, 31, 0.6);
  backdrop-filter: blur(20px);
}

/* Neon Glow */
.neon-glow {
  box-shadow: var(--shadow-glow);
}

/* Page routing */
.page { display: none; }
.page.active { display: block; }

/* Hide on default */
.hidden { display: none !important; }

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-surface-mid);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all var(--transition-base);
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.error {
  border-color: var(--color-error);
  color: var(--color-error);
}

.toast-notification.warning {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.toast-notification.success {
  border-color: var(--color-success);
  color: var(--color-success);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #353534; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* Admin form panels */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Match row hover border */
.match-row-interactive {
  transition: all 0.2s ease;
  cursor: pointer;
}
.match-row-interactive:hover {
  background: #353534 !important;
}

/* Team select items for league creation */
.team-select-item {
  transition: all 0.15s ease;
  cursor: pointer;
}
.team-select-item.selected {
  border-color: #9ffb06 !important;
  background: rgba(159, 251, 6, 0.1) !important;
}

/* Score control buttons */
.score-btn-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #353534;
  background: #1c1b1b;
  color: #e5e2e1;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.score-btn-ctrl:hover {
  border-color: #9ffb06;
  color: #9ffb06;
  box-shadow: 0 0 12px rgba(159, 251, 6, 0.2);
}

/* Live pulse animation */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-live-pulse {
  animation: live-pulse 1.5s infinite;
}

/* Live glow border */
@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3), inset 0 0 10px rgba(239, 68, 68, 0.05); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), inset 0 0 25px rgba(239, 68, 68, 0.1); }
}

.live-match-glow {
  animation: live-glow 2s ease-in-out infinite;
  border: 2px solid rgba(239, 68, 68, 0.5);
}

/* Form color input */
.form-color-input {
  width: 48px;
  height: 36px;
  border: 1px solid #353534;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

/* Modal overlay */
.modal-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-surface-highest);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Standings badges */
.form-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 3px;
  margin: 0 1px;
}
.form-w { background: var(--color-primary); color: #000; }
.form-d { background: var(--color-warning); color: #000; }
.form-l { background: var(--color-error); color: #fff; }

/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAV — Centered & Dynamic
   ═══════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

.mobile-bottom-nav .mobile-nav-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 6px 0 4px;
  width: 100%;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  padding: 4px 0;
  color: #71717a;
  font-size: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  background: none;
  cursor: pointer;
}

.mobile-nav-item .material-symbols-outlined {
  font-size: 22px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item.active {
  color: #9ffb06 !important;
}

.mobile-nav-item.active .material-symbols-outlined {
  font-size: 28px !important;
  transform: translateY(-4px);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  filter: drop-shadow(0 0 6px rgba(159, 251, 6, 0.4));
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #9ffb06;
  border-radius: 0 0 3px 3px;
}

/* ═══════════════════════════════════════════
   NEWS SLIDER
   ═══════════════════════════════════════════ */
.news-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.announcement-slide-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}

.announcement-style-glass { background: linear-gradient(155deg, rgba(9,13,27,0.55), rgba(4,9,20,0.32)); }
.announcement-style-bold { background: linear-gradient(145deg, rgba(7,25,50,0.84), rgba(5,60,75,0.5)); border-color: rgba(159,251,6,0.45); }
.announcement-style-minimal { background: rgba(0,0,0,0.52); border-color: rgba(113,113,122,0.6); }
.announcement-layout-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(159,251,6,0.15), transparent 30%);
  pointer-events: none;
}
.announcement-banner-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.announcement-banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(113,113,122,0.4);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15,17,24,0.95), rgba(11,13,19,0.95));
  padding: 10px;
  min-height: 72px;
  cursor: pointer;
}
.announcement-banner-item.compact { min-height: 86px; }
.announcement-banner-item:hover { border-color: rgba(159,251,6,0.38); }
.announcement-banner-media {
  width: 64px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(24,24,27,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.announcement-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.announcement-banner-content { min-width: 0; flex: 1; }
.announcement-banner-date { font-size: 9px; color: #9ffb06; font-weight: 700; margin-bottom: 2px; letter-spacing: .08em; }
.announcement-banner-title { font-size: 12px; color: #fff; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-banner-desc { font-size: 11px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announcement-stack-stage {
  position: relative;
  height: clamp(280px, 42vw, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.announcement-stack-card {
  position: absolute;
  width: min(32vw, 260px);
  aspect-ratio: 3 / 4;
  transition: transform .45s ease, opacity .35s ease, filter .35s ease;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.announcement-stack-card.is-active {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 30;
  filter: none;
  pointer-events: auto;
}
.announcement-stack-card.is-left {
  transform: translateX(-65%) scale(0.84);
  opacity: .5;
  z-index: 20;
  filter: blur(1px);
  pointer-events: auto;
}
.announcement-stack-card.is-right {
  transform: translateX(65%) scale(0.84);
  opacity: .5;
  z-index: 20;
  filter: blur(1px);
  pointer-events: auto;
}
.announcement-stack-card.is-hidden {
  transform: translateY(16px) scale(0.75);
  opacity: 0;
  z-index: 5;
}
.announcement-stack-inner {
  position: relative;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #121217;
}
.announcement-stack-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.announcement-stack-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #17171f, #0f1017);
}
.announcement-stack-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,14,.95), rgba(5,8,14,.25));
}
.announcement-stack-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
}
.announcement-stack-date { font-size: 9px; color: #9ffb06; font-weight: 700; margin-bottom: 2px; letter-spacing: .08em; }
.announcement-stack-title { font-size: 13px; color: #fff; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.announcement-stack-desc { font-size: 11px; color: #a1a1aa; line-height: 1.3; }
.announcement-cta-btn {
  border: 1px solid rgba(159,251,6,0.55);
  background: rgba(10,25,14,0.82);
  color: #d9ff9c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all .2s ease;
}
.announcement-cta-btn:hover { transform: translateY(-1px); background: rgba(22,45,22,0.95); }

.news-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #353534;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-slider-dot.active {
  background: #9ffb06;
  width: 24px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   LEAGUE STANDINGS SLIDER
   ═══════════════════════════════════════════ */
.standings-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.standings-slider-track::-webkit-scrollbar {
  display: none;
}

.standings-slide {
  min-width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   ROUND TEAM AVATAR
   ═══════════════════════════════════════════ */
.team-avatar-round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  background: #1c1b1b;
}

.team-avatar-round-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  background: #1c1b1b;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar-desktop { display: none !important; }
  .main-with-sidebar { margin-left: 0 !important; }
  .mobile-bottom-nav { display: flex !important; flex-direction: column; }
  body { padding-bottom: 70px; }
  .top-search-area, .top-nav-links { display: none !important; }

  /* Smaller scores on mobile */
  .live-score-text { font-size: 2rem !important; }

  /* Admin panel sub-nav on mobile: horizontal scroll */
  .admin-sub-nav-wrap {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px !important;
  }
  .admin-sub-nav-wrap button {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav { display: none !important; }
}

/* ═══════════════════════════════════════════
   GOAL ANIMATION
   ═══════════════════════════════════════════ */
@keyframes goalBounce {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes goalFade {
  0% { transform: translate(-50%, -100%); opacity: 0; }
  15% { transform: translate(-50%, 0); opacity: 1; }
  85% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -100%); opacity: 0; }
}

@keyframes goalParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

@keyframes goalShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.goal-overlay {
  position: fixed;
  top: 24px;
  left: 50%;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(159, 251, 6, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 99999;
  animation: goalFade 3.5s forwards;
  pointer-events: none;
  gap: 12px;
}

.goal-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #9ffb06;
  text-shadow: 0 0 20px rgba(159, 251, 6, 0.6);
  letter-spacing: 0.1em;
}

.goal-icon {
  font-size: 1.5rem;
  animation: goalBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.goal-team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.goal-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: goalParticle 1s ease-out forwards;
}

.goal-shake {
  animation: goalShake 0.5s ease-in-out;
}

/* ═══════════════════════════════════════════
   MATCH START / KICK OFF ANIMATION
   ═══════════════════════════════════════════ */
@keyframes kickoffSlide {
  0% { transform: translate(-50%, -100%); opacity: 0; }
  15% { transform: translate(-50%, 0); opacity: 1; }
  85% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -100%); opacity: 0; }
}

@keyframes kickoffPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
  50% { text-shadow: 0 0 20px rgba(239, 68, 68, 0.9); }
}

.kickoff-overlay {
  position: fixed;
  top: 24px;
  left: 50%;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 99999;
  animation: kickoffSlide 3.5s forwards;
  pointer-events: none;
  gap: 12px;
}

.kickoff-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: kickoffPulse 1s infinite;
}

.kickoff-vs {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   NOTIFICATION SYSTEM
   ═══════════════════════════════════════════ */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #131313;
}

.notification-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #201f1f;
  border: 1px solid #353534;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 9999;
  overflow: hidden;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(53,53,52,0.5);
  transition: background 0.2s;
}

.notification-item:hover {
  background: rgba(255,255,255,0.03);
}

.notification-item:last-child {
  border-bottom: none;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.info { background: rgba(59,130,246,0.15); color: #60a5fa; }
.notif-icon.warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.notif-icon.success { background: rgba(159,251,6,0.15); color: #9ffb06; }
.notif-icon.event { background: rgba(168,85,247,0.15); color: #c084fc; }

/* ═══════════════════════════════════════════
   COMMENT / SOCIAL SECTION
   ═══════════════════════════════════════════ */
.comment-section {
  background: #1c1b1b;
  border-radius: 12px;
  border: 1px solid rgba(53,53,52,0.5);
  overflow: hidden;
}

.comment-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(53,53,52,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-input-area {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(53,53,52,0.5);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-input-area input {
  flex: 1;
  background: #0e0e0e;
  border: 1px solid #353534;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e5e2e1;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input-area input:focus {
  border-color: rgba(159, 251, 6, 0.4);
}

.comment-list {
  max-height: 400px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(53,53,52,0.3);
  transition: background 0.2s;
}

.comment-item:hover {
  background: rgba(255,255,255,0.02);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #9ffb06;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: #71717a;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}

.comment-action-btn:hover { color: #e5e2e1; }
.comment-action-btn.liked { color: #ef4444; }
.comment-action-btn.liked .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

.home-live-card {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, rgba(39,39,42,0.92), rgba(24,24,27,0.88));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}

.events-team-column {
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.events-team-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f4f4f5;
}

.events-team-title.away {
  text-align: right;
}

.events-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid rgba(63, 63, 70, 0.55);
  border-radius: .6rem;
  padding: .45rem .55rem;
  background: rgba(9,9,11,0.45);
}

.events-team-row.away {
  flex-direction: row-reverse;
}

.events-team-meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.events-minute-pill {
  font-size: 10px;
  color: #a1a1aa;
  font-weight: 800;
  min-width: 28px;
}

.events-team-label {
  font-size: 11px;
  font-weight: 700;
  color: #e4e4e7;
}

.live-hero-card {
  position: relative;
  border: 1px solid rgba(161, 255, 22, 0.28);
  background: radial-gradient(circle at 50% 30%, rgba(70, 94, 27, 0.35), rgba(9, 11, 10, 0.92));
}

.live-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 13, var(--live-overlay-darkness, 0.28)), rgba(6, 7, 6, calc(var(--live-overlay-darkness, 0.28) + 0.35)));
  backdrop-filter: blur(2px);
}

@keyframes hero-soft-float {
  0%, 100% { transform: translateY(0px); box-shadow: 0 12px 30px rgba(0,0,0,0.32); }
  50% { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(0,0,0,0.4); }
}
.live-hero-anim { animation: hero-soft-float 5s ease-in-out infinite; }

.live-hero-team-logo {
  width: clamp(56px, 24vw, 110px);
  height: clamp(56px, 24vw, 110px);
  margin: 0 auto;
  border-radius: 9999px;
  border: 2px solid var(--ring, #9ffb06);
  box-shadow: 0 0 30px color-mix(in srgb, var(--ring, #9ffb06) 40%, transparent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 22, 20, 0.95);
}

.live-hero-team-logo img { width: 100%; height: 100%; object-fit: cover; }

.live-hero-team-name {
  font-size: clamp(0.78rem, 4.4vw, 1.5rem);
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.live-hero-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 13vw, 5.2rem);
  font-weight: 900;
  color: #b0ff26;
  line-height: 1;
  text-shadow: 0 0 26px rgba(159, 251, 6, 0.35);
}

.live-hero-minute {
  font-size: clamp(1rem, 6vw, 2rem);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  color: #e4e4e7;
}

.live-hero-stat {
  background: rgba(11, 12, 11, 0.65);
  border: 1px solid rgba(63, 70, 67, 0.7);
  border-radius: 12px;
  padding: 10px;
}

.live-hero-stat-bar {
  margin-top: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(58, 63, 61, 0.7);
  overflow: hidden;
}

.live-hero-stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #84cc16, #9ffb06);
  box-shadow: 0 0 12px rgba(159, 251, 6, 0.6);
}

.standings-glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 30px rgba(0,0,0,0.25);
}

.standings-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)) !important;
  border: 1px solid rgba(148,163,184,0.22);
  backdrop-filter: blur(8px);
}

.glass-sidebar {
  background: rgba(19, 19, 19, 0.82) !important;
  backdrop-filter: blur(12px);
  border-right-color: rgba(122, 130, 141, 0.22) !important;
}

.glass-topbar {
  background: rgba(19, 19, 19, 0.62) !important;
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid rgba(122, 130, 141, 0.18);
}

.rank-card {
  border: 1px solid rgba(82, 82, 91, 0.55);
  background: linear-gradient(160deg, rgba(39,39,42,0.9), rgba(24,24,27,0.85));
  box-shadow: 0 12px 25px rgba(0,0,0,0.24);
}

.rank-card-legend {
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.22), rgba(113, 63, 18, 0.22));
  box-shadow: 0 14px 34px rgba(234, 179, 8, 0.22);
}

.rank-legend-foil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.24), transparent 35%),
    linear-gradient(120deg, rgba(255, 217, 102, 0.25), rgba(250,204,21,0.02) 40%, rgba(255,255,255,0.12) 50%, rgba(250,204,21,0.05) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.form-seq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  margin-right: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.form-seq.g { background: rgba(34,197,94,0.22); color: #86efac; }
.form-seq.b { background: rgba(59,130,246,0.2); color: #93c5fd; }
.form-seq.m { background: rgba(239,68,68,0.2); color: #fca5a5; }

.rank-prime-card {
  clip-path: polygon(8% 0%, 92% 0%, 100% 9%, 100% 88%, 50% 100%, 0% 88%, 0% 9%);
  border: 2px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(165deg, rgba(13, 36, 140, 0.95), rgba(12, 8, 78, 0.92));
  box-shadow: 0 14px 34px rgba(7, 13, 46, 0.62), 0 0 0 1px rgba(56, 189, 248, 0.28) inset;
}

.rank-prime-card-main {
  border-color: rgba(103, 232, 249, 0.75);
  box-shadow: 0 18px 38px rgba(9, 16, 58, 0.7), 0 0 25px rgba(34, 211, 238, 0.3);
}

.rank-prime-frame {
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}

.rank-prime-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(14,165,233,0.22), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,0.14), transparent 40%),
    linear-gradient(160deg, rgba(14, 116, 144, 0.1), rgba(30, 64, 175, 0.05));
  pointer-events: none;
}

.rank-prime-stats {
  background: linear-gradient(180deg, rgba(9, 17, 77, 0.95), rgba(3, 8, 38, 0.96));
}

.ranking-showcase-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120,130,150,0.35);
  background: linear-gradient(165deg, rgba(20,24,33,0.95), rgba(15,18,25,0.95));
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
  transition: transform .25s ease, border-color .25s ease;
  cursor: pointer;
}
.ranking-showcase-card:hover { transform: translateY(-4px); border-color: rgba(159,251,6,0.5); }
.ranking-showcase-card.is-top {
  border-color: rgba(159,251,6,0.65);
  box-shadow: 0 18px 42px rgba(10,28,18,0.65), 0 0 0 1px rgba(159,251,6,0.24) inset;
}
.ranking-showcase-media {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(39,39,42,0.65), rgba(12,18,24,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ranking-showcase-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.12), transparent 45%), radial-gradient(circle at 15% 20%, rgba(159,251,6,0.15), transparent 35%);
  pointer-events: none;
}
.ranking-showcase-rating {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(248,250,252,0.92);
  color: #0f172a;
  padding: 5px 9px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
}
.ranking-showcase-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(159,251,6,0.9);
  color: #0c120a;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 9999px;
}
.ranking-showcase-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(2,6,13,0.92), rgba(2,6,13,0.2));
}
.ranking-showcase-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: rgba(7,10,15,0.86);
}
.ranking-showcase-stats p {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
}
.ranking-showcase-stats strong { color: #f8fafc; font-size: 14px; font-weight: 800; }

.announcement-preview-mini {
  height: 170px;
  border-radius: 14px;
  border: 1px solid rgba(113,113,122,0.45);
  background: linear-gradient(165deg, rgba(8,10,14,0.96), rgba(14,15,20,0.94));
  position: relative;
  overflow: hidden;
}
.announcement-preview-mini-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.announcement-preview-mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.78));
}
.announcement-preview-mini-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
}
.announcement-preview-mini-title { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.announcement-preview-mini-desc { color: #d4d4d8; font-size: 11px; line-height: 1.35; }
.announcement-preview-mini-btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(159,251,6,0.5);
  color: #d9ff9c;
}

/* ═══════════════════════════════════════════
   TEAM ASSIGN MODAL
   ═══════════════════════════════════════════ */
.team-assign-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.team-assign-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1c1b1b;
  border: 1px solid #353534;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.team-assign-card:hover {
  border-color: #9ffb06;
  background: rgba(159, 251, 6, 0.05);
}

/* ═══════════════════════════════════════════
   GOAL DETAILS UNDER TEAMS
   ═══════════════════════════════════════════ */
.goal-detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #c0caae;
}

.goal-detail-item .material-symbols-outlined {
  font-size: 12px;
}

.redcard-detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #ff4444;
}

.redcard-detail-item .material-symbols-outlined {
  font-size: 12px;
  color: #ff4444;
}

/* ═══════════════════════════════════════════════════════════════
   BETTING SYSTEM STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Coupon Tab Buttons */
.coupon-tab-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: #1a1a1a;
  color: #71717a;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.coupon-tab-btn:hover {
  color: #e5e2e1;
}
.coupon-tab-btn.active {
  background: rgba(159, 251, 6, 0.1);
  color: #9ffb06;
  border-color: rgba(159, 251, 6, 0.2);
}

.betting-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #71717a;
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.betting-tab-btn.active {
  background: rgba(159, 251, 6, 0.1);
  border-color: rgba(159, 251, 6, 0.25);
  color: #9ffb06;
}

@media (max-width: 768px) {
  #home-live-panel-shell {
    padding: 14px;
  }

  #live-content .live-match-glow {
    padding: 16px;
  }

  #live-content .live-match-glow > .flex.justify-around {
    gap: 10px;
  }

  #live-content .live-match-glow .w-20.h-20 {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
  }

  #live-content .live-match-glow p.font-headline {
    font-size: 12px;
    line-height: 1.2;
    word-break: break-word;
    text-wrap: balance;
  }

  .live-hero-team-name {
    font-size: clamp(0.72rem, 4.2vw, 0.95rem);
    line-height: 1.2;
    padding: 0 2px;
  }

  .live-hero-minute {
    font-size: clamp(0.95rem, 5vw, 1.1rem);
  }
}

@media (max-width: 420px) {
  .live-hero-team-logo {
    width: 52px;
    height: 52px;
  }

  .live-hero-score {
    font-size: clamp(1.6rem, 11vw, 2.2rem);
  }

  .live-hero-team-name {
    font-size: 0.72rem;
    margin-top: 8px !important;
  }
}

/* Coupon Card */
.coupon-card {
  background: #1a1a1a;
  transition: all 0.3s ease;
}
.coupon-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
