:root {
    --bg: #f6f7fb;
    --bg-accent: #eef1ff;
    --surface: #ffffff;
    --surface-2: #f2f4fb;
    --surface-3: #e9ecf7;
    --text: #141a2e;
    --muted: #69728c;
    --muted-2: #8b93aa;
    --line: #e3e7f2;
    --line-strong: #d3d9ea;
    --accent: #6366f1;
    --accent-2: #a855f7;
    --accent-soft: #eef0ff;
    --accent-text: #4f46e5;
    --ok: #0f9d58;
    --ok-soft: #e7f7ef;
    --warn: #b45309;
    --warn-soft: #fff4e5;
    --bad: #dc2626;
    --bad-soft: #fdecec;
    --shadow: 0 18px 50px rgba(30, 41, 90, 0.08);
    --shadow-sm: 0 6px 18px rgba(30, 41, 90, 0.06);
    --radius: 18px;
    --radius-sm: 12px;
    --header-h: 66px;
}

[data-theme="dark"] {
    --bg: #0b1020;
    --bg-accent: #111833;
    --surface: #141b30;
    --surface-2: #1a2239;
    --surface-3: #222c48;
    --text: #e9edf8;
    --muted: #9aa4bf;
    --muted-2: #77809a;
    --line: #26304a;
    --line-strong: #33405f;
    --accent: #7c8cff;
    --accent-2: #c084fc;
    --accent-soft: #1d2650;
    --accent-text: #a5b4fc;
    --ok: #38d39f;
    --ok-soft: #123d31;
    --warn: #fbbf24;
    --warn-soft: #3b2c10;
    --bad: #ff6b81;
    --bad-soft: #3c1720;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 8% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
        radial-gradient(760px 480px at 105% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 55%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.container-narrow {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text small {
    color: var(--muted);
    font-weight: 500;
    font-size: 11px;
    margin-top: 2px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.site-nav a {
    padding: 8px 13px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.icon-button {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.18s ease;
}

.icon-button:hover {
    color: var(--text);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    position: relative;
    padding: 66px 0 34px;
    text-align: center;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    width: 360px;
    height: 360px;
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    left: -120px;
    top: -120px;
}

.hero::after {
    width: 320px;
    height: 320px;
    background: color-mix(in srgb, var(--accent-2) 24%, transparent);
    right: -100px;
    top: -80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent);
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 850;
}

.hero h1 span {
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin: 18px auto 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.paste-box {
    margin: 30px auto 0;
    max-width: 760px;
    display: flex;
    gap: 10px;
    padding: 9px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.paste-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
}

.paste-box input::placeholder {
    color: var(--muted-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.btn-soft {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.btn-danger {
    background: var(--bad-soft);
    color: var(--bad);
}

.btn-sm {
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 12.5px;
}

.btn-block {
    width: 100%;
}

.hero-hints {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
}

.hero-hints span {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

/* Section */
.section {
    padding: 22px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.count-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

/* Search */
.search-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-field input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: 0.18s ease;
}

.search-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.search-field .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    font-size: 16px;
}

.search-field .kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted-2);
    font-size: 11px;
    font-family: ui-monospace, monospace;
}

.category-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.category-tabs a {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    transition: 0.18s ease;
}

.category-tabs a:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.category-tabs a.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* Alphabet */
.alphabet-bar {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 20;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 7px;
    margin: 16px 0 8px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    scrollbar-width: none;
}

.alphabet-bar::-webkit-scrollbar {
    display: none;
}

.alphabet-bar a {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    flex-shrink: 0;
    transition: 0.15s ease;
}

.alphabet-bar a:hover,
.alphabet-bar a.active {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.alphabet-bar a.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.letter-group {
    scroll-margin-top: calc(var(--header-h) + 64px);
    padding-top: 18px;
}

.letter-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.letter-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 2%, transparent);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-width: 0;
}

.platform-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: var(--shadow-sm);
}

.platform-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--brand, var(--accent));
    background: color-mix(in srgb, var(--brand, var(--accent)) 13%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--brand, var(--accent)) 22%, transparent);
    font-weight: 900;
    font-size: 17px;
}

.platform-icon.lg {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    font-size: 24px;
}

.platform-body {
    min-width: 0;
    flex: 1;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 750;
    font-size: 14.5px;
    line-height: 1.3;
}

.platform-name .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-desc {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-arrow {
    color: var(--muted-2);
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.platform-card:hover .platform-arrow {
    transform: translateX(3px);
    color: var(--accent-text);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.6;
    white-space: nowrap;
}

.status-full {
    background: var(--ok-soft);
    color: var(--ok);
}

.status-partial {
    background: var(--warn-soft);
    color: var(--warn);
}

.status-planned {
    background: var(--surface-3);
    color: var(--muted);
}

.status-engine {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.empty-state {
    padding: 56px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

.empty-state strong {
    color: var(--text);
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

/* Alerts */
.alert {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13.5px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    line-height: 1.7;
}

.alert-error {
    background: var(--bad-soft);
    border-color: color-mix(in srgb, var(--bad) 25%, transparent);
    color: var(--bad);
}

.alert-success {
    background: var(--ok-soft);
    border-color: color-mix(in srgb, var(--ok) 25%, transparent);
    color: var(--ok);
}

.alert-warn {
    background: var(--warn-soft);
    border-color: color-mix(in srgb, var(--warn) 25%, transparent);
    color: var(--warn);
}

.alert-info {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 22%, transparent);
    color: var(--accent-text);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    margin: 20px 0 14px;
}

.breadcrumb a:hover {
    color: var(--accent-text);
}

/* Platform detail */
.platform-hero {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.platform-hero-main {
    flex: 1;
    min-width: 0;
}

.platform-hero h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-hero p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.platform-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.meta-pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.account-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    margin-bottom: 18px;
    font-size: 13px;
}

.account-banner .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-3);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 800;
    overflow: hidden;
    flex-shrink: 0;
}

.account-banner .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-banner strong {
    display: block;
    font-size: 13px;
}

.account-banner small {
    color: var(--muted);
    font-size: 12px;
}

.panel {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 2%, transparent);
    margin-bottom: 16px;
}

.panel h2 {
    margin: 0 0 4px;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.panel-sub {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 12.5px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row label {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 650;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    outline: none;
    transition: 0.18s ease;
    font-size: 14px;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
    background: var(--surface);
}

.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-row .input {
    flex: 1;
    min-width: 200px;
}

select.input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted-2) 50%), linear-gradient(135deg, var(--muted-2) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.hint code {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 5px;
    font-size: 11px;
}

/* Music search */
.song-list {
    display: grid;
    gap: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.16s ease;
}

.song-item:hover {
    background: var(--surface-2);
    border-color: var(--line);
}

.song-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-3);
    flex-shrink: 0;
}

.song-body {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-weight: 700;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-artist {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.song-actions form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.song-actions select {
    padding: 7px 26px 7px 9px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 11.5px;
    outline: none;
}

/* Result */
.result-head {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.result-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 13px;
    object-fit: cover;
    background: var(--surface-3);
}

.result-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-info h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.result-author {
    color: var(--muted);
    font-size: 13px;
    margin-top: 7px;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.player-card {
    padding: 14px;
    border-radius: var(--radius);
    background: #0b0d16;
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.player-card video {
    width: 100%;
    max-height: 66vh;
    border-radius: 11px;
    background: #000;
    display: block;
}

.player-card audio {
    width: 100%;
    display: block;
}

.player-note {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--warn-soft);
    border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
    color: var(--warn);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.track-list {
    display: grid;
    gap: 8px;
}

.track-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}

.track-kind {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: 14px;
    flex-shrink: 0;
}

.track-main {
    flex: 1;
    min-width: 160px;
}

.track-label {
    font-size: 13.5px;
    font-weight: 700;
}

.track-sub {
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 2px;
}

.track-actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.image-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-card .image-actions {
    padding: 8px;
    display: flex;
    justify-content: center;
}

.expiry-note {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.lyrics {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    max-height: 340px;
    overflow: auto;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

details {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 12px 14px;
    margin-top: 12px;
}

details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

/* Footer */
.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    color: var(--muted);
    font-size: 12.5px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--accent-text);
}

/* Utility */
.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero > * {
    animation: fadeUp 0.5s ease both;
}

.hero .paste-box { animation-delay: 0.08s; }
.hero .hero-hints { animation-delay: 0.14s; }

/* Responsive */
@media (max-width: 820px) {
    .container,
    .container-narrow {
        width: min(100% - 24px, 1200px);
    }

    .header-inner {
        gap: 12px;
    }

    .site-nav a[data-hide-mobile] {
        display: none;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        padding: 42px 0 24px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .paste-box {
        flex-direction: column;
        padding: 8px;
    }

    .paste-box .btn {
        width: 100%;
    }

    .result-head {
        grid-template-columns: 1fr;
    }

    .result-cover {
        max-height: 260px;
    }

    .platform-hero {
        flex-direction: column;
    }

    .platform-hero h1 {
        font-size: 23px;
    }

    .alphabet-bar {
        top: calc(var(--header-h) + 4px);
    }

    .song-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 520px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        padding: 13px;
    }

    .site-nav a {
        padding: 8px 9px;
        font-size: 13px;
    }

    .result-info h1 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
