/* ===========================================
   CONTROCALCIO · DESIGN SYSTEM
   =========================================== */

:root {
  --purple-deep: #1a0526;
  --purple-dark: #2d0a47;
  --purple: #6b21a8;
  --purple-bright: #9333ea;
  --purple-light: #c084fc;
  --neon: #2ee89c;
  --neon-bright: #5cff9d;
  --neon-glow: rgba(46, 232, 156, 0.5);
  --black: #08020e;
  --white: #f5f0fa;
  --text-dim: #a78bfa;
  --text-muted: #6b46a8;

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --shadow-neon: 0 0 30px rgba(46, 232, 156, 0.3), 0 0 60px rgba(46, 232, 156, 0.15);
  --shadow-purple: 0 10px 40px rgba(147, 51, 234, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ============= BACKGROUND ATMOSPHERE ============= */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -3;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-glow {
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: -2;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
  background: var(--purple-bright);
  top: -200px;
  left: -200px;
}

.bg-glow-2 {
  background: var(--neon);
  bottom: -300px;
  right: -200px;
  opacity: 0.15;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(100px, -50px); }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============= HEADER ============= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(8, 2, 14, 0.7);
  border-bottom: 1px solid rgba(147, 51, 234, 0.2);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(46, 232, 156, 0.4);
  transition: transform 0.3s;
}

.logo:hover { transform: rotate(360deg); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--white);
}

.logo-name-accent {
  color: var(--neon);
  text-shadow: 0 0 15px var(--neon-glow);
  margin-left: 6px;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover { color: var(--white); background: rgba(147, 51, 234, 0.2); }
.nav-link.active { color: var(--neon); background: rgba(46, 232, 156, 0.1); }

.nav-live {
  background: rgba(255, 0, 80, 0.15);
  color: #ff4080 !important;
  border: 1px solid rgba(255, 0, 80, 0.3);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff0050;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255, 0, 80, 0); }
}

/* ============= HERO ============= */

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  display: none;
}

/* ============= TACTICAL BOARD ============= */
.tactical-board {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 580px;
  height: 760px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: tacticalIn 1.2s 0.3s ease-out forwards;
}

@keyframes tacticalIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.92) rotate(-2deg); }
  to { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }
}

.pitch-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(46, 232, 156, 0.15));
}

/* Linee del campo: lieve respiro */
.pitch-lines {
  animation: pitchPulse 8s ease-in-out infinite;
}

@keyframes pitchPulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.42; }
}

/* Linee di passaggio: appaiono in sequenza */
.pass-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  opacity: 0.7;
  animation: passDraw 6s ease-in-out infinite;
}

.pass-1 { animation-delay: 0s; }
.pass-2 { animation-delay: 0.6s; }
.pass-3 { animation-delay: 1.2s; }
.pass-4 { animation-delay: 1.8s; }
.pass-5 { animation-delay: 2.4s; }

@keyframes passDraw {
  0% { stroke-dashoffset: 300; opacity: 0; }
  15% { stroke-dashoffset: 0; opacity: 0.9; }
  60% { opacity: 0.9; }
  85% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 300; opacity: 0; }
}

/* Pallone che segue il percorso dei passaggi */
.ball-group {
  animation: ballMove 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ballMove {
  0%   { transform: translate(300px, 720px); }
  12%  { transform: translate(300px, 720px); }
  18%  { transform: translate(180px, 540px); }
  30%  { transform: translate(180px, 540px); }
  36%  { transform: translate(300px, 430px); }
  48%  { transform: translate(300px, 430px); }
  54%  { transform: translate(450px, 320px); }
  66%  { transform: translate(450px, 320px); }
  72%  { transform: translate(300px, 180px); }
  84%  { transform: translate(300px, 180px); }
  90%  { transform: translate(150px, 180px); }
  100% { transform: translate(300px, 720px); }
}

.ball {
  animation: ballSpin 2s linear infinite;
  transform-origin: center;
}

@keyframes ballSpin {
  to { transform: rotate(360deg); }
}

/* Giocatori: respiro + scia neon */
.player {
  transform-origin: center;
}

.player-glow {
  animation: playerPulse 3s ease-in-out infinite;
}

.p-gk .player-glow { animation-delay: 0s; }
.p-def:nth-child(4) .player-glow { animation-delay: 0.2s; }
.p-def:nth-child(5) .player-glow { animation-delay: 0.4s; }
.p-def:nth-child(6) .player-glow { animation-delay: 0.6s; }
.p-def:nth-child(7) .player-glow { animation-delay: 0.8s; }
.p-mid:nth-child(8) .player-glow { animation-delay: 1.0s; }
.p-mid:nth-child(9) .player-glow { animation-delay: 1.2s; }
.p-mid:nth-child(10) .player-glow { animation-delay: 1.4s; }
.p-att:nth-child(11) .player-glow { animation-delay: 1.6s; }
.p-att:nth-child(12) .player-glow { animation-delay: 1.8s; }
.p-att:nth-child(13) .player-glow { animation-delay: 2.0s; }

@keyframes playerPulse {
  0%, 100% { r: 16; opacity: 0.3; }
  50% { r: 22; opacity: 0.5; }
}

/* Attaccanti: highlight extra (sono i "key players") */
.p-att .player-dot {
  animation: keyPlayerPulse 2.5s ease-in-out infinite;
}

@keyframes keyPlayerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Formazione label */
.formation-label {
  opacity: 0;
  animation: fadeIn 0.8s 1.5s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Badge analytics fluttuanti sopra il campo */
.tactical-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 1, 24, 0.85);
  border: 1px solid rgba(46, 232, 156, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(46, 232, 156, 0.2), inset 0 0 20px rgba(46, 232, 156, 0.05);
  white-space: nowrap;
  opacity: 0;
  animation: badgeFloat 4s ease-in-out infinite, badgeIn 0.6s ease-out forwards;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.tactical-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff0050;
  box-shadow: 0 0 8px #ff0050;
  animation: liveDot 1.2s infinite;
}

@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge-stat {
  color: var(--text-dim);
  font-size: 9px;
}

.badge-value {
  color: var(--neon);
  font-size: 12px;
  text-shadow: 0 0 8px var(--neon-glow);
}

.tactical-badge-1 {
  top: 60px;
  right: 30px;
  color: #ff4080;
  animation-delay: 0s, 1s;
}

.tactical-badge-2 {
  top: 200px;
  right: -10px;
  animation-delay: 1.2s, 1.4s;
}

.tactical-badge-3 {
  top: 420px;
  right: 40px;
  animation-delay: 2.4s, 1.8s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: heroIn 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(46, 232, 156, 0.3);
  border-radius: 999px;
  background: rgba(46, 232, 156, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.9;
  letter-spacing: -1px;
  margin-bottom: 28px;
  color: var(--white);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon-bright) 50%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--neon);
  box-shadow: 0 0 20px var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1s 0.5s ease-out forwards;
}

@keyframes underline {
  to { transform: scaleX(1); }
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--neon);
  color: var(--black);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  background: var(--neon-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(46, 232, 156, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(147, 51, 234, 0.4);
}

.btn-ghost:hover {
  background: rgba(147, 51, 234, 0.15);
  border-color: var(--purple-bright);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  position: relative;
  z-index: 1;
  animation: heroIn 0.8s 0.3s ease-out backwards;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* ============= VIDEOS SECTION ============= */

.videos {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.videos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--neon);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -1px;
  line-height: 1;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.2);
  padding: 12px 20px;
  border-radius: 999px;
  min-width: 320px;
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(46, 232, 156, 0.15);
}

.search-box svg { color: var(--text-dim); flex-shrink: 0; }

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(45, 10, 71, 0.4);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  animation: cardIn 0.5s ease-out backwards;
}

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

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 20px 40px rgba(46, 232, 156, 0.15), 0 0 0 1px var(--neon);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--purple-deep);
  position: relative;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,2,14,0.8), transparent 50%);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.video-card:hover .video-play { opacity: 1; }

.video-play-btn {
  width: 64px;
  height: 64px;
  background: var(--neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--neon-glow);
  transform: scale(0.8);
  transition: transform 0.3s;
}

.video-card:hover .video-play-btn { transform: scale(1); }

.video-play-btn svg { color: var(--black); }

.video-source-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 3;
}

.tag-youtube { background: #ff0000; color: white; }
.tag-twitch { background: #9146ff; color: white; }

.video-info {
  padding: 20px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--white);
}

.video-desc {
  font-size: 13px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  min-height: 38px;
}

.video-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-meta svg { color: var(--neon); }

/* Skeleton */
.skeleton {
  background: rgba(45, 10, 71, 0.3);
  height: 360px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: grayscale(0.5);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--white);
}

/* ============= MODAL ============= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 14, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--purple-deep);
  border: 1px solid rgba(46, 232, 156, 0.3);
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(46, 232, 156, 0.1);
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 2, 14, 0.7);
  border: 1px solid rgba(147, 51, 234, 0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--neon);
  color: var(--black);
  border-color: var(--neon);
}

.player-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: black;
}

.player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-info { padding: 28px 32px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.modal-description {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 15px;
}

.modal-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(46, 232, 156, 0.1);
  border: 1px solid rgba(46, 232, 156, 0.3);
  border-radius: 999px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.like-btn:hover {
  background: var(--neon);
  color: var(--black);
}

.like-btn.liked {
  background: var(--neon);
  color: var(--black);
  animation: likePop 0.4s ease-out;
}

@keyframes likePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.view-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.view-count svg { color: var(--neon); }

/* ============= FOOTER ============= */

.footer {
  border-top: 1px solid rgba(147, 51, 234, 0.2);
  background: rgba(8, 2, 14, 0.5);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-admin {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 4px;
  transition: all 0.2s;
}

.footer-admin:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ============= RESPONSIVE ============= */

/* TABLET: 768-1024px */
@media (max-width: 1024px) {
  .header-inner { padding: 14px 24px; }
  .hero { padding: 60px 24px 50px; }
  .hero-title { font-size: clamp(48px, 8vw, 88px); }
  .videos { padding: 50px 24px 80px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stats { gap: 36px; }
  .stat-num { font-size: 40px; }
  .footer-inner { padding: 28px 24px; }

  /* Tactical board: più piccola e spostata */
  .tactical-board {
    width: 400px;
    height: 540px;
    right: -120px;
    opacity: 0.6;
  }
  .tactical-badge-1 { top: 30px; right: 20px; }
  .tactical-badge-2 { top: 130px; right: -20px; }
  .tactical-badge-3 { top: 280px; right: 20px; }
}

/* MOBILE: ≤768px */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
    gap: 12px;
  }
  .logo { width: 40px; height: 40px; }
  .logo-name { font-size: 22px; letter-spacing: 1.5px; }
  .logo-tag { display: none; }
  .nav { gap: 4px; }
  .nav-link {
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 8px 12px;
  }

  .hero { padding: 32px 16px 40px; }
  .hero-badge {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    margin-bottom: 20px;
  }
  .hero-title { font-size: clamp(42px, 12vw, 64px); margin-bottom: 20px; }
  .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
  .hero-bg-shape { display: none; }
  .tactical-board { display: none; }
  .hero-actions { gap: 10px; }
  .btn { padding: 14px 22px; font-size: 12px; }
  .hero-stats {
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .stat-num { font-size: 32px; }
  .stat-label { font-size: 9px; letter-spacing: 1.5px; }

  .videos { padding: 32px 16px 60px; }
  .videos-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
    gap: 16px;
  }
  .section-title { font-size: clamp(36px, 9vw, 52px); }
  .search-box { min-width: 0; width: 100%; padding: 11px 16px; }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .video-title { font-size: 20px; }
  .video-info { padding: 16px; }

  /* Modal full-screen mobile */
  .modal { padding: 0; }
  .modal-content {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
  }
  .player-wrapper { flex-shrink: 0; }
  .modal-info { padding: 20px 18px; overflow-y: auto; }
  .modal-title { font-size: 24px; }
  .modal-description { font-size: 14px; }
  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .modal-meta { gap: 10px; }
  .like-btn { padding: 8px 14px; font-size: 12px; }
  .view-count { font-size: 12px; }

  .footer-inner {
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-name { font-size: 20px; }
}

/* SMALL MOBILE: ≤380px */
@media (max-width: 380px) {
  .logo-name { font-size: 18px; letter-spacing: 1px; }
  .logo { width: 36px; height: 36px; }
  .nav-link {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 6px 10px;
  }
  .hero-title { font-size: 38px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat { min-width: 80px; }
}

/* EXTRA SMALL: ≤340px - hide wordmark text */
@media (max-width: 340px) {
  .logo-name { display: none; }
}
