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

:root {
  --bg-main: #060709;
  --bg-card: #0e1015;
  --bg-card-hover: #151821;
  --bg-secondary: #12141a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --bb-orange: #ff5500;
  --bb-orange-glow: rgba(255, 85, 0, 0.35);
  --grimaldi-blue: #3b82f6;
  --grimaldi-blue-glow: rgba(59, 130, 246, 0.4);
  --gold-accent: #facc15;
  --gold-glow: rgba(250, 204, 21, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --font-display: 'Oswald', 'Anton', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #08090b;
}
::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* UNIFIED GRIMALDI.TV HEADER & NAVIGATION */
#grimaldi-unified-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: #ffffff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

#grimaldi-nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#grimaldi-nav-logo img {
  height: 46px;
  width: auto;
  max-width: min(280px, 55vw);
  object-fit: contain;
  display: block;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ff5500;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 85, 0, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

/* RED PROMO BANNER */
#static-promo-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #dc2626;
  color: white;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
}

#static-promo-banner:hover {
  background: #b91c1c;
}

/* SLIDE-OUT MENU DRAWER */
#grimaldiMenuDrawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100%;
  background-color: #08090c;
  border-right: 1px solid var(--border-color);
  z-index: 1000011;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

#grimaldiMenuDrawer.open {
  left: 0;
}

#grimaldiMenuBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000010;
  display: none;
}

#grimaldiMenuBackdrop.open {
  display: block;
}

.drawer-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

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

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 30px 0;
}

.drawer-section-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 0.12em;
  padding: 16px 20px 6px 20px;
  text-transform: uppercase;
}

.grit-nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--grimaldi-blue);
  text-decoration: none;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.grit-nav-link:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  padding-left: 24px;
}

.grit-nav-link.active-channel {
  color: #ff7733 !important;
  background: rgba(255, 85, 0, 0.15);
  border-left: 4px solid var(--bb-orange);
  font-weight: 800;
}

/* HERO PORTAL HEADER */
.hero-portal-wrap {
  margin-top: 102px;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 85, 0, 0.14) 0%, rgba(14, 16, 21, 0.8) 100%),
              radial-gradient(circle at 50% 0%, rgba(255, 85, 0, 0.22) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 20px 30px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #d1d5db;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-tag.highlight {
  background: rgba(255, 85, 0, 0.2);
  border-color: var(--bb-orange);
  color: #ff9966;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 30%, #ff7733 80%, #ff5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 820px;
  margin: 0 auto 24px auto;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary {
  background: linear-gradient(135deg, #ff6600, #ff4400);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--bb-orange-glow);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 85, 0, 0.6);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #ffffff;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* STICKY TAB NAVIGATION */
.tabs-nav-bar {
  background: #090a0d;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 96px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.tabs-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.tab-btn-bets {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  color: #ffffff !important;
  border-radius: 20px;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

.tab-btn-ai {
  background: linear-gradient(135deg, #eab308, #facc15) !important;
  color: #000000 !important;
  border: none !important;
}

/* MAIN CONTENT & TAB PANES */
.main-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

.section-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Controls & Search */
.news-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-input-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 460px;
}

.search-input-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-box input:focus {
  border-color: var(--bb-orange);
  box-shadow: 0 0 15px var(--bb-orange-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.category-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.category-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-chip:hover, .category-chip.active {
  background: rgba(255, 85, 0, 0.15);
  border-color: var(--bb-orange);
  color: #ff9966;
}

/* STORIES & NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 85, 0, 0.1);
}

.story-img-box {
  width: 100%;
  height: 210px;
  position: relative;
  background: #141720;
  overflow: hidden;
}

.story-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.story-card:hover .story-img-box img {
  transform: scale(1.04);
}

.story-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ff9966;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.story-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.story-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 10px;
}

.story-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.read-btn {
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.35);
  color: #ff8844;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.read-btn:hover {
  background: var(--bb-orange);
  color: #ffffff;
}

.espn-link-btn {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.espn-link-btn:hover {
  color: #ffffff;
}

/* LIVE SCOREBOARD */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  transition: all 0.25s ease;
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-status-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.game-status-badge.live {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.game-status-badge.final {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.game-broadcast {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
}

.game-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.team-name-text {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.team-record-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.team-score-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.team-score-num.winner {
  color: #ff7733;
}

/* STANDINGS */
.standings-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .standings-wrap {
    grid-template-columns: 1fr;
  }
}

.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  overflow-x: auto;
}

.standings-header {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.standings-table th {
  color: var(--text-dim);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-color);
}

.standings-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d1d5db;
}

.standings-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #ffffff !important;
}

/* MODAL & TOAST */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-window {
  background: #0e1015;
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.full-story-content {
  font-size: 16px;
  line-height: 1.85;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.full-story-content p {
  margin-bottom: 1.35em;
  line-height: 1.85;
  color: #e5e7eb;
}

.full-story-content a {
  color: #60a5fa;
  text-decoration: underline;
}

.full-story-content a:hover {
  color: #93c5fd;
}

.full-story-content h2, .full-story-content h3 {
  color: #facc15;
  font-weight: 800;
  margin: 24px 0 12px 0;
  line-height: 1.3;
}

.full-story-content blockquote {
  border-left: 3px solid #ff5500;
  padding: 12px 18px;
  margin: 20px 0;
  background: rgba(255, 85, 0, 0.05);
  color: #f3f4f6;
  font-style: italic;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 26px;
  cursor: pointer;
}

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

.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000099;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portal-footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.portal-footer a {
  color: var(--grimaldi-blue);
  text-decoration: none;
}

.full-story-content p {
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #e5e7eb;
}

.full-story-content p a {
  color: #60a5fa;
  text-decoration: underline;
}

.full-story-content blockquote {
  border-left: 3px solid #ff5500;
  padding-left: 16px;
  margin: 16px 0;
  color: #facc15;
  font-style: italic;
}
