:root {
  --bg: #07070a;
  --bg-2: #101014;
  --ink: #f5f5f7;
  --muted: #b3b3bc;
  --accent: #ffc14a;
  --accent-2: #ffe08a;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(900px 500px at 80% 0%, rgba(255, 193, 74, 0.08), transparent 50%), var(--bg);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.96), rgba(7, 7, 10, 0.78));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand img { width: 36px; height: 36px; }

.search { position: relative; width: 100%; }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  pointer-events: none;
}
.search input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: #16161c;
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 16px 11px 40px;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 193, 74, 0.2);
}

/* Featured panel */
.hero {
  position: relative;
  min-height: 58vw;
  max-height: 420px;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.94) 8%, rgba(7, 7, 10, 0.55) 48%, rgba(7, 7, 10, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.15) 40%, rgba(7, 7, 10, 0.96) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 22px 0 28px;
  max-width: 720px;
  margin-left: max(14px, calc((100% - 1180px) / 2));
  margin-right: 14px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-cat {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.hero-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 520px;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 9px;
}
.badge.mobile {
  color: #d7ffe8;
  background: rgba(40, 140, 80, 0.35);
  border: 1px solid rgba(120, 220, 150, 0.3);
}
.badge.files {
  color: #ffe9c2;
  background: rgba(140, 90, 20, 0.4);
  border: 1px solid rgba(255, 193, 74, 0.3);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  transition: 0.2s ease;
}

.btn-play {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a1203;
  min-width: 132px;
  box-shadow: 0 8px 20px rgba(255, 193, 74, 0.25);
}
.btn-play:hover, .btn-play:focus-visible { filter: brightness(1.08); }

.btn-alt {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 12px;
  padding: 10px 12px;
}
.btn-alt:hover, .btn-alt:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Category carousels */
.shelves { padding: 10px 0 48px; }

.shelf { margin: 0 0 22px; }

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shelf h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.shelf h2 small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
  font-size: 0.8rem;
}

.shelf-nav { display: none; }
.arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #16161c;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.arrow:hover, .arrow:focus-visible { border-color: var(--accent); color: var(--accent); }

.track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 8px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #3a3a44 transparent;
}

.cover {
  flex: 0 0 62%;
  max-width: 260px;
  appearance: none;
  border: 0;
  padding: 0;
  background: #141418;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-align: left;
  scroll-snap-align: center;
  scroll-margin-inline: 12px;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  opacity: 0.78;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.cover img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center top;
  background: #1a1a20;
}

.cover-name {
  display: block;
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover.is-on,
.cover:focus-visible {
  transform: scale(1.06);
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(255, 193, 74, 0.16), var(--shadow);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}
.foot p { margin: 0 0 10px; max-width: 780px; }
.foot a { color: var(--accent); }

@media (min-width: 720px) {
  .top-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .search { width: min(360px, 42%); }
  .hero {
    min-height: 420px;
    max-height: none;
    height: 52vh;
  }
  .hero-body { padding-top: 56px; }
  .cover { flex-basis: 220px; max-width: 240px; }
  .cover img { height: 128px; }
  .shelf-nav { display: flex; gap: 8px; }
  .track { scroll-snap-type: x proximity; }
}

@media (min-width: 1024px) {
  .hero { height: 58vh; min-height: 460px; }
  .cover { flex-basis: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover, .hero-bg, .btn { transition: none !important; }
}
