/* ==========================================================================
   VIRGINIA GLADIATORS 2017 - INTERACTIVE WEB APPLICATION
   Color System: Royal Blue & Crisp White with Deep Navy & Electric Pink Accents
   ========================================================================== */

:root {
  /* Core Color Palette: Royal Blue & Pure White with Masculine Electric Pink Trim */
  --primary: #0062ff;
  --primary-dark: #0045b5;
  --primary-light: #2979ff;
  --primary-glow: rgba(0, 98, 255, 0.4);
  
  --secondary: #ffffff;
  --secondary-muted: #e2e8f0;
  
  --accent-pink: #ff1361;
  --accent-pink-glow: rgba(255, 19, 97, 0.35);
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.3);

  --accent-cyan: #06b6d4;
  --accent-green: #10b981;

  /* Backgrounds: Deep Obsidian Navy */
  --bg-black: #060a14;
  --bg-card: rgba(13, 23, 48, 0.78);
  --bg-card-hover: rgba(20, 35, 70, 0.9);
  --bg-glass: rgba(10, 18, 38, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-active: rgba(0, 98, 255, 0.7);
  --border-pink: rgba(255, 19, 97, 0.55);
  --border-blue: rgba(0, 98, 255, 0.5);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Montserrat', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-black);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Background Atmosphere: Royal Blue & Deep Navy with Electric Pink flares */
.arena-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 12% 18%, rgba(0, 98, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 88% 55%, rgba(255, 19, 97, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(0, 69, 181, 0.2) 0%, transparent 50%),
    #060a14;
}

.arena-ambient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* App Header / Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.app-header.scrolled {
  background: rgba(6, 10, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(0, 98, 255, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 12px var(--primary-glow));
  transition: transform var(--transition-bounce);
}

.brand-badge:hover img {
  transform: rotate(-6deg) scale(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pink);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  background: rgba(0, 98, 255, 0.22);
  color: #60a5fa;
  border: 1px solid rgba(0, 98, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-icon.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 0 14px var(--primary-glow);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-cta:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px rgba(0, 98, 255, 0.6);
  transform: translateY(-2px);
}

.btn-cta-pink {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #d8004f 100%);
  box-shadow: 0 4px 15px var(--accent-pink-glow);
}

.btn-cta-pink:hover {
  background: linear-gradient(135deg, #ff3d7f 0%, var(--accent-pink) 100%);
  box-shadow: 0 6px 20px rgba(255, 19, 97, 0.6);
}

/* Hero Matchday Banner */
.hero-banner {
  padding: 2.5rem 0 1.5rem;
  position: relative;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: stretch;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  border: 1px solid rgba(0, 98, 255, 0.3);
  background: #0d1730;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media img, .hero-bg-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
  transition: transform 10s ease;
}

.hero-main-card:hover .hero-bg-media img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 10, 20, 0.96) 0%, rgba(6, 10, 20, 0.45) 50%, rgba(6, 10, 20, 0.15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 98, 255, 0.3);
  border: 1px solid rgba(0, 98, 255, 0.6);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.pill-gold {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: var(--gold-light);
}

.pill-pink {
  background: rgba(255, 19, 97, 0.22);
  border-color: var(--border-pink);
  color: #ff94b8;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Matchday Widget Card */
.matchday-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 98, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.matchday-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink), var(--primary-light));
}

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

.widget-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #93c5fd;
  text-transform: uppercase;
}

.match-clash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.clash-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.clash-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.clash-name {
  font-size: 0.8rem;
  font-weight: 800;
}

.clash-vs {
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-pink);
  background: rgba(255, 19, 97, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-pink);
}

.countdown-box {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(0, 98, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
  margin-bottom: 16px;
}

.count-unit {
  display: flex;
  flex-direction: column;
}

.count-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
}

.count-lbl {
  font-size: 0.65rem;
  color: #93c5fd;
  text-transform: uppercase;
  font-weight: 700;
}

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

/* ==========================================================================
   INSTAGRAM STORIES TRAY
   ========================================================================== */
.stories-section {
  padding: 1rem 0 2rem;
}

.stories-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: none;
}

.stories-wrapper::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-bounce);
}

.story-item:hover {
  transform: translateY(-4px) scale(1.05);
}

.story-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #0062ff 0%, #38bdf8 35%, #ff1361 70%, #ff6584 100%);
  position: relative;
  transition: var(--transition-fast);
}

.story-ring.watched {
  background: var(--border-subtle);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--bg-black);
  overflow: hidden;
  background: #0d1730;
}

.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  max-width: 85px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   INTERACTIVE FEED & POSTS SECTION
   ========================================================================== */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 98, 255, 0.2);
  border: 1px solid rgba(0, 98, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.feed-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  color: #ffffff;
  border-color: rgba(0, 98, 255, 0.4);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
}

.view-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.view-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Feed Grid Mode */
.posts-container.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Feed Stream Mode */
.posts-container.stream-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

@media (min-width: 1024px) {
  .posts-container.stream-mode {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Post Card */
.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 98, 255, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.post-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary);
  background: #0d1730;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: #38bdf8;
  font-size: 0.8rem;
}

.post-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

.post-menu-btn {
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition-fast);
}

.post-menu-btn:hover {
  color: var(--primary-light);
}

.post-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #060a14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.post-media-container img, .post-media-container video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.post-card:hover .post-media-container img {
  transform: scale(1.03);
}

.media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(6px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Double Tap Heart Burst */
.heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  color: var(--accent-pink);
  filter: drop-shadow(0 0 15px var(--accent-pink));
}

.heart-burst.animate {
  animation: heartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.post-actions-bar {
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn.liked {
  color: var(--accent-pink);
}

.action-btn.liked svg {
  fill: var(--accent-pink);
  stroke: var(--accent-pink);
}

.action-btn.bookmarked {
  color: var(--gold-light);
}

.action-btn.bookmarked svg {
  fill: var(--gold-light);
}

.post-body {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-likes-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.post-caption {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
}

.post-caption .username {
  font-weight: 800;
  margin-right: 6px;
}

.post-caption .hashtag {
  color: #60a5fa;
  font-weight: 600;
}

/* Post Comments Box */
.comments-drawer {
  margin-top: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.comment-row {
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
}

.comment-user {
  font-weight: 800;
  color: #93c5fd;
}

.comment-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 12px;
}

.comment-input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.8rem;
  width: 100%;
  outline: none;
}

.comment-send-btn {
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
}

.comment-send-btn:disabled {
  color: var(--text-dim);
  cursor: not-allowed;
}

/* ==========================================================================
   3D PLAYER TRADING CARDS SECTION
   ========================================================================== */
.roster-section {
  padding: 4rem 0;
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #ffffff;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.player-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

/* 3D Trading Card */
.player-trading-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  background: linear-gradient(145deg, #0d1730 0%, #060a14 100%);
  border: 2px solid rgba(0, 98, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.player-trading-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 5;
}

.player-trading-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px var(--primary-glow);
}

.card-top-bar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 6;
}

.card-rating-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 98, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-pos {
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-playstyle-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #93c5fd;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-number-badge {
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

.card-cutout-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  padding-bottom: 50px;
  padding-top: 30px;
}

.card-cutout-img {
  max-height: 84%;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
  transition: transform var(--transition-bounce);
}

.player-trading-card:hover .card-cutout-img {
  transform: scale(1.06) translateY(-4px);
}

.card-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(0deg, rgba(6, 10, 20, 0.98) 0%, rgba(6, 10, 20, 0.85) 75%, transparent 100%);
  z-index: 6;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-player-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.card-strengths-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.mini-strength-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 98, 255, 0.2);
  border: 1px solid rgba(0, 98, 255, 0.4);
  color: #93c5fd;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Modal Player Profile Extensions */
.specialty-card-banner {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(0, 98, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.specialty-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specialty-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specialty-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.strengths-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.strength-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 98, 255, 0.2);
  border: 1px solid rgba(0, 98, 255, 0.45);
  color: #93c5fd;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.card-player-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.card-mini-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #93c5fd;
}

.card-mini-stats span {
  display: flex;
  flex-direction: column;
}

.card-mini-stats strong {
  color: #fff;
  font-size: 0.85rem;
}

/* ==========================================================================
   VIDEO HIGHLIGHTS THEATER SECTION
   ========================================================================== */
.theater-section {
  padding: 4rem 0;
  background: radial-gradient(circle at 50% 30%, rgba(0, 98, 255, 0.12) 0%, transparent 70%);
}

.theater-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 98, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
}

.theater-player-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.main-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-custom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(6, 10, 20, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

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

.speed-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #93c5fd;
}

.theater-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.playlist-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.playlist-card {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.playlist-card:hover, .playlist-card.active {
  background: rgba(0, 98, 255, 0.2);
  border-color: var(--primary);
}

.playlist-thumb {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #000;
  flex-shrink: 0;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-thumb .play-mini {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.playlist-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.playlist-duration {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Cheering Soundboard */
.soundboard-box {
  margin-top: 14px;
  padding: 14px;
  background: rgba(6, 10, 20, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.soundboard-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sound-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sound-trigger-btn {
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: var(--transition-fast);
  text-align: center;
}

.sound-trigger-btn:hover {
  background: var(--primary);
  border-color: var(--primary-light);
}

/* ==========================================================================
   TROPHY ROOM / HALL OF GLORY
   ========================================================================== */
.trophy-section {
  padding: 4rem 0;
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.trophy-card {
  background: linear-gradient(135deg, rgba(13, 23, 48, 0.9) 0%, rgba(6, 10, 20, 0.95) 100%);
  border: 1px solid rgba(0, 98, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.trophy-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);
}

.trophy-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 98, 255, 0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  filter: drop-shadow(0 0 15px var(--primary));
}

.trophy-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.trophy-season {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.trophy-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.trophy-confetti-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(0, 98, 255, 0.2);
  border: 1px solid rgba(0, 98, 255, 0.5);
  border-radius: var(--radius-full);
  color: #93c5fd;
  transition: var(--transition-fast);
}

.trophy-confetti-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   FAN CREATOR STUDIO ("SHARE YOUR MOMENT")
   ========================================================================== */
.fan-studio-section {
  padding: 4rem 0;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 98, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
}

.form-input, .form-textarea {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-light);
}

.sticker-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sticker-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sticker-badge.selected {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #fff;
}

.preset-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preset-photo-option {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000;
}

.preset-photo-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preset-photo-option.selected {
  border-color: var(--primary);
}

.studio-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.5);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 98, 255, 0.3);
  padding: 20px;
}

.preview-post-card {
  width: 100%;
  max-width: 340px;
}

/* ==========================================================================
   FULLSCREEN STORY MODAL & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.94);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.story-viewer-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 750px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 98, 255, 0.3);
}

.story-progress-bar-container {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 20;
}

.story-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  flex: 1;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  transition: width 0.1s linear;
}

.story-modal-header {
  position: absolute;
  top: 24px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.story-modal-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-modal-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
}

.story-modal-media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-modal-media-wrap img, .story-modal-media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-nav-hotspot {
  position: absolute;
  top: 60px;
  bottom: 80px;
  width: 40%;
  z-index: 15;
}

.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

.story-modal-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(6, 10, 20, 0.95) 0%, transparent 100%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-caption-text {
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.story-reactions {
  display: flex;
  gap: 10px;
}

.story-emoji-btn {
  font-size: 1.3rem;
  transition: transform var(--transition-fast);
}

.story-emoji-btn:hover {
  transform: scale(1.3);
}

/* Player Detail Modal */
.player-modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(0, 98, 255, 0.4);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 92%;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.player-modal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.radar-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox Modal */
.lightbox-modal-content {
  max-width: 85vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-modal-content img, .lightbox-modal-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

/* Close button for modals */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

/* Toast Container */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast-pill {
  background: rgba(13, 23, 48, 0.96);
  border: 1px solid rgba(0, 98, 255, 0.3);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.app-footer {
  background: #040710;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Spinner Animation for Sync Button */
.spinning {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Pinned Post Border Glow */
.post-card.pinned-post {
  border: 2px solid var(--primary-light);
  box-shadow: 0 8px 30px rgba(0, 98, 255, 0.35);
}

.post-card.pinned-post:hover {
  box-shadow: 0 16px 40px rgba(0, 98, 255, 0.5);
}

/* Responsive Breakpoints & Mobile Navigation Drawer */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: #fff;
  align-items: center;
  justify-content: center;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(6, 10, 20, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 98, 255, 0.3);
  padding: 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.mobile-nav-drawer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 18px;
  border-radius: 12px;
  display: block;
  transition: all 0.2s ease;
}

.mobile-nav-drawer-link:hover, .mobile-nav-drawer-link.active {
  background: rgba(0, 98, 255, 0.2);
  color: #0062ff;
}

@media (max-width: 992px) {
  .banner-grid, .theater-grid, .studio-grid {
    grid-template-columns: 1fr;
  }

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

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-main-card {
    padding: 1.5rem;
    min-height: 320px;
  }

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

  .posts-container.stream-mode {
    grid-template-columns: 1fr;
  }

  .player-modal-grid {
    grid-template-columns: 1fr;
  }
}