:root {
  --bg-dark: #0a0305;
  --card-red-border: #dc2626;
  --card-bg-inner: rgba(18, 5, 8, 0.95);
  --accent-gold: #f5c518;
  --text-muted: #b89ca4;
}

body {
  background-color: var(--bg-dark);
  color: #fce7f3;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ============================================================
   HERO SECTION — dimmed, looping, muted background video
   ============================================================ */
.hero-header {
  position: relative;
  overflow: hidden;
  background: #150508;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 50px 20px 32px;
  text-align: center;
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
  filter: brightness(0.42) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,3,5,0.45) 0%, rgba(10,3,5,0.30) 45%, rgba(10,3,5,0.92) 100%),
    radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.35), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap { display: none; }
}

.hero-header .container { 
  position: relative; 
  z-index: 2; 
}

/* Master Logo Image */
.hero-logo-img {
  max-width: 380px;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255, 26, 42, 0.65)) drop-shadow(0 0 12px rgba(245, 197, 24, 0.4));
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Top Nav Pill */
.nav-pill-container {
  background: rgba(185, 28, 28, 0.7);
  border: 2px solid #ef4444;
  border-radius: 40px;
  padding: 6px 14px;
  display: inline-flex;
  gap: 16px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
  margin-top: 10px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  justify-content: center;
}

.nav-pill-link {
  color: #fff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-pill-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-gold);
}

/* Main Container Spacing */
main.container {
  position: relative;
  z-index: 2;
  margin-bottom: 70px !important;
}

/* Section Red Frame Containers */
.red-frame-box {
  background: var(--card-bg-inner);
  border: 3px solid var(--card-red-border);
  border-radius: 22px;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: 0 0 30px rgba(185, 28, 28, 0.25);
  height: auto;
}

.standings-frame {
  height: 100%;
}

.red-frame-badge {
  position: absolute;
  top: -16px;
  left: 24px;
  background: #fff;
  border: 2px solid #fff;
  color: #dc2626;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

.red-frame-badge:hover {
  color: #b91c1c;
}

/* Media Grid */
.media-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
  text-decoration: none;
}

.media-card:hover {
  transform: scale(1.03);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.35);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.media-card:hover .media-play-icon {
  color: var(--accent-gold);
  transform: translate(-50%, -50%) scale(1.15);
}

.media-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Media Category Corner Badge */
.media-category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 3, 5, 0.85);
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: var(--accent-gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.badge-races { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
.badge-show  { border-color: rgba(168, 85, 247, 0.6); color: #d8b4fe; }
.badge-guide { border-color: rgba(0, 229, 255, 0.6); color: #67e8f9; }

/* News Horizontal Cards */
.news-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.news-card:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateX(4px);
  color: inherit;
}

.news-thumb {
  width: 110px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: #1a080d;
}

.news-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #fff;
}

.news-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.news-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Standings Box */
.standings-avatar-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--card-red-border);
  padding: 4px;
  margin: 0 auto 8px;
  background: radial-gradient(circle, #b91c1c, #450a0a);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.standings-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.standings-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.standings-name {
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.standings-points { 
  display: none; 
}

/* ============================================================
   ABOUT SECTION — Umamusume Racing Background
   ============================================================ */
.about-section {
  position: relative;
  background:
    linear-gradient(90deg, rgba(10,3,5,0.96) 0%, rgba(10,3,5,0.85) 45%, rgba(10,3,5,0.55) 75%, rgba(10,3,5,0.85) 100%),
    url('https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fd.newsweek.com%2Fen%2Ffull%2F2685971%2Fumamusume-girls-racing.jpg&f=1&nofb=1&ipt=a6a0482f432787f1ff9571b85940ca42f4a092d9307acd43384ba4f4c6864c32') center/cover no-repeat;
  border-top: 3px solid #b91c1c;
  border-bottom: 3px solid #b91c1c;
  padding: 70px 0 80px;
  clear: both;
}

.about-heading {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #fce7f3;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  max-width: 52ch;
}

/* Joining The Race */
.join-step-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
}

.join-icon-box {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 14px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.join-step-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #fff;
}

/* Footer */
footer {
  background: #000;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}