@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=Poppins:wght@700;800&display=swap');

:root {
  --bg: #07050a;
  --surface: #140b0d;
  --surface-2: #1f1114;
  --text: #f5f1ee;
  --muted: #9b8b8b;
  --line: #3a141a;

  --red: #ff1a3c;
  --red-glow: #ff3b5c;
  --gold: #ff8552;
  --indigo: #ff5470;
  --teal: #c1121f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- header / marquee ---------- */

.marquee {
  padding: 56px 6vw 34px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.marquee .brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 7vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-crown {
  width: 1.05em;
  height: auto;
  fill: var(--red);
  filter: drop-shadow(0 0 6px rgba(255, 26, 60, 0.7));
  animation: crownGlow 3s ease-in-out infinite;
}

.brand-nox {
  color: #fff;
}

.brand-hub {
  color: var(--red);
  animation: hubGlow 3s ease-in-out infinite;
}

.marquee .tagline {
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-glow);
}

@keyframes hubGlow {
  0%,
  100% {
    text-shadow: 0 0 6px rgba(255, 26, 60, 0.55), 0 0 18px rgba(255, 26, 60, 0.35);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 59, 92, 0.85), 0 0 30px rgba(255, 26, 60, 0.6);
  }
}

@keyframes crownGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 26, 60, 0.55));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 59, 92, 0.9));
  }
}

/* ---------- category rows ---------- */

.row {
  padding: 34px 0 10px;
  border-bottom: 1px dashed var(--line);
}

.row:last-child {
  border-bottom: none;
}

.row-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6vw 16px;
}

.row-heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.row-heading .count {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 4px;
}

.row-heading .bar {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

.row-heading .icon {
  font-size: 1.1rem;
  line-height: 1;
}

.row[data-tier='trending'] .bar {
  background: var(--red);
}
.row[data-tier='members'] .bar {
  background: var(--indigo);
}
.row[data-tier='bonus'] .bar {
  background: var(--teal);
}
.row[data-tier='premium'] .bar {
  background: var(--gold);
}

.track-wrap {
  position: relative;
}

.track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 6vw 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.track-arrow {
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 44px;
  border: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.track-arrow:hover {
  opacity: 1;
}

.track-arrow-prev {
  left: 0;
  justify-content: flex-start;
  padding-left: 1vw;
}

.track-arrow-next {
  right: 0;
  justify-content: flex-end;
  padding-right: 1vw;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

.card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  cursor: pointer;
}

.card:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}

.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}

.row[data-tier='trending'] .poster {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 30%, transparent);
}
.row[data-tier='members'] .poster {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--indigo) 25%, transparent);
}
.row[data-tier='bonus'] .poster {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 25%, transparent);
}
.row[data-tier='premium'] .poster {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 25%, transparent);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.8rem;
}

.poster-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  pointer-events: none;
}

.poster-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- empty state ---------- */

.empty {
  padding: 0 6vw;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- player modal ---------- */

.player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 4vw;
}

.player-overlay.open {
  display: flex;
}

.player-box {
  width: min(920px, 100%);
}

.player-stage {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.player-inner {
  position: relative;
  width: 100%;
}

.player-stage video {
  width: 100%;
  max-height: 78vh;
  background: #000;
  display: block;
}

.player-stage:fullscreen,
.player-stage:-webkit-full-screen {
  border-radius: 0;
  background: #000;
}

.player-stage:fullscreen .player-inner,
.player-stage:-webkit-full-screen .player-inner {
  height: 100%;
}

.player-stage:fullscreen video,
.player-stage:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* buffering spinner */
.buffer-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--red-glow);
  animation: bufferSpin 0.8s linear infinite;
  display: none;
  pointer-events: none;
}

.buffer-spinner.show {
  display: block;
}

@keyframes bufferSpin {
  to {
    transform: rotate(360deg);
  }
}

/* custom controls */
.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  transition: opacity 0.25s ease;
}

.player-stage.idle.playing .player-controls {
  opacity: 0;
  pointer-events: none;
}

.player-stage.idle.playing {
  cursor: none;
}

.progress {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 8px;
  pointer-events: none; /* display only: no click / drag seeking */
}

.progress-buffered,
.progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
  width: 0%;
}

.progress-buffered {
  background: rgba(255, 255, 255, 0.38);
}

.progress-played {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 26, 60, 0.7);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 0.85rem;
}

.ctl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ctl-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ctl-spacer {
  flex: 1;
}

.time-label {
  color: #fff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  white-space: nowrap;
}

/* icon swaps */
#playPauseBtn .ico-pause,
#muteBtn .ico-muted {
  display: none;
}

.player-stage.playing #playPauseBtn .ico-play {
  display: none;
}

.player-stage.playing #playPauseBtn .ico-pause {
  display: block;
}

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

.player-stage.is-muted #muteBtn .ico-muted {
  display: block;
}

[hidden] {
  display: none !important;
}

/* ---- big 5s skip buttons on the video (left / right) ---- */
.side-skip {
  position: absolute;
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  backdrop-filter: blur(2px);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, background 0.15s ease;
  z-index: 3;
}

.side-skip svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.side-skip:active {
  background: rgba(255, 26, 60, 0.75);
}

.side-skip-left {
  left: 9%;
}

.side-skip-right {
  right: 9%;
}

.player-stage.idle.playing .side-skip {
  opacity: 0;
  pointer-events: none;
}

/* buffering text under the spinner */
.buffer-text {
  position: absolute;
  top: calc(50% + 40px);
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
  display: none;
}

.buffer-text.show {
  display: block;
}

/* toast (quality switched etc.) */
.player-toast {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--line);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.player-toast.show {
  opacity: 1;
}

/* quality menu */
.quality-wrap {
  position: relative;
}

.ctl-quality span {
  font-size: 0.78rem;
}

.quality-menu {
  position: absolute;
  right: 0;
  bottom: 42px;
  min-width: 120px;
  background: rgba(15, 8, 10, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  z-index: 6;
}

.quality-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.quality-menu button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.quality-menu button.active {
  color: var(--red-glow);
  font-weight: 700;
}

/* ---- landscape / fullscreen helpers ---- */

/* pseudo fullscreen for browsers with no element-fullscreen (iPhone Safari) */
.player-overlay.pseudo-active .player-box {
  animation: none;
  transform: none;
}

.player-stage.pseudo-fs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  border-radius: 0;
}

.player-stage.pseudo-fs .player-inner {
  height: 100%;
}

.player-stage.pseudo-fs video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

/* portrait phone -> turn the whole player sideways so the video is horizontal.
   The rotation is on the inner wrapper because browsers force
   "transform: none" on the element that is in real fullscreen. */
.player-stage.rotated .player-inner {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100vh;
  height: 100vw;
  width: 100dvh;
  height: 100dvw;
  transform-origin: 0 0;
  transform: rotate(90deg);
}

.player-stage.rotated video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 640px) {
  .side-skip {
    width: 54px;
    height: 54px;
    top: calc(50% - 27px);
  }
  .side-skip-left {
    left: 6%;
  }
  .side-skip-right {
    right: 6%;
  }
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 14px;
}

.player-info h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 60ch;
}

.close-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.close-btn:hover {
  border-color: var(--muted);
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px 6vw 60px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .card {
    flex-basis: 128px;
  }
  .track-arrow {
    width: 34px;
    font-size: 1.4rem;
  }
}

/* ---------- motion ---------- */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-animate {
  animation: fadeSlideUp 0.5s ease both;
}

.card-animate {
  animation: fadeSlideUp 0.45s ease both;
}

.card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

/* fires on every click/tap, on cards and buttons alike */
@keyframes pulseClick {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulseClick 0.28s ease;
}

.player-overlay,
.choice-overlay,
.countdown-overlay,
.support-overlay {
  transition: opacity 0.2s ease;
  opacity: 0;
}

.player-overlay.open,
.choice-overlay.open,
.countdown-overlay.open,
.support-overlay.open {
  opacity: 1;
}

.player-box,
.choice-box,
.countdown-box,
.support-box {
  animation: fadeSlideUp 0.25s ease both;
}

/* ---------- stream/download choice modal ---------- */

.choice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 4vw;
}

.choice-overlay.open {
  display: flex;
}

.choice-box {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.choice-box h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.choice-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

.choice-buttons {
  display: flex;
  gap: 16px;
}

.choice-btn {
  position: relative;
  flex: 1;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(
    120deg,
    rgba(255, 26, 60, 0.22),
    rgba(138, 43, 226, 0.18),
    rgba(0, 234, 255, 0.15)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  animation: buttonGlow 4s linear infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.choice-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 19px;
  background: linear-gradient(90deg, #00eaff, #8a2be2, #ff1493, var(--red), #00eaff);
  background-size: 400% 100%;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.8;
  animation: borderGlow 5s linear infinite;
}

.choice-btn:hover {
  transform: scale(1.05);
}

.choice-btn:active,
.choice-btn.pulse {
  transform: scale(0.94);
}

.choice-btn .btn-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.download-btn .btn-icon {
  animation: arrowBounce 1.2s ease-in-out infinite;
}

.stream-btn .btn-icon {
  animation: playPulse 1.2s ease-in-out infinite;
}

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

@keyframes playPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 10px #00eaff, 0 0 25px rgba(0, 234, 255, 0.45);
  }
  25% {
    box-shadow: 0 0 10px #8a2be2, 0 0 30px rgba(138, 43, 226, 0.55);
  }
  50% {
    box-shadow: 0 0 12px #ff1493, 0 0 35px rgba(255, 20, 147, 0.55);
  }
  75% {
    box-shadow: 0 0 12px var(--red), 0 0 35px rgba(255, 26, 60, 0.55);
  }
  100% {
    box-shadow: 0 0 10px #00eaff, 0 0 25px rgba(0, 234, 255, 0.45);
  }
}

.choice-cancel {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- countdown / ad-slot modal ---------- */

.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 4vw;
}

.countdown-overlay.open {
  display: flex;
}

.countdown-box {
  position: relative;
  width: min(340px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

/* portrait ad slot: fixed aspect box so the popup doesn't jump around
   once a real ad renders inside it */
.countdown-ad-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.countdown-ad-placeholder {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* small circular skip badge, top-right corner over the ad */
.countdown-ring-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(6, 6, 9, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.countdown-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start the ring from 12 o'clock */
}

.countdown-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.5;
}

.countdown-ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.countdown-ring-num {
  position: relative;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.countdown-ring-close {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* once the X appears the badge becomes clickable */
.countdown-ring-btn:has(.countdown-ring-close:not([hidden])) {
  cursor: pointer;
}

/* ---------- support/telegram modal ---------- */

.support-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 130;
  padding: 4vw;
}

.support-overlay.open {
  display: flex;
}

.support-box {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
}

.support-box h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.support-box p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.support-join-btn {
  display: inline-block;
  width: 100%;
  padding: 13px 10px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.support-continue-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--red);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.support-close-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

/* =====================================================================
   CARD UPGRADE — landscape cards (full banner), rainbow glow border
   Paste at the very END of css/style.css
   ===================================================================== */

:root {
  /* change this one line to reshape every card, e.g. 2 / 1 for wider ones */
  --card-ratio: 16 / 9;
  --rainbow: linear-gradient(
    90deg,
    #ff1a3c, #ff8a00, #ffe600, #2bff88, #00eaff, #8a2be2, #ff1493, #ff1a3c
  );
}

@keyframes cardRainbow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

/* row heading */
.row-heading .bar {
  background: var(--red); /* default for categories you create yourself */
}

.row-heading h2 {
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.row-heading .count {
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
}

/* scroller: extra room so the glow is never clipped */
.row .track {
  gap: 24px;
  padding: 20px 6vw 22px;
  scroll-padding: 0 6vw; /* first card keeps its left margin after snapping */
}

.row .track .card {
  flex: 0 0 clamp(260px, 26vw, 360px);
  padding-bottom: 50px; /* space for the title under the banner */
}

/* the banner itself: full image, no crop */
.row .track .card .poster {
  aspect-ratio: var(--card-ratio);
  border: none;
  border-radius: 14px;
  background: #0d0709;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.row .track .card .poster img {
  border-radius: 14px;
  transition: filter 0.25s ease;
}

/* animated rainbow border line */
.row .track .card .poster::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2.5px;
  border-radius: 14px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: cardRainbow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  z-index: 3;
  pointer-events: none;
}

/* soft rainbow glow around the card */
.row .track .card .poster::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: cardRainbow 4s linear infinite;
  filter: blur(13px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.row .track .card:hover .poster::after,
.row .track .card:focus-visible .poster::after {
  opacity: 0.95;
}

/* the old bottom gradient becomes a hover "play" layer */
.row .track .card .poster-gradient {
  inset: 0;
  height: auto;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: grid;
  place-items: center;
  z-index: 2;
}

.row .track .card .poster-gradient::after {
  content: '\25B6';
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  background: rgba(255, 26, 60, 0.92);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 0 22px rgba(255, 26, 60, 0.75);
}

.row .track .card:hover .poster-gradient,
.row .track .card:focus-visible .poster-gradient {
  opacity: 1;
}

/* title sits under the banner, so it never covers the artwork */
.row .track .card .poster-title {
  top: calc(100% + 12px);
  bottom: auto;
  left: 4px;
  right: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: none;
  color: var(--text);
}

.row .track .card:hover {
  box-shadow: none;
  transform: translateY(-5px) scale(1.02);
}

.row .track .card:focus-visible {
  outline: none;
}

/* arrows line up with the banner area, not the title */
.track-arrow {
  top: 20px;
  bottom: 72px;
}

/* phones / tablets: swipe instead of arrow buttons */
@media (hover: none) {
  .track-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .row .track {
    gap: 18px;
  }
  .row .track .card {
    flex: 0 0 78vw;
    max-width: 330px;
  }
  .row-heading h2 {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .row .track .card .poster::before,
  .row .track .card .poster::after {
    animation: none;
  }
}
