:root {
  --ink: #14243a;
  --ink-soft: #31465f;
  --blue: #2d5f78;
  --blue-dark: #1d465d;
  --gold: #c79a4b;
  --gold-soft: #f1e4c9;
  --ivory: #f8f5ee;
  --paper: #fffdf8;
  --white: #ffffff;
  --muted: #6f7780;
  --line: rgba(20, 36, 58, 0.14);
  --shadow: 0 18px 55px rgba(20, 36, 58, 0.09), 0 3px 12px rgba(20, 36, 58, 0.05);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 78px; padding: 0 clamp(22px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,248,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 45px; height: 45px; display: grid; place-items: center; background: var(--ink); color: var(--gold-soft); border-radius: 13px; font-family: var(--serif); font-size: 15px; letter-spacing: .05em; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a, .nav-button { border: 0; background: none; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.site-header nav a:hover, .nav-button:hover { color: var(--blue); }
.nav-button span { min-width: 21px; display: inline-block; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: 11px; }

.hero { min-height: 675px; padding: clamp(58px, 8vw, 118px) clamp(22px, 8vw, 140px); display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .78fr); align-items: center; gap: clamp(50px, 8vw, 150px); overflow: hidden; background: radial-gradient(circle at 79% 20%, rgba(199,154,75,.18), transparent 27%), linear-gradient(135deg, var(--paper), var(--ivory)); }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section-heading h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
.hero h1 { max-width: 760px; font-size: clamp(55px, 7.1vw, 108px); line-height: .92; }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-intro { max-width: 690px; margin: 30px 0; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; cursor: pointer; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: white; }
.hero-stats { display: flex; gap: clamp(26px, 4vw, 54px); margin: 45px 0 0; }
.hero-stats div { padding-left: 16px; border-left: 2px solid var(--gold); }
.hero-stats dt { font-family: var(--serif); font-size: 31px; line-height: 1; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-portrait { position: relative; max-width: 530px; justify-self: end; }
.portrait-frame { position: relative; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 48% 48% 22px 22px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.portrait-frame::before { content: ""; position: absolute; inset: -20px 24px 26px -22px; z-index: -1; border: 1px solid rgba(199,154,75,.65); border-radius: 50% 50% 24px 24px; transform: rotate(-4deg); }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 47% 47% 15px 15px; }
.hero-quote { position: absolute; left: -72px; bottom: 42px; width: 235px; padding: 18px 20px; color: white; background: var(--blue-dark); border-radius: 14px; box-shadow: var(--shadow); font-family: var(--serif); font-size: 19px; transform: rotate(-2deg); }
.hero-quote span { color: var(--gold); font-size: 34px; line-height: 0; }
.waveform { position: absolute; right: -40px; top: 30px; width: 120px; height: 72px; display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--gold); border-radius: 16px; box-shadow: var(--shadow); transform: rotate(4deg); }
.waveform i { display: block; width: 4px; height: 18px; background: var(--ink); border-radius: 3px; }
.waveform i:nth-child(2n) { height: 36px; }.waveform i:nth-child(3n) { height: 49px; }.waveform i:nth-child(5n) { height: 25px; }

.section { padding: clamp(65px, 8vw, 120px) clamp(22px, 7vw, 118px); }
.collections-section { background: var(--ink); color: white; }
.section-heading { max-width: 1600px; margin: 0 auto 42px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading h2 { font-size: clamp(46px, 5vw, 76px); line-height: 1; }
.section-heading > p { max-width: 520px; margin: 0; color: #cbd2db; font-size: 17px; }
.collections-section .eyebrow { color: var(--gold); }
.collection-grid { max-width: 1600px; margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.collection-card { min-height: 185px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.045); color: white; text-align: left; cursor: pointer; transition: .2s ease; }
.collection-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(255,255,255,.08); }
.collection-card .collection-icon { width: 41px; height: 41px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(199,154,75,.45); border-radius: 11px; font-family: var(--serif); font-size: 21px; }
.collection-card h3 { margin: 25px 0 6px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.collection-card p { margin: 0; color: #aeb9c5; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }

.library-section { min-height: 700px; padding-bottom: 210px; background: var(--paper); }
.library-title > p { color: var(--muted); }
.library-toolbar { max-width: 1600px; margin: 0 auto 20px; padding: 13px; display: grid; grid-template-columns: minmax(240px, 1fr) 270px 190px auto; gap: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 35px rgba(20,36,58,.055); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 15px; width: 20px; fill: none; stroke: var(--blue); stroke-width: 2; }
.search-box input, .select-wrap select, .filter-button { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.search-box input { padding: 0 16px 0 46px; }
.select-wrap select { padding: 0 38px 0 14px; }
.filter-button { padding: 0 15px; font-weight: 700; cursor: pointer; }
.filter-button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.search-box input:focus, select:focus, button:focus-visible, a:focus-visible, input[type="range"]:focus-visible { outline: 3px solid rgba(45,95,120,.28); outline-offset: 2px; }
.active-filter { max-width: 1600px; margin: 12px auto; padding: 10px 14px; border-radius: 9px; background: var(--gold-soft); font-size: 14px; }
.class-list { max-width: 1600px; margin: 25px auto 0; border-top: 1px solid var(--line); }
.class-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(180px, 320px) 85px 112px; align-items: center; gap: 18px; padding: 20px 12px; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.class-row:hover { background: rgba(241,228,201,.27); }
.class-number { color: var(--muted); font-family: var(--serif); font-size: 20px; }
.class-main { min-width: 0; }
.class-main h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.class-main p { margin: 0; color: var(--muted); font-size: 12px; }
.class-collection { color: var(--blue); font-size: 13px; font-weight: 600; }
.class-duration { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; justify-content: end; gap: 8px; }
.icon-button, .row-play { border: 1px solid var(--line); background: white; cursor: pointer; }
.row-play { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); }
.row-play:hover { background: var(--blue); }
.icon-button { min-width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
.favorite-button.is-favorite { color: #986b1f; background: var(--gold-soft); border-color: var(--gold); }
.load-more { display: block; min-width: 210px; margin: 35px auto 0; padding: 13px 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 700; cursor: pointer; }
.load-more:hover { background: var(--ink); color: white; }
.empty-state { max-width: 1600px; margin: 40px auto; padding: 60px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty-state h3 { font-family: var(--serif); font-size: 35px; font-weight: 400; }

.site-footer { padding: 48px clamp(22px, 7vw, 118px) 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; border-top: 1px solid var(--line); background: var(--ivory); }
.site-footer p { max-width: 620px; color: var(--muted); }
.site-footer > a { color: var(--blue); font-weight: 700; }

.player-shell { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 100; min-height: 130px; padding: 20px 22px; display: grid; grid-template-columns: minmax(280px, .9fr) 210px minmax(270px, 1.5fr) auto; align-items: center; gap: 25px; color: white; background: rgba(20,36,58,.98); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; box-shadow: 0 20px 80px rgba(0,0,0,.35); backdrop-filter: blur(18px); }
.player-topline { position: absolute; left: 22px; right: 22px; top: 0; height: 3px; background: rgba(255,255,255,.16); }
.player-topline div { width: 0; height: 100%; background: var(--gold); }
.player-track { min-width: 0; display: grid; grid-template-columns: 66px minmax(0, 1fr) 40px; gap: 14px; align-items: center; }
.player-track img { width: 66px; height: 66px; object-fit: cover; border-radius: 12px; }
.player-label { margin: 0; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.player-track h2 { margin: 5px 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; }
.player-track p:last-child { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #aeb9c5; font-size: 11px; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.play-button { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 20px; cursor: pointer; }
.skip-button { border: 0; background: none; color: white; cursor: pointer; }
.skip-button span, .skip-button small { display: block; }.skip-button span { font-size: 27px; line-height: .8; }.skip-button small { margin-top: 4px; }
.player-timeline { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; color: #c6ced8; font-size: 11px; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.player-actions { display: flex; align-items: center; gap: 9px; }
.player-actions label { color: #aeb9c5; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.player-actions select { margin-left: 5px; padding: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: white; background: var(--ink-soft); }
.text-button { border: 0; background: none; color: white; text-decoration: none; font-size: 12px; cursor: pointer; }
.player-actions .icon-button, .player-track .icon-button { border-color: rgba(255,255,255,.25); color: white; background: transparent; }
.toast { position: fixed; right: 24px; top: 96px; z-index: 200; max-width: 340px; padding: 13px 18px; border-radius: 10px; background: var(--ink); color: white; box-shadow: var(--shadow); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1180px) {
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-toolbar { grid-template-columns: 1fr 1fr 1fr; }.search-box { grid-column: 1 / -1; }
  .player-shell { grid-template-columns: 1fr 180px; }.player-timeline { grid-column: 1 / -1; }.player-actions { position: absolute; right: 18px; top: 10px; }
}
@media (max-width: 820px) {
  .site-header nav a { display: none; }.site-header { padding-inline: 16px; }.nav-button { font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; }.hero-copy { text-align: center; }.hero-intro { margin-inline: auto; }.hero-actions, .hero-stats { justify-content: center; }.hero-portrait { width: min(78vw, 460px); justify-self: center; }.hero-quote { left: -10px; }.waveform { right: -12px; }
  .section-heading { display: block; }.section-heading > p { margin-top: 18px; }.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-row { grid-template-columns: 48px 1fr 90px; gap: 10px; }.class-collection { grid-column: 2; }.class-duration { display: none; }.row-actions { grid-column: 3; grid-row: 1 / span 2; }
  .site-footer { grid-template-columns: 1fr; }
  .player-shell { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 1fr 145px; padding: 15px; gap: 10px; }.player-track { grid-template-columns: 52px 1fr 36px; }.player-track img { width: 52px; height: 52px; }.player-actions { display: none; }
}
@media (max-width: 560px) {
  .brand strong { font-size: 14px; }.brand-mark { width: 40px; height: 40px; }
  .hero h1 { font-size: 53px; }.hero-stats { gap: 15px; }.hero-stats dt { font-size: 25px; }.hero-stats dd { font-size: 9px; }
  .hero-quote { width: 190px; font-size: 16px; }.waveform { width: 90px; }
  .section { padding-inline: 15px; }.collection-grid { grid-template-columns: 1fr; }.collection-card { min-height: 145px; }
  .library-toolbar { grid-template-columns: 1fr; }.search-box { grid-column: auto; }
  .class-row { grid-template-columns: 36px 1fr 78px; padding-inline: 3px; }.class-main h3 { font-size: 14px; }.class-collection { font-size: 11px; }.row-play { width: 36px; height: 36px; }.icon-button { min-width: 34px; height: 34px; }
  .player-shell { grid-template-columns: 1fr auto; }.player-track { grid-column: 1 / -1; }.player-controls { grid-column: 1 / -1; }.player-timeline { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
