/* =========================================================
   NUTFLY — styles
   ========================================================= */
/* ---------- Self-hosted fonts ---------- */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #181818;
  --bg-3: #232323;
  --text: #f5f5f1;
  --muted: #a3a3a3;
  --red: #e50914;
  --red-2: #b20710;
  --green: #46d369;
  --radius: 6px;
  --pad: clamp(16px, 4vw, 60px);
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
.is-hidden { display: none !important; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .5s ease, visibility .5s;
}
.splash.is-done { opacity: 0; visibility: hidden; }
.splash__logo {
  width: clamp(160px, 40vw, 260px); height: auto;
  filter: drop-shadow(0 0 50px rgba(229, 9, 20, .55));
  animation: splash 1.4s cubic-bezier(.7, 0, .3, 1) forwards;
}
@keyframes splash {
  0%   { transform: scale(.3); opacity: 0; letter-spacing: 0; }
  40%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(6); opacity: 0; filter: blur(8px); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, transparent 100%);
  transition: background .3s ease;
}
.nav.is-solid { background: rgba(11, 11, 11, .97); box-shadow: 0 2px 20px rgba(0,0,0,.5); }
.wordmark {
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: 1px;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 2px 0 #5c0306;
}
.nav__brand { display: flex; align-items: center; gap: 6px; }
.nav__logo { width: 44px; height: 44px; object-fit: contain; }
.nav__links { display: flex; gap: 22px; font-size: 14px; }
.nav__links a { color: #e5e5e5; transition: color .2s; }
.nav__links a:hover { color: var(--muted); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.nav__burger { display: none; background: none; border: 0; padding: 6px; flex-direction: column; gap: 5px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 26px;
  border: 0; border-radius: 4px;
  font-weight: 700; font-size: 17px;
  transition: transform .15s ease, background .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: rgba(255,255,255,.8); }
.btn--grey { background: rgba(109,109,110,.7); color: #fff; }
.btn--grey:hover { background: rgba(109,109,110,.45); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--sm { padding: 7px 16px; font-size: 14px; }
.btn--lg { padding: 16px 36px; font-size: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 140px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(229,9,20,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 90%, rgba(120,20,160,.25) 0%, transparent 50%),
    linear-gradient(90deg, #000 0%, #0b0b0b 40%, #1a0405 100%);
}
.hero__glow {
  position: absolute; right: 2%; top: 50%;
  width: min(48vw, 600px); height: auto; aspect-ratio: 1;
  transform: translateY(-50%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)) drop-shadow(0 0 80px rgba(229,9,20,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(-3deg); }
  50%      { transform: translateY(-53%) rotate(2deg); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 640px; width: 100%; min-width: 0; }
.hero__tag {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 4px; color: #d2d2d2;
}
.n-badge {
  display: inline-grid; place-items: center;
  font-family: var(--display); color: var(--red);
  font-size: 30px; line-height: 1;
}
.n-badge--lg { font-size: 90px; }
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 150px);
  line-height: .86;
  letter-spacing: 1px;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero__title span {
  display: block; margin-top: .08em;
  font-size: .62em;
  background: linear-gradient(90deg, #fff 0%, #ff5a5f 60%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  font-size: 15px; color: #d2d2d2;
}
.match { color: var(--green); font-weight: 700; }
.rating { border: 1px solid rgba(255,255,255,.4); padding: 0 6px; font-size: 12px; font-weight: 700; }
.hd { border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 5px; font-size: 11px; font-weight: 700; }
.hero__desc { font-size: clamp(16px, 1.6vw, 20px); color: #e5e5e5; margin: 0 0 26px; max-width: 540px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ca {
  display: flex; align-items: center; gap: 0;
  margin-top: 26px;
  max-width: 560px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.ca__label { padding: 10px 14px; font-weight: 900; font-size: 13px; background: var(--red); letter-spacing: 1px; }
.ca__value { flex: 1; min-width: 0; padding: 10px 14px; font-size: 13px; color: #e5e5e5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ca__copy { border: 0; background: rgba(255,255,255,.1); color: #fff; padding: 10px 16px; font-weight: 700; font-size: 13px; transition: background .2s; }
.ca__copy:hover { background: rgba(255,255,255,.22); }

/* ---------- Rows (carousels) ---------- */
.row { position: relative; z-index: 2; padding: 0 0 44px; }
.hero + .row { margin-top: -110px; }
.row__title { margin: 0 0 12px; padding: 0 var(--pad); font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; }
.row__wrap { position: relative; }
.row__track {
  display: flex; gap: 10px;
  margin: 0; padding: 20px var(--pad) 36px;
  list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__arrow {
  position: absolute; top: 20px; bottom: 36px; z-index: 5;
  width: calc(var(--pad) - 6px); min-width: 36px;
  border: 0; background: rgba(11,11,11,.6); color: #fff;
  font-size: 48px; line-height: 1;
  opacity: 0; transition: opacity .2s, background .2s;
}
.row__wrap:hover .row__arrow { opacity: 1; }
.row__arrow:hover { background: rgba(11,11,11,.85); }
.row__arrow--left { left: 0; }
.row__arrow--right { right: 0; }

.card {
  flex: 0 0 clamp(220px, 22vw, 320px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
  outline: none;
}
.card:hover, .card:focus-visible { transform: scale(1.07); box-shadow: 0 14px 40px rgba(0,0,0,.8); z-index: 3; }
.card:focus-visible { box-shadow: 0 0 0 3px #fff; }
.card__art {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: flex-end;
  padding: 12px;
}
.card__n { position: absolute; top: 8px; left: 10px; font-family: var(--display); color: var(--red); font-size: 26px; line-height: 1; }
.card__label { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); line-height: .95; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.card__info { padding: 12px 14px 14px; }
.card__info h3 { margin: 0 0 4px; font-size: 15px; }
.card__info p { margin: 0; font-size: 13px; color: var(--muted); }

/* poster art (pure CSS) */
.art-1 { background: radial-gradient(circle at 80% 20%, #ff4d4d 0%, transparent 45%), linear-gradient(135deg, #3a0306, #120102); }
.art-2 { background: radial-gradient(circle at 20% 80%, #ffb400 0%, transparent 45%), linear-gradient(135deg, #3b2300, #0f0900); }
.art-3 { background: radial-gradient(circle at 70% 70%, #00e0b0 0%, transparent 45%), linear-gradient(135deg, #00302a, #030d0b); }
.art-4 { background: radial-gradient(circle at 30% 30%, #9b5cff 0%, transparent 45%), linear-gradient(135deg, #22063f, #08020f); }
.art-5 { background: radial-gradient(circle at 60% 30%, #54b6ff 0%, transparent 45%), linear-gradient(135deg, #04223b, #01080f); }
.art-6 { background: radial-gradient(circle at 50% 50%, #e50914 0%, transparent 55%), repeating-linear-gradient(45deg, #111 0 12px, #1a1a1a 12px 24px); }

/* ---------- Top 10 ---------- */
.top10 { counter-reset: none; }
.top10__item { flex: 0 0 auto; display: flex; align-items: flex-end; scroll-snap-align: start; }
.top10__num {
  font-family: var(--display);
  font-size: clamp(140px, 16vw, 220px);
  line-height: .75;
  color: var(--bg);
  -webkit-text-stroke: 4px #595959;
  margin-right: -22px;
  letter-spacing: -8px;
}
.top10__card {
  position: relative;
  width: clamp(120px, 11vw, 160px);
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  padding: 12px;
  transition: transform .3s;
  box-shadow: -8px 0 20px rgba(0,0,0,.6);
}
.top10__card::before { content: "N"; position: absolute; top: 8px; left: 10px; font-family: var(--display); color: var(--red); font-size: 24px; }
.top10__card h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: .95; }
.top10__item:hover .top10__card { transform: scale(1.06); }

/* ---------- Sections ---------- */
.section { padding: 40px var(--pad) 60px; position: relative; z-index: 2; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; }
.link-arrow { color: #54b9c5; font-weight: 700; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }
.episodes-count { color: var(--muted); font-size: 15px; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(229,9,20,.7); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,9,20,.7); }
  70%  { box-shadow: 0 0 0 12px rgba(229,9,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,9,20,0); }
}

/* ---------- Chart player ---------- */
.player {
  background: #000;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #262626;
  box-shadow: 0 20px 80px rgba(229,9,20,.12);
}
.player__screen { position: relative; width: 100%; height: clamp(420px, 70vh, 720px); border-radius: 6px; overflow: hidden; background: #0e0e0e; }
.player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 24px;
  background: radial-gradient(circle at center, #1c0203 0%, #000 70%);
  color: #cfcfcf;
}
.placeholder__logo { width: 140px; height: 140px; object-fit: contain; animation: buzz 3s ease-in-out infinite; }
@keyframes buzz { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(4px,-3px) rotate(3deg); } 50% { transform: translate(-3px,2px) rotate(-2deg); } 75% { transform: translate(2px,3px) rotate(1deg); } }
.player__placeholder p { margin: 0; max-width: 420px; }
.player__placeholder strong { color: #fff; font-size: 22px; }

/* ---------- Episodes ---------- */
.episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid #333; }
.episode {
  display: grid;
  grid-template-columns: 50px 180px 1fr;
  align-items: center; gap: 20px;
  padding: 22px 16px;
  border-bottom: 1px solid #333;
  border-radius: var(--radius);
  transition: background .2s;
}
.episode:hover { background: var(--bg-3); }
.episode__num { font-size: 26px; color: #d2d2d2; text-align: center; }
.episode__thumb { aspect-ratio: 16 / 9; border-radius: 4px; display: grid; place-items: center; font-family: var(--display); font-size: 32px; }
.episode__body h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 17px; }
.episode__len { color: var(--muted); font-weight: 400; }
.episode__body p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Community ---------- */
.community {
  margin: 20px var(--pad) 60px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 50%, rgba(229,9,20,.45), transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(155,92,255,.3), transparent 50%),
    #120405;
  border: 1px solid #2a0a0c;
  position: relative; z-index: 2;
}
.community__inner { padding: clamp(36px, 6vw, 72px) 24px; text-align: center; }
.community h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.community p { margin: 0 auto 26px; max-width: 520px; color: #e0e0e0; font-size: 18px; }
.community__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin: 0 auto; text-align: center; }
.faq__title { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; }
.faq__list { text-align: left; display: grid; gap: 8px; }
.faq details { background: #2d2d2d; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px;
  font-size: clamp(17px, 2vw, 22px);
  transition: background .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 40px; font-weight: 300; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: #414141; }
.faq details p { margin: 0; padding: 22px 24px; border-top: 1px solid #000; font-size: clamp(16px, 1.8vw, 20px); }
.faq details a { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { padding: 50px var(--pad) 40px; color: #808080; font-size: 13px; border-top: 1px solid #1f1f1f; max-width: 1100px; margin: 40px auto 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 22px; }
.footer__links a { text-decoration: underline; }
.footer__links a:hover { color: #fff; }
.footer__disclaimer { max-width: 760px; margin: 0 0 14px; }
.footer__copy { margin: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); animation: fade .25s; }
.modal__box { position: relative; width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--bg-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.8); animation: pop .3s cubic-bezier(.2,.8,.2,1); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #181818; color: #fff; font-size: 26px; line-height: 1; }
.modal__art { position: relative; aspect-ratio: 16 / 8; display: flex; align-items: flex-end; padding: 24px; }
.modal__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-2)); }
.modal__art .card__n { font-size: 40px; top: 16px; left: 20px; }
.modal__body { padding: 0 28px 30px; }
.modal__body h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.modal__body p { color: #d8d8d8; font-size: 16px; margin: 0 0 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(20px); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  transform: translate(-50%, 20px);
  background: #fff; color: #000; font-weight: 700;
  padding: 12px 22px; border-radius: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { gap: 16px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11,11,11,.98);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__links a { padding: 14px var(--pad); border-top: 1px solid #222; }
  .nav.is-open .nav__links { max-height: 320px; }
  .nav.is-open { background: rgba(11,11,11,.98); }
  .hero__glow { opacity: .3; right: -25%; width: 100vw; }
  .row__arrow { display: none; }
  .episode { grid-template-columns: 34px 1fr; }
  .episode__thumb { display: none; }
}
@media (max-width: 520px) {
  .wordmark { font-size: 30px; }
  .nav__right .btn--sm { padding: 6px 12px; font-size: 13px; }
  .hero { padding-top: 100px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .card { flex-basis: 70vw; }
  .btn--lg { white-space: normal; font-size: 17px; padding: 14px 22px; }
  .top10__num { -webkit-text-stroke-width: 3px; margin-right: -16px; }
  .player__screen { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
