:root {
  --bg: #050a1f;
  --panel: #0a1330;
  --blue: #1f8fff;
  --purple: #7c4dff;
  --text: #f4f7ff;
  --muted: #b5bfdc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(31,143,255,0.25), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(124,77,255,0.22), transparent 50%),
    var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.blue { color: var(--blue); text-shadow: 0 0 24px rgba(31,143,255,0.7); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,10,31,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,143,255,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-crown { font-size: 28px; color: var(--blue); text-shadow: 0 0 14px var(--blue); }
.logo-text { font-weight: 900; font-size: 22px; line-height: 1; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 12px; color: var(--blue); letter-spacing: 1.5px; margin-top: 2px; }

.nav { display: flex; gap: 34px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: 0.25s; }
.nav a:hover { color: #fff; border-color: var(--blue); box-shadow: 0 8px 14px -10px var(--blue); }

.menu-btn { display: none; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border: 1px solid rgba(31,143,255,0.4); border-radius: 10px; }
.menu-btn span { width: 18px; height: 2px; background: #fff; }

/* Hero */
.hero { padding: 56px 0 30px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--purple); background: rgba(124,77,255,0.15);
  font-size: 12px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(124,77,255,0.45);
  animation: fadeUp 0.7s both;
}

h1 { margin: 22px 0 14px; font-size: clamp(42px, 6.4vw, 84px); font-weight: 900; line-height: 0.98; letter-spacing: -1px; font-style: italic; }
h1 span { display: block; animation: fadeUp 0.7s both; }
h1 span:nth-child(2) { animation-delay: 0.12s; }
h1 span:nth-child(3) { animation-delay: 0.24s; }

.subtitle { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; animation: fadeUp 0.7s 0.35s both; }
.desc { margin-top: 14px; max-width: 460px; color: var(--muted); animation: fadeUp 0.7s 0.45s both; }

.hero-image { position: relative; animation: fadeUp 0.9s 0.2s both; }
.hero-image::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,143,255,0.55), rgba(124,77,255,0.25) 60%, transparent 72%);
  filter: blur(30px); z-index: 0;
}
.hero-image img {
  position: relative; z-index: 1; width: 100%; max-width: 560px; height: auto; margin-left: auto;
  aspect-ratio: 1; object-fit: cover; border-radius: 28px;
  border: 1px solid rgba(31,143,255,0.6);
  box-shadow: 0 0 40px rgba(31,143,255,0.45), 0 0 90px rgba(124,77,255,0.3);
}

/* Tutorial */
.section { padding: 30px 0 50px; }
.tutorial-card {
  padding: 28px; border-radius: 26px; background: linear-gradient(160deg, #0b1740, #070e28);
  border: 1px solid rgba(31,143,255,0.5);
  box-shadow: 0 0 40px rgba(31,143,255,0.2), inset 0 0 40px rgba(124,77,255,0.08);
}
.tutorial-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.play-badge {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--blue); background: rgba(31,143,255,0.2); font-size: 22px;
  box-shadow: 0 0 22px var(--blue); animation: pulse 2.4s infinite;
}
.tutorial-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; font-style: italic; line-height: 1.1; }
.tutorial-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px;
  background: #02050f; border: 1px solid rgba(31,143,255,0.7);
  box-shadow: 0 0 30px rgba(31,143,255,0.35);
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; }

.poster {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 4%;
  padding: 0 6% 0 0; z-index: 2; transition: opacity 0.3s;
  background: radial-gradient(ellipse at 20% 50%, rgba(31,143,255,0.5), transparent 55%), linear-gradient(120deg, #07123a, #030615);
}
.poster.hidden { opacity: 0; pointer-events: none; }
.poster img {
  height: 100%; width: 46%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
  mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.poster-title { text-align: right; font-weight: 900; font-style: italic; line-height: 1; font-size: clamp(20px, 4.6vw, 58px); text-transform: uppercase; }
.poster-title span { display: block; }

.big-play {
  position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(54px, 9vw, 92px); height: clamp(54px, 9vw, 92px); border-radius: 50%;
  font-size: clamp(22px, 4vw, 38px); padding-left: 5%;
  background: rgba(5,10,31,0.8); border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 30px rgba(31,143,255,0.8); transition: transform 0.2s, opacity 0.2s;
}
.big-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.big-play.hidden { opacity: 0; pointer-events: none; }

.error {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px; text-align: center; background: rgba(3,6,21,0.88); font-size: 14px;
}
.error strong { font-size: 17px; }
.error span { color: var(--muted); max-width: 520px; }
.has-error .controls { display: none; }

.controls {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 26px 16px 12px; background: linear-gradient(transparent, rgba(2,5,15,0.92));
}
.controls button { font-size: 18px; width: 32px; height: 32px; flex: none; border-radius: 8px; }
.controls button:hover { background: rgba(31,143,255,0.3); }
.time { font-size: 13px; color: #dfe6ff; white-space: nowrap; font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 5px; border-radius: 5px; background: rgba(255,255,255,0.25); outline: none; cursor: pointer; }
#seek { flex: 1; min-width: 0; background: linear-gradient(90deg, var(--blue) var(--p, 0%), rgba(255,255,255,0.25) var(--p, 0%)); }
.volume { width: 80px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--blue); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* About + footer */
.about { text-align: center; }
.about h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; font-style: italic; }
.about p { max-width: 640px; margin: 12px auto 0; color: var(--muted); }

.footer { padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid rgba(31,143,255,0.2); }
.footer a { display: inline-block; margin-top: 8px; color: var(--blue); font-weight: 600; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { box-shadow: 0 0 34px var(--blue), 0 0 8px var(--blue); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tablet / mobile */
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(5,10,31,0.98); border-bottom: 1px solid rgba(31,143,255,0.3);
    max-height: 0; overflow: hidden; transition: max-height 0.3s;
  }
  .nav.open { max-height: 240px; }
  .nav a { padding: 16px 5%; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .header-inner { height: 60px; }
  .nav { top: 60px; }
  .hero { padding: 28px 0 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-image img { margin: 0 auto; max-width: 440px; }
  .desc { max-width: none; }
  .tutorial-card { padding: 18px; border-radius: 20px; }
  .tutorial-head { gap: 12px; }
  .play-badge { width: 46px; height: 46px; font-size: 18px; }
  .tutorial-head p { font-size: 13px; }
}

@media (max-width: 560px) {
  .volume { display: none; }
  .controls { gap: 6px; padding: 20px 10px 8px; }
  .time { font-size: 11px; }
  .controls button { width: 28px; height: 28px; font-size: 16px; }
}

/* Vote button + official link */
.vote-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px;
  padding: 16px 34px; border-radius: 14px; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #1f6bff, #7c4dff); border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 26px rgba(31,143,255,0.7), 0 0 50px rgba(124,77,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s; animation: fadeUp 0.7s 0.55s both;
}
.vote-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 36px rgba(31,143,255,0.9), 0 0 70px rgba(124,77,255,0.55); }
.official-link { display: block; width: fit-content; margin: 12px 0 0 34px; font-size: 12px; color: var(--blue); text-decoration: underline; }

/* Two-column tutorial panel (desktop) */
@media (min-width: 861px) {
  .tutorial-layout { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 28px; align-items: center; }
  .tutorial-layout .tutorial-head { flex-direction: column; align-items: flex-start; margin: 0; gap: 16px; }
}

/* Info strip */
.info-strip { padding: 0 0 36px; }
.info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 10px; border-radius: 18px;
  background: rgba(10,19,48,0.8); border: 1px solid rgba(31,143,255,0.35);
}
.info-grid article { display: flex; align-items: center; gap: 14px; padding: 6px 20px; }
.info-grid article + article { border-left: 1px solid rgba(31,143,255,0.25); }
.info-icon { font-size: 34px; color: var(--blue); text-shadow: 0 0 14px var(--blue); }
.info-grid strong { font-size: 12px; color: var(--blue); letter-spacing: 0.5px; }
.info-grid p { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .vote-btn { display: flex; width: 100%; }
  .official-link { margin: 12px auto 0; }
  .info-grid { padding: 14px 4px; }
  .info-grid article { flex-direction: column; text-align: center; gap: 6px; padding: 4px 6px; }
  .info-grid p { display: none; }
  .info-grid strong { font-size: 10px; }
  .info-icon { font-size: 26px; }
}

/* Hero: full-width background photo */
.hero { position: relative; min-height: clamp(520px, 62vw, 720px); display: flex; align-items: center; padding: 70px 0; }
.hero-image { position: absolute; inset: 0; z-index: 0; animation: none; }
.hero-image::before { display: none; }
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #050a1f 0%, rgba(5,10,31,0.92) 30%, rgba(5,10,31,0.35) 60%, rgba(5,10,31,0.1) 100%),
    linear-gradient(180deg, rgba(5,10,31,0.35) 0%, transparent 25%, transparent 70%, #050a1f 100%),
    radial-gradient(ellipse at 75% 40%, rgba(31,143,255,0.35), transparent 60%);
}
.hero-image img {
  width: 100%; height: 100%; max-width: none; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0;
  box-shadow: none; object-fit: cover; object-position: 75% 22%;
}
.hero-grid { position: relative; z-index: 1; width: min(1200px, 92%); grid-template-columns: 1fr; }
.hero-text { max-width: 560px; }

@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-end; padding: 280px 0 36px; }
  .hero-image img { object-position: 60% 0%; height: 70%; }
  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(5,10,31,0.2) 0%, rgba(5,10,31,0.1) 30%, #050a1f 62%),
      radial-gradient(ellipse at 60% 25%, rgba(31,143,255,0.35), transparent 60%);
  }
  .hero-text { max-width: none; }
}

/* Hero background refinements */
.hero-image img { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 68%; object-position: 50% 18%; }
.hero-image::after {
  z-index: 1;
  background:
    linear-gradient(90deg, #050a1f 0%, #050a1f 32%, rgba(5,10,31,0.6) 48%, rgba(5,10,31,0) 70%),
    linear-gradient(180deg, rgba(5,10,31,0.4) 0%, transparent 22%, transparent 78%, #050a1f 100%),
    radial-gradient(ellipse at 75% 40%, rgba(31,143,255,0.3), transparent 60%);
}
.hero-grid { z-index: 2; }

@media (max-width: 860px) {
  .hero { padding: 330px 0 30px; }
  .hero-image img { width: 100%; height: 400px; inset: 0 0 auto 0; object-position: 50% 15%; }
  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(5,10,31,0.35) 0%, transparent 18%, transparent 45%, #050a1f 66%),
      radial-gradient(ellipse at 60% 20%, rgba(31,143,255,0.3), transparent 60%);
  }
}

@media (max-width: 860px) {
  .hero { padding-top: 360px; }
  .hero-image img {
    height: 420px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}

/* Mobile: text on the left over the photo, like desktop */
@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-start; padding: 28px 0 34px; }
  .hero-image img {
    inset: 0; width: 100%; height: 100%; object-position: 8% 0%;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-image::after {
    background:
      linear-gradient(90deg, #050a1f 0%, rgba(5,10,31,0.88) 38%, rgba(5,10,31,0.2) 75%, rgba(5,10,31,0) 100%),
      linear-gradient(180deg, rgba(5,10,31,0.3) 0%, transparent 20%, transparent 80%, #050a1f 100%);
  }
  .hero-text > *:not(.vote-btn):not(.official-link) { max-width: 64%; }
  .badge { font-size: 10px; padding: 7px 12px; }
  .hero-text h1 { font-size: clamp(34px, 11vw, 46px); margin: 16px 0 10px; }
  .subtitle { font-size: 18px; }
  .desc { font-size: 13px; line-height: 1.45; }
  .vote-btn { margin-top: 150px; }
}
@media (max-width: 860px) {
  .hero-image img { object-position: 0% 0%; }
  .vote-btn { margin-top: 120px; }
}
@media (max-width: 860px) {
  .hero-image img {
    inset: 0 0 auto auto; height: 400px; width: 100%; object-position: 30% 0%;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .hero-image::after {
    background: linear-gradient(90deg, #050a1f 0%, rgba(5,10,31,0.85) 38%, rgba(5,10,31,0.15) 75%, rgba(5,10,31,0) 100%);
  }
  .vote-btn { margin-top: 36px; }
}
@media (max-width: 860px) {
  .hero-image img {
    inset: 0 auto auto 22%; width: 125%; height: 430px; max-width: none; object-position: 50% 0%;
  }
  .hero-image::after {
    background: linear-gradient(90deg, #050a1f 0%, rgba(5,10,31,0.9) 32%, rgba(5,10,31,0.25) 62%, rgba(5,10,31,0) 100%);
  }
  .vote-btn { margin-top: 56px; }
}

/* Header actions */
.header-actions { display: flex; gap: 10px; margin-left: auto; margin-right: 16px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; white-space: nowrap; transition: transform 0.2s, box-shadow 0.2s;
}
.hbtn:hover { transform: translateY(-2px); }
.hbtn-share { border: 1px solid rgba(31,143,255,0.6); background: rgba(31,143,255,0.12); }
.hbtn-share:hover { box-shadow: 0 0 18px rgba(31,143,255,0.6); }
.hbtn-join { background: linear-gradient(90deg, #1f6bff, #7c4dff); box-shadow: 0 0 18px rgba(124,77,255,0.5); }
.hbtn-join:hover { box-shadow: 0 0 26px rgba(124,77,255,0.8); }
.nav { margin-left: 0; }
.share-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  padding: 12px 20px; border-radius: 12px; background: #0b1740; border: 1px solid var(--blue); font-weight: 700;
  transition: 0.3s; pointer-events: none;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Fan channel banner */
.channel-banner { padding: 0 0 36px; }
.channel-inner {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 18px;
  background: linear-gradient(100deg, rgba(31,107,255,0.25), rgba(124,77,255,0.25));
  border: 1px solid rgba(124,77,255,0.6); box-shadow: 0 0 30px rgba(124,77,255,0.25);
}
.channel-icon { font-size: 34px; }
.channel-inner > div { flex: 1; min-width: 0; }
.channel-inner strong { font-size: 20px; font-weight: 900; }
.channel-inner p { color: var(--muted); font-size: 14px; }
.channel-btn {
  flex: none; padding: 13px 24px; border-radius: 12px; font-weight: 800;
  background: linear-gradient(90deg, #1f6bff, #7c4dff); box-shadow: 0 0 20px rgba(31,143,255,0.5);
}

/* Contact */
.contact { padding: 10px 0 44px; }
.contact-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px;
  border-radius: 18px; background: rgba(10,19,48,0.8); border: 1px solid rgba(31,143,255,0.35);
}
.contact h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; font-style: italic; }
.contact p { color: var(--muted); font-size: 14px; }
.contact-link {
  padding: 13px 22px; border-radius: 12px; font-weight: 800; border: 1px solid var(--blue);
  color: var(--blue); word-break: break-all; transition: 0.2s;
}
.contact-link:hover { background: rgba(31,143,255,0.15); box-shadow: 0 0 18px rgba(31,143,255,0.5); }

@media (max-width: 860px) {
  .header-actions { gap: 6px; margin-right: 10px; }
  .hbtn { height: 38px; padding: 0 12px; font-size: 12px; }
  .hbtn-label { display: none; }
  .hbtn { width: 38px; padding: 0; justify-content: center; font-size: 16px; }
  .channel-inner { flex-direction: column; text-align: center; gap: 10px; padding: 20px 16px; }
  .channel-btn { width: 100%; text-align: center; }
  .contact-inner { flex-direction: column; text-align: center; padding: 20px 16px; }
  .contact-link { width: 100%; text-align: center; }
}
@media (min-width: 861px) {
  .nav { margin: 0 auto; }
  .header-actions { margin: 0; }
}

/* Share button: full label + glow */
.hbtn-share { box-shadow: 0 0 14px rgba(31,143,255,0.55), inset 0 0 10px rgba(31,143,255,0.2); animation: shareGlow 2.2s ease-in-out infinite; }
@keyframes shareGlow { 50% { box-shadow: 0 0 26px rgba(31,143,255,0.95), 0 0 6px rgba(31,143,255,0.8), inset 0 0 12px rgba(31,143,255,0.35); } }
@media (max-width: 860px) {
  .hbtn-share { width: auto; padding: 0 14px; gap: 6px; }
  .hbtn-share .hbtn-label { display: inline; }
  .header-inner { gap: 6px; }
  .logo { gap: 6px; }
  .logo-crown { font-size: 23px; }
  .logo-text { font-size: 17px; }
  .header-actions { gap: 5px; margin-right: 4px; }
  .hbtn-join {
    width: auto;
    height: 36px;
    padding: 0 8px;
    gap: 4px;
    font-size: 10px;
  }
  .hbtn-join .hbtn-label { display: inline; }
  .hbtn-join > span:first-child { font-size: 12px; }
  .menu-btn { width: 36px; height: 36px; flex: none; }
}
