@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #11111a;
  --panel: #191923;
  --panel-soft: #1d1d28;
  --line: #2a2935;
  --muted: #8d8c9a;
  --text: #f5f3f6;
  --pink: #ff6a8e;
  --yellow: #ffd166;
  --mint: #78e2c2;
  --purple: #a48bff;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  padding: 0 0 105px;
  background:
    radial-gradient(ellipse at 82% 4%, rgb(111 76 129 / 11%), transparent 29rem),
    var(--bg);
  color: var(--text);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell { position: relative; z-index: 1; width: min(1192px, calc(100% - 72px)); margin: 0 auto; }
.topbar { height: 82px; display: flex; align-items: center; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 220px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--pink); transform: rotate(-8deg); box-shadow: 0 5px 22px rgb(255 106 142 / 24%); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; width: 4px; background: #29151e; border-radius: 4px; }
.brand-mark::before { height: 13px; transform: translate(-6px, -1px); }
.brand-mark::after { height: 19px; transform: translate(0, 2px); }
.brand-mark span { height: 10px; transform: translate(6px, 3px); }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -1px; }
.brand-name span { color: var(--pink); }
.top-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 31px 0 29px; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--pink); content: ""; }
.archive-link { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: #b0afbb; font-size: 11px; font-weight: 500; transition: color .2s ease; }
.archive-link:hover, .text-link:hover { color: var(--pink); }
.archive-dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgb(120 226 194 / 55%); }
.external-icon { font-size: 13px; color: var(--muted); }

.hero { position: relative; min-height: 390px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; overflow: hidden; border-bottom: 1px solid rgb(255 255 255 / 5%); }
.hero-copy { position: relative; z-index: 1; padding: 50px 0 47px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--pink); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-line { width: 18px; height: 1px; background: currentColor; }
h1 { margin: 19px 0 14px; font-size: clamp(42px, 5vw, 63px); line-height: .99; letter-spacing: -.065em; font-weight: 800; }
h1 span { color: var(--pink); }
.hero-description { max-width: 390px; margin: 0; color: #aaa9b6; font-size: 14px; line-height: 1.65; }
.search-form { display: flex; align-items: center; width: min(480px, 100%); height: 51px; margin-top: 25px; padding: 5px; border: 1px solid #33313e; border-radius: 9px; background: #1a1924; box-shadow: 0 9px 30px rgb(0 0 0 / 16%); transition: border-color .2s ease, box-shadow .2s ease; }
.search-form:focus-within { border-color: rgb(255 106 142 / 65%); box-shadow: 0 0 0 3px rgb(255 106 142 / 10%); }
.search-icon { position: relative; width: 15px; height: 15px; margin: 0 11px 0 10px; border: 1.6px solid #898795; border-radius: 50%; }
.search-icon::after { position: absolute; right: -5px; bottom: -3px; width: 6px; height: 1.5px; background: #898795; content: ""; transform: rotate(45deg); }
.search-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-form input::placeholder { color: #777684; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form button { flex: 0 0 auto; height: 39px; padding: 0 15px; border: 0; border-radius: 6px; background: var(--pink); color: #24121a; font-size: 11px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.search-form button:hover { background: #ff87a4; transform: translateY(-1px); }
.search-form button span { margin-left: 5px; font-size: 14px; }
.hero-meta { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: #858491; font-size: 10px; }
.hero-meta .live-dot { width: 5px; height: 5px; }
.meta-separator { color: #575662; }

.hero-art { position: relative; height: 355px; display: grid; place-items: center; overflow: hidden; }
.hero-art::before { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle, rgb(255 106 142 / 11%), rgb(164 139 255 / 5%) 49%, transparent 70%); content: ""; }
.orbit { position: absolute; width: 298px; height: 105px; border: 1px solid rgb(164 139 255 / 22%); border-radius: 50%; transform: rotate(-29deg); pointer-events: none; }
.orbit-two { width: 340px; height: 132px; border-color: rgb(255 209 102 / 17%); transform: rotate(31deg); }
.hero-disc { position: relative; width: 206px; height: 206px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; background: repeating-radial-gradient(circle at center, #272630 0, #272630 2px, #1a1922 3px, #1a1922 5px); box-shadow: 0 19px 45px rgb(0 0 0 / 42%), inset 0 0 0 9px rgb(255 255 255 / 2%); animation: float 6s ease-in-out infinite; }
.hero-disc::before { position: absolute; inset: 14px; border: 1px solid rgb(255 255 255 / 6%); border-radius: inherit; content: ""; }
.disc-label { position: relative; z-index: 1; width: 90px; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(145deg, #ff819b, #fa608b 70%); color: #331523; text-align: center; box-shadow: 0 0 21px rgb(255 106 142 / 25%); pointer-events: none; }
.disc-logo { position: absolute; top: 9px; left: 12px; font-family: Georgia, serif; font-size: 11px; font-weight: 900; }
.disc-small { font-family: "DM Mono", monospace; font-size: 6px; letter-spacing: .12em; }
.disc-title { margin-top: 3px; font-size: 16px; font-weight: 800; line-height: .92; letter-spacing: -.06em; }
.disc-stars { margin-top: 5px; font-size: 6px; }
.hero-spark, .hero-note { position: absolute; color: var(--yellow); pointer-events: none; }
.spark-one { top: 53px; right: 72px; font-size: 21px; }
.spark-two { bottom: 56px; left: 71px; color: var(--mint); font-size: 24px; }
.hero-note { top: 74px; left: 86px; color: var(--purple); font-family: Georgia, serif; font-size: 37px; transform: rotate(13deg); }
.hero-caption { position: absolute; right: 6px; bottom: 32px; color: var(--yellow); font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.8; letter-spacing: .14em; transform: rotate(-8deg); pointer-events: none; }
.hero-caption span { color: #9c9aa8; font-size: 6px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-7px) rotate(-5deg); } }

.library-section { padding: 39px 0 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-eyebrow { color: var(--mint); font-size: 9px; }
h2 { margin: 10px 0 0; font-size: 26px; letter-spacing: -.045em; }
.heading-period { color: var(--pink); }
.text-link { margin-bottom: 4px; color: #aaa9b5; font-size: 11px; font-weight: 600; transition: color .2s ease; }
.text-link span { margin-left: 5px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 23px 0 19px; }
.filter-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab { flex: 0 0 auto; padding: 8px 13px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8f8e9b; font-size: 10px; font-weight: 600; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.filter-tab:hover { color: var(--text); }
.filter-tab.active { border-color: #363340; background: #24232e; color: var(--text); }
.sort-label { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #82818e; font-size: 10px; }
.sort-icon { color: var(--purple); font-size: 15px; }

.track-grid { min-height: 130px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.track-card { position: relative; min-width: 0; min-height: 107px; display: flex; align-items: center; gap: 13px; padding: 13px; overflow: hidden; border: 1px solid #292833; border-radius: 9px; background: linear-gradient(125deg, #1c1b25, #191820); transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.track-card:hover { border-color: #44404e; background: #201f2a; transform: translateY(-2px); }
.track-card.playing { border-color: rgb(255 106 142 / 70%); }
.cover-art { position: relative; flex: 0 0 72px; width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg, var(--cover-a), var(--cover-b)); }
.cover-art::before, .cover-art::after { position: absolute; border: 1px solid rgb(255 255 255 / 25%); border-radius: 50%; content: ""; }
.cover-art::before { width: 50px; height: 50px; }
.cover-art::after { width: 36px; height: 36px; }
.cover-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.cover-art.has-image::before, .cover-art.has-image::after, .cover-art.has-image .cover-symbol { display: none; }
.cover-symbol { position: relative; z-index: 1; color: rgb(255 255 255 / 92%); font-family: Georgia, serif; font-size: 29px; font-weight: 700; text-shadow: 0 2px 9px rgb(0 0 0 / 24%); }
.cover-index { position: absolute; right: 7px; bottom: 6px; z-index: 1; color: rgb(255 255 255 / 78%); font-family: "DM Mono", monospace; font-size: 7px; letter-spacing: .08em; }
.cover-art.tone-0 { --cover-a: #315774; --cover-b: #5da4ad; }
.cover-art.tone-1 { --cover-a: #773b62; --cover-b: #d37778; }
.cover-art.tone-2 { --cover-a: #855b2f; --cover-b: #e5b34d; }
.cover-art.tone-3 { --cover-a: #444274; --cover-b: #9b7ac4; }
.cover-art.tone-4 { --cover-a: #316751; --cover-b: #70af71; }
.cover-art.tone-5 { --cover-a: #6b3f42; --cover-b: #cc816e; }
.track-copy { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: 21px; }
.track-title { display: -webkit-box; overflow: hidden; color: #f0eef2; font-size: 12px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.track-creator { overflow: hidden; margin-top: 5px; color: #92919e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.track-details { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #777683; font-family: "DM Mono", monospace; font-size: 8px; }
.track-type { color: var(--mint); }
.track-type.packs { color: var(--yellow); }
.track-play { position: absolute; top: 50%; right: 12px; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #3b3946; border-radius: 50%; background: #25232e; color: #eceaf0; font-size: 9px; cursor: pointer; opacity: 0; transform: translateY(-50%) scale(.9); transition: opacity .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.track-card:hover .track-play, .track-card:focus-within .track-play, .track-card.playing .track-play { opacity: 1; transform: translateY(-50%) scale(1); }
.track-play:hover, .track-card.playing .track-play { border-color: var(--pink); background: var(--pink); color: #29121b; }
.track-play:disabled { cursor: wait; opacity: 1; }
.track-play:focus-visible, .filter-tab:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.load-more-wrap[hidden] { display: none; }
.load-more { padding: 10px 17px; border: 1px solid #383642; border-radius: 6px; background: #1c1b25; color: #c4c2cd; font-size: 10px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.load-more:hover { border-color: var(--pink); color: var(--pink); }
.load-more span { margin-left: 7px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; min-height: 145px; padding: 24px; border: 1px dashed #35333f; border-radius: 9px; color: #aaa9b5; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 13px; }
.empty-state span { font-size: 11px; }
.skeleton { min-height: 107px; border: 1px solid #292833; border-radius: 9px; background: linear-gradient(100deg, #1b1a24 20%, #23222e 40%, #1b1a24 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0 26px; border-top: 1px solid rgb(255 255 255 / 5%); color: #777683; font-size: 9px; }
.footer-heart { color: var(--pink); }
.player { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; min-height: 78px; display: grid; grid-template-columns: minmax(230px, 1fr) minmax(240px, 1.1fr) minmax(180px, 1fr); align-items: center; gap: 26px; padding: 12px max(36px, calc((100vw - 1192px) / 2)); border-top: 1px solid #302e3a; background: rgb(24 23 32 / 96%); box-shadow: 0 -12px 40px rgb(0 0 0 / 18%); backdrop-filter: blur(18px); }
.player-track { min-width: 0; display: flex; align-items: center; gap: 11px; }
.player-art { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: linear-gradient(140deg, #514272, #d06b88); color: #fff; font-family: Georgia, serif; font-size: 20px; }
.player-art.active { background: linear-gradient(140deg, #315774, #5da4ad); }
.player-track-copy { min-width: 0; }
.player-title, .player-creator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title { color: #eeedf1; font-size: 11px; font-weight: 700; }
.player-creator { margin-top: 4px; color: #898894; font-size: 9px; }
.player-controls { display: flex; align-items: center; gap: 15px; }
.control-button { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pink); color: #28121b; font-size: 11px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.control-button:hover:not(:disabled) { background: #ff8aa5; transform: scale(1.05); }
.control-button:disabled { opacity: .42; cursor: not-allowed; }
.playback { flex: 1; min-width: 0; }
.playback-times { display: flex; justify-content: space-between; margin-bottom: 6px; color: #8b8995; font-family: "DM Mono", monospace; font-size: 8px; }
.seek-bar, .volume-bar { display: block; height: 3px; margin: 0; border-radius: 5px; appearance: none; background: #44424e; cursor: pointer; }
.seek-bar { width: 100%; }
.seek-bar::-webkit-slider-thumb, .volume-bar::-webkit-slider-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; appearance: none; background: var(--pink); }
.seek-bar::-moz-range-thumb, .volume-bar::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--pink); }
.player-volume { display: flex; align-items: center; justify-content: end; gap: 11px; }
.volume-icon { color: #a5a3af; font-size: 17px; }
.volume-bar { width: 70px; accent-color: var(--pink); }
.player-source { color: #8b8995; font-size: 16px; transition: color .2s ease; }
.player-source:hover { color: var(--pink); }
.toast { position: fixed; right: 24px; bottom: 95px; z-index: 20; max-width: min(370px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid #48434f; border-radius: 8px; background: #24222d; color: #eceaf0; font-size: 11px; box-shadow: 0 8px 30px rgb(0 0 0 / 30%); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.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; }

@media (max-width: 900px) {
  .app-shell { width: min(100% - 48px, 760px); }
  .hero { grid-template-columns: 1.2fr .8fr; min-height: 360px; }
  .hero-art { transform: scale(.85); transform-origin: center right; }
  .track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player { grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(80px, .6fr); gap: 18px; padding-right: 24px; padding-left: 24px; }
  .volume-icon, .volume-bar { display: none; }
}

@media (max-width: 620px) {
  body { padding-bottom: 130px; }
  .app-shell { width: calc(100% - 36px); }
  .topbar { height: 69px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .top-nav { gap: 18px; margin-left: 24px; }
  .nav-link { padding: 27px 0 25px; font-size: 11px; }
  .archive-link { width: 26px; height: 28px; justify-content: center; overflow: hidden; font-size: 0; }
  .archive-dot { flex: 0 0 6px; }
  .external-icon { font-size: 13px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 42px 0 24px; }
  h1 { margin-top: 16px; font-size: clamp(43px, 11vw, 58px); }
  .hero-description { max-width: 350px; font-size: 13px; }
  .search-form { margin-top: 21px; }
  .search-form input { font-size: 11px; }
  .search-form button { padding: 0 11px; }
  .hero-meta { flex-wrap: wrap; row-gap: 6px; font-size: 9px; }
  .hero-art { position: absolute; top: 39px; right: -102px; width: 280px; height: 250px; opacity: .25; transform: scale(.74); transform-origin: center; pointer-events: none; }
  .hero-art::before { width: 230px; height: 230px; }
  .hero-disc { width: 170px; height: 170px; }
  .disc-label { width: 75px; height: 75px; }
  .disc-title { font-size: 14px; }
  .hero-caption { display: none; }
  .library-section { padding-top: 29px; }
  .section-heading { align-items: start; }
  h2 { font-size: 23px; }
  .text-link { max-width: 105px; margin-top: 17px; font-size: 9px; line-height: 1.5; text-align: right; }
  .filter-row { align-items: flex-start; margin: 17px 0 14px; }
  .filter-tabs { gap: 3px; }
  .filter-tab { padding: 8px 9px; font-size: 9px; }
  .sort-label { display: none; }
  .track-grid { grid-template-columns: 1fr; gap: 9px; }
  .track-card { min-height: 91px; padding: 10px; }
  .cover-art { flex-basis: 68px; width: 68px; height: 68px; }
  .track-play { opacity: 1; transform: translateY(-50%); }
  .footer { flex-direction: column; gap: 7px; padding-bottom: 18px; font-size: 8px; }
  .player { min-height: 116px; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 9px 18px 10px; }
  .player-track { grid-column: 1; grid-row: 1; }
  .player-art { flex-basis: 38px; width: 38px; height: 38px; }
  .player-controls { grid-column: 2; grid-row: 1 / span 2; gap: 10px; }
  .control-button { flex-basis: 35px; width: 35px; height: 35px; }
  .playback { grid-column: 1; grid-row: 2; padding-left: 49px; }
  .player-volume { display: none; }
  .toast { right: 12px; bottom: 126px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
