/*! supertwentyplus licence: (c) 2026 Supertwentyplus Pte. Ltd. All rights reserved. Proprietary, not open source.
   Use only as provided on supertwentyplus.com (free or by subscription, under its Terms). Copying, reuse or hosting elsewhere,
   in whole or in part, needs a written licence: supertwentyplus@gmail.com. See LICENSE.txt at the site root. */
/* Top 100 Hits */
.hx-app { display: flex; flex-direction: column; gap: 16px; }
.hx-sign { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 126px; padding: 18px; border-radius: var(--btn-radius, 10px);
  background: radial-gradient(120% 140% at 50% 0%, #2a1250 0%, #120a26 70%); color: #fff; text-align: center; box-shadow: inset 0 0 0 2px #46297a; overflow: hidden; }
.hx-sign-text { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--font-display, inherit); }
.hx-sign-text b { font-size: clamp(14px, 2.6vw, 20px); letter-spacing: .32em; color: #ff8fd8; text-shadow: 0 0 10px rgba(255, 90, 200, .7); }
.hx-sign-text strong { font-size: clamp(40px, 9vw, 64px); line-height: 1; letter-spacing: .08em; color: #7ff3ff; text-shadow: 0 0 12px rgba(80, 230, 255, .8), 0 0 28px rgba(80, 200, 255, .45); }
.hx-sign.is-flip .hx-sign-text strong { animation: hx-flip .45s ease-out; }
@keyframes hx-flip { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.hx-eq { display: flex; align-items: flex-end; gap: 4px; height: 52px; }
.hx-eq i { width: 7px; border-radius: 2px; background: linear-gradient(#ff8fd8, #7ff3ff); animation: hx-eq 1.1s ease-in-out infinite; height: 30%; }
.hx-eq i:nth-child(2) { animation-delay: -.3s; } .hx-eq i:nth-child(3) { animation-delay: -.6s; } .hx-eq i:nth-child(4) { animation-delay: -.15s; } .hx-eq i:nth-child(5) { animation-delay: -.8s; }
@keyframes hx-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .hx-eq i, .hx-sign.is-flip .hx-sign-text strong { animation: none; height: 60%; } }
@media (max-width: 520px) { .hx-eq { display: none; } }

.hx-controls { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; }
.hx-controls .field { margin: 0; }
.hx-label { display: block; font-weight: 600; margin-bottom: 6px; }
.hx-yearpick { display: flex; gap: 6px; }
.hx-yearpick select { min-width: 110px; }
.hx-step { min-width: 48px; min-height: 48px; padding: 0; font-size: 24px; line-height: 1; }
.hx-step:disabled { opacity: .35; cursor: default; }
.hx-random { min-height: 48px; white-space: nowrap; }
@media (max-width: 640px) { .hx-controls { grid-template-columns: 1fr; } .hx-yearpick select { min-width: 0; flex: 1; } .hx-controls .hx-label { display: none; } .hx-random { width: 100%; } }
.hx-decades { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-decades button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hx-decades button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.hx-search { margin: 0; }
.hx-search input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--surface); color: var(--ink); border: var(--input-border); border-radius: var(--btn-radius); font: inherit; font-size: 16px; }
.hx-status { margin: 0; color: var(--ink-2); min-height: 1.4em; }
.hx-status .btn { margin-left: 8px; min-height: 36px; }
.hx-app.is-loading .hx-status::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: hx-spin .8s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-why { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.hx-why summary { cursor: pointer; font-weight: 600; color: var(--accent-text, var(--accent)); }

.hx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.hx-song { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.hx-rank { font-family: var(--font-display, inherit); font-weight: 700; font-size: 20px; color: var(--ink-3); text-align: center; }
.hx-song.is-top .hx-rank, .hx-song.is-one .hx-rank { color: #b0279a; }
.hx-song.is-top { border-color: rgba(176, 39, 154, .35); background: linear-gradient(90deg, rgba(255, 143, 216, .1), transparent 60%), var(--surface); }
.hx-what { min-width: 0; display: flex; flex-direction: column; }
.hx-what b { font-size: 15px; line-height: 1.25; color: var(--ink); }
.hx-what > span { font-size: 14px; color: var(--ink-2); }
.hx-what .hx-peak { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.hx-play, .hx-find { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hx-play:hover, .hx-find:hover { border-color: var(--ink-3); }
@media (max-width: 420px) { .hx-play span { display: none; } }
.hx-note { margin: 0; }
.hx-next { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--card-radius, 12px); background: var(--bg); color: var(--ink); text-decoration: none; }
.hx-next-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hx-next-text span { color: var(--ink-2); font-size: 14px; }
.hx-next-go { font-weight: 600; color: var(--accent-text, var(--accent)); white-space: nowrap; }
@media (max-width: 520px) { .hx-next { flex-direction: column; align-items: flex-start; } }

.hx-play { background: var(--surface); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hx-player { width: min(920px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--card-radius, 12px); background: #120a26; color: #fff; }
.hx-player::backdrop { background: rgba(8, 4, 20, .82); }
.hx-player-box { padding: 12px 14px 10px; }
.hx-player-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hx-player-head h2 { flex: 1; margin: 0; font-size: 17px; color: #7ff3ff; }
.hx-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 24px; cursor: pointer; }
.hx-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.hx-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hx-frame-msg { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; color: #d9d2ff; }
.hx-frame-msg p { margin: 0; }
.hx-player-foot { margin: 8px 0 0; font-size: 13px; color: #b8b0e0; }
.hx-player-foot a { color: #cfc6ff; }
.hx-play.is-ready { background: linear-gradient(90deg, #ff8fd8, #7ff3ff); border-color: transparent; color: #1a0f33; }
/* The ad after song 50: a full-width row with generous space above and below, away from the Play buttons */
.hx-ad { grid-column: 1 / -1; list-style: none; margin: 40px 0; padding: 0; }
.hx-ad-slot { min-height: 120px; }
@media (max-width: 640px) { .hx-ad { margin: 48px 0; } }
