/* Genre chips, the "details" drawer, and the request form. Shared by the public page and the admin app. */

/* ---------- genre chips: each genre gets its own steady color ---------- */
.genres { display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { --gh: 260; font-size: .72rem; font-weight: 700; letter-spacing: .02em; line-height: 1; padding: 5px 10px; border-radius: 999px; white-space: nowrap; color: hsl(var(--gh) 85% 87%); background: hsl(var(--gh) 55% 26% / .55); border: 1px solid hsl(var(--gh) 65% 58% / .55); }
:root[data-theme="light"] .gchip { color: hsl(var(--gh) 70% 24%); background: hsl(var(--gh) 70% 88% / .85); border-color: hsl(var(--gh) 55% 50% / .5); }
.genres.sm .gchip { font-size: .66rem; padding: 4px 8px; }
button.gchip { cursor: pointer; font-family: inherit; }
.genre-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: -8px 0 20px; align-items: center; }
.genre-filters .lbl { font-size: .66rem; letter-spacing: .16em; font-weight: 750; color: var(--faint); margin-right: 4px; }
.genre-filters .gchip[aria-pressed="true"], .genre-pick .gchip[aria-pressed="true"] { background: hsl(var(--gh) 70% 52%); color: #0b0a0d; border-color: transparent; }
.genre-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.genre-pick .gchip[aria-pressed="false"] { opacity: .72; }

/* ---------- row + hero extras ---------- */
.entry { border-bottom: 1px solid var(--line); }
.entry > .item { border-bottom: 0 !important; cursor: pointer; }
.entry .drawer { margin: 0 0 16px; }
.item .sub-genres { margin-top: 6px; }
.item .r .open-link { font-size: .76rem; font-weight: 700; color: var(--gold); text-decoration: none; white-space: nowrap; }
.item .r .open-link:hover { text-decoration: underline; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.more-btn:hover { color: var(--ink); border-color: var(--ink); }
.more-btn .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; }
.more-btn[aria-expanded="true"] .caret { transform: rotate(-135deg) translate(-1px, -1px); }
.hero .hero-drawer { grid-column: 1 / -1; position: relative; z-index: 1; }
.hero .genres { margin-top: 2px; }

/* ---------- the drawer ---------- */
.drawer { margin-top: 14px; padding: clamp(14px, 2.4vw, 22px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); display: grid; gap: 22px; text-align: left; cursor: default; }
.drawer h4 { font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; font-weight: 750; font-family: inherit; }
.drawer .d-head { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
.drawer .d-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.drawer .d-photo.ph { display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--red-deep)); }
.drawer .d-name { font-size: 1.3rem; font-weight: 760; letter-spacing: -.03em; line-height: 1.15; }
.drawer .d-sub { color: var(--muted); font-size: .85rem; margin-top: 3px; }
.drawer .d-bio { color: var(--muted); line-height: 1.65; font-size: .93rem; margin-top: 10px; white-space: pre-line; }
.drawer .d-bio.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.drawer .d-toggle { background: none; border: 0; color: var(--gold); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 0 0; cursor: pointer; }
.drawer .d-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.drawer .fact { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.drawer .fact b { display: block; font-size: .64rem; letter-spacing: .14em; color: var(--faint); font-weight: 750; text-transform: uppercase; margin-bottom: 3px; }
.drawer .fact span { font-size: .95rem; font-weight: 650; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.strip > * { flex: 0 0 112px; scroll-snap-align: start; text-decoration: none; color: inherit; display: grid; gap: 7px; align-content: start; }
.strip img, .strip .ph { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.strip .round img, .strip .round .ph { border-radius: 50%; }
.strip .ph { display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--purple), var(--red-deep)); }
.strip .tn { font-size: .82rem; font-weight: 650; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.strip .round .tn { text-align: center; }
.strip .ts { font-size: .74rem; color: var(--faint); }
.toplist { display: grid; }
.toplist a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: .93rem; }
.toplist a:last-child { border-bottom: 0; }
.toplist a:hover b { text-decoration: underline; }
.toplist i { font-style: normal; color: var(--faint); font-size: .8rem; }
.toplist small { color: var(--faint); margin-left: 6px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 650; }
.linkrow a:hover { border-color: var(--gold); color: var(--gold); }
.linkrow a.primary { background: var(--red); border-color: var(--red); color: #0e0a0c; }
.d-hint { color: var(--faint); font-size: .76rem; line-height: 1.5; margin-top: 8px; }
.d-mine { display: grid; gap: 8px; }
.d-mine .big { font-size: 1.05rem; font-weight: 700; }
.d-mine ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; color: var(--muted); font-size: .9rem; }
.d-credit { color: var(--faint); font-size: .72rem; line-height: 1.55; border-top: 1px solid var(--line); padding-top: 12px; }
.d-credit a { color: inherit; }
.d-loading { display: grid; gap: 10px; }
.d-loading i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line), transparent, var(--line)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.d-loading i:nth-child(2) { width: 82%; }
.d-loading i:nth-child(3) { width: 58%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 540px) { .drawer .d-head { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; } .drawer .d-photo { width: 76px; height: 76px; } }
@media (prefers-reduced-motion: reduce) { .d-loading i { animation: none; } }

/* ---------- request a link ---------- */
.req-form { display: grid; gap: 12px; margin-top: 16px; }
.req-form label { display: grid; gap: 5px; font-size: .82rem; color: var(--muted); }
.req-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .req-form .row2 { grid-template-columns: 1fr; } }
.req-ok { padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; line-height: 1.6; }
.nav-cta { color: var(--ink) !important; border: 1px solid var(--red); border-radius: 999px; padding: 8px 16px; }
.nav-cta:hover { background: var(--red); color: #0e0a0c !important; }
.intro-cta { margin-top: 22px; }
.panel-note { color: var(--faint); font-size: .8rem; margin-top: 10px; line-height: 1.6; }

/* ---------- admin extras ---------- */
.diag { display: grid; gap: 8px; margin-top: 12px; }
.diag .drow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.diag .good { color: #2fd07a; font-weight: 700; }
.diag .bad { color: #ff7a7a; font-weight: 700; }
.search-note { color: var(--muted); font-size: .85rem; line-height: 1.55; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 10px; }
.aitem .d-wrap { grid-column: 1 / -1; }

/* ---------- rating words, extra scores, play counts ---------- */
.rating .phrase { margin-left: 10px; font-weight: 700; font-size: .85em; color: var(--gold); white-space: nowrap; }
.rating-big .phrase { font-size: 1rem; }
.extras { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.extras .xs { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.extras .xs small { color: var(--faint); font-size: .7rem; }
.extras .xs b { font-weight: 750; }
.plays { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.plays .pl { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.plays .pl b { font-size: 1.1rem; font-weight: 750; line-height: 1.1; }
.plays .pl small { color: var(--faint); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.phrase-grid .f { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; }
