@import url("https://fonts.googleapis.com/css2?family=Griffy&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

@font-face {
  font-family: "Ridi 14";
  src: url("../assets/fonts/ridi14.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SINHA Sithumina 2012";
  src: url("../assets/fonts/sinhasithumina2012_0.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Avenir Next Thin Italic";
  src: url("../assets/fonts/Avenir\ Next\ Thin\ Italic.otf") format("opentype");
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: "PWN pawana";
  src: url("../assets/fonts/pawana.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* ---------- ascii-sinhala chapter names ---------- */
.header-eyebrow.sinhala-ascii-font,
.p-track-chapter.sinhala-ascii-font {
  font-family: "PWN pawana", sans-serif;
  font-size: 36px;
}

.track-row-artist.sinhala-ascii-font {
  font-family: "PWN pawana", sans-serif;
  font-size: 24px;
  font-weight: 550;
}

.mini-butterfly {
  display: block;
  overflow: visible;
}

/* ============ LIST SCREEN ============ */
.list-screen {
  position: relative;
  min-height: 100dvh;
  padding-bottom: 96px;
}
.list-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.list-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.list-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  margin: auto;
  margin-bottom: 30px;
  margin-top: 16px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(244, 238, 250, 0.34),
    rgba(232, 226, 247, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 10px 28px rgba(59, 35, 24, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

@media (max-width: 480px) {
  .list-header {
    margin-bottom: 20px;
    padding: 10px 8px;
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 8px;
  }
}

.list-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(59, 35, 24, 0.16);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.66),
    rgba(201, 160, 217, 0.24)
  );
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.list-back-btn svg {
  width: 18px;
  height: 18px;
}
.list-back-btn:active {
  transform: translateY(1px);
}
.list-back-btn[hidden] {
  display: none;
}

.list-screen.track-open .list-header {
  display: flex;
}
.header-text {
  min-width: 0;
  padding: 2px 0;
}
.header-eyebrow {
  font-size: 35px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(122, 63, 184, 0.72);
  font-weight: 700;
  font-family: "Griffy", system-ui;
}

@media (max-width: 480px) {
  .header-eyebrow {
    font-size: 28px;
  }
}

.header-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 5vw, 23px);
  font-weight: 700;
  margin-top: 4px;
  color: var(--ink);
  text-shadow: none;
  line-height: 1.15;
}

.track-list {
  padding: 4px 8px 0;
}

.track-row {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px;
  margin-bottom: 8px;

  cursor: pointer;

  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(210, 201, 201, 0.497),
      rgba(179, 86, 207, 0.12)
    ),
    linear-gradient(
      135deg,
      rgba(122, 63, 184, 0.38),
      rgba(155, 108, 255, 0.22)
    ),
    rgba(75, 8, 130, 0.55);

  border: 1px solid var(--glass-purple-edge);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -1px 1px rgba(73, 31, 124, 0.1);

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.track-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(206, 182, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.track-row > * {
  position: relative;
  z-index: 1;
}

.track-row:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    ),
    linear-gradient(135deg, rgba(124, 46, 206, 0.503), rgba(141, 0, 217, 0.179));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.track-row:active {
  transform: scale(0.985);
}

.track-row.active {
  transform: translateY(-2px);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    ),
    linear-gradient(135deg, rgba(128, 9, 158, 0.737), rgba(89, 6, 119, 0.66));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.track-thumb {
  width: 44px;
  height: 44px;
  flex: none;
}
.track-info {
  flex: 1;
  min-width: 0;
}
.track-row-title {
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row-title-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 550;
  color: rgba(44, 3, 75, 0.9);

  font-family: "SINHA Sithumina 2012", sans-serif;
}

@media (max-width: 768px) {
  .track-row-title-text,
  .track-row-artist {
    font-size: 18px;
  }
}

.chapter-row .track-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  position: relative;
}

.chapter-row .track-row-title-text {
  display: inline-block;
  white-space: nowrap;
}

.chapter-row .track-row-title.scrolling .track-row-title-text {
  width: max-content;
  padding-left: 0;
  animation: chapterMarquee var(--scroll-duration, 9s) ease-in-out infinite;
  will-change: transform;
}

@keyframes chapterMarquee {
  0%,
  12% {
    transform: translateX(0);
  }
  45%,
  58% {
    transform: translateX(calc(-1 * var(--scroll-distance, 0px)));
  }
  90%,
  100% {
    transform: translateX(0);
  }
}

.chapter-row .track-row-artist {
  letter-spacing: 0.08em;
}
.chapter-row.active .track-row-artist {
  color: rgba(221, 212, 227, 0.9);
}
.track-row.active .track-row-title-text {
  color: rgba(245, 241, 248, 0.9);
}
.track-row-artist {
  font-size: 16px;
  color: rgba(28, 9, 44, 0.795);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 550;
  margin-top: 2px;
  font-family: "Great Vibes", cursive;
}
.track-duration {
  font-size: 11px;
  color: rgba(47, 23, 66, 0.54);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  flex: none;
}
.track-eq {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 13px;
  flex: none;
}
.track-eq span {
  width: 2.5px;
  background: #c7adff;
  border-radius: 1px;
  animation: eq 1s ease-in-out infinite;
}
.track-eq span:nth-child(1) {
  animation-delay: 0s;
}
.track-eq span:nth-child(2) {
  animation-delay: 0.15s;
}
.track-eq span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes eq {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 13px;
  }
}
.track-eq.paused span {
  animation-play-state: paused;
  height: 3px;
}

@media (max-width: 600px) {
  .chapter-row .track-row-title {
    max-width: none;
  }
}

.empty-hint {
  position: relative;
  z-index: 1;
  padding: 20px 20px 4px;
  font-size: 12px;
  color: rgba(47, 23, 66, 0.54);
  font-style: italic;
}

/* mini player bar */
.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  overflow: hidden;
  cursor: pointer;
  padding-bottom: env(safe-area-inset-bottom, 0px);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.06)
    ),
    linear-gradient(
      135deg,
      var(--glass-purple-strong),
      rgba(144, 12, 124, 0.26)
    );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid var(--glass-purple-edge);
  border-radius: 20px 20px 0 0;

  box-shadow:
    0 -6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(107, 59, 128, 0.1);

  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.mini-bg-video {
  filter: blur(6px);
}

.mini-player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(201, 160, 217, 0.1) 45%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.mini-progress,
.mini-inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 601px) {
  .mini-player {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 85%;
    max-width: 640px;
    bottom: 16px;
    border-radius: 20px; /* fully rounded once it's floating and not edge-to-edge */
  }
}

.mini-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.02) brightness(0.9);
}

.mini-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  position: relative;
  z-index: 2;
}
.mini-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--marigold), var(--orchid));
  width: 0%;
  z-index: 2;
}
.mini-thumb {
  width: 36px;
  height: 36px;
  flex: none;
}
.mini-info {
  flex: 1;
  min-width: 0;
}
.mini-title {
  font-weight: 700;
  font-size: 15px;
  font-family: "Avenir Next Thin Italic", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-artist {
  font-size: 16px;
  font-weight: 550;
  font-family: "Great Vibes", cursive;
  color: rgb(55, 10, 60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-playbtn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(59, 35, 24, 0.3);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.58),
    rgba(201, 160, 217, 0.22)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
}
.mini-playbtn svg {
  width: 15px;
  height: 15px;
}

.player-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ============ FULLSCREEN PLAYER ============ */
.player-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.player-screen.open {
  transform: translateY(0);
  pointer-events: auto;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(253, 235, 200, 0.18) 0%,
    rgba(243, 181, 125, 0.12) 28%,
    rgba(201, 123, 110, 0.14) 55%,
    rgba(107, 76, 107, 0.2) 82%,
    rgba(59, 42, 69, 0.32) 100%
  );
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
}
.glow-a {
  width: 260px;
  height: 260px;
  top: -70px;
  left: -50px;
  background: #fce2a0;
  opacity: 0.55;
}
.glow-b {
  width: 230px;
  height: 230px;
  top: 30px;
  right: -60px;
  background: #d98fb0;
  opacity: 0.35;
}

.ribbon {
  position: absolute;
  top: -5%;
  height: 110%;
  width: auto;
}
.ribbon-a {
  left: -6%;
  animation: driftA 22s ease-in-out infinite alternate;
}
.ribbon-b {
  right: -8%;
  animation: driftB 26s ease-in-out infinite alternate;
}
@keyframes driftA {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(24px) rotate(3deg);
  }
}
@keyframes driftB {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

.player-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: min(480px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 50px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.player-content::-webkit-scrollbar {
  display: none;
}

.player-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 8px 8px;
  color: #fff6e9;
}

.back-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  position: relative;
  overflow: hidden;

  border-radius: 50%;
  border: 1px solid rgba(201, 160, 217, 0.2);

  color: #fff6e9;

  background: linear-gradient(
    180deg,
    rgba(140, 79, 166, 0.28),
    rgba(0, 0, 0, 0.22)
  );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(201, 160, 217, 0.08);

  transition: all 0.2s ease;
}

.back-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(201, 160, 217, 0.08) 45%,
    rgba(255, 255, 255, 0.01) 100%
  );
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: scale(0.96);
}

.back-btn svg {
  position: relative;
  z-index: 1;
}

.player-top-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 16px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color: #111;

  background: linear-gradient(
    135deg,
    rgba(122, 63, 184, 0.24),
    rgba(155, 108, 255, 0.12)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(201, 160, 217, 0.24);
  border-radius: 999px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px rgba(107, 59, 128, 0.1);

  position: relative;
  overflow: hidden;
}

.top-spacer {
  width: 38px;
}

.player-middle {
  flex: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow: visible;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(73, 31, 124, 0.46),
    rgba(155, 108, 255, 0.18)
  );

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  border: 1px solid rgba(201, 160, 217, 0.22);
  border-radius: 30px;

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    inset 0 -1px 1px rgba(107, 59, 128, 0.1);
}

.butterfly-stage {
  position: relative;
  width: clamp(150px, 40vw, 190px);
  height: clamp(150px, 40vw, 190px);
  flex: none;
  filter: drop-shadow(0 14px 20px rgba(59, 35, 24, 0.3));
}
.butterfly-figure {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .butterfly-stage {
    width: clamp(120px, 40vw, 150px);
    height: clamp(120px, 40vw, 150px);
  }
}

.p-track-chapter {
  text-align: center;
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: clamp(14px, 4vw, 18px);
  color: #fff6e9;
  text-shadow: 0 1px 6px rgba(36, 18, 9, 0.3);
}

.p-track-title {
  text-align: center;
  font-family: "SINHA Sithumina 2012", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 9vw, 42px);
  color: #fff6e9;
  text-shadow: 0 2px 12px rgba(36, 18, 9, 0.35);
}

.p-track-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 92vw);
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.52)
  );
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 8px 24px rgba(59, 35, 24, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  font-family: "Avenir Next Thin Italic", sans-serif;
  font-weight: 550;
  font-size: 16px;
  color: var(--ink);
  margin-top: 8px;
  margin-bottom: 8px;
  text-shadow: none;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .p-track-track {
    font-size: 14px;
    padding: 4px 10px;
  }
}

.p-tag-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 92vw);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 246, 233, 0.72);
  margin-top: 10px;
  font-weight: 550;
}

.p-datetime {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 246, 233, 0.72);
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chapter-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: min(100%, 92vw);
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.meta-icon {
  flex: none;
  height: 18px;
  width: 18px;
  margin: auto;
  font-size: 14px;
}
.meta-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #fff6e9;
  font-family: "Avenir Next Thin Italic", sans-serif;
  text-align: left;
  overflow-wrap: break-word;
}

.countdown-banner {
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff6e9;
  text-shadow: 0 1px 6px rgba(36, 18, 9, 0.3);
  font-family: "Ridi 14", sans-serif; /* Applied custom font here */
}

@media (max-width: 768px) {
  .countdown-banner {
    font-size: 14px;
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .countdown-banner {
    font-size: 12px;
  }
}

.lamp-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 246, 233, 0.65);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}
.lamp {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.lamp.off {
  background: rgba(255, 246, 233, 0.3);
  box-shadow: none;
}

.player-bottom {
  width: 100%;
  margin-top: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.player-middle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(206, 182, 255, 0.14) 38%,
    rgba(122, 63, 184, 0.1) 72%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.progress-track {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: rgba(59, 35, 24, 0.12);
  cursor: pointer;
  touch-action: none;
  overflow: visible;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--marigold), var(--orchid));
  width: 0%;
}
.progress-fill::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--orchid);
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.counter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.counter-box {
  background: var(--ink-dark);
  color: var(--amber);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 4px 9px;
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 18px;
}
.deck-btn {
  position: relative;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf6, #efe0c2);
  border: 1px solid rgba(59, 35, 24, 0.3);
  box-shadow:
    0 3px 0 rgba(59, 35, 24, 0.35),
    0 6px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.deck-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 rgba(59, 35, 24, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.15);
}
.deck-btn:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 2px;
}
.play-btn {
  width: 66px;
  height: 66px;
}

@media (max-width: 480px) {
  .play-btn {
    width: 56px;
    height: 56px;
  }
}

.play-btn svg {
  width: 22px;
  height: 22px;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.vol-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(59, 35, 24, 0.3);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vol-btn svg {
  width: 16px;
  height: 16px;
}
.vol-slider {
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(59, 35, 24, 0.15);
  outline: none;
  cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--card);
  cursor: pointer;
}
.vol-slider::-moz-range-track {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

.list-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
  height: 100%;
}

.chapter-row.locked {
  cursor: not-allowed;
  opacity: 0.58;
}
.chapter-row.locked:hover {
  transform: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04)
    ),
    linear-gradient(135deg, rgba(122, 63, 184, 0.24), rgba(155, 108, 255, 0.1));
}
.chapter-row.locked .track-row-title-text,
.chapter-row.locked .track-row-artist {
  color: rgba(47, 23, 66, 0.55);
}

.chapter-lock {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(122, 63, 184, 0.9);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(201, 160, 217, 0.28)
  );
  border: 1px solid rgba(122, 63, 184, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

@keyframes chapterShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}
.chapter-row.shake {
  animation: chapterShake 0.35s ease;
}

.progress-track {
  display: none !important;
}

.p-track-subtitle {
  text-align: center;
  font-family: "SINHA Sithumina 2012", sans-serif;
  font-weight: 550;
  font-size: 26px;
  color: rgba(255, 246, 233, 0.72);
  text-shadow: 0 1px 6px rgba(36, 18, 9, 0.3);
  margin-top: 3px;
}

@media (max-width: 480px) {
  .p-track-subtitle {
    font-size: 20px;
  }
}
