* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 50%, #eef0ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.logo-container img {
    width: 74px;
    height: auto;
}

.github-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #24292e;
    text-decoration: none;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    background-color: #fafbfc;
    transition: 0.2s ease;
}

.github-button:hover {
    background-color: #f3f4f6;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #24292e;
}

.subtitle {
    color: #586069;
    margin-bottom: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(108, 99, 255, 0.1);
    transition: transform 0.2s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    fill: #6c63ff;
}

.card h3 {
    margin-bottom: 1rem;
    color: #24292e;
}

.input-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.prefix {
    padding: 0.5rem;
    background: #f6f8fa;
    color: #586069;
    border-right: 1px solid #e1e4e8;
}

input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    outline: none;
}

.analyze-button {
    width: 100%;
    padding: 0.75rem;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.analyze-button:hover {
    background: #5b54d6;
}

.upload-zone {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 2px dashed #e1e4e8;
    border-radius: 6px;
    background: #f6f8fa;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-zone:hover {
    border-color: #6c63ff;
    background: #f8f9ff;
}

.support-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
    margin-top: 1.5rem;
    text-align: center;
}

.support-button:hover {
    background: #5b54d6;
}

.partner-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.partner-link {
    display: block;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    color: #24292e;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s ease;
    border: 1px solid #e1e4e8;
    backdrop-filter: blur(5px);
}

.partner-link:hover {
    background: #f0f1f4;
    border-color: #6c63ff;
    color: #6c63ff;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.project-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.github-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(82, 168, 236, 0.9);
    outline-offset: 3px;
}

.logo-container:focus-visible {
    border-radius: 8px;
}

.github-icon {
    margin-right: 4px;
}

footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.license-text {
    color: #666;
    font-size: 14px;
}

.license-text a {
    color: gray;
    text-decoration: none;
}

.license-text a:visited {
    color: gray;
}

.license-text a:hover {
    color: gray;
    text-decoration: underline;
}

body.home-page {
    color: #e5eefb;
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 184, 166, 0.28), transparent 28rem),
        radial-gradient(circle at 86% 18%, rgba(251, 191, 36, 0.18), transparent 24rem),
        linear-gradient(135deg, #08111f 0%, #0d1b2f 48%, #061f1e 100%);
}

body.home-page header {
    color: #e5eefb;
    background: rgba(8, 17, 31, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

body.home-page .project-name {
    color: #f8fafc;
}

body.home-page .github-button {
    color: #e5eefb;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.22);
}

body.home-page .github-button:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(94, 234, 212, 0.42);
}

body.home-page footer {
    background: rgba(8, 17, 31, 0.78);
    border-top-color: rgba(148, 163, 184, 0.16);
}

body.home-page .license-text,
body.home-page .license-text a,
body.home-page .license-text a:visited {
    color: #94a3b8;
}

.usage-section.player-guide-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.player-guide-section .section-copy {
    display: flex;
    grid-column: 1 / -1;
    grid-row: auto;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.player-guide-section .section-copy h2 {
    margin-bottom: 0;
}

.player-guide-section .section-copy p {
    max-width: 460px;
    margin: 0;
    text-align: right;
}

.player-guide-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
    color: #d1fae5;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
}

.player-guide-card h3 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.player-guide-card p {
    margin: 0.35rem 0 0.75rem;
}

.player-guide-card code,
.docs-section code,
.api-guide-card code,
.docs-hero code {
    color: #d1fae5;
    background: rgba(2, 6, 23, 0.42);
    border-radius: 6px;
    padding: 0.1rem 0.32rem;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.player-guide-card > code {
    display: block;
    padding: 0.75rem;
    font-size: 0.96rem;
}

.player-guide-card dl {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.player-guide-card dt {
    color: #99f6e4;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.35;
}

.player-guide-card dd {
    margin: 0.16rem 0 0;
}

.docs-shell {
    width: min(920px, 100%);
    max-width: 920px;
}

.docs-hero {
    margin-bottom: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.docs-kicker,
.api-guide-card > span {
    color: #5eead4;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.docs-hero h1 {
    margin: 0.2rem 0 0.85rem;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.docs-hero span {
    display: block;
    max-width: 42rem;
    color: #a9bad0;
    font-size: 1.04rem;
}

.docs-section,
.api-guide-card {
    margin-top: 1rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.docs-section h2,
.api-guide-card h2 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.docs-section p,
.api-guide-card p,
.docs-list {
    color: #a9bad0;
}

.docs-list {
    padding-left: 1.25rem;
}

.docs-section pre,
.api-guide-card pre {
    margin: 0.9rem 0 0;
    padding: 1rem;
    overflow: auto;
    color: #d1fae5;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    line-height: 1.62;
}

.docs-section pre code,
.api-guide-card pre code {
    color: inherit;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.api-guide-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.page-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-shell {
    width: min(1180px, 100%);
    max-width: 1180px;
    padding: 3.25rem 2rem 4rem;
    text-align: left;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 180px);
}

.hero-logo {
    width: 178px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 16px 36px rgba(45, 212, 191, 0.26));
}

.hero-copy h1 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    font-weight: 900;
    line-height: 0.9;
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 1rem;
    color: #d9fff7;
    font-size: clamp(1.35rem, 2.5vw, 2.05rem);
    font-weight: 760;
    line-height: 1.22;
}

.hero-text {
    max-width: 590px;
    color: #a9bad0;
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.home-primary-link,
.home-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.15rem;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.home-primary-link {
    color: #042f2e;
    background: linear-gradient(90deg, #ccfbf1, #5eead4);
    box-shadow: 0 18px 44px rgba(45, 212, 191, 0.28);
}

.home-secondary-link {
    color: #e5eefb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.home-primary-link:hover,
.home-secondary-link:hover {
    transform: translateY(-2px);
}

.home-secondary-link:hover {
    background: rgba(20, 184, 166, 0.16);
    border-color: rgba(94, 234, 212, 0.45);
}

.bridge-visual {
    position: relative;
}

.bridge-visual::before {
    position: absolute;
    inset: -22px;
    content: "";
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.22), rgba(251, 191, 36, 0.14));
    border-radius: 18px;
    filter: blur(24px);
}

.bridge-panel {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(6, 78, 59, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.bridge-panel::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(8, 17, 31, 0.36), rgba(8, 17, 31, 0.72));
}

.panel-topbar,
.flow-row,
.lyric-preview,
.status-grid {
    position: relative;
    z-index: 1;
}

.panel-topbar {
    display: flex;
    gap: 0.42rem;
    margin-bottom: 1.4rem;
}

.panel-topbar span {
    width: 10px;
    height: 10px;
    background: #5eead4;
    border-radius: 50%;
}

.panel-topbar span:nth-child(2) {
    background: #fbbf24;
}

.panel-topbar span:nth-child(3) {
    background: #38bdf8;
}

.flow-row {
    display: grid;
    grid-template-columns: 1fr 56px 1fr 56px 1fr;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.flow-node {
    min-height: 78px;
    display: grid;
    place-items: center;
    padding: 0.85rem;
    color: #d9fff7;
    font-weight: 850;
    text-align: center;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.flow-node.active {
    color: #042f2e;
    background: linear-gradient(135deg, #ccfbf1, #5eead4);
    border-color: rgba(204, 251, 241, 0.82);
}

.flow-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(94, 234, 212, 0.2), #5eead4, rgba(251, 191, 36, 0.4));
}

.lyric-preview {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    color: #d1fae5;
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.status-grid div {
    padding: 0.85rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.status-grid strong {
    display: block;
    color: #ffffff;
    font-size: 1.02rem;
}

.status-grid small {
    color: #99f6e4;
}

.capability-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 4rem;
}

.capability-band article,
.usage-section,
.api-section {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.capability-band article {
    padding: 1.2rem;
}

.capability-icon {
    display: block;
    margin-bottom: 1.1rem;
    color: #5eead4;
    font-size: 0.82rem;
    font-weight: 900;
}

.capability-band h2,
.usage-section h2,
.api-section h2 {
    margin-bottom: 0.6rem;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.25;
}

.capability-band p,
.section-copy p {
    color: #a9bad0;
    line-height: 1.78;
}

.usage-section,
.api-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1.2rem;
}

.section-copy {
    grid-row: span 2;
    padding: 0.35rem 0.4rem;
}

.code-card {
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
}

.code-title {
    padding: 0.72rem 0.9rem;
    color: #99f6e4;
    font-size: 0.82rem;
    font-weight: 850;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.code-card pre {
    margin: 0;
    padding: 1rem;
    overflow: auto;
}

.code-card code {
    color: #d1fae5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.75;
}

.api-list {
    display: grid;
    gap: 0.72rem;
}

.api-list a,
.api-doc-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(150px, auto);
    gap: 0.75rem;
    align-items: center;
    padding: 0.86rem 0.95rem;
    color: #e5eefb;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.api-list a:hover {
    transform: translateX(3px);
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(94, 234, 212, 0.42);
}

.api-doc-card {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
}

.api-doc-card small,
.api-doc-card pre {
    grid-column: 2;
}

.api-doc-card small {
    text-align: left;
}

.api-doc-card pre {
    margin: 0;
    padding: 0.72rem;
    overflow-x: auto;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 8px;
}

.api-doc-card code {
    display: block;
    font-size: 0.78rem;
    line-height: 1.6;
    overflow-wrap: normal;
    white-space: pre;
}

.api-list span {
    color: #042f2e;
    text-align: center;
    background: #5eead4;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 900;
}

.api-list strong {
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.api-list small {
    color: #a9bad0;
    text-align: right;
}

@media (max-width: 980px) {
    .home-shell {
        padding: 2.4rem 1.5rem 3.25rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
        min-height: auto;
    }

    .hero-copy,
    .bridge-visual {
        min-width: 0;
    }

    .capability-band,
    .usage-section,
    .api-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .player-guide-section .section-copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-guide-section .section-copy p {
        max-width: 100%;
        text-align: left;
    }

    .capability-band {
        margin-top: 3rem;
    }

    .section-copy {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    body.home-page header {
        padding: 0.9rem 1rem;
    }

    .home-shell {
        padding: 1.4rem 1rem 2.5rem;
    }

    .home-hero {
        gap: 1.5rem;
    }

    .hero-logo {
        width: 128px;
        height: auto;
        margin-bottom: 0.9rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.75rem, 14vw, 3.7rem);
        line-height: 0.94;
        overflow-wrap: anywhere;
    }

    .hero-lead {
        max-width: 100%;
        font-size: 1.28rem;
        line-height: 1.36;
    }

    .hero-text {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.72;
    }

    .hero-actions {
        gap: 0.7rem;
        margin-top: 1.35rem;
    }

    .home-primary-link,
    .home-secondary-link {
        flex: 1 1 150px;
        min-height: 48px;
    }

    .bridge-visual::before {
        inset: -12px;
        filter: blur(18px);
    }

    .bridge-panel {
        padding: 0.85rem;
    }

    .panel-topbar {
        margin-bottom: 0.9rem;
    }

    .flow-row {
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
        gap: 0.42rem;
        margin-bottom: 1rem;
    }

    .flow-node {
        min-height: 56px;
        padding: 0.55rem;
        font-size: 0.88rem;
    }

    .flow-line {
        width: 100%;
        height: 2px;
        justify-self: stretch;
        background: linear-gradient(90deg, rgba(94, 234, 212, 0.2), #5eead4, rgba(251, 191, 36, 0.4));
    }

    .lyric-preview {
        margin-bottom: 0.85rem;
        padding: 0.85rem;
        font-size: 0.78rem;
        overflow-wrap: anywhere;
    }

    .status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .status-grid div {
        padding: 0.62rem 0.5rem;
    }

    .status-grid strong {
        font-size: 0.84rem;
    }

    .status-grid small {
        font-size: 0.72rem;
    }

    .capability-band {
        gap: 0.85rem;
        margin-top: 0.9rem;
        margin-bottom: 2.5rem;
    }

    .capability-band article,
    .usage-section,
    .api-section {
        padding: 1rem;
    }

    .code-card pre {
        padding: 0.85rem;
    }

    .code-card code {
        font-size: 0.76rem;
        overflow-wrap: anywhere;
        white-space: pre-wrap;
    }

    .api-list a,
    .api-doc-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.45rem 0.7rem;
    }

    .api-list small,
    .api-doc-card pre {
        grid-column: 2;
        text-align: left;
    }
}

body.lyrics-admin-page {
    color: #0f172a;
    background:
        linear-gradient(180deg, rgba(4, 47, 46, 0) 0, rgba(4, 47, 46, 0.07) 58%, rgba(4, 47, 46, 0.14) 100%),
        linear-gradient(90deg, rgba(2, 44, 34, 0.14), transparent 24%, transparent 76%, rgba(2, 44, 34, 0.12)),
        linear-gradient(180deg, #042f2e 0, #064e3b 260px, #14534f 345px, #628a83 520px, #9bb5af 720px, #adc4be 100%);
    background-attachment: fixed;
}

body.lyrics-admin-page header {
    color: #ecfeff;
    background: rgba(4, 47, 46, 0.86);
    border-bottom: 1px solid rgba(204, 251, 241, 0.14);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

body.lyrics-admin-page .project-name {
    color: #ecfeff;
}

body.lyrics-admin-page .github-button {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(204, 251, 241, 0.22);
}

body.lyrics-admin-page .github-button:hover {
    background: rgba(20, 184, 166, 0.2);
}

body.lyrics-admin-page footer {
    background: rgba(199, 218, 213, 0.92);
    border-top-color: rgba(15, 118, 110, 0.18);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    color: #ccfbf1;
    text-decoration: none;
    background: rgba(4, 47, 46, 0.58);
    border: 1px solid rgba(204, 251, 241, 0.16);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 760;
}

.admin-tabs a:hover,
.admin-tabs a.active {
    color: #042f2e;
    background: #99f6e4;
    border-color: #99f6e4;
}

.lyrics-admin {
    width: min(1280px, 100%);
    max-width: 1280px;
    padding: 2rem;
    text-align: left;
}

.lyrics-hero,
.lyrics-controls,
.lyrics-upload-panel,
.lyrics-layout {
    width: 100%;
}

.lyrics-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1.75rem;
    overflow: hidden;
    color: #ecfeff;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 36%),
        linear-gradient(135deg, #042f2e 0%, #0f766e 62%, #14b8a6 100%);
    border: 1px solid rgba(204, 251, 241, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(4, 47, 46, 0.34);
}

.lyrics-hero::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #5eead4, #fbbf24, #38bdf8);
}

.lyrics-title-block {
    position: relative;
    z-index: 1;
}

.lyrics-title-block h1 {
    margin-bottom: 0.35rem;
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.12;
}

.lyrics-title-block .subtitle {
    max-width: 36rem;
    margin-bottom: 0;
    color: #ccfbf1;
}

.lyrics-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(122px, 1fr));
    gap: 0.75rem;
}

.lyrics-stats div {
    min-width: 122px;
    padding: 0.95rem 1rem;
    background: rgba(2, 44, 34, 0.34);
    border: 1px solid rgba(204, 251, 241, 0.22);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.lyrics-stats span {
    display: block;
    color: #ffffff;
    font-size: 1.62rem;
    font-weight: 800;
    line-height: 1;
}

.lyrics-stats small {
    display: block;
    margin-top: 0.38rem;
    color: #a7f3d0;
    font-size: 0.78rem;
    font-weight: 650;
}

.lyrics-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #063b37;
    border: 1px solid rgba(204, 251, 241, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(4, 47, 46, 0.2);
}

.search-wrap {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 0.9rem;
    color: #0f766e;
    font-weight: 800;
    transform: translateY(-50%);
}

.lyrics-controls input,
.lyrics-controls select,
.lyrics-upload-panel input,
.lyrics-upload-panel select,
.lyrics-upload-panel textarea {
    width: 100%;
    padding: 0.72rem 0.82rem;
    color: #0f172a;
    font: inherit;
    font-size: 0.94rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lyrics-controls input {
    padding-left: 2.25rem;
}

.lyrics-controls input::placeholder,
.lyrics-upload-panel input::placeholder,
.lyrics-upload-panel textarea::placeholder {
    color: #94a3b8;
}

.lyrics-controls select {
    cursor: pointer;
}

.lyrics-controls input:focus,
.lyrics-controls select:focus,
.lyrics-upload-panel input:focus,
.lyrics-upload-panel select:focus,
.lyrics-upload-panel textarea:focus {
    background: #ffffff;
    border-color: #5eead4;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2);
}

.lyrics-upload-panel input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 0.75rem;
    color: #022c22;
    background: #99f6e4;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
}

.primary-button,
.secondary-button,
.danger-button {
    min-height: 42px;
    padding: 0.68rem 1.05rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
    color: #042f2e;
    background: linear-gradient(90deg, #ccfbf1 0%, #5eead4 100%);
    border: 0;
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.24);
}

.secondary-button {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(204, 251, 241, 0.22);
    box-shadow: none;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover {
    transform: translateY(-1px);
}

.primary-button:hover {
    box-shadow: 0 16px 34px rgba(45, 212, 191, 0.32);
}

.secondary-button:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(153, 246, 228, 0.42);
}

.lyrics-upload-panel {
    margin: 1rem 0 1.25rem;
    padding: 1.15rem;
    color: #ecfeff;
    background:
        linear-gradient(120deg, rgba(251, 191, 36, 0.16), transparent 42%),
        linear-gradient(135deg, #115e59 0%, #0f766e 58%, #134e4a 100%);
    border: 1px solid rgba(204, 251, 241, 0.2);
    border-radius: 8px;
    box-shadow: 0 20px 52px rgba(15, 118, 110, 0.22);
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-heading h2 {
    margin-bottom: 0.22rem;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.panel-heading p {
    color: #ccfbf1;
    font-size: 0.9rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.lyrics-upload-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    color: #ecfeff;
    font-size: 0.86rem;
    font-weight: 750;
}

.lyrics-textarea-label {
    margin-bottom: 0.9rem;
}

.lyrics-upload-panel textarea {
    min-height: 138px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-card {
    display: flex;
    min-height: 154px;
    padding: 1.25rem;
    color: #ecfeff;
    text-decoration: none;
    flex-direction: column;
    justify-content: space-between;
    background: #082f2d;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-card:hover {
    background: #0f3f3b;
    border-color: rgba(94, 234, 212, 0.45);
    transform: translateY(-1px);
}

.admin-card strong {
    color: #ffffff;
    font-size: 1.12rem;
}

.admin-card span {
    color: #99f6e4;
    font-size: 0.92rem;
}

.scope-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1rem;
    color: #ecfeff;
    font-size: 0.9rem;
    font-weight: 740;
}

.scope-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.scope-row input {
    width: auto;
}

.new-key-box {
    margin-top: 1rem;
    padding: 0.9rem;
    color: #022c22;
    background: #ccfbf1;
    border-radius: 8px;
}

.new-key-box strong,
.new-key-box code {
    display: block;
}

.new-key-box code {
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
}

.admin-key-panel {
    min-height: 360px;
}

.admin-key-list {
    display: grid;
}

.admin-key-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(204, 251, 241, 0.1);
}

.admin-key-item.disabled {
    opacity: 0.58;
}

.admin-key-main {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}

.admin-key-main strong {
    color: #ffffff;
    font-size: 1rem;
}

.admin-key-main span,
.admin-key-main small {
    color: #99f6e4;
    overflow-wrap: anywhere;
}

.admin-key-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-upstream-panel {
    min-height: 460px;
}

.admin-upstream-list {
    display: grid;
}

.admin-upstream-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(204, 251, 241, 0.1);
}

.admin-upstream-item.disabled {
    opacity: 0.62;
}

.admin-upstream-main {
    display: grid;
    gap: 0.52rem;
    min-width: 0;
}

.admin-upstream-header {
    display: flex;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
}

.admin-upstream-heading {
    display: grid;
    gap: 0.34rem;
    min-width: 0;
}

.admin-upstream-main strong {
    color: #ffffff;
    font-size: 1rem;
}

.admin-upstream-main span,
.admin-upstream-main small,
.admin-upstream-main code {
    color: #99f6e4;
    overflow-wrap: anywhere;
}

.admin-upstream-main code {
    color: #d1fae5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.admin-upstream-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.72rem;
    padding-top: 0.72rem;
    border-top: 1px solid rgba(204, 251, 241, 0.08);
    min-width: 0;
}

.admin-upstream-actions .primary-button,
.admin-upstream-actions .secondary-button,
.admin-upstream-actions .danger-button {
    min-width: 64px;
    min-height: 34px;
    padding: 0.46rem 0.72rem;
    font-size: 0.84rem;
    line-height: 1.1;
}

.upstream-form-grid,
.upstream-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
    grid-column: 1 / -1;
}

.upstream-edit-grid {
    display: grid;
    gap: 0.72rem;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(204, 251, 241, 0.1);
}

.upstream-edit-grid input,
.upstream-edit-grid textarea {
    width: 100%;
    padding: 0.62rem 0.72rem;
    color: #0f172a;
    font: inherit;
    font-size: 0.88rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    outline: none;
}

.upstream-edit-grid textarea {
    min-height: 86px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.upstream-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.36rem;
    color: #ccfbf1;
    font-size: 0.8rem;
    font-weight: 740;
}

.upstream-test-result.error {
    color: #fecaca;
}

.admin-log-controls {
    grid-template-columns: minmax(220px, 1fr) 180px auto;
}

.admin-log-panel {
    min-height: 560px;
}

.admin-log-content {
    min-height: 560px;
    max-height: 72vh;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    color: #d1fae5;
    background: #061f1e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.58;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-stats-summary {
    grid-template-columns: repeat(4, minmax(118px, 1fr));
}

.admin-stats-controls {
    grid-template-columns: minmax(220px, 260px) auto minmax(180px, 1fr);
    align-items: center;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat-tile {
    display: grid;
    gap: 0.42rem;
    min-height: 132px;
    padding: 1.05rem;
    color: #ecfeff;
    background:
        linear-gradient(140deg, rgba(20, 184, 166, 0.16), transparent 58%),
        #082f2d;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}

.admin-stat-tile small {
    color: #99f6e4;
    font-size: 0.78rem;
    font-weight: 760;
}

.admin-stat-tile strong {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 850;
    line-height: 1.05;
}

.admin-stat-tile span {
    color: #ccfbf1;
    font-size: 0.88rem;
}

.admin-stats-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stats-panel {
    min-height: 360px;
}

.admin-stats-wide {
    min-height: auto;
    margin-bottom: 1rem;
}

.table-wrap {
    width: 100%;
    overflow: auto;
}

.stats-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    color: #d1fae5;
    font-size: 0.88rem;
}

.stats-table th,
.stats-table td {
    padding: 0.82rem 0.95rem;
    text-align: left;
    border-bottom: 1px solid rgba(204, 251, 241, 0.1);
    vertical-align: top;
}

.stats-table th {
    color: #99f6e4;
    background: rgba(2, 44, 34, 0.4);
    font-size: 0.76rem;
    font-weight: 820;
}

.stats-table td {
    overflow-wrap: anywhere;
}

.stats-table .numeric-cell {
    text-align: right;
    white-space: nowrap;
}

.stats-empty-cell {
    color: #99f6e4;
    text-align: center;
}

.admin-suggestion-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1rem;
}

.admin-suggestion-item {
    display: grid;
    gap: 0.34rem;
    min-height: 108px;
    padding: 0.95rem;
    color: #ecfeff;
    background: rgba(4, 47, 46, 0.62);
    border: 1px solid rgba(204, 251, 241, 0.14);
    border-radius: 8px;
}

.admin-suggestion-item small {
    color: #99f6e4;
    font-weight: 760;
}

.admin-suggestion-item strong {
    color: #ffffff;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.admin-suggestion-item span {
    color: #ccfbf1;
    font-size: 0.88rem;
}

.lyrics-layout {
    display: grid;
    grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.5fr);
    gap: 1rem;
}

.lyrics-file-list,
.lyrics-preview-panel {
    min-height: 560px;
    overflow: hidden;
    color: #ecfeff;
    background: #082f2d;
    border: 1px solid rgba(15, 118, 110, 0.24);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.2);
}

.lyrics-preview-panel {
    background: #082f2d;
    border-color: rgba(15, 118, 110, 0.24);
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 54px;
    padding: 0.9rem 1rem;
    color: #ecfeff;
    background: rgba(2, 44, 34, 0.72);
    border-bottom: 1px solid rgba(204, 251, 241, 0.14);
}

.lyrics-preview-panel .list-header {
    background: rgba(2, 44, 34, 0.72);
    border-bottom-color: rgba(204, 251, 241, 0.14);
}

.list-header strong {
    font-weight: 800;
}

#fileList {
    max-height: 660px;
    overflow: auto;
}

#fileList::-webkit-scrollbar,
.lyrics-preview::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#fileList::-webkit-scrollbar-thumb,
.lyrics-preview::-webkit-scrollbar-thumb {
    background: #2dd4bf;
    border-radius: 999px;
}

.lyrics-file-item {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    color: #d1fae5;
    text-align: left;
    background: #082f2d;
    border: 0;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(204, 251, 241, 0.09);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lyrics-file-item:hover {
    background: #0f3f3b;
}

.lyrics-file-item.active {
    color: #ffffff;
    background: #115e59;
    border-left-color: #5eead4;
}

.file-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.file-name,
.file-meta {
    display: block;
    overflow-wrap: anywhere;
}

.file-name {
    color: inherit;
    font-weight: 760;
    line-height: 1.36;
}

.file-badge {
    flex: 0 0 auto;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.file-badge.manual {
    color: #022c22;
    background: #99f6e4;
}

.file-badge.cache {
    color: #0f172a;
    background: #fde68a;
}

.file-meta {
    margin-top: 0.38rem;
    color: #99f6e4;
    font-size: 0.82rem;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#previewMeta {
    color: #99f6e4;
    font-size: 0.82rem;
}

.lyrics-preview,
.lyrics-editor {
    min-height: 506px;
    max-height: 660px;
    margin: 0;
    padding: 1.05rem;
    overflow: auto;
    color: #d1fae5;
    white-space: pre-wrap;
    word-break: break-word;
    background: #082f2d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92rem;
    line-height: 1.65;
}

.lyrics-editor {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    outline: none;
    resize: vertical;
}

.lyrics-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(94, 234, 212, 0.36);
}

.lyrics-editor[hidden] {
    display: none;
}

.danger-button {
    color: #ffffff;
    background: #dc2626;
    border: 0;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.22);
}

.danger-button:hover {
    background: #b91c1c;
}

.danger-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.status-text {
    min-height: 1.4rem;
    color: #fef3c7;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.status-text.error {
    color: #fecaca;
}

.empty-state {
    padding: 1.5rem;
    color: #99f6e4;
}

@media (max-width: 880px) {
    body.lyrics-admin-page {
        background:
            linear-gradient(180deg, rgba(4, 47, 46, 0) 0, rgba(4, 47, 46, 0.08) 62%, rgba(4, 47, 46, 0.14) 100%),
            linear-gradient(90deg, rgba(2, 44, 34, 0.12), transparent 26%, transparent 74%, rgba(2, 44, 34, 0.1)),
            linear-gradient(180deg, #042f2e 0, #064e3b 320px, #14534f 430px, #739892 590px, #a7bdb7 100%);
    }

    .lyrics-admin {
        padding: 1.25rem;
    }

    .lyrics-hero,
    .panel-heading {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .panel-heading {
        flex-direction: column;
    }

    .lyrics-controls,
    .admin-log-controls,
    .admin-stats-controls,
    .upload-grid,
    .upstream-form-grid,
    .upstream-edit-grid,
    .lyrics-layout,
    .admin-stats-layout,
    .admin-suggestion-list,
    .admin-card-grid,
    .admin-key-item {
        grid-template-columns: 1fr;
    }

    .lyrics-stats,
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-table {
        min-width: 560px;
    }

    .preview-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 0.4rem;
    }

    .admin-key-actions {
        justify-content: flex-start;
    }

    .admin-upstream-actions {
        justify-content: flex-start;
    }

    .admin-upstream-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .player-guide-section {
        margin-top: 1rem;
        padding-top: 1.2rem;
    }

    .lyrics-stats,
    .admin-stats-grid,
    .admin-stats-summary {
        grid-template-columns: 1fr;
    }

    .admin-stat-tile {
        min-height: 112px;
    }
}
