@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Space+Mono:wght@700&display=swap');

:root {
  --bg-color: #050608;
  --bg-secondary: #0a0c10;
  --card-bg: rgba(16, 18, 24, 0.85);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-border-glow: rgba(255, 255, 255, 0.35);
  --accent: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);
  --cyan-accent: #e5e7eb;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  line-height: 1.6;
}

/* TYPOGRAPHY */
h1, h2, h3, .section-title, .league-title, .logo-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HEADER */
header {
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 1001;
}

.login-trigger-btn {
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.login-trigger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.logo-container img {
  height: 70px;
  transform: scale(1.0);
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo-container img:hover {
  transform: scale(3.53);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--text-muted);
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: rgba(10, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--card-border);
  padding: 6rem 2rem 2rem 2rem;
  transition: left 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
}

.nav-drawer.open {
  left: 0;
}

.nav-drawer ul {
  list-style: none;
}

.nav-drawer li {
  margin-bottom: 1.8rem;
}

.nav-drawer a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: block;
}

.nav-drawer a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: rgba(16, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  text-align: center;
  animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ffffff;
}

.modal-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background-color: rgba(5, 6, 8, 0.85);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 0.8rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

main {
  flex: 1;
  padding: 2rem 5% 4rem 5%;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff;
  margin-right: 0.4rem;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.league-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.league-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.league-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.league-desc {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.league-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

.stat-item h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.stat-item p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.table-wrapper {
  overflow-x: auto;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  margin-bottom: 3rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem 1.2rem;
}

th {
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-bottom: 1px solid var(--card-border);
}

td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.team-cell {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rank-num {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 18px;
}

.highlight-rank {
  color: #ffffff;
  font-weight: 900;
}

.date-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

.date-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.location-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.matchup-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.matchup-card:hover {
  border-color: var(--card-border-glow);
  transform: translateY(-2px);
}

.time-slot {
  text-align: center;
  border-right: 1px solid var(--card-border);
  padding-right: 1rem;
  font-family: var(--font-mono);
}

.time-slot .time {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.time-slot .court {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.teams-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.vs-badge {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.broadcast-status {
  text-align: right;
}

.btn-watch, .btn-watch-modal {
  display: inline-block;
  background: #ffffff !important;
  color: #000000 !important;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-watch:hover, .btn-watch-modal:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
  background: #ffffff !important;
  color: #000000 !important;
}

.badge-upcoming {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.story-block {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.story-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.story-block p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.cta-box {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(16, 18, 24, 0.95) 100%);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.cta-box h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.merch-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.merch-card:hover {
  border-color: var(--card-border-glow);
  transform: translateY(-4px);
}

.product-image-box {
  width: 100%;
  height: 260px;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--card-border);
}

.product-image-box .item-icon {
  font-size: 4rem;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

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

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text);
}

.btn-buy {
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.leagues-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.league-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.league-card-static {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.league-card-static:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.15);
}

.league-card-static:hover .league-title {
  color: var(--accent);
}

.league-card-interactive {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.8rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.league-card-interactive:hover {
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.08);
}

.league-card-interactive.pinned {
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.pin-indicator {
  display: none;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: auto;
}

.league-card-interactive.pinned .pin-indicator {
  display: inline-flex;
}

.standings-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease;
  margin-top: 0;
}

.league-card-interactive:hover .standings-drawer,
.league-card-interactive.pinned .standings-drawer {
  max-height: 800px;
  opacity: 1;
  margin-top: 1.5rem;
}

.drawer-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.8rem;
  font-style: italic;
}

/* TEAM ROSTER PILLS */
.teams-roster-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.team-pill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  width: 200px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  box-sizing: border-box;
  padding: 0 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.team-pill-card span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-pill-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.15);
}

.time-slot-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.time-slot-link:hover {
  transform: scale(1.05);
}

.time-slot-link:hover .time {
  color: var(--accent);
}

/* GAME DETAILS SCOREBOARD */
.scoreboard-card {
  background: linear-gradient(135deg, rgba(18, 22, 31, 0.95) 0%, rgba(10, 13, 20, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.scoreboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}

.scoreboard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-block h2 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.score-digit {
  font-size: 3.8rem;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1.4rem;
  border-radius: 12px;
  min-width: 90px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

.score-digit.winner-glow {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.vs-text {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-pill.final {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-pill.upcoming {
  background: rgba(255, 59, 48, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.broadcast-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.no-film-card {
  background: rgba(18, 22, 31, 0.6);
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* PORTAL VIDEO OVERLAY */
.video-modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.video-modal-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--card-border);
}

.video-modal-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.btn-action-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-download-direct {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-download-direct:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.spotlight-time-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.spotlight-time-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(255, 59, 48, 0.15);
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.3);
}

/* ADMIN DASHBOARD */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.admin-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.admin-select, 
input[type="text"], 
input[type="url"], 
input[type="date"],
input[type="time"],
input[type="number"] {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background-color: rgba(5, 6, 8, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-select {
  padding-right: 2.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1rem;
}

input[type="date"], input[type="time"] {
  cursor: pointer;
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.admin-select:focus, .admin-select:hover,
input[type="text"]:focus, input[type="text"]:hover,
input[type="url"]:focus, input[type="url"]:hover,
input[type="date"]:focus, input[type="date"]:hover,
input[type="time"]:focus, input[type="time"]:hover {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.admin-select option {
  background-color: #050608;
  color: #fff;
  padding: 0.8rem;
}

.admin-btn {
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.admin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-activate.glowing {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6) !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.btn-activate.glowing:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.8) !important;
  transform: translateY(-2px);
}

.btn-deactivate.glowing {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6) !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.btn-deactivate.glowing:hover {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.8) !important;
  transform: translateY(-2px);
}

.btn-status-disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  transform: none !important;
}

.table-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  min-width: 85px;
}

.btn-table-save {
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  color: #000000;
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-table-save:hover {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-table-edit {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-table-edit:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.btn-table-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-table-delete:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.6);
}

.edit-modal-card {
  background: rgba(16, 18, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2rem;
  width: 92%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  animation: modalSlide 0.3s ease-out;
}

.in-website-alert {
  display: none;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-in-out;
}

.in-website-alert.success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #34d399;
}

.in-website-alert.error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #f87171;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ticker-wrapper {
  width: 100%;
  background: rgba(16, 18, 24, 0.95);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.ticker-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.ticker-label {
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  font-family: var(--font-heading);
}

.ticker-track-window {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: tickerScroll 140s linear infinite;
  padding: 0.6rem 0;
}

.ticker-track-window:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
}

.ticker-item .winner {
  color: #fff;
  font-weight: 900;
}

.ticker-item .score-tag {
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-mono);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(16, 18, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

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

.spotlight-badge {
  background: #ffffff;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: #555c6e;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.back-btn-container {
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: var(--text);
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  .admin-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo-container img {
    height: 55px;
  }

  .matchup-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .time-slot {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding-right: 0;
    padding-bottom: 0.8rem;
  }

  .teams-container {
    justify-content: center;
  }

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

  th, td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }

  .admin-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .scoreboard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-block h2 {
    font-size: 1.4rem;
  }

  .score-digit {
    font-size: 3rem;
    padding: 0.3rem 1rem;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}