/* ===================== VARIÁVEIS & RESET (tema faroeste) ===================== */
:root {
  /* Paleta do rebranding Machado Gamer */
  --bg: #13120e;            /* preto quente */
  --bg-alt: #1a1611;
  --surface: #221b13;       /* couro/madeira */
  --surface-2: #2c241a;
  --border: #3f2e1d;        /* envelhecido */
  --text: #ecdcb5;          /* areia clara */
  --text-dim: #b3a07e;
  --accent: #a4271a;        /* vermelho escuro (marca) */
  --accent-deep: #5e1109;
  --accent-2: #caa877;      /* areia */
  --sand: #caa877;
  --aged: #5c3b20;          /* envelhecido */
  --accent-glow: rgba(164, 39, 26, 0.45);
  --live: #d23a1f;
  --radius: 8px;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Textura/grão sutil de poster envelhecido sobre tudo */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.accent { color: var(--accent); }

/* Fonte de exibição western */
.brand-name, .hero-title, .section-title, .gallery-title,
.vods-head h3, .schedule-day {
  font-family: 'Rye', 'Special Elite', serif;
  font-weight: 400; letter-spacing: 0.5px;
}

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 0.78rem; }
.btn-primary {
  background: var(--accent); color: #f5e7c8;
  border-color: #c5432f; box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover { background: #bd2e1e; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sand); border-color: var(--sand); }
.btn-ghost:hover { background: rgba(202,168,119,.12); transform: translateY(-2px); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 18, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 0 rgba(94, 17, 9, .35);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-name { font-size: 1.25rem; color: var(--sand); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-weight: 600; color: var(--text-dim); text-transform: uppercase; font-size: .85rem; letter-spacing: .5px; transition: color .2s; }
.main-nav a:hover { color: var(--sand); }
.main-nav a.btn { color: #f5e7c8; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--sand); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; text-align: center; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(164, 39, 26, 0.40), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(94, 17, 9, 0.30), transparent 60%),
    var(--bg);
}
.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--sand);
  padding: 6px 16px; border-radius: 4px; font-size: 0.75rem; color: var(--sand);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(210,58,31,.6); animation: pulse 1.8s infinite; }
.hero-title { line-height: 1; margin: 0; }
.hero-poster {
  width: 100vw; max-width: 100vw; height: auto;
  margin: 10px calc(50% - 50vw) 0;   /* break-out full-bleed */
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.6));
}
/* Em telas largas: trava a altura (centraliza, sem distorcer/cortar) */
@media (min-width: 1180px) {
  .hero-poster {
    width: auto; max-width: 100%;
    height: min(742px, 78vh);
    margin: 10px auto 0;
  }
}
.hero-tagline { color: var(--text-dim); font-size: clamp(1rem, 2.5vw, 1.2rem); max-width: 600px; margin: 18px auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-pix { margin-top: 16px; display: flex; justify-content: center; }
.btn-pix { background: transparent; color: var(--sand); border-color: var(--aged); }
.btn-pix:hover { background: rgba(202,168,119,.12); border-color: var(--sand); transform: translateY(-2px); }

/* ===================== SEÇÕES GERAIS ===================== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--sand); }
/* divisor com losango western */
.section-title::after {
  content: "✦"; display: block; color: var(--accent);
  font-size: 0.8rem; margin: 12px auto 0; letter-spacing: 6px;
}
.section-sub { color: var(--text-dim); margin-top: 4px; max-width: 600px; margin-left: auto; margin-right: auto; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ===================== PLAYER / CHAT ===================== */
.stream-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.stream-video { position: relative; padding-top: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.stream-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-chat { overflow: hidden; min-height: 480px; }
.stream-chat iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ===================== CARROSSEL DE VODs / CLIPES ===================== */
.vods { margin-top: 34px; }
.vods-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.vods-head h3 { font-size: 1.3rem; color: var(--sand); }
.carousel-nav { display: flex; gap: 8px; }
.car-btn {
  width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--sand); background: var(--surface); color: var(--sand);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: .2s;
  display: flex; align-items: center; justify-content: center;
}
.car-btn:hover { background: var(--accent); border-color: var(--accent); color: #f5e7c8; transform: translateY(-2px); }

.carousel {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; }
.car-slide { flex: 0 0 360px; max-width: 86vw; scroll-snap-align: start; }
.vod-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); background: #000;
}
.vod-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vod-title { margin-top: 8px; font-size: .9rem; color: var(--text-dim); }
.vod-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 16 / 9; border: 1px dashed var(--sand); border-radius: var(--radius);
  background: var(--surface); color: var(--text-dim); text-align: center; transition: .2s;
}
.vod-empty:hover { border-color: var(--accent); color: var(--text); }
.vod-empty-ic { font-size: 2.2rem; }
.vod-empty strong { color: var(--sand); }

/* ===================== SOBRE + GALERIA ===================== */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.about-photo { width: 100%; border-radius: var(--radius); border: 2px solid var(--sand); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.about-text p { color: var(--text-dim); margin-bottom: 14px; }
.about-text strong { color: var(--text); }
.about-stats { list-style: none; display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong { font-family: 'Rye', serif; font-size: 1.5rem; color: var(--sand); }
.about-stats span { font-size: 0.85rem; color: var(--text-dim); }

.gallery-title { margin: 50px 0 20px; text-align: center; color: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.gallery img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 24px var(--accent-glow); }

/* ===================== AGENDA ===================== */
.schedule { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.schedule-card { flex: 0 1 320px; padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; transition: transform .2s, border-color .2s; }
.schedule-card:hover { transform: translateY(-4px); border-color: var(--sand); }
.schedule-day { font-size: 1.3rem; color: var(--sand); }
.schedule-time { font-size: 2rem; font-weight: 700; color: var(--text); }
.schedule-game { color: var(--text-dim); font-size: 0.9rem; }

/* ===================== REDES ===================== */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.social-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.social-card:hover { transform: translateY(-5px); border-color: var(--sand); }
.social-icon { font-size: 2.2rem; }
.social-name { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.social-handle { color: var(--text-dim); font-size: 0.85rem; }
.social-card.twitch:hover { border-color: #9146ff; box-shadow: 0 10px 26px rgba(145,70,255,.35); }
.social-card.instagram:hover { border-color: #e1306c; box-shadow: 0 10px 26px rgba(225,48,108,.35); }
.social-card.youtube:hover { border-color: #ff0000; box-shadow: 0 10px 26px rgba(255,0,0,.30); }
.social-card.tiktok:hover { border-color: #25f4ee; box-shadow: 0 10px 26px rgba(37,244,238,.25); }
.social-card.discord:hover { border-color: #5865f2; box-shadow: 0 10px 26px rgba(88,101,242,.30); }
.social-card.whatsapp:hover { border-color: #25d366; box-shadow: 0 10px 26px rgba(37,211,102,.30); }
.social-card.midfielder:hover { border-color: var(--accent); box-shadow: 0 10px 26px var(--accent-glow); }

/* ===================== RODAPÉ ===================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0; }
.footer-wrap { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-logo { height: 54px; width: auto; }
.site-footer p { color: var(--text-dim); font-size: 0.9rem; }
.footer-credits { font-size: 0.82rem; }

/* ===================== ANIMAÇÕES ===================== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(210,58,31,.6); }
  70% { box-shadow: 0 0 0 9px rgba(210,58,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(210,58,31,0); }
}

/* ===================== RESPONSIVO ===================== */
@media (max-width: 920px) {
  .stream-grid { grid-template-columns: 1fr; }
  .stream-chat { min-height: 420px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-media { max-width: 280px; margin: 0 auto; }
  .about-stats { justify-content: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .car-slide { flex-basis: 80vw; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 10px 20px 24px;
    transform: translateY(-130%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); }
  .main-nav a.btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
}
