:root {
  --ink: #17233f;
  --muted: #68728a;
  --paper: #fffdf7;
  --cream: #f7f1e4;
  --night: #18264b;
  --blue: #5574e8;
  --purple: #5a268b;
  --sky: #bfe3f3;
  --yellow: #ffd65a;
  --coral: #f08178;
  --line: rgba(23, 35, 63, .14);
  --shadow: 0 24px 70px rgba(36, 49, 88, .16);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: white; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 18px 24px; background: rgba(255,253,247,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(23,35,63,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(70, 29, 125, .18)); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 18px; }
.brand small { margin-top: 4px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
nav { display: flex; gap: 30px; margin-left: auto; }
nav a { position: relative; color: #3e4861; font-size: 14px; font-weight: 700; text-decoration: none; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--coral); transition: right .2s; }
nav a:hover::after { right: 0; }
.site-language-switch { display: flex; padding: 3px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; }
.site-language-switch button { padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 800; }
.site-language-switch button.active { color: white; background: var(--purple); }
.ghost-button, .support-button { padding: 10px 18px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; }

.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 730px; max-width: 1240px; margin: 0 auto; padding: 90px 24px 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 340px; height: 340px; left: -260px; top: 100px; border: 90px solid rgba(240,129,120,.12); border-radius: 50%; }
.hero-copy { align-self: center; max-width: 650px; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); letter-spacing: -.055em; }
h1 em { color: var(--coral); font-weight: inherit; }
.hero-lead { max-width: 610px; margin: 28px 0; color: #566178; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 30px 0 44px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 15px 23px; color: white; background: var(--night); border: 0; border-radius: 999px; box-shadow: 0 12px 25px rgba(24,38,75,.18); cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(24,38,75,.25); }
.text-button { padding: 8px 0; color: var(--coral); background: none; border: 0; border-bottom: 1px solid rgba(240,129,120,.45); cursor: pointer; font-weight: 800; }
.hero-facts { display: flex; gap: 40px; margin: 0; }
.hero-facts div { padding-left: 15px; border-left: 3px solid var(--yellow); }
.hero-facts dt { font-weight: 900; }
.hero-facts dd { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

.hero-art { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 440px; height: 440px; background: linear-gradient(145deg, #dce9ff, #eedffc 55%, #ffeac5); border-radius: 48% 52% 44% 56%; transform: rotate(9deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.orbit { position: absolute; border: 1px solid rgba(24,38,75,.25); border-radius: 50%; transform: rotate(-18deg); }
.orbit::after { content: "✦"; position: absolute; display: grid; place-items: center; width: 32px; height: 32px; color: var(--night); background: var(--yellow); border-radius: 50%; }
.orbit-one { width: 530px; height: 280px; }
.orbit-one::after { right: 58px; top: 2px; }
.orbit-two { width: 420px; height: 520px; transform: rotate(42deg); }
.orbit-two::after { left: 22px; bottom: 80px; background: var(--coral); }
.cover-card { position: relative; z-index: 2; width: min(360px, 80%); padding: 15px; background: rgba(255,255,255,.93); border-radius: 32px; box-shadow: var(--shadow); transform: rotate(2deg); }
.cover-card > img { width: 100%; border-radius: 22px; }
.mini-player { display: flex; align-items: center; gap: 13px; padding: 14px 4px 4px; }
.mini-player span, .mini-player small { display: block; }
.mini-player b { font-family: Georgia, serif; }
.mini-player small { margin-top: 3px; color: var(--muted); }
.round-play { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; color: white; background: var(--night); border: 0; border-radius: 50%; cursor: pointer; }
.floating-note { position: absolute; z-index: 3; display: grid; place-items: center; width: 60px; height: 60px; font-family: Georgia, serif; font-size: 28px; border-radius: 20px; box-shadow: 0 15px 35px rgba(36,49,88,.16); }
.note-one { right: 2%; top: 13%; background: var(--yellow); transform: rotate(9deg); }
.note-two { left: 3%; bottom: 13%; color: white; background: var(--blue); transform: rotate(-12deg); }

.section { max-width: 1192px; margin: 0 auto; padding: 88px 24px; }
.catalog { background: white; border-radius: 42px; box-shadow: 0 1px 0 var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.section-heading h2, .details-header h2, .author h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.035em; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--muted); }
.catalog-tools { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 9px; min-width: 240px; padding: 11px 15px; background: var(--cream); border-radius: 999px; }
.search-box input { width: 100%; background: transparent; border: 0; outline: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; color: #536078; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip.active { color: white; background: var(--blue); border-color: var(--blue); }
.song-card { display: grid; grid-template-columns: 340px 1fr; gap: 34px; padding: 18px; background: var(--cream); border-radius: 32px; }
.song-cover { position: relative; min-height: 310px; overflow: hidden; border-radius: 22px; }
.song-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.cover-badge { position: absolute; left: 14px; top: 14px; padding: 7px 12px; color: var(--night); background: var(--yellow); border-radius: 999px; font-size: 12px; font-weight: 900; }
.song-summary { display: flex; flex-direction: column; padding: 20px 22px 15px 0; }
.song-title-row { display: flex; justify-content: space-between; gap: 20px; }
.language-label { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.song-title-row h3 { margin: 0; font-size: clamp(32px, 4vw, 48px); }
.translation { margin: 5px 0 0; color: var(--coral); font-weight: 700; }
.favorite { display: grid; place-items: center; width: 46px; height: 46px; font-size: 25px; color: var(--coral); background: white; border: 0; border-radius: 50%; cursor: pointer; }
.favorite[aria-pressed="true"] { color: white; background: var(--coral); }
.song-description { max-width: 650px; margin: 19px 0 15px; color: #5c667c; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 6px 10px; background: rgba(85,116,232,.09); border-radius: 7px; color: #4c60a9; font-size: 12px; }
.main-audio { display: grid; grid-template-columns: auto 160px 1fr; align-items: center; gap: 14px; margin-top: auto; padding-top: 25px; }
.play-button { display: grid; place-items: center; width: 50px; height: 50px; color: white; background: var(--coral); border: 0; border-radius: 50%; cursor: pointer; }
.audio-meta b, .audio-meta span { display: block; }
.audio-meta span { color: var(--muted); font-size: 12px; }
.seek { width: 100%; accent-color: var(--coral); }
.details-link { align-self: flex-end; margin-top: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }

.song-details { margin-top: 80px; color: white; background: var(--night); border-radius: 42px; }
.details-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.song-details .eyebrow { color: var(--yellow); }
.song-details .translation { color: #f5a89f; }
.support-button { color: white; border-color: rgba(255,255,255,.3); }
.credits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 42px 0 28px; overflow: hidden; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.credits-grid div { padding: 17px; background: var(--night); }
.credits-grid span, .credits-grid b { display: block; }
.credits-grid span { margin-bottom: 5px; color: #adb8d6; font-size: 11px; text-transform: uppercase; }
.credits-grid b { font-size: 13px; }
.credits-grid-four { grid-template-columns: repeat(4, 1fr); }
.materials-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.material-panel { padding: 28px; color: var(--ink); background: var(--paper); border-radius: 26px; }
.panel-kicker { margin: 0 0 4px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.material-panel h3 { margin: 0 0 20px; font-size: 30px; }
.track-row, .document-download { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.small-play { display: grid; place-items: center; width: 38px; height: 38px; color: white; background: var(--blue); border: 0; border-radius: 50%; cursor: pointer; }
.track-row span, .track-row small, .document-download span, .document-download small { display: block; }
.track-row small, .document-download small { color: var(--muted); }
.track-row > span, .document-download > span { flex: 1; }
.track-row > a, .document-download i { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); background: rgba(85,116,232,.1); border-radius: 50%; text-decoration: none; font-style: normal; }
.document-download { color: inherit; text-decoration: none; }
.doc-icon { flex: 0 0 auto !important; display: grid !important; place-items: center; width: 38px; height: 46px; color: var(--night); background: var(--yellow); border-radius: 7px; font-size: 20px; }
.lyrics-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.language-switch { display: flex; padding: 3px; background: var(--cream); border-radius: 999px; }
.language-switch button { padding: 7px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; font-size: 12px; }
.language-switch button.active { color: white; background: var(--blue); }
.lyrics { display: none; columns: 2; column-gap: 30px; color: #4e586d; font-family: Georgia, serif; font-size: 15px; }
.lyrics.active { display: block; }
.lyrics p { break-inside: avoid; margin: 0 0 18px; }
.permission-note { display: flex; align-items: center; gap: 17px; margin-top: 22px; padding: 17px 20px; color: #d7def2; background: rgba(255,255,255,.07); border-radius: 18px; }
.permission-note > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; color: var(--night); background: var(--yellow); border-radius: 50%; font-weight: 900; }
.permission-note p { margin: 0; font-size: 13px; }

.comments .compact { align-items: center; }
.comment-form { display: grid; grid-template-columns: .7fr 1.3fr auto; gap: 14px; padding: 24px; background: var(--cream); border-radius: 26px; }
.comment-form label span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; }
.comment-form input, .comment-form textarea { width: 100%; padding: 12px 14px; background: white; border: 1px solid var(--line); border-radius: 12px; outline: none; resize: vertical; }
.comment-form .primary-button { align-self: end; min-height: 48px; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.comments-list { display: grid; gap: 12px; margin-top: 18px; }
.comment-item { padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.comment-item b { display: block; margin-bottom: 4px; }
.comment-item p { margin: 0; color: var(--muted); }
.comment-item small { color: var(--blue); }

.author { padding-top: 40px; }
.author-card { display: grid; grid-template-columns: 320px 1fr; gap: 54px; align-items: center; padding: 45px; background: linear-gradient(135deg, #f4e5fa, #e1edff 55%, #fff2c9); border-radius: 36px; }
.author-card p:not(.eyebrow) { max-width: 650px; color: #536078; }
.author-portrait { aspect-ratio: 1; overflow: hidden; background: rgba(255,255,255,.7); border: 6px solid rgba(255,255,255,.72); border-radius: 50% 50% 42% 58%; box-shadow: 0 20px 45px rgba(53,66,110,.16); }
.author-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }

.ensemble { padding-top: 36px; }
.photo-story { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.photo-story figure { position: relative; min-height: 280px; margin: 0; overflow: hidden; background: var(--night); border-radius: 26px; }
.photo-story .photo-main { grid-row: 1 / 3; min-height: 576px; }
.photo-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.photo-story figure:hover img { transform: scale(1.025); }
.photo-story figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 24px 20px; color: white; background: linear-gradient(transparent, rgba(10,17,37,.82)); }
.photo-story figcaption b, .photo-story figcaption span { display: block; }
.photo-story figcaption b { font-family: Georgia, serif; font-size: 21px; }
.photo-story figcaption span { margin-top: 3px; color: rgba(255,255,255,.76); font-size: 12px; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; max-width: 1192px; margin: 60px auto 0; padding: 36px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand > img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand b, .footer-brand small { display: block; }
.footer-brand b { font-family: Georgia, serif; font-size: 17px; }
.footer-brand small { color: var(--muted); }
.author-email, .footer-contact a { color: var(--purple); font-weight: 700; text-underline-offset: 4px; }
.author-email:hover, .footer-contact a:hover { color: var(--coral); }
.author-email { display: inline-block; margin-top: 4px; }
.copyright { text-align: right; }

dialog { width: min(460px, calc(100% - 32px)); padding: 35px; color: var(--ink); background: var(--paper); border: 0; border-radius: 28px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(16,24,48,.65); backdrop-filter: blur(5px); }
dialog h2 { margin: 8px 0 10px; font-size: 36px; }
dialog p { color: var(--muted); }
dialog small { display: block; margin-top: 15px; color: var(--muted); }
.dialog-close { position: absolute; right: 15px; top: 14px; width: 35px; height: 35px; background: var(--cream); border: 0; border-radius: 50%; cursor: pointer; font-size: 20px; }
.dialog-star { display: grid; place-items: center; width: 48px; height: 48px; color: var(--night); background: var(--yellow); border-radius: 16px; font-size: 22px; }
.login-option { display: flex; justify-content: space-between; width: 100%; margin-top: 9px; padding: 13px 15px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; cursor: not-allowed; font-weight: 700; }
.support-placeholder { padding: 22px; color: #69748e; background: var(--cream); border: 1px dashed var(--line); border-radius: 16px; text-align: center; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { min-height: 500px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .song-card { grid-template-columns: 260px 1fr; }
  .main-audio { grid-template-columns: auto 1fr; }
  .main-audio .seek { grid-column: 1 / -1; }
  .credits-grid { grid-template-columns: 1fr 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 220px 1fr; }
  .photo-story { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .photo-story .photo-main { grid-column: 1 / -1; grid-row: auto; min-height: 480px; }
  footer { grid-template-columns: 1fr; }
  .copyright { text-align: left; }
}

@media (max-width: 620px) {
  .topbar { padding: 12px 16px; }
  .brand strong { font-size: 15px; }
  .ghost-button { padding: 8px 13px; }
  .hero { padding: 50px 18px 35px; }
  h1 { font-size: 52px; }
  .hero-actions, .hero-facts { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-art { min-height: 430px; margin-top: 15px; }
  .hero-art::before { width: 340px; height: 340px; }
  .orbit-one { width: 420px; height: 240px; }
  .orbit-two { width: 330px; height: 410px; }
  .cover-card { width: 280px; }
  .section { padding: 64px 18px; }
  .catalog { border-radius: 28px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .song-card { grid-template-columns: 1fr; }
  .song-cover { min-height: 280px; }
  .song-summary { padding: 10px 8px; }
  .details-link { align-self: flex-start; }
  .song-details { margin-top: 45px; border-radius: 28px; }
  .details-header { align-items: flex-start; flex-direction: column; }
  .credits-grid { grid-template-columns: 1fr; }
  .lyrics-head { flex-direction: column; }
  .lyrics { columns: 1; }
  .author-card { grid-template-columns: 1fr; padding: 28px; }
  .author-portrait { max-width: 250px; margin: auto; }
  .photo-story { grid-template-columns: 1fr; }
  .photo-story .photo-main { grid-column: auto; min-height: 360px; }
  .photo-story figure { min-height: 300px; }
  .topbar { flex-wrap: wrap; gap: 10px 14px; }
  .site-language-switch { order: 3; justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-card { animation: float 5s ease-in-out infinite; }
  .note-one { animation: float 4s ease-in-out infinite reverse; }
  @keyframes float { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
}

/* Compact catalog layout */
.hero-compact { min-height: 520px; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 22px; margin-top: 22px; padding: 38px 42px; background: radial-gradient(circle at 82% 8%, rgba(255,255,255,.95) 0 4%, transparent 20%), linear-gradient(125deg, #ffe676 0%, #ffb7ce 32%, #91dcff 63%, #c9a8ff 100%); border: 1px solid rgba(255,255,255,.85); border-radius: 40px; box-shadow: 0 26px 80px rgba(71,49,135,.22); }
.hero-compact::before { width: 290px; height: 290px; left: -150px; top: -90px; border: 76px solid rgba(255,255,255,.2); }
.hero-compact .hero-copy { z-index: 4; padding: 31px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 20px 55px rgba(71,49,135,.15); backdrop-filter: blur(14px); }
.hero-compact h1 { font-size: clamp(50px, 5.8vw, 76px); }
.hero-compact h1 em { color: var(--purple); text-shadow: 0 3px 0 rgba(255,255,255,.9); }
.hero-compact .eyebrow { color: var(--purple); }
.hero-compact .hero-lead { margin-bottom: 0; color: #4d4d6e; }
.hero-actions-bright { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin-top: 24px; }
.hero-actions-bright .primary-button { background: linear-gradient(135deg, var(--purple), #7848d4); }
.hero-actions-bright .text-button { color: var(--purple); border-bottom-color: rgba(90,38,139,.38); }
.hero-visual { position: relative; z-index: 3; min-height: 440px; display: grid; place-items: center; }
.hero-glow { position: absolute; inset: 7% 1% 13%; background: radial-gradient(circle, rgba(255,243,163,.95), rgba(255,196,120,.35) 39%, transparent 70%); filter: blur(9px); border-radius: 50%; }
.hero-characters { position: relative; z-index: 2; width: 118%; max-width: none; transform-origin: 55% 65%; filter: drop-shadow(0 20px 25px rgba(65,31,102,.18)); }
.hero-free-card { position: absolute; z-index: 4; right: 2px; bottom: 0; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 12px; width: min(380px, 92%); padding: 13px 16px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.95); border-radius: 19px; box-shadow: 0 14px 35px rgba(48,37,97,.18); backdrop-filter: blur(12px); }
.hero-free-card img { width: 58px; height: 58px; object-fit: contain; }
.hero-free-card b, .hero-free-card span { display: block; }
.hero-free-card b { font-family: Georgia, serif; font-size: 16px; }
.hero-free-card span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.hero-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-sparkles span { position: absolute; display: block; color: white; text-shadow: 0 0 14px rgba(255,255,255,.95); }
.hero-sparkles span:nth-child(1) { left: 4%; top: 11%; color: #fff9c9; font-size: 31px; }
.hero-sparkles span:nth-child(2) { left: 45%; top: 7%; color: #fff3a3; font-size: 24px; }
.hero-sparkles span:nth-child(3) { left: 48%; bottom: 9%; color: #7042c7; font-size: 28px; }
.hero-sparkles span:nth-child(4) { right: 4%; bottom: 26%; color: #fff5bd; font-size: 35px; }
.hero-sparkles span:nth-child(5) { right: 3%; top: 17%; color: #ff6f94; font-size: 25px; }

.catalog { padding-top: 52px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 26px; }
.catalog-heading h2 { margin: 0; font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -.035em; }
.catalog-heading > p { max-width: 430px; margin: 0; color: var(--muted); }
.catalog-toolbar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; margin-bottom: 18px; padding: 14px; background: var(--cream); border-radius: 20px; }
.catalog-search { min-width: 0; padding: 13px 16px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.sort-control { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sort-control select { min-width: 180px; padding: 11px 36px 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; }
.catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; align-items: start; }
.filter-panel { position: sticky; top: 96px; padding: 20px; background: #f8f4eb; border: 1px solid var(--line); border-radius: 22px; }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.filter-panel-head b { font-family: Georgia, serif; font-size: 23px; }
.filter-panel-head button { padding: 0; color: var(--blue); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter-group { margin: 0; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { padding-bottom: 0; border-bottom: 0; }
.filter-group legend { margin-bottom: 10px; padding: 0; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.filter-group small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-options-column { align-items: stretch; flex-direction: column; }
.filter-option { padding: 7px 10px; color: #576179; background: white; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 12px; text-align: left; transition: color .15s, background .15s, border-color .15s; }
.filter-options-column .filter-option { width: 100%; border-radius: 10px; }
.filter-option:hover { border-color: var(--blue); }
.filter-option.active { color: white; background: var(--blue); border-color: var(--blue); }
.catalog-results { min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.results-head p { margin: 0; }
.results-head b, .results-head span { display: block; }
.results-head b { font-size: 16px; }
.results-head span { color: var(--muted); font-size: 11px; }
.view-switch { display: flex; gap: 4px; padding: 3px; background: var(--cream); border-radius: 10px; }
.view-switch button { display: grid; place-items: center; width: 34px; height: 30px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.view-switch button.active { color: white; background: var(--night); }
.song-list { display: grid; gap: 14px; }
.song-card-compact { grid-template-columns: 188px minmax(0, 1fr); gap: 20px; padding: 13px; border: 1px solid rgba(23,35,63,.08); border-radius: 24px; }
.song-card-compact .song-cover { min-height: 190px; border-radius: 17px; }
.song-card-compact .song-cover img { border-radius: 17px; }
.story-cover { isolation: isolate; background: var(--night); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.story-cover::after { position: absolute; z-index: 1; content: ''; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,22,61,.02) 45%, rgba(11,22,61,.28) 100%); }
.story-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-cover:hover img { transform: scale(1.045); }
.story-cover .cover-badge { z-index: 2; box-shadow: 0 6px 16px rgba(19,27,54,.18); }
.friendship-cover img { object-position: 50% 50%; }
.stars-cover img { object-position: 50% 50%; }
.fishing-cover img { object-position: 62% 50%; }
.carousel-cover img { object-position: 48% 50%; }
.song-card-compact .song-summary { padding: 5px 8px 3px 0; }
.song-card-compact .song-title-row h3 { font-size: clamp(27px, 3vw, 36px); }
.song-credit { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.song-credit b { color: var(--ink); }
.song-card-compact .favorite { width: 38px; height: 38px; font-size: 21px; }
.song-card-compact .song-description { margin: 10px 0; font-size: 13px; line-height: 1.45; }
.song-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.song-facts span { padding: 6px 9px; background: rgba(85,116,232,.08); border-radius: 9px; }
.song-facts i, .song-facts b { display: block; font-size: 10px; font-style: normal; }
.song-facts i { color: var(--muted); }
.song-facts b { color: #43558e; }
.song-card-compact .main-audio { grid-template-columns: auto 135px 1fr; gap: 10px; margin-top: 12px; padding-top: 0; }
.song-card-compact .play-button { width: 40px; height: 40px; }
.song-card-compact .audio-meta { font-size: 12px; }
.song-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 11px; }
.song-actions a { padding: 7px 10px; color: var(--blue); background: white; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.song-actions .primary-small { color: white; background: var(--night); border-color: var(--night); }
.song-list.grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.song-list.grid-view .song-card-compact { grid-template-columns: 1fr; }
.song-list.grid-view .song-cover { aspect-ratio: 16 / 9; min-height: 0; }
.song-list.grid-view .song-summary { padding: 5px; }
.song-list.grid-view .main-audio { grid-template-columns: auto 1fr; }
.song-list.grid-view .seek { grid-column: 1 / -1; }
.catalog-ready { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; }
.catalog-ready > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--blue); background: rgba(85,116,232,.1); border-radius: 10px; font-size: 20px; }
.catalog-ready p, .catalog-ready b, .catalog-ready small { display: block; margin: 0; }
.catalog-ready b { color: var(--ink); font-size: 13px; }

@media (max-width: 900px) {
  .hero-compact { grid-template-columns: 1fr; gap: 18px; padding: 30px; }
  .hero-visual { min-height: 460px; }
  .hero-characters { width: min(800px, 112%); }
  .credits-grid:not(.credits-grid-four) div:last-child { grid-column: 1 / -1; }
  .hero-side { max-width: 620px; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 12px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .filter-panel-head { grid-column: 1 / -1; }
  .filter-group:nth-of-type(3), .filter-group:nth-of-type(4) { border-bottom: 0; }
}

@media (max-width: 620px) {
  .hero-compact { padding: 16px; border-radius: 28px; }
  .hero-compact .hero-copy { padding: 22px; border-radius: 23px; }
  .hero-compact h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-visual { min-height: 355px; }
  .hero-characters { width: 125%; }
  .hero-free-card { right: 2%; bottom: -4px; width: 96%; }
  .credits-grid:not(.credits-grid-four) div:last-child { grid-column: auto; }
  .hero-side { grid-template-columns: 72px 1fr; padding: 18px; }
  .hero-side img { width: 72px; height: 72px; }
  .hero-side .text-button { grid-column: 1 / -1; }
  .catalog { padding-top: 38px; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .sort-control select { width: 100%; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-panel-head { grid-column: auto; }
  .filter-group { border-bottom: 1px solid var(--line) !important; }
  .filter-group:last-child { border-bottom: 0 !important; }
  .song-card-compact { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .song-card-compact .song-cover { min-height: 132px; }
  .song-card-compact .cover-badge { left: 8px; top: 8px; padding: 5px 7px; font-size: 9px; }
  .song-card-compact .song-summary { padding: 2px 2px 4px 0; }
  .song-card-compact .song-title-row h3 { font-size: 23px; }
  .song-card-compact .language-label { font-size: 9px; }
  .song-card-compact .song-description, .song-card-compact .song-facts { grid-column: 1 / -1; }
  .song-card-compact .main-audio, .song-card-compact .song-actions { grid-column: 1 / -1; }
  .song-card-compact .main-audio { grid-template-columns: auto 1fr; }
  .song-card-compact .seek { grid-column: 1 / -1; }
  .song-list.grid-view { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-characters { animation: hero-flight 5.8s ease-in-out infinite; }
  .hero-sparkles span { animation: hero-twinkle 2.8s ease-in-out infinite; }
  .hero-sparkles span:nth-child(2) { animation-delay: -.6s; }
  .hero-sparkles span:nth-child(3) { animation-delay: -1.2s; }
  .hero-sparkles span:nth-child(4) { animation-delay: -1.8s; }
  .hero-sparkles span:nth-child(5) { animation-delay: -2.4s; }
  @keyframes hero-flight {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(.5deg); }
  }
  @keyframes hero-twinkle {
    0%, 100% { opacity: .45; transform: scale(.8) rotate(0); }
    50% { opacity: 1; transform: scale(1.18) rotate(18deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-characters, .hero-sparkles span { animation: none !important; }
}
