/* ==========================================================================
   DYNOHUB V5.2 — ULTIMATE EDITION
   Modern Soft Neo-Brutalism UI + Retro Cartoon Design
   ========================================================================== */

:root {
  --bg-cream: #FFFDF5;
  --bg-card: #FFFFFF;
  --ink: #111111;
  --ink-soft: #333333;
  --yellow: #FFE566;
  --yellow-hover: #FFD833;
  --blue: #6EC1FF;
  --blue-hover: #4DB2FF;
  --mint: #9CF0B2;
  --mint-hover: #7BE699;
  --coral: #FF8A7A;

  --border: 3px solid var(--ink);
  --border-thin: 2px solid var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --font-display: 'Space Grotesk', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(17, 17, 17, 0.08) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
select,
input {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ==========================================================================
   Branded Preloader
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-cream);
  background-image: radial-gradient(rgba(17, 17, 17, 0.14) 1.35px, transparent 1.35px);
  background-size: 20px 20px;
  display: grid;
  place-items: center;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s var(--ease-smooth);
}

.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 260px;
}

.loader-icon {
  width: 64px;
  height: 64px;
  animation: popFloat 1.2s ease-in-out infinite;
}

.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.loader-ver {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.loader-bar-track {
  width: 180px;
  height: 12px;
  background: var(--bg-cream);
  border: var(--border-thin);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 45%;
  background: var(--yellow);
  border-right: var(--border-thin);
  animation: loaderSweep 0.85s ease-in-out infinite alternate;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
  transition: padding 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.site-header.is-scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 4px 0 rgba(17, 17, 17, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
}

.logo-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-bounce);
  animation: logoGentleBob 4s ease-in-out infinite;
}

.brand-logo:hover .logo-badge {
  transform: rotate(-8deg) scale(1.08);
}

.logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo-wordmark strong {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-wordmark small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 0.1rem 0.45rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.94rem;
  background: var(--bg-card);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.18s var(--ease-bounce), box-shadow 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--bg-cream);
}

.nav-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.nav-link.active {
  background: var(--yellow);
}

.nav-link--accent {
  background: var(--mint);
}

.nav-link--accent:hover {
  background: var(--mint-hover);
}

.nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--yellow);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.menu-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.hamburger-lines {
  width: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-lines span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  margin: 0.75rem 1rem 0.25rem;
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.85rem;
  animation: menuSlideDown 0.26s var(--ease-bounce);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-link {
  padding: 0.8rem 1rem;
  font-weight: 800;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.mobile-nav-link--accent {
  background: var(--mint);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.18s var(--ease-bounce), box-shadow 0.18s ease, background-color 0.18s ease;
  user-select: none;
}

.neo-btn--lg {
  padding: 1rem 1.55rem;
  font-size: 1.02rem;
}

.neo-btn--primary {
  background: var(--yellow);
}

.neo-btn--primary:hover {
  background: var(--yellow-hover);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.neo-btn--secondary {
  background: var(--blue);
}

.neo-btn--secondary:hover {
  background: var(--blue-hover);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.neo-btn--download {
  width: 100%;
  padding: 1.15rem 1.75rem;
  font-size: 1.12rem;
  background: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.neo-btn--download:hover {
  background: var(--mint);
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

.neo-btn:active {
  transform: translate(4px, 4px) !important;
  box-shadow: 1px 1px 0 var(--ink) !important;
}

.btn-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-bounce {
  animation: iconBounce 1.8s ease-in-out infinite;
}

.neo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-weight: 800;
  font-size: 0.82rem;
  border: var(--border-thin);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.neo-badge svg {
  width: 18px;
  height: 18px;
}

.neo-badge--yellow {
  background: var(--yellow);
}

.neo-badge--mint {
  background: var(--mint);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.deco-shape {
  position: absolute;
  animation: floatSlow 6s ease-in-out infinite;
}

.deco-star-1 {
  width: 54px;
  top: 2.5rem;
  left: 4%;
  animation-delay: 0s;
}

.deco-bolt {
  width: 46px;
  bottom: 2.5rem;
  left: 6%;
  animation-delay: 1.4s;
}

.deco-pill {
  top: 3rem;
  right: 5%;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(10deg);
  animation: floatSlow 5.2s ease-in-out infinite;
  animation-delay: 0.7s;
}

.deco-ring {
  width: 48px;
  bottom: 2rem;
  right: 4%;
  animation-delay: 2s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.version-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.85rem;
}

.hero-brand-line {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.8vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-shadow: 4px 4px 0 var(--yellow);
}

.hero-edition-line {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.highlight-block {
  display: inline-block;
  background: var(--blue);
  border: var(--border-thin);
  border-radius: 12px;
  padding: 0.1rem 0.65rem;
  box-shadow: var(--shadow-sm);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-card);
  border: var(--border-thin);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
}

.quick-tag svg {
  width: 16px;
  height: 16px;
}

/* Hero Visual Card */
.hero-frame {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}

.hero-frame:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

.frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--yellow);
  border-bottom: var(--border);
}

.frame-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.dot-yellow { background: var(--yellow); }
.dot-blue { background: var(--blue); }
.dot-mint { background: var(--mint); }

.frame-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.frame-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 0.15rem 0.5rem;
}

.hero-img-wrap {
  background: var(--bg-cream);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.95rem;
  border: var(--border-thin);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.section-tag--yellow { background: var(--yellow); }
.section-tag--blue { background: var(--blue); }
.section-tag--mint { background: var(--mint); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Download Section (Signature Color: Pastel Yellow)
   ========================================================================== */
.download-section {
  padding: 3.25rem 0 4rem;
  background: rgba(255, 229, 102, 0.16);
  border-top: var(--border-thin);
  border-bottom: var(--border-thin);
}

.download-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

.download-card-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}

.zip-showcase {
  position: relative;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.25rem;
  display: grid;
  place-items: center;
}

.zip-badge-float {
  position: absolute;
  top: -12px;
  right: -10px;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 10px;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
  transform: rotate(8deg);
}

.cartoon-zip-svg {
  width: 128px;
  height: auto;
  animation: floatSlow 3.6s ease-in-out infinite;
}

.download-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-title-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulseDot 1.6s ease-in-out infinite;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.meta-item {
  background: var(--bg-cream);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  box-shadow: 2px 2px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-item--yellow,
.meta-item--blue,
.meta-item--mint,
.meta-item--cream {
  background: var(--bg-cream);
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.meta-value {
  font-size: 0.98rem;
  font-weight: 900;
  word-break: break-word;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.download-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.direct-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.direct-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ==========================================================================
   Video Tutorial Section (Signature Color: Sky Blue)
   ========================================================================== */
.video-section {
  padding: 3.5rem 0 4.5rem;
  background: rgba(110, 193, 255, 0.14);
  border-bottom: var(--border-thin);
  margin-bottom: 3rem;
}

.video-shell {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.video-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  background: var(--blue);
  border-bottom: var(--border);
}

.video-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.video-now-playing {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-ratio-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--yellow);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 0.18rem 0.55rem;
  flex-shrink: 0;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111111;
  overflow: hidden;
}

.tutorial-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111111;
  cursor: pointer;
}

/* Big Center Play Overlay */
.video-big-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(17, 17, 17, 0.22);
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  transition: opacity 0.22s ease, background-color 0.22s ease;
}

.video-big-play:hover {
  background: rgba(17, 17, 17, 0.32);
}

.video-big-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blue);
  border: var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease-bounce), background-color 0.2s ease;
}

.video-big-play:hover .big-play-circle {
  transform: scale(1.1);
  background: var(--blue-hover);
}

.big-play-circle svg {
  width: 40px;
  height: 40px;
  margin-left: 3px;
}

.big-play-label {
  background: var(--bg-cream);
  border: var(--border-thin);
  border-radius: 999px;
  padding: 0.4rem 1.05rem;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* Custom Player Controls */
.player-controls {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  background: var(--bg-cream);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-stage.is-playing:not(:hover):not(:focus-within) .player-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.seek-row {
  display: flex;
  align-items: center;
}

.seek-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: var(--border-thin);
  cursor: pointer;
  accent-color: var(--ink);
}

.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.seek-bar::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

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

.ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: var(--border-thin);
  box-shadow: 2px 2px 0 var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}

.ctrl-btn:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.ctrl-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.ctrl-btn--play {
  background: var(--yellow);
}

.ctrl-btn--play .ico-pause {
  display: none;
}

.player-stage.is-playing .ctrl-btn--play .ico-play {
  display: none;
}

.player-stage.is-playing .ctrl-btn--play .ico-pause {
  display: block;
}

.ico-vol-off {
  display: none;
}

.player-stage.is-muted .ico-vol-on {
  display: none;
}

.player-stage.is-muted .ico-vol-off {
  display: block;
}

.volume-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.volume-bar {
  width: 74px;
  height: 8px;
  accent-color: var(--ink);
  cursor: pointer;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  background: var(--bg-card);
  border: var(--border-thin);
  border-radius: 8px;
}

.speed-select {
  height: 38px;
  padding: 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--blue);
  border: var(--border-thin);
  border-radius: 10px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

/* Video Playlist Strip */
.video-playlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-cream);
  border-top: var(--border);
}

.video-playlist:empty {
  display: none;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  background: var(--bg-card);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s var(--ease-bounce), box-shadow 0.18s ease, background-color 0.18s ease;
}

.playlist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.playlist-card.is-active {
  background: var(--yellow);
}

.playlist-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  border: var(--border-thin);
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue);
}

.playlist-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.playlist-title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
}

.playlist-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 0 0 2.5rem;
}

.footer-card {
  background: var(--bg-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-version-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--yellow);
  border: var(--border-thin);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--bg-cream);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease-bounce), box-shadow 0.16s ease, background-color 0.16s ease;
}

.footer-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--yellow);
}

.footer-link--telegram {
  background: var(--mint);
}

.footer-link--telegram:hover {
  background: var(--mint-hover);
}

.footer-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 1.15rem;
  border-top: 2px dashed rgba(17, 17, 17, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.copyright {
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--mint);
  border: var(--border-thin);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.neo-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.2rem;
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  font-size: 0.92rem;
  max-width: min(380px, calc(100vw - 2.5rem));
  animation: toastIn 0.28s var(--ease-bounce);
}

.neo-toast[hidden] {
  display: none;
}

.toast-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ==========================================================================
   Scroll Reveal & Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes popFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

@keyframes loaderSweep {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(140%); }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }

  .download-card-inner {
    grid-template-columns: 1fr;
  }

  .zip-showcase {
    max-width: 240px;
    margin-inline: auto;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 2.25rem 0 3rem;
  }

  .deco-star-1,
  .deco-bolt,
  .deco-ring {
    opacity: 0.45;
    transform: scale(0.8);
  }

  .player-controls,
  .video-big-play {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions .neo-btn {
    width: 100%;
  }

  .download-card,
  .footer-card {
    padding: 1.25rem;
  }

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

  .ctrl-btn {
    width: 34px;
    height: 34px;
  }

  .time-display {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }
}

/* ==========================================================================
   Reduced Motion & Low-Power Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body.low-motion *,
body.low-motion *::before,
body.low-motion *::after {
  animation: none !important;
}
