/* =============================================
   FIJIAN FLAIR — MAIN STYLESHEET
   Bleacher Report Inspired | Dark Theme
   Colors: Dark Grey BG | Black & White palette
   ============================================= */

/* ---- CSS RESET & VARIABLES ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #222222;
  --bg-card: #272727;
  --bg-header: #111111;
  --bg-ticker: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --accent-white: #ffffff;
  --accent-light: #e0e0e0;
  --tag-red: #ffc000;
  --on-accent: #111111;
  --loss-red: #e63946;
  --tag-gold: #f4a261;
  --tag-blue: #457b9d;
  --border: #333333;
  --border-light: #444444;
  --card-hover: #2f2f2f;
  --font-headline: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --radius: 4px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

p, .hero-sub, .card-body p {
  font-family: var(--font-body);
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6, .hero-headline, .section-title {
  font-family: var(--font-headline);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   BREAKING NEWS TICKER
   ============================================= */
.ticker-bar {
  background: var(--bg-ticker);
  border-bottom: 2px solid var(--tag-red);
  display: flex;
  align-items: center;
  height: 36px;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ticker-label {
  background: var(--tag-red);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding-left: 30px;
}

.ticker-inner span {
  padding: 0 4px;
}

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

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 36px;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

/* Logo */
.logo-area {
  flex-shrink: 0;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-main {
  color: var(--accent-white);
}

.logo-accent {
  color: var(--tag-red);
  margin-left: 6px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: var(--text-primary);
}

.subscribe-btn {
  background: var(--tag-red);
  color: #fff;
  border: none;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: #c1121f;
}

/* =============================================
   SLIDING OPTION MENU BAR (HOMEPAGE)
   ============================================= */
.sliding-menu-bar {
  background: #171717;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid #282828;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.sliding-menu-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scrollbar-width: none;
  white-space: nowrap;
}

.sliding-menu-track::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: #242424;
  border: 1px solid #383838;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.cat-btn:hover {
  background: #333333;
  color: #ffffff;
  border-color: #555555;
  transform: translateY(-1px);
}

.cat-btn.active {
  background: var(--tag-red);
  color: #ffffff;
  border-color: var(--tag-red);
  box-shadow: 0 3px 12px rgba(255, 192, 0, 0.45);
}

.cat-btn.has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-btn.has-dropdown .arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.cat-btn.has-dropdown.open .arrow {
  transform: rotate(180deg);
}

/* =============================================
   OVERSEAS SUB-BAR (HOMEPAGE 2-TIER SUB-MENU)
   ============================================= */
.overseas-subbar {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid var(--tag-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
  animation: slideDownSubbar 0.25s ease forwards;
}

.overseas-subbar.active {
  display: block;
}

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

.overseas-subbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.overseas-leagues-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.2);
}

.overseas-subbar-tag {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--tag-red);
  white-space: nowrap;
  flex-shrink: 0;
}

.overseas-subbar-tag.leagues-tag {
  color: #f4a261;
}

.overseas-subbar-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  flex: 1;
  padding: 2px 0;
}

.overseas-subbar-track::-webkit-scrollbar {
  display: none;
}

.overseas-country-pill {
  background: #222222;
  border: 1px solid #353535;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.overseas-country-pill:hover {
  background: #333;
  color: #fff;
  border-color: #555;
}

.overseas-country-pill.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
  font-weight: 800;
}

.overseas-league-pill {
  background: rgba(255, 192, 0, 0.12);
  border: 1px solid rgba(255, 192, 0, 0.35);
  color: #ff858f;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.overseas-league-pill:hover {
  background: var(--tag-red);
  color: #fff;
  border-color: var(--tag-red);
}

.overseas-league-pill.active {
  background: var(--tag-red);
  color: #fff;
  border-color: var(--tag-red);
  box-shadow: 0 2px 8px rgba(255, 192, 0, 0.4);
}

/* =============================================
   SIMPLE DROPDOWN MENU (DESKTOP & MOBILE)
   ============================================= */
.simple-dropdown-menu {
  position: absolute;
  background: #1c1c1c;
  border: 1px solid #383838;
  border-top: 3px solid var(--tag-red);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 10005;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
}

.simple-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.simple-dropdown-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.simple-dropdown-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.simple-dropdown-item-btn .dropdown-item-bullet {
  color: var(--tag-red);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.simple-dropdown-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 22px;
}

.simple-dropdown-item-btn:hover .dropdown-item-bullet {
  transform: translateX(3px);
}

.simple-dropdown-item-btn.active {
  background: rgba(255, 192, 0, 0.2);
  color: #fff;
  border-left: 3px solid var(--tag-red);
}

/* FF Studio & Shop Special Pills */
.cat-btn.special-studio {
  background: rgba(255, 192, 0, 0.15);
  border-color: rgba(255, 192, 0, 0.5);
  color: #ff6b77;
}

.cat-btn.special-studio:hover {
  background: var(--tag-red);
  color: #fff;
}

.cat-btn.special-shop {
  background: rgba(255, 255, 255, 0.08);
  border-color: #555;
  color: #f4a261;
}

.cat-btn.special-shop:hover {
  background: #f4a261;
  border-color: #f4a261;
  color: #111;
}

/* =============================================
   OVERSEAS MEGA MENU (DESKTOP)
   ============================================= */
.overseas-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #181818;
  border-bottom: 2px solid var(--tag-red);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1000;
}

.overseas-mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.overseas-mega-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 28px;
}

.overseas-mega-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2d2d2d;
}

.overseas-mega-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.overseas-all-btn {
  background: rgba(255, 192, 0, 0.15);
  border: 1px solid rgba(255, 192, 0, 0.4);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.overseas-all-btn:hover {
  background: var(--tag-red);
  border-color: var(--tag-red);
}

.overseas-mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.overseas-col {
  display: flex;
  flex-direction: column;
}

.overseas-country-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.overseas-league-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overseas-league-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  display: block;
  width: 100%;
}

.overseas-league-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding-left: 12px;
}

.overseas-league-btn.active {
  background: rgba(255, 192, 0, 0.2);
  color: #ffffff;
  font-weight: 700;
  border-left: 3px solid var(--tag-red);
}

/* =============================================
   OVERSEAS DRAWER / BOTTOM SHEET (MOBILE)
   ============================================= */
.overseas-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overseas-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.overseas-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 82vh;
  background: #1c1c1c;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 2px solid var(--tag-red);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.overseas-drawer.active {
  transform: translateY(0);
}

.overseas-drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d2d2d;
  flex-shrink: 0;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title-group h3 {
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0;
}

.drawer-close-btn {
  background: #2a2a2a;
  border: none;
  color: #ccc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: #3a3a3a;
  color: #fff;
}

.drawer-quick-all {
  padding: 12px 20px 6px;
  flex-shrink: 0;
}

.drawer-all-btn {
  width: 100%;
  background: rgba(255, 192, 0, 0.15);
  border: 1px solid rgba(255, 192, 0, 0.4);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.overseas-drawer-body {
  padding: 12px 20px 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section {
  background: #242424;
  border: 1px solid #333333;
  border-radius: 10px;
  overflow: hidden;
}

.drawer-section-title {
  padding: 12px 14px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2d2d2d;
  background: rgba(255, 255, 255, 0.02);
}

.drawer-leagues {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.drawer-league-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: all 0.15s ease;
}

.drawer-league-btn:last-child {
  border-bottom: none;
}

.drawer-league-btn:active {
  background: rgba(255, 192, 0, 0.2);
  color: #fff;
}

.drawer-league-btn::after {
  content: "→";
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .overseas-mega-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .overseas-mega-menu {
    display: none !important;
  }
}

/* =============================================
   TAGS
   ============================================= */
.tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tag-sm {
  font-size: 0.68rem;
  padding: 2px 7px;
}

.tag-red { background: var(--tag-red); }
.tag-gold { background: var(--tag-gold); color: #111; }
.tag-blue { background: var(--tag-blue); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Fallback gradient when no image */
  background-color: #1e1e1e;
  background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.75) 55%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.headline-accent {
  color: var(--tag-red);
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.hero-meta .dot {
  color: var(--border-light);
}

.author strong {
  color: var(--text-secondary);
}

.read-btn {
  display: inline-block;
  background: var(--tag-red);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}

.read-btn:hover {
  background: #c1121f;
  transform: translateY(-1px);
}

/* Hero Sidebar */
.hero-sidebar {
  position: relative;
  z-index: 2;
  background: rgba(17,17,17,0.95);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sidebar-story {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
  flex: 1;
  align-items: center;
}

.sidebar-story:last-child {
  border-bottom: none;
}

.sidebar-story:hover {
  background: rgba(255,255,255,0.04);
}

.sidebar-img {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #333;
  border-radius: var(--radius);
  background-image: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.sidebar-info h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-top: 4px;
  color: var(--text-primary);
}

.sidebar-info .timestamp {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

/* =============================================
   CATEGORY TABS
   ============================================= */
.category-tabs-section {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.category-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.cat-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.cat-btn:hover {
  color: var(--text-primary);
}

.cat-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--tag-red);
}

/* =============================================
   SECTION HEADERS & SHARED
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.title-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--tag-red);
  border-radius: 2px;
}

.see-all {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--tag-red);
  transition: opacity var(--transition);
}

.see-all:hover {
  opacity: 0.7;
}

.timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =============================================
   TRENDING STORIES GRID
   ============================================= */
.trending-section {
  padding: 48px 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.story-card.large {
  grid-column: span 2;
  flex-direction: row;
}

.story-card.large .card-img {
  width: 50%;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
}

.story-card.large .card-body {
  padding: 28px;
}

.story-card.large h2 {
  font-size: 1.4rem;
}

.card-img {
  width: 100%;
  height: 190px;
  background-color: #333;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #2a2a3a, #1a1a2a);
  flex-shrink: 0;
}

.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-meta .dot {
  color: var(--border-light);
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.react-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.react-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

.bookmark-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.bookmark-btn:hover {
  opacity: 1;
}

/* Empty state for categories */
.empty-category-card {
  grid-column: 1 / -1;
  background: #1e1e1e;
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
  animation: fadeIn 0.3s ease;
}

.empty-category-card .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-category-card h3 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.empty-category-card p {
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.empty-category-card code {
  color: var(--tag-red);
  background: rgba(255, 192, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =============================================
   VIDEO SECTION
   ============================================= */
.video-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.video-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.video-card {
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.video-card.featured-video {
  grid-row: span 2;
}

.video-thumb {
  position: relative;
  background-color: #222;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #1a1a3a, #0a0a1a);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  width: 52px;
  height: 52px;
  background: rgba(255, 192, 0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  transition: background var(--transition), transform var(--transition);
}

.video-card:hover .play-btn {
  background: var(--tag-red);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-headline);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-info {
  padding: 14px;
}

.video-info h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 6px;
}

.video-card.featured-video .video-info h3 {
  font-size: 1.2rem;
}

/* =============================================
   SCORES BAND
   ============================================= */
.scores-band {
  padding: 32px 0;
}

.scores-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.scores-tabs {
  display: flex;
  gap: 4px;
}

.score-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.score-tab.active,
.score-tab:hover {
  background: var(--tag-red);
  border-color: var(--tag-red);
  color: #fff;
}

.scores-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  flex-shrink: 0;
  min-width: 240px;
  transition: border-color var(--transition);
}

.score-card:hover {
  border-color: var(--border-light);
}

.score-card.upcoming {
  border-style: dashed;
  opacity: 0.85;
}

.score-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.team-flag {
  font-size: 1.6rem;
  line-height: 1;
}

.team-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.team-score {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-primary);
}

.score-divider {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  padding: 0 4px;
}

.upcoming-time {
  font-size: 0.7rem;
  line-height: 1.3;
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-family: var(--font-headline);
}

.score-sub {
  font-size: 0.65rem;
  opacity: 0.7;
}

.scores-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: -8px 0 12px;
}

/* Result cards are buttons so they can open the scoring pop-up */
button.score-card {
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

button.score-card:focus-visible {
  outline: 2px solid var(--tag-red);
  outline-offset: 2px;
}

/* Team crests, with initials shown when no image is available */
.team-logo {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-logo:empty {
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
}

.team-logo:empty::before {
  content: attr(data-initials);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.team-logo.small { width: 24px; height: 24px; }
.team-logo.small:empty::before { font-size: 0.55rem; }
.team-logo.large { width: 64px; height: 64px; }

.draw-badge { background: #555 !important; }

.sevens-place {
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.sevens-record {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Scoring pop-up */
.match-modal {
  padding: 32px 28px;
}

.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.match-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  text-align: center;
}

.match-score {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  text-align: center;
  color: #fff;
}

.match-score small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
}

.match-meta {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 16px 0 8px;
  line-height: 1.6;
}

.match-subhead {
  font-family: var(--font-headline);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 20px 0 8px;
}

.match-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-row {
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}

.tl-row.tl-a .tl-event { text-align: right; }

.tl-min {
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--tag-red);
}

.tl-event small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tl-running {
  font-family: var(--font-headline);
  font-weight: 700;
  text-align: right;
  color: var(--text-secondary);
}

.match-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.sevens-head {
  justify-content: flex-start;
}

.sevens-head .modal-title { margin: 0; }
.sevens-head .match-meta { text-align: left; margin: 4px 0 0; }

.sevens-games {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.sevens-game {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}

.sg-stage { color: var(--text-muted); font-size: 0.78rem; }
.sg-opp { display: flex; align-items: center; gap: 8px; }
.sg-score { font-family: var(--font-headline); font-weight: 800; text-align: right; }
.sevens-game.won .sg-score { color: #4caf50; }
.sevens-game.lost .sg-score { color: var(--loss-red); }

@media (max-width: 600px) {
  .match-modal { padding: 24px 16px; }
  .match-score { font-size: 2rem; }
  .team-logo.large { width: 48px; height: 48px; }
  .scores-tabs { flex-wrap: wrap; }
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.newsletter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(255, 192, 0,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 192, 0,0.25);
  border-radius: 8px;
  padding: 32px 40px;
}

.newsletter-text h2 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.newsletter-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  min-width: 380px;
}

.email-input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 11px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}

.email-input:focus {
  border-color: rgba(255, 192, 0,0.6);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.subscribe-submit {
  background: var(--tag-red);
  color: #fff;
  border: none;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 11px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.subscribe-submit:hover {
  background: #c1121f;
}

/* =============================================
   OPINION SECTION
   ============================================= */
.opinion-section {
  padding: 48px 0;
}

.opinion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.opinion-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.opinion-item:hover {
  background: rgba(255,255,255,0.02);
  padding-left: 8px;
  margin-left: -8px;
  padding-right: 8px;
}

.opinion-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.06);
  min-width: 56px;
  line-height: 1;
}

.opinion-body {
  flex: 1;
}

.opinion-body h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 4px 0 6px;
}

.opinion-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =============================================
   SOCIAL BAND
   ============================================= */
.social-band {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.social-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-header);
  padding: 48px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.87rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
  }

  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-card.large {
    grid-column: span 2;
    flex-direction: column;
  }

  .story-card.large .card-img {
    width: 100%;
    height: 220px;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-card.featured-video {
    grid-column: span 2;
    grid-row: auto;
  }

  .newsletter-box {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    min-width: unset;
    width: 100%;
    max-width: 480px;
  }
}

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

  .story-card.large {
    grid-column: span 1;
    flex-direction: column;
  }

  .story-card.large .card-img {
    width: 100%;
    height: 200px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card.featured-video {
    grid-column: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .hero-content {
    padding: 36px 20px;
  }

  .scores-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .newsletter-box {
    padding: 24px 20px;
  }
}

/* =============================================
   RESULTS & WIN/LOSS BADGES
   ============================================= */
.result-score {
  color: var(--text-primary);
}

.win-badge {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-top: 4px;
}

.loss-badge {
  background: rgba(230, 57, 70, 0.15);
  color: #f87171;
  border-color: rgba(230, 57, 70, 0.3);
}

.report-link {
  display: block;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--tag-red);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  transition: opacity var(--transition);
}

.report-link:hover {
  opacity: 0.7;
}

/* Scores band section-header row */
.scores-band .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   PAGINATION CONTROLS
   ============================================= */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--accent-white);
  transform: translateY(-1px);
}

.page-btn.active {
  background: var(--tag-red);
  border-color: var(--tag-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 192, 0, 0.4);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.page-info {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
  margin-right: 8px;
}

/* =============================================
   CLICKABLE CARD STYLES
   ============================================= */
.story-card,
.sidebar-story,
.video-card,
.hero-content,
.read-btn {
  cursor: pointer;
}

.story-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.sidebar-story {
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 8px;
  border-radius: var(--radius);
}

.sidebar-story:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.video-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 192, 0, 0.4);
}

/* =============================================
   STORY READER MODAL
   ============================================= */
.story-modal-backdrop,
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.story-modal-backdrop.open,
.video-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.story-modal {
  position: relative;
  background: #181818;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-modal-backdrop.open .story-modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  background: var(--tag-red);
  border-color: var(--tag-red);
  transform: rotate(90deg);
}

.story-modal-scroll {
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.story-modal-scroll::-webkit-scrollbar {
  width: 8px;
}
.story-modal-scroll::-webkit-scrollbar-track {
  background: #111;
}
.story-modal-scroll::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

/* Modal Article Content Styling */
.modal-header-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  background: #0d0d0d;
}

.modal-article-body {
  padding: 32px 36px 48px;
}

.modal-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal-title {
  font-family: var(--font-headline);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #2a2a2a;
}

.modal-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.modal-author-info strong {
  color: #fff;
}

.modal-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  background: #252525;
  border: 1px solid #383838;
  color: var(--text-secondary);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn:hover {
  background: #333;
  color: #fff;
  border-color: #555;
}

.modal-prose {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: #dedede;
}

.modal-prose p {
  margin-bottom: 18px;
}

.modal-lead {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  border-left: 3px solid var(--tag-red);
  padding-left: 16px;
  margin-bottom: 24px;
}

.modal-quote {
  background: rgba(255, 192, 0, 0.08);
  border-left: 4px solid var(--tag-red);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #fff;
  font-size: 1.05rem;
}

.modal-via {
  margin-top: 28px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
}

.modal-source-banner {
  margin-top: 32px;
  padding: 20px;
  background: #202020;
  border: 1px solid #333;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-source-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-source-btn {
  background: var(--tag-red);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.modal-source-btn:hover {
  background: #c1202e;
  transform: translateY(-1px);
}

/* =============================================
   VIDEO PLAYER MODAL
   ============================================= */
.video-modal {
  position: relative;
  background: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-backdrop.open .video-modal {
  transform: translateY(0) scale(1);
}

.video-modal-body {
  padding: 0;
}

.video-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.video-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-big-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tag-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding-left: 5px;
  box-shadow: 0 0 30px rgba(255, 192, 0, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-big-play:hover {
  transform: scale(1.1);
}

.video-details {
  padding: 24px 28px;
}

.video-details h2 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.video-details p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.video-details .video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .modal-article-body {
    padding: 20px 18px 32px;
  }
  .modal-title {
    font-size: 1.35rem;
  }
  .video-details {
    padding: 16px 18px;
  }
}

/* ===== INSTAGRAM FEED STRIP ===== */
.insta-section {
  padding: 40px 0 8px;
}

.insta-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--tag-red) var(--bg-secondary);
}

.insta-strip iframe {
  flex: 0 0 326px;
  height: 470px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

@media (max-width: 600px) {
  .insta-strip iframe {
    flex-basis: 82vw;
  }
}

/* Keep section headings clear of the sticky header when jumping to them */
#ff-studio-section,
.trending-section,
#stories-grid,
#newsletter-section {
  scroll-margin-top: 190px;
}

/* ===== HOT TAKE SUBMISSION BOX ===== */
.hot-take-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tag-red);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hot-take-head h3 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.hot-take-head p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0;
}

.hot-take-text {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.hot-take-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hot-take-row .email-input {
  min-width: 200px;
}

.hot-take-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}

@media (max-width: 600px) {
  .hot-take-row .subscribe-submit {
    width: 100%;
  }
}

/* ---- Brand yellow: dark text on solid yellow ---- */
.ticker-label, .subscribe-btn, .cat-btn.active, .overseas-league-pill:hover, .overseas-league-pill.active,
.cat-btn.special-studio:hover, .overseas-all-btn:hover, .tag-red, .read-btn, .title-bar, .title-bar *,
.play-btn, .video-card:hover .play-btn, .score-tab:hover, .subscribe-submit, .page-btn.active,
.modal-close-btn:hover, .modal-source-btn, .video-big-play {
  color: var(--on-accent) !important;
}
.logo-link { display: flex; align-items: center; }

.ticker-bar:hover .ticker-inner { animation-play-state: paused; }

/* Sevens pool fixtures on a tournament card */
.sevens-fixtures { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.sevens-fixture { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; }
.sf-opp { display: flex; align-items: center; gap: 6px; color: var(--text-primary); font-weight: 600; }
.sf-when { color: var(--tag-red); font-weight: 600; white-space: nowrap; }
.sf-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 6px; }

/* Cookie banner (only shown once Google Analytics is switched on) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 3000;
  max-width: 760px; margin: 0 auto; padding: 16px 18px;
  background: #111; border: 1px solid var(--border-light); border-top: 3px solid var(--tag-red);
  border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner p { flex: 1 1 320px; margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.cookie-banner p a { color: var(--tag-red); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn { font-family: var(--font-headline); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border-light); }
.cookie-decline { background: transparent; color: var(--text-primary); }
.cookie-accept { background: var(--tag-red); border-color: var(--tag-red); color: var(--on-accent); }
