:root {
  color-scheme: light;
  --bg: #faf6ef;
  --paper: #fffefa;
  --ink: #23382f;
  --muted: #74837a;
  --line: #e7e7da;
  --green: #375e4e;
  --coral: #df7d69;
  --sun: #f6cc72;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 72px, 1260px); margin-inline: auto; }
:focus-visible { outline: 3px solid #8fb8a2; outline-offset: 3px; }

.site-header { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: #fff; font-size: 21px; }
.brand-en { margin-left: 9px; color: #84938a; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.header-link { padding: 11px 17px; border: 1px solid #b8c4b9; border-radius: 999px; font-size: 12px; font-weight: 700; transition: background .2s, border-color .2s; }
.header-link:hover { background: #eaf1e9; border-color: #8aa99a; }
.header-link span { margin-left: 13px; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 43%); gap: clamp(36px, 6vw, 96px); align-items: center; padding: clamp(56px, 7vw, 90px) 0; }
.eyebrow, .kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }
.intro h1 { margin: 21px 0 20px; font-size: clamp(50px, 5.6vw, 82px); line-height: 1.17; letter-spacing: -.065em; }
.intro h1 em { color: var(--coral); font-style: normal; }
.intro p { max-width: 480px; margin: 0 0 32px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; padding: 15px 21px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; font-weight: 700; box-shadow: 0 5px 0 #cfdcd1; transition: transform .2s, box-shadow .2s; }
.primary-link:hover { transform: translateY(2px); box-shadow: 0 3px 0 #cfdcd1; }
.hero-art { aspect-ratio: 1.42; min-height: 300px; overflow: hidden; border: 1px solid #d2dfcb; border-radius: 25px; background: #e9d9b6; box-shadow: 0 24px 55px #84785820; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.submit-section { padding: 46px 0 82px; border-top: 1px solid var(--line); }
.submit-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px; }
.kicker span { margin: 0 5px; color: #a3ada4; }
.global-platform { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.global-platform select, .submission-row input, .submission-row select { height: 48px; min-width: 0; border: 1px solid #d9dfd3; border-radius: 11px; background: #fff; color: var(--ink); outline: 0; }
.global-platform select { width: 126px; padding: 0 11px; font-size: 13px; cursor: pointer; }
.global-platform select:focus, .submission-row input:focus, .submission-row select:focus { border-color: #7ca18b; box-shadow: 0 0 0 3px #dceee0; }
.recommendation-form { margin-top: 17px; padding: 30px 32px 33px; border: 1px solid #e1e5d9; border-radius: 22px; background: var(--paper); box-shadow: 0 15px 35px #766e5310; }
.form-heading h2 { margin: 0 0 26px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.04em; }
.submission-row { display: grid; grid-template-columns: minmax(0, 1fr) 142px 105px auto; grid-template-areas: "name artist type ." "title artist-input type-select button"; gap: 9px 12px; align-items: end; }
.submission-row label { color: #4f6559; font-size: 11px; font-weight: 700; }
.name-field { grid-area: name; }
.artist-field { grid-area: artist; }
.type-field { grid-area: type; }
.submission-row input { grid-area: title; }
.submission-row #music-artist { grid-area: artist-input; }
.submission-row #music-type { grid-area: type-select; }
.submission-row input, .submission-row select { width: 100%; padding: 0 13px; font-size: 13px; }
.submission-row input::placeholder { color: #a4ada5; }
.submission-row button { grid-area: button; height: 48px; padding: 0 23px; border: 0; border-radius: 11px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .18s, transform .18s; }
.submission-row button:hover { background: #cd6c59; transform: translateY(-1px); }
.submission-row button:disabled { opacity: .62; cursor: wait; transform: none; }
.form-status { margin: 12px 0 0; color: var(--green); font-size: 12px; }
.form-status:empty { display: none; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.discover { padding: 72px 0 100px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-head h2 { margin: 15px 0 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.2; letter-spacing: -.055em; }
.result-count { padding: 10px 15px; border-radius: 999px; background: #eaf0e8; color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.result-count:empty { display: none; }
.list-heading { display: flex; justify-content: space-between; gap: 12px; margin-top: 35px; padding: 0 0 15px; border-bottom: 1px solid #cdd9cb; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.recommendation-list { margin-top: 0; }
.month-group { margin: 37px 0 46px; }
.month-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 15px; color: var(--green); }
.month-title { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.month-total { color: #829187; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.recommendation-card { display: grid; grid-template-columns: 81px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 108px; padding: 17px 26px; border: 1px solid #e3e7dc; border-bottom: 0; background: #fffefa; transition: background .18s, border-color .18s; }
.recommendation-card:first-of-type { border-radius: 17px 17px 0 0; }
.recommendation-card:last-child { border-bottom: 1px solid #e3e7dc; border-radius: 0 0 17px 17px; }
.recommendation-card:first-of-type:last-child { border-radius: 17px; }
.recommendation-card:hover { position: relative; z-index: 1; border-color: #a9c3ad; background: #f4f8f0; }
body.developer-mode .recommendation-card { cursor: grab; }
body.developer-mode .recommendation-card:active { cursor: grabbing; }
body.developer-mode .recommendation-card.is-dragging { opacity: .42; }
body.developer-mode .recommendation-card:hover { outline: 1px dashed #8eaa94; outline-offset: -5px; }
.month-rank { display: flex; align-items: center; justify-content: flex-start; align-self: stretch; border-right: 1px solid #e3e9dd; color: #a1afa3; font-family: Georgia, serif; font-size: 38px; font-variant-numeric: lining-nums tabular-nums; line-height: 1; letter-spacing: -.07em; }
.recommendation-card:first-of-type .month-rank { color: var(--coral); }
.card-content { min-width: 0; }
.card-meta { color: #7b9581; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.card-content h4 { margin: 5px 0 0; font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.card-artist { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.listen-link { display: inline-flex; align-items: center; justify-content: center; min-width: 102px; min-height: 43px; padding: 0 20px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .18s, color .18s, transform .18s; }
.listen-link:hover { background: #294a3b; transform: translateY(-2px); }
.edit-button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 39px; padding: 0 11px; border: 1px solid #e7b9ac; border-radius: 999px; background: #fff6f2; color: #ac5141; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .18s, transform .18s; }
.edit-button:hover { background: #ffe9e1; transform: translateY(-1px); }
.empty, .loading { margin: 26px 0 0; padding: 48px 20px; border: 1px dashed #cfdccc; border-radius: 16px; background: var(--paper); color: var(--muted); text-align: center; font-size: 13px; }

.site-footer { display: flex; align-items: center; gap: 22px; min-height: 95px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { margin-right: auto; color: var(--green); font-size: 14px; font-weight: 700; }
.site-footer a { color: var(--ink); }
.developer-panel { position: fixed; z-index: 30; right: max(20px, calc((100vw - 1260px)/2)); bottom: 24px; width: min(380px, calc(100vw - 32px)); max-height: min(82vh, 760px); overflow: auto; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 16px 45px #28342e24; }
.developer-panel[hidden], .theme-reset[hidden] { display: none; }
.developer-panel.is-collapsed { width: min(250px, calc(100vw - 32px)); }
.developer-panel.is-collapsed .developer-content { display: none; }
.developer-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; cursor: grab; touch-action: none; user-select: none; }
.developer-heading:active { cursor: grabbing; }
.developer-heading strong { font-size: 17px; }
.developer-window-actions { display: flex; align-items: center; gap: 6px; }
.developer-heading button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.developer-heading button:hover { background: #edf2ea; color: var(--green); }
.developer-content { cursor: auto; }
.developer-panel > label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; }
.developer-panel input { max-width: 100%; font-size: 12px; }
.developer-panel input::file-selector-button { margin-right: 11px; padding: 9px 11px; border: 1px solid #cbd8ca; border-radius: 8px; background: #f3f8f0; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.developer-panel p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.theme-reset { display: block; margin-top: 12px; padding: 9px 13px; border: 1px solid #e8b6aa; border-radius: 9px; background: #fff8f5; color: #b95646; font-size: 12px; font-weight: 700; }
.theme-reset:hover { background: #fce8e2; }
.visit-stats { margin: 0 0 20px; padding: 15px; border: 1px solid #e1e7dc; border-radius: 13px; background: #f8faf5; }
.visit-stats-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.visit-stats-heading > div { display: grid; gap: 4px; }
.visit-stats-heading strong { color: var(--ink); font-size: 13px; }
.visit-stats-heading span { color: var(--muted); font-size: 10px; }
.visit-stats-heading button { padding: 6px 10px; border: 1px solid #cedacf; border-radius: 8px; background: white; color: var(--green); font-size: 10px; font-weight: 700; }
.visit-time-list { max-height: 250px; overflow-y: auto; }
.visit-time-list > p { margin: 9px 0 3px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.visit-time-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #e6eadf; }
.visit-time-date { color: #617269; font-size: 11px; }
.visit-time-total { color: var(--green); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 850px) {
  .intro { grid-template-columns: 1fr 40%; gap: 28px; }
  .intro h1 { font-size: clamp(46px, 6vw, 64px); }
  .submission-row { grid-template-columns: minmax(0, 1fr) 118px 96px auto; }
  .recommendation-card { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 19px; }
  .month-rank { font-size: 33px; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 40px, 1260px); }
  .site-header { height: 69px; }
  .brand-en { display: none; }
  .intro { grid-template-columns: 1fr; gap: 30px; padding: 49px 0 55px; }
  .intro h1 { font-size: clamp(48px, 10vw, 66px); }
  .intro p { font-size: 14px; }
  .hero-art { min-height: 0; aspect-ratio: 1.65; }
  .submit-section { padding: 37px 0 70px; }
  .submit-heading-row { padding: 0 5px; }
  .recommendation-form { padding: 23px; }
  .submission-row { grid-template-columns: minmax(0, 1fr) 105px 92px; grid-template-areas: "name artist type" "title artist-input type-select" "button button button"; gap: 8px; }
  .submission-row button { margin-top: 7px; }
  .discover { padding: 56px 0 75px; }
}
@media (max-width: 500px) {
  .shell { width: min(100% - 32px, 1260px); }
  .brand { font-size: 17px; }
  .header-link { padding: 9px 13px; font-size: 11px; }
  .intro { padding-top: 42px; }
  .hero-art { border-radius: 19px; }
  .submit-heading-row { align-items: start; }
  .global-platform { gap: 6px; font-size: 10px; }
  .global-platform span { max-width: 44px; white-space: normal; line-height: 1.3; }
  .global-platform select { width: 93px; height: 39px; padding: 0 7px; font-size: 11px; }
  .recommendation-form { padding: 20px 16px; }
  .form-heading h2 { margin-bottom: 21px; font-size: 23px; }
  .submission-row { grid-template-columns: minmax(0, 1fr) 70px 72px; gap: 7px; }
  .submission-row label { font-size: 10px; }
  .submission-row input, .submission-row select { height: 42px; padding: 0 7px; font-size: 11px; }
  .submission-row button { height: 44px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 36px; }
  .result-count { padding: 7px 10px; font-size: 10px; }
  .list-heading { margin-top: 26px; font-size: 10px; }
  .recommendation-card { grid-template-columns: 49px minmax(0, 1fr) auto; gap: 11px; min-height: 86px; padding: 13px 12px; }
  .month-rank { font-size: 28px; }
  .card-content h4 { font-size: 18px; }
  .card-meta { font-size: 9px; }
  .card-artist { font-size: 11px; }
  .listen-link { min-width: 60px; min-height: 37px; padding: 0 9px; font-size: 11px; }
  .card-actions { gap: 5px; }
  .edit-button { min-width: 43px; min-height: 35px; padding: 0 7px; font-size: 10px; }
  .site-footer { flex-wrap: wrap; gap: 10px; padding: 22px 0; }
  .site-footer span:nth-child(2) { width: 100%; order: 3; }
}
@media (max-width: 360px) {
  .shell { width: min(100% - 24px, 1260px); }
  .recommendation-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
  .month-rank { font-size: 25px; }
  .section-head h2 { font-size: 30px; }
  .global-platform span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.discover .section-head { align-items: end; }
.discover .global-platform { gap: 10px; }
.discover .global-platform select { width: 142px; height: 46px; }
.list-heading > span:last-child { display: flex; align-items: center; gap: 8px; }
@media (max-width: 680px) {
  .discover .section-head { align-items: end; gap: 10px; }
  .discover .section-head h2 { font-size: clamp(23px, 6.4vw, 36px); }
  .discover .global-platform { gap: 6px; font-size: 10px; }
  .discover .global-platform select { width: 94px; height: 39px; padding: 0 7px; font-size: 11px; }
}
@media (max-width: 360px) {
  .discover .section-head h2 { font-size: 23px; }
  .discover .global-platform span { display: none; }
  .discover .global-platform select { width: 88px; }
}

/* Warm paper, record sleeves and a compact listening archive. */
:root { --bg: #f7f4ec; --paper: #fffdf8; --ink: #233c32; --muted: #697b70; --line: #dddfd2; --green: #345e49; --coral: #bc593e; }
body { background: radial-gradient(ellipse at 95% 4%, #ecdfbf55, transparent 40%), var(--bg); }
::selection { background: #e9c694; color: var(--ink); }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 26px; }
.shell { max-width: 1180px; }
.site-header { height: 88px; }
.brand-mark { display: block; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 0; background: transparent; object-fit: contain; }
.brand-en { margin-left: 15px; }
.header-link { background: #fffdf870; }
.intro { gap: 64px; padding: 74px 0 82px; }
.intro h1 { font-size: clamp(48px, 5.3vw, 74px); letter-spacing: -.06em; line-height: 1.25; }
.intro p { font-size: 15px; line-height: 1.95; margin-bottom: 28px; }
.primary-link { box-shadow: none; padding: 16px 24px; background: var(--green); }
.primary-link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #294a3b16; }
.hero-art { position: relative; aspect-ratio: 1.2; min-height: 0; border: 0; border-radius: 8px; background: #e9e5d7; box-shadow: none; }
.hero-art img { position: absolute; inset: 0; }
.record-scene { height: 100%; min-height: 330px; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 15%, #f7f4e9, transparent 70%), #e8e4d7; }
.record-scene::before { content: ''; position: absolute; width: 85%; height: 1px; background: #bcbca750; bottom: 16%; left: 8%; transform: rotate(-6deg); box-shadow: 0 10px 26px #3e453924; }
.sleeve { position: absolute; z-index: 2; width: 58%; height: 68%; left: 10%; top: 13%; padding: 7%; background: #dc865c; transform: rotate(-8deg); box-shadow: 8px 14px 24px #43473225, inset 0 0 0 1px #76372115; overflow: hidden; }
.sleeve > span { position: relative; z-index: 1; color: #313f30; font-size: clamp(24px, 3vw, 41px); font-weight: 700; letter-spacing: -.07em; line-height: .96; }
.sleeve small { position: absolute; z-index: 1; left: 12%; bottom: 9%; font-size: 6px; letter-spacing: .14em; color: #f9eed9; }
.sleeve-sun { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: #edd99e; left: 20%; top: 32%; }
.sleeve-sun::after { content: ''; position: absolute; width: 140%; height: 62%; background: #345f4c; left: -20%; top: 55%; transform: rotate(-18deg); border-radius: 50% 50% 0 0; }
.vinyl { position: absolute; display: grid; place-items: center; width: 65%; aspect-ratio: 1; right: 2%; top: 17%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 3px, #ffffff0a 4px 5px), conic-gradient(from 35deg, #172a24, #68776b, #172a24 27%, #243b31 50%, #647365 66%, #172a24 83%); box-shadow: 7px 14px 20px #23382f30; }
.vinyl-label { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; width: 33%; aspect-ratio: 1; border-radius: 50%; background: #e8c99a; color: #294437; font-size: 10px; font-weight: 700; }
.vinyl-label::after { content: ''; width: 7px; height: 7px; background: #263b2e; border-radius: 50%; }
.vinyl-label span { font-size: 6px; letter-spacing: .15em; }
.art-note { position: absolute; bottom: 6%; left: 10%; color: #657365; font-size: 8px; letter-spacing: .2em; }
.submit-section { padding: 0 0 64px; border: 0; }
.submit-heading-row { padding: 0 0 15px; }
.recommendation-form { margin-top: 0; padding: 30px; background: #eef0e5; border-color: #dce1d2; border-radius: 16px; box-shadow: none; }
.form-heading h2 { font-size: clamp(23px, 2.6vw, 30px); margin-bottom: 25px; }
.submission-row { grid-template-columns: minmax(0, 1fr) 142px 105px auto; }
.submission-row input, .submission-row select, .global-platform select { background-color: var(--paper); border-color: #d4dacd; border-radius: 9px; }
.submission-row select, .global-platform select { appearance: none; padding-right: 29px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23345e49' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.submission-row input::placeholder { color: #839081; }
.submission-row button { background: var(--green); border-radius: 9px; }
.submission-row button:hover { background: #284c3a; }
.optional { color: #778675; font-weight: 400; font-size: 9px; margin-left: 4px; }
.discover { padding: 60px 0 72px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 45px); margin-top: 13px; }
.discover .global-platform { align-items: center; gap: 11px; }
.discover .global-platform select { width: 135px; }
.list-heading { margin-top: 28px; align-items: center; padding-bottom: 18px; }
.result-count { padding: 0; background: none; font-size: 11px; font-weight: 500; }
.month-group { margin: 32px 0 40px; }
.month-heading { margin-bottom: 13px; gap: 15px; }
.month-heading::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; align-self: center; }
.month-total { order: 2; font-size: 10px; }
.month-title { font-size: 16px; font-weight: 600; }
.recommendation-card { grid-template-columns: 64px minmax(0, 1fr) auto; min-height: 104px; gap: 23px; padding: 20px 24px; background: #fffdf8; border-color: #dfe3d7; }
.recommendation-card:first-of-type { border-radius: 13px 13px 0 0; }
.recommendation-card:last-child { border-radius: 0 0 13px 13px; }
.recommendation-card:first-of-type:last-child { border-radius: 13px; }
.recommendation-card:hover { background: #f1f4e9; border-color: #c5d0bd; }
.month-rank { font-family: 'DM Sans', sans-serif; font-size: 29px; font-weight: 400; color: #9ca998; border-right: 0; letter-spacing: -.06em; }
.card-meta { color: #6c816e; font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.card-content h4 { font-size: clamp(20px, 2.1vw, 26px); margin-top: 4px; font-weight: 600; }
.card-artist { font-size: 12px; color: #6e8071; }
.listen-link { min-width: 94px; min-height: 42px; font-size: 12px; background: transparent; color: var(--green); border-color: #afc1aa; }
.listen-link:hover { color: var(--paper); background: var(--green); transform: none; }
.edit-button { min-width: 45px; padding: 0 8px; background: transparent; border-color: transparent; color: #98624e; }
.edit-button:hover { background: #f6e7dc; transform: none; }
body.developer-mode .recommendation-card, body.developer-mode .recommendation-card:active { cursor: auto; }
body.developer-mode .recommendation-card:hover { outline: none; }
button.month-rank { cursor: grab; background: transparent; padding: 0; border: 0; font: inherit; font-size: 27px; touch-action: none; user-select: none; }
button.month-rank::after { content: '⠿'; font-size: 14px; margin-left: 6px; color: #83937d; }
button.month-rank:active { cursor: grabbing; }
body.developer-mode .recommendation-card.is-dragging { opacity: .65; background: #e3ebdc; outline: 2px solid #86a37f; outline-offset: -2px; }
[aria-busy='true'] button.month-rank { cursor: wait; }
.empty, .loading { border-style: solid; padding: 40px 20px; background: #ffffff60; }
.retry-button { border: 1px solid #bcccb6; border-radius: 999px; padding: 10px 18px; color: var(--green); background: var(--paper); margin-top: 7px; }
.developer-panel { border-color: #cbd6c3; box-shadow: 0 18px 60px #22382b22; padding: 20px; }
.developer-panel.is-collapsed .developer-heading { margin-bottom: 0; }
.developer-content > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.developer-panel .developer-tip { padding: 12px; background: #eef2e7; border-radius: 9px; margin: 0 0 16px; line-height: 1.8; }
.visit-stats { background: transparent; padding: 14px; }
.site-footer { min-height: 105px; }
.feedback { position: fixed; bottom: 24px; left: 50%; z-index: 50; max-width: calc(100% - 32px); width: max-content; padding: 13px 21px; border-radius: 12px; background: #294738; color: #fffdf8; box-shadow: 0 8px 30px #23382f22; font-size: 12px; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.feedback.visible { opacity: 1; transform: translate(-50%, 0); }
.feedback.with-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.feedback-action { border: 0; padding: 4px 0; background: transparent; color: #d9e9cf; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.feedback-action:disabled { opacity: .6; cursor: wait; }
.delete-undo-list { position: fixed; left: 50%; bottom: 82px; z-index: 51; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100% - 32px)); max-height: min(60vh, 460px); overflow-y: auto; transform: translateX(-50%); pointer-events: none; }
.delete-undo-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 10px 16px; border: 1px solid #56715e; border-radius: 12px; background: #294738; color: #fffdf8; box-shadow: 0 8px 30px #23382f22; font-size: 12px; pointer-events: auto; }
.delete-undo-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 99; padding: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
@media (max-width: 850px) {
  .intro { gap: 30px; }
  .record-scene { min-height: 280px; }
  .submission-row { grid-template-columns: minmax(0, 1fr) 112px 90px auto; }
}
@media (max-width: 680px) {
  .site-header { height: 72px; }
  .intro { padding: 42px 0; gap: 30px; }
  .intro h1 { font-size: clamp(44px, 9vw, 64px); margin-top: 16px; }
  .intro p { font-size: 14px; }
  .hero-art { aspect-ratio: 1.5; }
  .record-scene { min-height: 0; }
  .sleeve > span { font-size: 32px; }
  .sleeve { width: 49%; height: 76%; top: 8%; left: 17%; padding: 5%; }
  .vinyl { width: 51%; top: 12%; right: 10%; }
  .art-note { bottom: 4%; left: 17%; }
  .recommendation-form { padding: 23px; }
  .submission-row { grid-template-columns: minmax(0, 1fr) 90px 80px; }
  .submit-section { padding-bottom: 40px; }
  .discover { padding: 40px 0 48px; }
  .discover .section-head h2 { font-size: clamp(23px, 5.4vw, 34px); }
  .discover .global-platform select { width: 108px; padding-left: 10px; padding-right: 25px; }
  .discover .global-platform { flex-direction: column; align-items: flex-start; gap: 6px; }
  .global-platform span { max-width: none; }
  .recommendation-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 17px 15px; }
  .month-rank { font-size: 25px; }
  .listen-link { min-width: 62px; min-height: 42px; padding: 0 12px; }
  .card-content h4 { font-size: 21px; }
  .edit-button { min-width: 36px; min-height: 42px; padding: 0 3px; }
}
@media (max-width: 420px) {
  .recommendation-form { padding: 20px 14px; }
  .form-heading h2 { font-size: 22px; }
  .submission-row { grid-template-columns: minmax(0, 1fr) 67px 69px; }
  .submission-row select { background-position: right 6px center; padding-right: 19px; }
  .optional { display: none; }
  .artist-field::after { content: '（选填）'; font-size: 8px; color: var(--muted); }
  .recommendation-card { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; padding: 15px 11px; }
  .month-rank { font-size: 23px; }
  button.month-rank { font-size: 21px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px; }
  button.month-rank::after { margin-left: 0; font-size: 11px; }
  .card-content h4 { font-size: 19px; }
  .card-actions { gap: 2px; }
  .listen-link { min-width: 53px; padding: 0 9px; }
  .brand { font-size: 16px; }
  .list-heading { font-size: 10px; }
  .kicker { font-size: 9px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) { .feedback { transition: none; } }

@media (max-width: 680px) { .submission-row input, .submission-row select { font-size: 16px; } }
.auth-dialog { width: min(420px, calc(100% - 36px)); padding: 28px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 80px #182d3230; }
.auth-dialog::backdrop { background: #23382f50; backdrop-filter: blur(4px); }
.auth-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-heading h2 { margin: 0; font-size: 22px; }
.auth-heading button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--muted); background: #edf0e7; font-size: 23px; }
.auth-dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 16px 0 23px; }
.auth-dialog label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.auth-dialog input { width: 100%; height: 48px; border: 1px solid #cbd6c3; border-radius: 9px; padding: 0 12px; font-size: 16px; color: var(--ink); background: white; }
.auth-actions button { margin-top: 20px; width: 100%; height: 46px; border: 0; border-radius: 999px; background: var(--green); color: white; font-size: 13px; font-weight: 600; }
.form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.form-heading h2 { margin: 0 0 26px; }
.precise-open { flex: 0 0 auto; margin: 0 0 26px; padding: 9px 14px; border: 1px solid #d9dfd3; border-radius: 999px; color: var(--green); background: #f4f7f0; font-size: 12px; font-weight: 700; transition: background .18s, border-color .18s; }
.precise-open:hover { background: #eaf1e9; border-color: #abc2ae; }
.precise-dialog { width: min(560px, calc(100% - 36px)); padding: 34px; }
.precise-dialog .auth-heading h2 { font-size: 24px; }
.precise-dialog label { margin: 18px 0 10px; font-size: 13px; }
.precise-dialog input { height: 56px; border-radius: 12px; padding-inline: 16px; }
.precise-dialog .precise-hint { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 8px; font-size: 13px; line-height: 1.8; letter-spacing: .01em; }
.precise-dialog .precise-hint strong { display: inline; padding: 0; border-radius: 0; background: transparent; color: var(--green); font-size: 1em; line-height: inherit; font-weight: 600; }
.precise-dialog .hint-item { display: inline-flex; align-items: center; gap: 5px; }
.precise-dialog .hint-status { color: var(--green); }
.precise-dialog .precise-hint-top { margin: 0 0 16px; }
.precise-dialog .precise-hint-bottom { margin: 16px 0 0; }
.precise-dialog .auth-actions { display: flex; gap: 10px; }
.precise-dialog .auth-actions button { flex: 1; height: 50px; margin-top: 24px; }
.precise-dialog .auth-actions .secondary-action { color: var(--green); background: #edf2e9; }
.precise-dialog .auth-actions button:disabled { opacity: .62; cursor: wait; }
@media (max-width: 500px) {
  .precise-dialog { padding: 24px 20px; }
  .form-heading { gap: 8px; }
  .form-heading h2 { font-size: 21px; }
  .precise-open { padding: 8px 10px; font-size: 11px; }
}
.submission-row { grid-template-columns: minmax(0, 1fr) 142px 105px; grid-template-areas: "name artist type" "title artist-input type-select"; }
.publish-actions { display: flex; align-items: stretch; gap: 0; justify-self: center; width: min(100%, 360px); margin: 25px auto 0; overflow: hidden; border: 1px solid #e4e7dc; border-radius: 13px; box-shadow: 0 4px 0 #d4dfd2; }
.publish-actions button { flex: 0 0 calc(50% + 9px); width: auto; min-width: 0; min-height: 49px; padding: 0 10px; border: 0; border-radius: 0; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; transition: filter .18s, opacity .18s; }
.publish-actions button:hover { filter: brightness(.94); }
.publish-actions button:disabled { opacity: .62; cursor: wait; transform: none; }
.publish-actions .quick-publish { z-index: 1; color: #794d45; background: #e4c6bd; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.publish-actions .precise-publish { z-index: 2; margin-left: -18px; color: #355747; background: #cad9cc; clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
.publish-actions button:focus-visible { z-index: 3; outline: 3px solid #375e4e; outline-offset: -4px; }
@media (max-width: 850px) {
  .submission-row { grid-template-columns: minmax(0, 1fr) 112px 94px; }
}
@media (max-width: 680px) {
  .submission-row { grid-template-columns: minmax(0, 1fr) 105px 92px; grid-template-areas: "name artist type" "title artist-input type-select"; gap: 8px; }
  .publish-actions { margin-top: 22px; }
}
@media (max-width: 500px) {
  .submission-row { grid-template-columns: minmax(0, 1fr) 70px 72px; grid-template-areas: "name artist type" "title artist-input type-select"; gap: 7px; }
  .publish-actions { width: min(100%, 340px); }
  .publish-actions button { min-height: 46px; padding-inline: 6px; font-size: 12px; }
}
.recommendation-card.just-published { position: relative; z-index: 2; animation: publish-arrive 1.8s ease-out both; }
@keyframes publish-arrive {
  0% { background: #e8efe3; box-shadow: 0 0 0 3px #c7d8c7; }
  35% { background: #f0f5ea; box-shadow: 0 0 0 3px #c7d8c7; }
  100% { background: #fffdf8; box-shadow: 0 0 0 0 transparent; }
}
.publish-complete { animation: button-success .75s ease-out both; }
.listen-link[data-publish-mode="quick"], .listen-link[data-publish-mode="precise"] { color: #355747; background: #cad9cc; border-color: #cad9cc; }
.listen-link[data-publish-mode="quick"]:hover, .listen-link[data-publish-mode="precise"]:hover { color: #294a3b; background: #b9cdbd; border-color: #b9cdbd; }
.publish-celebration { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #21352c12; opacity: 0; visibility: hidden; pointer-events: none; }
.publish-celebration.show { visibility: visible; animation: celebration-backdrop 1.65s ease both; }
.celebration-art { position: relative; display: grid; place-items: center; width: 164px; height: 164px; border: 1px solid #e1e8d9; border-radius: 36px; background: #fffdf7; box-shadow: 0 24px 80px #23382f30, 0 5px 18px #23382f12; transform: scale(.55) rotate(-9deg); }
.publish-celebration.show .celebration-art { animation: celebration-pop .72s cubic-bezier(.17,.89,.32,1.35) both; }
.celebration-vinyl { position: relative; display: grid; place-items: center; width: 91px; height: 91px; border: 1px solid #304c3e; border-radius: 50%; background: repeating-radial-gradient(circle, #203a30 0 2px, #29483a 3px 5px, #203a30 6px 8px); box-shadow: 0 8px 18px #203a3030; }
.publish-celebration.show .celebration-vinyl { animation: vinyl-spin 1.2s cubic-bezier(.22,.61,.36,1) both; }
.vinyl-label { width: 29px; height: 29px; border: 4px solid #fff4d8; border-radius: 50%; background: #ef957e; box-shadow: 0 0 0 2px #d87967; }
.celebration-check { position: absolute; right: 21px; bottom: 22px; display: grid; place-items: center; width: 39px; height: 39px; border: 3px solid #fffdf7; border-radius: 50%; color: white; background: #6b9b7e; font-size: 23px; font-weight: 700; box-shadow: 0 3px 10px #27463730; transform: scale(0); }
.publish-celebration.show .celebration-check { animation: check-pop .4s .34s cubic-bezier(.2,.8,.25,1.4) both; }
.celebration-spark { position: absolute; color: #d99c45; opacity: 0; }
.spark-one { top: 21px; left: 28px; font-size: 24px; }
.spark-two { top: 32px; right: 27px; color: #e78b78; font-size: 29px; }
.spark-three { bottom: 22px; left: 31px; color: #6b9b7e; font-size: 24px; }
.publish-celebration.show .spark-one { animation: sparkle-one .8s .12s ease-out both; }
.publish-celebration.show .spark-two { animation: sparkle-two .8s .22s ease-out both; }
.publish-celebration.show .spark-three { animation: sparkle-three .85s .18s ease-out both; }
@keyframes celebration-backdrop { 0%,100% { opacity: 0; } 12%,76% { opacity: 1; } }
@keyframes celebration-pop { 0% { opacity: 0; transform: scale(.55) rotate(-9deg); } 65% { opacity: 1; transform: scale(1.07) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes vinyl-spin { from { transform: rotate(-90deg) scale(.85); } to { transform: rotate(0) scale(1); } }
@keyframes check-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sparkle-one { 0% { opacity: 0; transform: scale(.2) rotate(-30deg); } 45% { opacity: 1; transform: scale(1.3) rotate(15deg); } 100% { opacity: .75; transform: scale(1) rotate(0); } }
@keyframes sparkle-two { 0% { opacity: 0; transform: scale(.2) rotate(25deg); } 50% { opacity: 1; transform: scale(1.2) rotate(-12deg); } 100% { opacity: .75; transform: scale(1) rotate(0); } }
@keyframes sparkle-three { 0% { opacity: 0; transform: translateY(8px) scale(.2); } 55% { opacity: 1; transform: translateY(-4px) scale(1.2); } 100% { opacity: .75; transform: translateY(0) scale(1); } }
@keyframes button-success { 0% { filter: brightness(1); } 35% { filter: brightness(1.16); transform: scale(1.035); } 100% { filter: brightness(1); transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .recommendation-card.just-published { animation: none; box-shadow: 0 0 0 2px #c7d8c7; }
  .publish-celebration.show { opacity: 1; animation: none; }
  .publish-celebration.show .celebration-art, .publish-celebration.show .celebration-vinyl,
  .publish-celebration.show .celebration-check, .publish-celebration.show .celebration-spark,
  .publish-complete { animation: none; transform: none; opacity: 1; }
}
.card-actions { display: grid; width: 169px; grid-template-columns: 102px 58px; gap: 9px; justify-content: stretch; }
.card-actions .listen-link, .card-actions .edit-button { width: 100%; min-width: 0; }
.card-actions .delete-placeholder { pointer-events: none; cursor: default; }
@media (max-width: 680px) {
  .card-actions { width: 110px; grid-template-columns: 60px 45px; gap: 5px; }
  .card-actions .listen-link { padding-inline: 5px; }
}
@media (max-width: 420px) {
  .card-actions { width: 91px; grid-template-columns: 53px 36px; gap: 2px; }
  .card-actions .listen-link { padding-inline: 3px; }
}
.list-tools { display: inline-flex; align-items: center; gap: 16px; }
.sort-control { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.sort-control select { min-width: 108px; height: 32px; padding: 0 27px 0 10px; border: 1px solid #d4dacd; border-radius: 8px; appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3' fill='none' stroke='%23345e49' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center; color: var(--ink); font: inherit; cursor: pointer; }
.sort-control select:focus-visible { outline: 2px solid #7ca18b; outline-offset: 2px; }
.card-listen-count { display: none; margin: 6px 0 0; color: #829187; font-size: 11px; font-variant-numeric: tabular-nums; }
body.developer-mode .card-listen-count { display: block; }
@media (max-width: 680px) {
  .list-tools { gap: 9px; }
  .sort-control { gap: 4px; font-size: 10px; }
  .sort-control select { min-width: 96px; height: 31px; padding-left: 7px; padding-right: 22px; }
  .card-listen-count { font-size: 10px; }
}
@media (max-width: 380px) {
  .list-tools { gap: 6px; }
  .sort-control > span { display: none; }
  .sort-control select { min-width: 95px; }
}

/* A calmer, aligned control area for the listening archive. */
.discover .section-head { gap: 24px; }
.discover .global-platform {
  gap: 11px;
  padding: 5px 7px 5px 13px;
  border: 1px solid #dfe3d7;
  border-radius: 13px;
  background: #fffdf8d9;
}
.discover .global-platform > span { color: #697b70; font-size: 11px; font-weight: 600; letter-spacing: .025em; }
.discover .global-platform select {
  width: 142px;
  height: 40px;
  padding-left: 12px;
  border: 1px solid #dfe3d7;
  border-radius: 9px;
  background-color: #fffdf8;
  font-size: 13px;
  font-weight: 600;
}
.list-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 27px;
  padding: 13px 0;
  border-block: 1px solid #dddfd2;
  font-size: 12px;
  letter-spacing: 0;
}
.list-tools { gap: 12px; }
.result-count { padding: 6px 10px; border-radius: 999px; background: #edf1e8; color: #456c55; font-size: 11px; font-weight: 600; }
.sort-control {
  gap: 7px;
  padding: 4px 8px 4px 11px;
  border: 1px solid #dfe3d7;
  border-radius: 11px;
  background: #f0f1e8;
  color: #697b70;
  font-size: 11px;
}
.sort-control select {
  min-width: 112px;
  height: 32px;
  padding-left: 8px;
  border-color: #d7ddcf;
  border-radius: 8px;
  background-color: #fffdf8;
  font-size: 12px;
}
@media (max-width: 680px) {
  .discover .section-head { align-items: flex-start; gap: 14px; }
  .discover .global-platform { flex-direction: row; align-items: center; gap: 7px; padding: 4px 5px 4px 9px; }
  .discover .global-platform > span { display: inline; font-size: 10px; }
  .discover .global-platform select { width: 105px; height: 36px; padding-left: 8px; padding-right: 23px; font-size: 11px; }
  .list-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 22px; padding: 11px 0; font-size: 10px; }
  .list-tools { gap: 7px; }
  .result-count { padding: 5px 7px; font-size: 10px; }
  .sort-control { gap: 4px; padding: 3px 5px 3px 7px; font-size: 10px; }
  .sort-control > span { display: inline; }
  .sort-control select { min-width: 96px; height: 31px; padding-left: 6px; padding-right: 21px; font-size: 10px; }
}
@media (max-width: 420px) {
  .discover .section-head { gap: 8px; }
  .discover .section-head h2 { font-size: 22px; }
  .discover .global-platform { gap: 5px; padding-left: 7px; }
  .discover .global-platform select { width: 93px; }
  .list-heading { grid-template-columns: 1fr; gap: 9px; }
  .list-tools { width: 100%; justify-content: space-between; }
  .sort-control { margin-left: auto; }
}

/* Personal collection controls and the listening queue. */
.list-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; margin-top: 33px; padding-block: 12px; }
.list-summary, .list-tools { display: flex; align-items: center; min-width: 0; gap: 12px; }
.list-summary { justify-content: flex-start; }
.result-count { background: transparent; padding: 0; font-size: 12px; white-space: nowrap; }
.favorites-filter, .play-favorites { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 9px; white-space: nowrap; font-size: 12px; font-weight: 700; transition: background .18s, transform .18s, border-color .18s; }
.favorites-filter { padding: 0 12px; border: 1px solid #e5d5ce; background: #f9f1ed; color: #985f53; }
.favorites-filter:hover, .favorites-filter[aria-pressed="true"] { background: #f1ded6; border-color: #dbb8a9; }
.favorites-filter > span:first-child { font-size: 18px; line-height: 1; }
#favorites-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 50px; background: #fffdf8a8; font-size: 10px; }
.play-favorites { padding: 0 16px; border: 1px solid #315947; background: #315947; color: #fffdf8; }
.play-favorites:hover:not(:disabled) { background: #264b39; transform: translateY(-1px); }
.play-favorites:disabled { opacity: .48; cursor: not-allowed; }
.control-info { position: relative; display: inline-grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; border: 1px solid #aeb8ad; border-radius: 50%; color: #718075; font: 600 11px/1 Georgia, serif; cursor: help; }
.control-info::after { content: attr(data-tooltip); position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: max-content; max-width: min(260px, calc(100vw - 32px)); padding: 9px 11px; border-radius: 8px; background: #294437; color: #fffdf8; font: 500 11px/1.55 "Noto Sans SC", sans-serif; white-space: normal; box-shadow: 0 5px 18px #1d322c26; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease; }
.control-info:hover::after, .control-info:focus-visible::after { opacity: 1; visibility: visible; }
.control-info:focus-visible { outline: 2px solid #7ca18b; outline-offset: 3px; }
.listen-platform-icon { flex: 0 0 18px; width: 18px; height: 18px; overflow: visible; }
.listen-link[data-platform="bilibili"] { gap: 7px; border-color: #b6dce9; background: #e6f3f7; color: #176f8e; }
.listen-link[data-platform="bilibili"]:hover { border-color: #91c9dc; background: #d7edf4; color: #125d78; }
.bilibili-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.listen-link[data-platform="youtube"] { gap: 7px; border-color: #efc2ba; background: #fae9e5; color: #ad4539; }
.listen-link[data-platform="youtube"]:hover { border-color: #e7a99e; background: #f6d9d3; color: #91372e; }
.youtube-body { fill: #e65346; }
.youtube-play { fill: #fffdf8; }
.listen-link[data-platform="qqmusic"], .listen-link[data-platform="netease"], .listen-link[data-platform="kugou"] { gap: 7px; }
.listen-link[data-platform="qqmusic"] { border-color: #c8d8ae; background: #edf3e3; color: #436d44; }
.listen-link[data-platform="qqmusic"]:hover { border-color: #acc68f; background: #e2edcf; color: #355b38; }
.listen-link[data-platform="netease"] { border-color: #e9bec6; background: #f9eaed; color: #a83f51; }
.listen-link[data-platform="netease"]:hover { border-color: #dfa5b0; background: #f4dce1; color: #8e3444; }
.listen-link[data-platform="kugou"] { border-color: #bbcee8; background: #e8eff9; color: #41699e; }
.listen-link[data-platform="kugou"]:hover { border-color: #9fbae0; background: #dae7f6; color: #315584; }
.qqmusic-disc { fill: #efd72a; }
.qqmusic-note { fill: none; stroke: #2bb5a3; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.qqmusic-note-head { fill: #2bb58c; }
.netease-icon { fill: currentColor; }
.kugou-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.kugou-ring { stroke-width: 1.8; }
.kugou-letter { stroke-width: 3; }
.play-favorites > span { font-size: 9px; }
.sort-control { min-height: 38px; }
.card-title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-title-row h4 { flex: 0 1 auto; min-width: 0; }
.favorite-button { display: inline-grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #a7aca0; font-family: Georgia, serif; font-size: 27px; line-height: 1; }
.favorite-button:hover { color: #b66f60; background: #f7e9e3; }
.favorite-button[aria-pressed="true"] { color: #bd6958; }
.playlist-dialog { width: min(760px, calc(100% - 30px)); max-height: min(90vh, 900px); padding: 0; overflow: auto; border: 1px solid #d9dfd2; border-radius: 20px; background: #fffdf8; color: var(--ink); box-shadow: 0 25px 80px #1d322c40; }
.playlist-dialog::backdrop { background: #1e302bd1; backdrop-filter: blur(4px); }
.playlist-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 28px 30px 12px; }
.playlist-eyebrow { color: #697c70; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.playlist-header h2 { margin: 6px 0 0; font-size: 28px; line-height: 1.1; }
.playlist-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #eef0e8; color: #5c7063; font-size: 23px; }
.playlist-now { padding: 10px 30px 18px; }
#playlist-position { color: #bc6c5b; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.playlist-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.playlist-now h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: clamp(21px, 3.2vw, 31px); line-height: 1.25; overflow-wrap: anywhere; }
.playlist-now p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.playlist-now p:empty { display: none; }
.playlist-player { display: grid; place-items: center; width: calc(100% - 60px); aspect-ratio: 16 / 9; margin: 0 30px; overflow: hidden; border-radius: 13px; background: #1d2e28; }
.playlist-player iframe, .playlist-youtube-stage { display: block; width: 100%; height: 100%; border: 0; }
.playlist-player-fallback { max-width: 350px; padding: 22px; color: #e8eee7; font-size: 14px; line-height: 1.8; text-align: center; }
.playlist-meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 20px; margin: 12px 30px 0; }
.playlist-status { min-height: 20px; margin: 0; color: #718075; font-size: 12px; line-height: 1.5; }
.playlist-mobile-mode { display: block; min-height: 32px; margin: 4px 30px 0; padding: 0; border: 0; background: transparent; color: #a65443; font-size: 12px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.playlist-mobile-mode[hidden] { display: none; }
.playlist-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 10px; padding: 15px 30px 24px; }
.playlist-controls > * { display: grid; place-items: center; min-height: 42px; padding: 0 10px; border: 1px solid #dce2d7; border-radius: 9px; background: #f2f4ec; color: #345e49; font-size: 12px; font-weight: 700; text-align: center; }
#playlist-favorite { width: 100%; }
.playlist-controls button:disabled { opacity: .42; cursor: not-allowed; }
.playlist-controls a { background: #e6ede4; }
#playlist-delete { border-color: #edd7d0; background: #fbf0ec; color: #a45c50; }
.playlist-link-form { margin: 0 30px; padding: 19px 0 24px; border-top: 1px solid #e6e9df; }
.playlist-link-form label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.playlist-link-form label span { color: #8a978b; font-size: 10px; font-weight: 400; }
.playlist-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.playlist-link-row input { min-width: 0; height: 41px; padding: 0 11px; border: 1px solid #d7dfd0; border-radius: 9px; background: white; color: var(--ink); font-size: 13px; }
.playlist-link-row button { padding: 0 12px; border: 1px solid #d7dfd0; border-radius: 9px; background: #f2f4ec; color: #345e49; font-size: 11px; font-weight: 700; }
.playlist-link-row button[type="submit"] { border-color: #315947; background: #315947; color: white; }
.playlist-link-row button:disabled { opacity: .45; cursor: not-allowed; }
.playlist-queue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 170px; overflow: auto; padding: 0 30px 30px; }
.playlist-queue-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 11px; border: 1px solid #e5e8df; border-radius: 9px; background: #f7f7f0; color: #6d7c70; text-align: left; }
.playlist-queue-item.is-current { border-color: #a7bea8; background: #eaf0e6; color: #345e49; }
.playlist-queue-number { font-size: 10px; font-variant-numeric: tabular-nums; }
.playlist-queue-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.playlist-queue-missing { flex: 0 0 auto; margin-left: auto; color: #ae7665; font-size: 10px; }
@media (max-width: 820px) {
  .list-heading { grid-template-columns: 1fr; gap: 10px; }
  .list-tools { justify-content: space-between; }
}
@media (max-width: 500px) {
  .list-heading { margin-top: 22px; }
  .list-summary, .list-tools { gap: 7px; }
  .favorites-filter, .play-favorites { min-height: 35px; padding-inline: 10px; font-size: 11px; }
  .sort-control { min-height: 35px; }
  .favorite-button { width: 28px; height: 28px; font-size: 24px; }
  .playlist-header { padding: 22px 18px 9px; }
  .playlist-now { padding: 8px 18px 16px; }
  .playlist-player { width: calc(100% - 36px); margin-inline: 18px; }
  .playlist-meta-row { margin-inline: 18px; }
  .playlist-mobile-mode { margin-inline: 18px; }
  .playlist-controls { gap: 6px; padding: 15px 18px 20px; }
  .playlist-controls > * { min-height: 38px; padding-inline: 5px; font-size: 10px; }
  .playlist-link-form { margin-inline: 18px; }
  .playlist-link-row { grid-template-columns: 1fr auto; }
  .playlist-link-row input { grid-column: 1 / -1; }
  .playlist-queue { grid-template-columns: 1fr; padding-inline: 18px; }
}
@media (max-width: 380px) {
  .discover .section-head { flex-wrap: wrap; }
  .discover .global-platform { margin-left: auto; }
}
.card-actions .edit-button { color: var(--green); }
.card-actions .edit-button:hover { background: #e8efe5; }
.listen-link[aria-disabled="true"], .listen-link[aria-disabled="true"]:hover {
  border-color: #e7e9e6; background: #eeefed; color: #9ca39d; cursor: not-allowed; pointer-events: none; transform: none;
}
.listen-link[aria-disabled="true"] .qqmusic-disc { fill: #d5d9d3; }
.listen-link[aria-disabled="true"] .qqmusic-note { stroke: currentColor; }
.listen-link[aria-disabled="true"] .qqmusic-note-head { fill: currentColor; }
.edit-dialog { width: min(500px, calc(100% - 32px)); }
.edit-dialog .edit-track-label { margin: 16px 0 21px; color: var(--ink); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.edit-dialog .edit-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.edit-dialog .edit-remaining { margin: 17px 0 0; color: var(--green); font-size: 12px; }
.edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.edit-actions button { min-height: 43px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 700; }
.edit-actions .edit-delete { margin-right: auto; background: #faece6; color: #a95443; }
.edit-actions .edit-submit { background: var(--green); color: white; }
.edit-actions button:disabled { opacity: .55; cursor: wait; }
.edit-actions .edit-delete[hidden] { display: none; }
.card-expiry { margin: 8px 0 0; color: #7e8d80; font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.card-expiry.is-expired { color: #a17b6b; }
.recommendation-card { row-gap: 8px; }
.recommendation-card.without-footer { row-gap: 0; }
.month-rank { grid-column: 1; grid-row: 1 / span 2; }
.recommendation-card.without-footer .month-rank { grid-row: 1; }
.card-content { grid-column: 2; grid-row: 1; }
.card-actions { grid-column: 3; grid-row: 1; }
.card-footer { display: grid; grid-column: 2 / 4; grid-row: 2; grid-template-columns: minmax(0, 1fr) 169px; column-gap: inherit; align-items: start; min-width: 0; }
.card-footer-main { min-width: 0; }
.card-footer .card-artist, .card-footer .card-expiry { margin: 0; }
.card-footer .card-expiry { text-align: center; white-space: nowrap; }
@media (max-width: 680px) { .card-footer { grid-template-columns: minmax(0, 1fr) 110px; } }
@media (max-width: 420px) { .card-footer { grid-template-columns: minmax(0, 1fr) 91px; } }

/* Keep recommendation provenance quiet and readable beside the media type. */
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.recommendation-source { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid; border-radius: 999px; font-size: 10px; line-height: 1.4; font-weight: 500; letter-spacing: .02em; }
.source-ai { color: #756485; background: #f3eff5; border-color: #e1d9e8; }
.source-human { color: #426653; background: #edf3ed; border-color: #d8e4d9; }

.playlist-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.playlist-view-tools { display: flex; justify-content: space-between; gap: 12px; padding: 0 30px 8px; font-size: 12px; }
.playlist-view-tools button { border: 0; background: transparent; color: #345e49; cursor: pointer; }
.delete-confirm-dialog { width: min(400px, calc(100% - 32px)); max-width: none; padding: 28px; border: 1px solid #e0e3d9; border-radius: 20px; background: #fffdf8; color: var(--ink); box-shadow: 0 24px 80px #1d322c40; text-align: center; }
.delete-confirm-dialog::backdrop { background: #1d3029a8; backdrop-filter: blur(5px); }
.delete-confirm-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 15px; border: 1px solid #efd8d0; border-radius: 50%; background: #fbefeb; color: #a45c50; font: 700 21px/1 Georgia, serif; }
.delete-confirm-dialog h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.delete-confirm-dialog p { margin: 10px 0 22px; color: #768379; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.delete-confirm-dialog #delete-confirm-hint { margin-top: -8px; color: #667d6c; font-size: 12px; }
.delete-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delete-confirm-actions button { min-height: 44px; border: 1px solid #dce2d7; border-radius: 11px; background: #f2f4ec; color: #345e49; font-size: 13px; font-weight: 700; }
.delete-confirm-actions #delete-confirm-accept { border-color: #a45c50; background: #a45c50; color: #fffdf8; }
.delete-confirm-actions button:focus-visible { outline: 3px solid #8eaa95; outline-offset: 2px; }
/* Curtains cover the picture without removing or resizing the active player. */
.playlist-player { position: relative; overflow: hidden; isolation: isolate; }
.playlist-player::before, .playlist-player::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2;
  background: repeating-linear-gradient(90deg, #1c2823 0%, #28372f 9%, #18231e 18%);
  pointer-events: none; transition: transform .45s ease;
}
.playlist-player::before { left: 0; transform: translateX(-101%); box-shadow: inset -5px 0 12px #0d1712; }
.playlist-player::after { right: 0; transform: translateX(101%); box-shadow: inset 5px 0 12px #0d1712; }
.audio-view .playlist-player::before, .audio-view .playlist-player::after { transform: translateX(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .playlist-player::before, .playlist-player::after { transition: none; } }
@media (max-width: 640px) { .playlist-view-tools { padding-inline: 18px; } }

.playlist-seek-hint { display: none; margin: 0; color: #7a897d; font-size: 12px; line-height: 1.7; text-align: right; white-space: nowrap; }
.audio-view .playlist-seek-hint { display: block; }
@media (max-width: 640px) { .playlist-meta-row { flex-wrap: wrap; } .playlist-seek-hint { white-space: normal; text-align: left; } }

.audio-view .playlist-player iframe { pointer-events: none; }

.playlist-touch-guard { display: none; position: absolute; inset: 0; z-index: 10; touch-action: none; user-select: none; -webkit-user-select: none; }
.audio-view .playlist-touch-guard { display: block; }


/* Let real pointer events reach Bilibili's centered native app CTA and
   bottom controls. The remaining picture stays protected from accidental taps. */
.protect-mobile-video .playlist-touch-guard {
  --controls-top: max(0px, calc(100% - clamp(80px, 40%, 104px)));
  --cta-top: min(calc(50% - 22px), var(--controls-top));
  --cta-bottom: min(calc(50% + 22px), var(--controls-top));
  display: block;
  bottom: 0;
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% var(--controls-top), 0 var(--controls-top), 0 0,
    8% var(--cta-top), 92% var(--cta-top), 92% var(--cta-bottom),
    8% var(--cta-bottom), 8% var(--cta-top));
}
.audio-view .playlist-player .playlist-touch-guard { display: block; bottom: 0; clip-path: none; }
.playlist-view-tools { flex-wrap: wrap; }
.playlist-player-fallback { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.playlist-fallback-message { margin: 0; }
.playlist-fallback-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: #345e49; color: #fffdf8; font-weight: 600; text-decoration: none; }
.playlist-fallback-open:hover { background: #284b3a; }
/* Give the discovery filters a calm, unified toolbar treatment. */
.list-heading { margin-top: 26px; padding: 12px 14px; border: 1px solid #e0e3d9; border-radius: 15px; background: #f7f7f1; }
.list-tools { gap: 10px; }
.sort-control { min-height: 42px; gap: 9px; padding: 5px 7px 5px 13px; border: 1px solid #e0e3d9; border-radius: 12px; background: #fffdf8; color: #66786d; font-size: 12px; font-weight: 600; }
.sort-control select { min-width: 150px; height: 34px; padding-inline: 10px 30px; border: 1px solid #dfe3d7; border-radius: 9px; background-color: #fffdf8; font-size: 13px; font-weight: 600; }
@media (max-width: 680px) {
  .list-heading { padding: 9px 10px; border-radius: 12px; }
  .sort-control { min-height: 38px; padding-inline: 8px 5px; }
  .sort-control select { min-width: 126px; height: 30px; font-size: 11px; }
}
@media (max-width: 420px) {
  .sort-control select { min-width: 112px; }
}

/* A single listening toolbar: quiet filters and one clear playback action. */
.discover .list-heading { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; margin-top: 28px; background: #fffdf8; border: 1px solid #dce2d6; border-radius: 20px; box-shadow: 0 5px 18px #253f3005; letter-spacing: 0; }
.discover .list-summary { flex: 1 1 180px; gap: 12px; }
.discover .list-tools { display: flex; flex-wrap: wrap; flex: 1 1 500px; justify-content: flex-end; gap: 12px; }
.discover .list-tools .global-platform, .discover .sort-control { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 6px 12px; background: #f5f5ee; border: 1px solid transparent; border-radius: 12px; }
.discover .list-tools .global-platform > span, .discover .sort-control > span { display: block; max-width: none; font-size: 10px; line-height: 1.4; font-weight: 500; color: #7b897e; }
.discover .list-tools .global-platform select, .discover .sort-control select { width: 84px; min-width: 0; height: 30px; padding: 0 22px 0 0; border: 0; border-radius: 0; box-shadow: none; background-color: transparent; background-position: right 2px center; font-size: 13px; font-weight: 600; }
.discover .global-platform:focus-within, .discover .sort-control:focus-within { border-color: #88a48e; box-shadow: 0 0 0 3px #345e4910; }
.discover .list-tools .global-platform { order: 0; }
.discover .sort-control { order: 1; }
.discover .play-favorites { order: 2; min-height: 44px; padding-inline: 22px; border-radius: 13px; font-size: 13px; box-shadow: 0 3px 8px #31594715; }
.discover .list-tools .control-info { order: 3; flex-shrink: 0; align-self: center; }
.discover .favorites-filter { min-height: 38px; border-radius: 999px; }
@media (max-width: 680px) {
  .discover .list-heading { gap: 16px; padding: 16px; border-radius: 16px; }
  .discover .list-summary { flex-basis: 100%; justify-content: space-between; }
  .discover .list-tools { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px 8px; }
  .discover .list-tools .global-platform { grid-column: 1 / -1; }
  .discover .sort-control { grid-column: 1 / -1; }
  .discover .list-tools .global-platform select, .discover .sort-control select { width: 84px; flex: 0 0 84px; font-size: 13px; }
  .discover .play-favorites { grid-column: 1 / 3; min-height: 44px; }
  .discover .list-tools .control-info { grid-column: 3; justify-self: center; }
}

/* Make the two list views read as a choice, and align the action controls. */
.discover .list-heading { gap: 16px; padding: 12px 16px; }
.discover .list-summary { flex: 0 0 auto; display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #e1e4da; border-radius: 13px; background: #f2f3ec; }
.discover .view-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #667a6d; font: 600 12px/1.3 "Noto Sans SC", sans-serif; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.discover .view-tab:hover { background: #e8ede5; color: #315947; }
.discover .view-tab[aria-pressed="true"] { border-color: #d9e3d9; background: #fffdf8; box-shadow: 0 2px 5px #253f3011; color: #274d3a; }
.discover .view-tab.favorites-filter[aria-pressed="true"] { border-color: #ead9d1; background: #fff9f5; color: #9b604e; }
.discover .view-tab > span:first-child { font-size: 15px; line-height: 1; }
.discover .view-tab #result-count, .discover .view-tab #favorites-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #e7ede5; color: inherit; font-size: 10px; font-weight: 700; }
.discover .view-tab.favorites-filter[aria-pressed="true"] #favorites-count { background: #f3e5dd; }
.discover .list-tools { gap: 8px; }
.discover .list-tools .global-platform, .discover .list-tools .sort-control { min-height: 46px; gap: 9px; padding: 0 11px; border: 1px solid #dce3d8; border-radius: 10px; background: #fffdf8; }
.discover .list-tools .global-platform:hover, .discover .list-tools .sort-control:hover { border-color: #b7caba; }
.discover .list-tools .global-platform select, .discover .list-tools .sort-control select { height: 42px; }
.discover .play-favorites { min-height: 46px; border-radius: 10px; box-shadow: none; }
.discover .list-tools .control-info { width: 22px; height: 22px; flex-basis: 22px; }
.discover .view-tab:focus-visible, .discover .play-favorites:focus-visible { outline: 2px solid #7ca18b; outline-offset: 2px; }
@media (max-width: 680px) {
  .discover .list-heading { padding: 12px; gap: 12px; }
  .discover .list-summary { flex-basis: auto; justify-content: flex-start; max-width: 100%; }
  .discover .view-tab { padding-inline: 8px; gap: 5px; font-size: 11px; }
  .discover .list-tools { gap: 8px; }
}


/* Platform and sort sit above the list bar, leaving the two list views distinct. */
.discover .filter-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; margin: 22px 0 10px; }
.discover .filter-tools .global-platform, .discover .filter-tools .sort-control { display: inline-flex; flex-direction: row; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 0 11px; border: 1px solid #dce3d8; border-radius: 10px; background: #fffdf8; white-space: nowrap; }
.discover .filter-tools .global-platform > span, .discover .filter-tools .sort-control > span { display: inline; max-width: none; color: #7b897e; font-size: 10px; font-weight: 500; line-height: 1.4; }
.discover .filter-tools .global-platform select, .discover .filter-tools .sort-control select { width: 84px; min-width: 0; height: 40px; padding: 0 22px 0 0; border: 0; border-radius: 0; box-shadow: none; background-color: transparent; background-position: right 2px center; color: var(--ink); font-size: 13px; font-weight: 600; }
.discover .filter-tools .global-platform:hover, .discover .filter-tools .sort-control:hover { border-color: #b7caba; }
.discover .filter-tools .global-platform:focus-within, .discover .filter-tools .sort-control:focus-within { border-color: #88a48e; box-shadow: 0 0 0 3px #345e4910; }
.discover .list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 0; }
.discover .list-summary { flex: 0 0 auto; justify-content: flex-start; }
.discover .list-tools { flex: 0 0 auto; justify-content: flex-end; }
@media (max-width: 680px) {
  .discover .filter-tools { justify-content: flex-start; margin-top: 18px; }
  .discover .list-summary { flex-basis: auto; }
}

/* External music uses a compact destination card, not a video placeholder. */
.external-playback .playlist-player { display: block; aspect-ratio: auto; background: #f3f5ee; border: 1px solid #dce3d6; border-radius: 14px; }
.external-playback .playlist-player::before, .external-playback .playlist-player::after,
.external-playback .playlist-player .playlist-touch-guard,
.external-playback .playlist-view-tools, .external-playback .playlist-seek-hint { display: none; }
.external-playback .playlist-player-fallback { max-width: none; padding: 24px; gap: 16px; color: #66786d; }
.external-playback .playlist-fallback-open { min-height: 46px; padding-inline: 24px; }
.external-playback .playlist-status:empty { display: none; }

/* Fallback content always determines its own layout, including older open sessions. */
.playlist-player:has(> .playlist-player-fallback) { display: block; height: auto; min-height: 0; aspect-ratio: auto; background: #f7f5ee; border: 1px solid #e2e3d8; border-radius: 14px; }
.playlist-player:has(> .playlist-player-fallback)::before,
.playlist-player:has(> .playlist-player-fallback)::after,
.playlist-player:has(> .playlist-player-fallback) > .playlist-touch-guard { display: none; }
.playlist-dialog:has(.playlist-player-fallback) .playlist-view-tools,
.playlist-dialog:has(.playlist-player-fallback) .playlist-seek-hint { display: none; }
.playlist-dialog .playlist-player > .playlist-player-fallback { display: flex; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; max-width: none; gap: 18px; padding: 24px; color: #6b796c; text-align: left; }
.playlist-fallback-message { flex: 1 1 200px; line-height: 1.7; }
.playlist-dialog .playlist-fallback-open { flex: 0 0 auto; min-height: 46px; border-radius: 10px; }
@media (max-width: 520px) {
  .playlist-dialog .playlist-player > .playlist-player-fallback { padding: 20px; gap: 14px; }
  .playlist-fallback-message { flex-basis: 100%; }
  .playlist-dialog .playlist-fallback-open { width: 100%; }
}

/* A prominent destination card anchors external listening. */
.playlist-dialog .playlist-player:has(.external-destination) { border: 0; background: transparent; overflow: visible; }
.playlist-dialog .playlist-player > .playlist-player-fallback:has(.external-destination) { display: block; width: 100%; padding: 0; }
.external-destination { display: flex; align-items: center; gap: 26px; width: 100%; min-height: 172px; padding: 32px; border: 1px solid #cddccc; border-radius: 20px; background: radial-gradient(ellipse at 12% 50%, #e1ebdc, transparent 65%), linear-gradient(120deg, #f0f4e9, #f7f5ed); box-shadow: 0 8px 22px #294e3a0b, inset 0 1px 0 #ffffffb3; color: #294e3a; text-decoration: none; transition: background .18s, border-color .18s; }
.external-destination:hover { background: #e8efdf; border-color: #a9bfa5; }
.external-destination:focus-visible { outline: 2px solid #7ca18b; outline-offset: 3px; }
.external-destination-record { position: relative; flex: 0 0 88px; height: 88px; box-shadow: 0 5px 12px #294e3a24, 0 0 0 8px #34574308; border-radius: 50%; background: repeating-radial-gradient(circle, #345743 0 2px, #2d4b3b 3px 4px); }
.external-destination-record::after { content: ''; position: absolute; inset: 29px; border: 10px solid #d4bd8b; border-radius: 50%; background: #f7f5ee; }
.external-destination-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.external-destination-copy strong { font-size: 25px; font-weight: 600; line-height: 1.4; }
.external-destination-copy > span { color: #788575; font-size: 13px; line-height: 1.5; }
.external-destination-arrow { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: #345e49; color: #fffdf8; font-size: 27px; }
@media (max-width: 520px) {
  .external-destination { min-height: 142px; padding: 22px 18px; gap: 16px; }
  .external-destination-copy strong { font-size: 20px; }
  .external-destination-record { flex-basis: 60px; height: 60px; }
  .external-destination-record::after { inset: 20px; border-width: 6px; }
  .external-destination-arrow { flex-basis: 36px; height: 36px; font-size: 23px; }
}
