/* MIXBAY's public track library. Shared collection and consent surfaces keep their own styles. */
:root {
  --bay-night: #0b0e18;
  --bay-panel: #151928;
  --bay-line: #34384a;
  --bay-text: #f3f1fb;
  --bay-mute: #b1b4c6;
  --bay-lilac: #c4b5ff;
  scroll-padding-top: 82px;
}
body.discovery-page {background:var(--bay-night);color:var(--bay-text);font-family:var(--mb-font)}
.discovery-page .mb-shell {width:min(1312px,calc(100% - 80px));margin-inline:auto}
.discovery-page :is(h1,h2,h3,p) {word-break:keep-all;overflow-wrap:break-word}
.discovery-page :is(h1,h2,h3) {line-height:1.22;margin:0}
.discovery-page button {cursor:pointer}
.discovery-page :focus-visible {outline:2px solid #e8dfff;outline-offset:3px}
.skip-link {position:fixed;z-index:100;left:12px;top:8px;padding:10px 16px;background:#261f3d;transform:translateY(-160%)}
.skip-link:focus-visible {transform:none}
.discovery-page .mb-header {height:64px;position:sticky;z-index:30;top:0;background:#0b0e18f5;border-bottom:1px solid #262a39;backdrop-filter:blur(14px)}
.discovery-page .mb-header-inner {display:flex;height:100%;gap:46px}
.mb-brand {display:inline-flex;align-items:center;gap:9px;letter-spacing:-.065em;font-size:23px;font-weight:850;line-height:1}
.brand-symbol {display:flex;gap:3px;align-items:center;transform:skew(-13deg)}
.brand-symbol i {width:4px;height:15px;background:var(--bay-lilac);border-radius:1px}
.brand-symbol i:nth-child(2) {height:22px}.brand-symbol i:nth-child(3) {height:10px}
.discovery-page .mb-nav {align-self:stretch;gap:26px;font-size:14px;color:#b6b6c7}
.mb-nav a {height:100%;display:flex;align-items:center;position:relative}
.mb-nav a.nav-current {color:#fff;font-weight:650}
.mb-nav a.nav-current::after {content:"";height:2px;background:var(--bay-lilac);position:absolute;bottom:0;left:0;right:0}
.mb-header-actions {display:flex;align-items:center;gap:18px;margin-left:auto;font-size:13px}
.mb-login {border:0;background:none;color:var(--bay-mute);min-height:42px}
.mb-header-workspace {display:flex;align-items:center;gap:6px;min-height:39px;padding:5px 14px;border:1px solid #454153;border-radius:20px;font-weight:600}
.mb-header-workspace span {color:var(--bay-lilac)}
.discover-hero {
  position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
  margin-top:20px;min-height:clamp(332px,30vw,408px);background:#161828;border-radius:16px;
}
.hero-art,.hero-art img,.discover-hero::before {position:absolute;inset:0;width:100%;height:100%}
.hero-art img {display:block;object-fit:cover;object-position:68% center}
.discover-hero::before {content:"";z-index:1;pointer-events:none;background:linear-gradient(90deg,#111526de,#19192c88 39%,transparent 69%)}
.hero-copy {position:relative;z-index:2;padding:34px clamp(26px,4.6vw,68px)}
.hero-copy h1 {font-size:clamp(45px,4.7vw,72px);font-weight:780;line-height:1.08;letter-spacing:-.065em}
.hero-copy h1 span {color:#e5d7ff}
.hero-copy p {font-size:clamp(14px,1.1vw,16px);line-height:1.6;margin:15px 0 22px;color:#e0dfeb}
.hero-actions {display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.hero-actions .mb-button {padding:10px 18px;min-height:44px;gap:12px;border-radius:24px;background:#ece4ff;border-color:#ece4ff;font-size:14px;font-weight:710;color:#201b33!important}
.hero-studio {display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#f3edf9!important;font-size:14px}
.hero-studio:hover,.section-heading>a:hover,.catalog-empty a:hover,.creator-panel a:hover {text-decoration:underline;text-underline-offset:4px}
.discovery-grid {display:grid;grid-template-columns:minmax(0,2.35fr) minmax(270px,1fr);gap:clamp(24px,3.2vw,52px);margin:38px 0 32px}
.discover-section,.discovery-sidebar {min-width:0}
.section-heading {display:flex;gap:12px;align-items:center;justify-content:space-between}
.section-heading h2 {font-size:clamp(22px,2vw,30px);font-weight:740;letter-spacing:-.055em}
.section-heading>a {font-size:14px;color:var(--bay-lilac)!important}
.catalog-count {color:var(--bay-mute);font-size:14px;font-variant-numeric:tabular-nums}
.genre-rail {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:16px 0 12px}
.genre-rail a {border:1px solid #373a4c;border-radius:22px;padding:6px 14px;min-height:34px;display:inline-flex;align-items:center;color:#c7c7d6!important;font-weight:560;font-size:13px}
.genre-rail a:hover,.genre-rail a[data-active="true"] {background:#302b46;border-color:#74638f;color:#eee8ff!important}
.library-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
.library-toolbar :is(select,button),.advanced-filters :is(select,input),.search-field {color:#e3e3ee;background:var(--bay-panel);border:1px solid #383c50;border-radius:8px;min-height:44px}
.library-toolbar select {padding:0 9px;font-size:13px}
.library-toolbar button {display:flex;gap:6px;justify-content:center;align-items:center;padding:0 12px;font-size:13px}
.library-toolbar #filter-toggle[aria-expanded="true"] {background:#2b2840;border-color:#7c7099}
#filter-count {font-size:11px;font-weight:700;color:#e8ddff}
.library-toolbar svg {width:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round}
.search-field {display:flex;align-items:center;gap:9px;padding:0 12px;color:#b6b5c8}
.search-field:focus-within {outline:2px solid #cfc1ff;outline-offset:1px}
.search-field input {background:none;color:#f1eff6;border:0;min-width:0;width:100%;height:42px;font-size:14px}
.search-field input:focus-visible {outline:none}.search-field input::placeholder {color:#a6a6bb}
.advanced-filters {display:grid;grid-template-columns:1fr 1.25fr 1fr 1fr;gap:12px;padding:14px;margin-top:10px;background:#131622;border:1px solid #2b3040;border-radius:9px}
.advanced-filters :is(label,fieldset) {font-size:12px;color:#bcbbcf;min-width:0}
.advanced-filters fieldset {margin:0;padding:0;border:0}
.advanced-filters legend {padding:0}
.advanced-filters select,.advanced-filters input {width:100%;min-width:0;padding:0 6px;font-size:13px;margin-top:6px}
.tempo-range {display:flex;align-items:center;gap:3px}.tempo-range input {appearance:textfield}
.tempo-range input::-webkit-inner-spin-button {appearance:none}
.filter-summary {display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:10px 0}
#active-filters {display:contents}
.filter-summary button,.filter-empty button,.artist-empty button {border:0;background:transparent;color:#d9ceff;font-size:13px;min-height:34px;padding:4px 8px}
.filter-summary [data-clear-filter] {background:#252234;border:1px solid #403a59;border-radius:5px;max-width:100%;overflow-wrap:anywhere}
.filter-summary [data-clear-filter] span {margin-left:6px}
.track-table-wrap {margin-top:15px}
.discovery-page .track-table-head,.discovery-page .track-row {display:grid;grid-template-columns:minmax(122px,1.65fr) minmax(60px,.68fr) 64px minmax(43px,.45fr) 38px 105px;align-items:center;gap:8px}
.track-table-head {border-block:1px solid var(--bay-line);color:#a9acc0;font-size:11px;padding:8px 0}
.track-row {border-bottom:1px solid #272b39;padding:12px 0;font-size:12px;color:var(--bay-mute)}
.track-row:has([data-playing="true"]) {background:#1b1829}
.track-main {display:flex;align-items:center;gap:10px;min-width:0}
.track-main>div {min-width:0}
.track-mark {width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:50%;border:1px solid #484259;color:#ccbdf3;background:repeating-radial-gradient(circle,#222033 0 2px,#363043 3px 4px)}
.track-title,.track-artist {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.track-title {font-size:15px;font-weight:650;color:#f2effb!important}.track-artist {font-size:12px;color:#b5b5c7!important}
.track-actions {display:flex;justify-content:flex-end}
.discovery-page .track-actions button {min-width:42px;min-height:42px;border:1px solid #444052;background:#1e1a2d;color:#e1d4ff;border-radius:7px;font-size:12px;padding:0 6px;white-space:nowrap}
.discovery-page .track-actions .preview-button[data-playing="true"] {background:#4a3e6e}
.discovery-page .mobile-meta {display:none}
.discovery-page .catalog-empty,.discovery-page .filter-empty {
  margin-top:16px;min-height:145px;padding:22px 28px;display:flex;gap:24px;align-items:center;
  border-radius:10px;border:1px solid #292c3d;background:#11141f;
}
.catalog-empty h3,.filter-empty strong {font-size:17px;letter-spacing:-.035em}
.catalog-empty p,.filter-empty p,.artist-empty {color:var(--bay-mute);font-size:14px;margin:6px 0;line-height:1.55}
.catalog-empty a {display:inline-flex;align-items:center;gap:6px;color:var(--bay-lilac)!important;font-size:13px;min-height:30px}
.empty-sleeves {width:67px;height:72px;position:relative;flex:0 0 auto}
.empty-sleeves i {position:absolute;width:49px;height:57px;left:4px;top:8px;border:1px solid #756983;border-radius:2px;background:#222033;transform:rotate(-16deg)}
.empty-sleeves i:nth-child(2) {left:10px;transform:rotate(-5deg);background:#2b283e}
.empty-sleeves i:nth-child(3) {left:15px;transform:rotate(6deg);background:repeating-radial-gradient(circle at 55% 50%,#443950 0 3px,#51445f 4px,#383044 5px 7px)}
.discovery-page .filter-empty {align-items:flex-start;flex-direction:column;gap:2px}
.filter-empty button {padding-left:0;text-decoration:underline;text-underline-offset:3px}
.chart-panel {padding-left:clamp(16px,2vw,32px);border-left:1px solid var(--bay-line);height:100%}
.chart-panel h2 {font-size:clamp(20px,1.65vw,24px)}
.discovery-page .chart-period select {color:#d9d6e8;background:#191b29;border-color:#393c4f;min-height:40px;font-size:12px}
.panel-intro,.chart-empty p {color:var(--bay-mute);font-size:13px;line-height:1.6}
.panel-intro {margin:8px 0 20px}
.chart-empty {padding:20px 0;border-top:1px solid #353647}
.chart-empty strong {font-size:15px;letter-spacing:-.025em}.chart-empty p {margin:5px 0 0}
.discovery-page .chart-rules {margin:3px 0;border-bottom:0}.discovery-page .chart-rules summary {font-size:13px}
.chart-rules summary::after {content:"＋";margin-left:auto}.chart-rules[open] summary::after {content:"−"}
.discovery-page .chart-rules .chart-meaning,.discovery-page .chart-updated {font-size:12px;line-height:1.55}
.discovery-page .chart-row {display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:0 8px;align-content:center;min-height:56px;border-top:1px solid #2d3141}
.chart-rank {grid-row:1/3;align-self:center;color:var(--bay-lilac);font-weight:720}
.chart-track,.chart-artist {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chart-track {font-size:14px;font-weight:600}
.chart-artist {grid-column:2;color:var(--bay-mute);font-size:12px}
.discovery-page .chart-count {grid-column:3;grid-row:1/3;align-self:center;font-size:12px}
.artists-section {border-top:1px solid var(--bay-line);padding-top:25px}
.artist-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-top:12px}
.artist-tile {display:grid;grid-template-columns:44px 1fr;gap:3px 12px;align-content:center;padding:12px;border:1px solid #343548;border-radius:8px;min-width:0}
.artist-tile>span:last-child {font-size:12px;color:var(--bay-mute);overflow-wrap:anywhere}
.artist-symbol {grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;background:#39324b;border-radius:50%;color:#dccef8}
.artist-empty {padding:5px 0 12px}
.creator-panel {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(24px,3vw,40px);margin:28px 0 36px;border:1px solid #3c384e;border-radius:12px;background:linear-gradient(100deg,#232033,#29263a 72%,#2f2b40)}
.creator-panel h2 {font-size:clamp(23px,2.4vw,35px);letter-spacing:-.052em}
.creator-panel p {margin:6px 0 0;color:#cbc7d7;font-size:14px}
.creator-panel .mb-button {flex-shrink:0;border:1px solid #777186;color:#f0ebf8;background:#282438;gap:16px;border-radius:22px;font-size:14px}
.studio-grooves {position:absolute;pointer-events:none;z-index:-1;inset:0;background:repeating-radial-gradient(circle at 75% 190%,transparent 0 8px,#ccc2e415 9px,transparent 10px 17px);mask-image:linear-gradient(90deg,transparent 20%,#000 70%)}
.discover-footer {display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap;border-top:1px solid var(--bay-line);padding:28px 0 48px;color:#b1b1c4;font-size:13px}
.footer-brand {margin-right:auto}.footer-brand .mb-brand {color:#ece9f5;font-size:19px}
.footer-brand p {margin:8px 0 0}.discover-footer nav,.footer-bottom {display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}.footer-bottom {flex-basis:100%;font-size:12px}
.mini-player {position:fixed;z-index:35;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(700px,calc(100% - 24px));padding:10px 14px;display:flex;align-items:center;gap:12px;border:1px solid #665d78;border-radius:12px;background:#211e30f7;box-shadow:0 5px 28px #04050da8}
.discovery-page:has(#mini-player:not([hidden])) {padding-bottom:85px}
.mini-player button {width:42px;height:42px;flex:none;border:0;border-radius:50%;background:#c5b6ed;color:#21192c}
.mini-player .player-close {background:#342e43;color:#ece5f7;font-size:20px}
.mini-meta {width:min(180px,28%);min-width:0}.mini-meta>* {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-meta strong {font-size:14px}.mini-meta span,#player-time {font-size:12px;color:#c5bed2}
#player-seek {flex:1;width:40px;min-width:20px;accent-color:var(--bay-lilac)}
@media(max-width:1080px) {
  .discovery-page .mb-shell {width:calc(100% - 48px)}
  .discovery-grid {grid-template-columns:minmax(0,2fr) minmax(245px,.9fr);gap:20px}
  .discovery-page .track-row,.discovery-page .track-table-head {grid-template-columns:minmax(120px,1fr) minmax(64px,.6fr) 60px 105px}
  .track-key,.track-length,.track-table-head span:nth-child(4),.track-table-head span:nth-child(5) {display:none}
  .advanced-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px) {
  .discovery-page .mb-header-inner {gap:22px}.discovery-page .mb-nav {gap:18px}
  .discovery-grid {grid-template-columns:minmax(0,1fr);gap:26px;margin-top:28px}
  .chart-panel {border-left:0;border-top:1px solid var(--bay-line);padding:24px 0 0}
  .panel-intro {margin-bottom:10px}.chart-empty {padding:14px 0}
}
@media(max-width:650px) {
  :root {scroll-padding-top:113px}
  .discovery-page .mb-shell {width:calc(100% - 32px)}
  .discovery-page .mb-header {height:auto}.discovery-page .mb-header-inner {flex-wrap:wrap;align-items:center;gap:0;padding-top:5px}
  .discovery-page .mb-brand {font-size:20px}.mb-header-actions {gap:9px;font-size:12px}.mb-header-workspace {min-height:36px;padding:3px 10px}
  .discovery-page .mb-nav {display:flex;order:3;flex-basis:100%;justify-content:space-between;gap:10px;min-height:41px;font-size:13px;white-space:nowrap}
  .mb-nav a {min-height:41px}
  .discover-hero {margin-top:12px;min-height:0;align-items:flex-end;border-radius:12px;padding-top:clamp(98px,28vw,155px)}
  .hero-art {height:80%}.hero-art img {object-position:68% 48%}
  .discover-hero::before {background:linear-gradient(0deg,#161828 21%,#161828eb 39%,#16182883 62%,transparent 91%)}
  .hero-copy {width:100%;padding:10px 20px 20px}
  .hero-copy h1 {font-size:clamp(33px,7.6vw,45px)}
  .hero-copy h1 br {display:none}.hero-copy h1 span::before {content:" "}
  .hero-copy p {font-size:14px;line-height:1.5;margin:9px 0 12px}
  .hero-actions {gap:14px}.hero-actions .mb-button,.hero-studio {min-height:44px;font-size:13px}
  .discovery-grid {margin:23px 0}.section-heading h2 {font-size:23px}.chart-panel h2 {font-size:21px}
  .genre-rail {gap:5px;margin:12px 0 10px}.genre-rail a {font-size:12px;min-height:34px;padding:5px 10px}
  .library-toolbar {grid-template-columns:minmax(0,1fr) auto;gap:7px}
  .search-field {grid-column:1/-1}.sort-select select {width:100%}
  .advanced-filters {padding:10px;gap:10px}
  .discovery-page .track-table-head {display:none}
  .discovery-page .track-row {grid-template-columns:minmax(0,1fr) auto;gap:2px 7px}
  .track-main {grid-column:1;grid-row:1}.track-actions {grid-column:2;grid-row:1/3}
  .discovery-page .track-genre {grid-column:1;grid-row:2;margin:0 0 0 44px;font-size:11px}
  .discovery-page .desktop-genre,.discovery-page .track-bpm {display:none}.discovery-page .mobile-meta {display:block}
  .discovery-page .catalog-empty,.discovery-page .filter-empty {min-height:122px;padding:17px 12px;gap:13px}
  .catalog-empty h3 {font-size:16px}.catalog-empty p {font-size:13px}
  .creator-panel {padding:21px 17px;align-items:flex-start;flex-direction:column;gap:15px;margin:18px 0 28px}
  .creator-panel p {font-size:13px}.discover-footer {gap:16px;padding-bottom:32px}.discover-footer nav {flex-basis:100%}
  .mini-player {gap:6px;padding:7px}.mini-meta strong {font-size:12px}
}
@media(max-width:380px) {
  .discovery-page .mb-shell {width:calc(100% - 24px)}
  .hero-copy {padding-inline:16px}.hero-copy h1 {font-size:30px}
  .genre-rail a {padding-inline:7px}
}


.crate-guide-entry { display:inline-block; padding:6px 0; color:var(--bay-lilac)!important; font-size:14px; text-underline-offset:4px }.crate-guide-entry:hover { text-decoration:underline }