:root {
    --bg: #07060f;
    --bg-2: #0e0b1c;
    --panel: rgba(18, 14, 36, 0.82);
    --text: #f3eefc;
    --muted: #9b93b8;
    --line: rgba(122, 243, 255, 0.16);
    --cyan: #7af3ff;
    --magenta: #ff4fd1;
    --glow: 0 0 24px rgba(255, 79, 209, 0.35);
    --max: 1180px;
}

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

html, body {
    min-height: 100%;
    color: var(--text);
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(900px 480px at 12% -10%, rgba(255, 79, 209, 0.18), transparent 55%),
        radial-gradient(800px 500px at 92% 8%, rgba(122, 243, 255, 0.12), transparent 50%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 40%);
}

body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    z-index: 0;
}

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

.wrap {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(7, 6, 15, 0.72);
    border-bottom: 1px solid var(--line);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Syne, "Noto Sans SC", sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 18px;
}

.brand .mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #160b22;
    border: 1px solid var(--magenta);
    box-shadow: var(--glow);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.brand .mark span {
    width: 10px;
    height: 10px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.brand small {
    display: block;
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 400;
    letter-spacing: 0.18em;
    font-size: 10px;
    color: var(--muted);
}

nav { display: flex; gap: 8px; }
nav a {
    padding: 8px 14px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
}
nav a.active, nav a:hover {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(122, 243, 255, 0.45);
}

.hero {
    padding: 56px 0 8px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: stretch;
}

.kicker {
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1 {
    font-family: Syne, "Noto Sans SC", sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.02em;
}

.hero h1 em {
    font-style: normal;
    color: var(--magenta);
    text-shadow: 0 0 22px rgba(255, 79, 209, 0.45);
}

.hero p {
    margin-top: 16px;
    color: var(--muted);
    max-width: 38em;
    font-size: 15px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.15s ease;
}

.btn.primary {
    background: linear-gradient(90deg, #ff4fd1, #ff7ae0);
    border-color: transparent;
    color: #1a0616;
    font-weight: 700;
    box-shadow: var(--glow);
}

.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.disabled, .btn[aria-disabled="true"] {
    opacity: 0.38;
    pointer-events: none;
}

.dl-box {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px;
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.dl-box h2 {
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--cyan);
    margin-bottom: 6px;
}

.dl-ver { font-size: 12px; color: var(--muted); min-height: 1.4em; margin-bottom: 14px; }
.btns { display: flex; flex-direction: column; gap: 10px; }
.btns .btn { width: 100%; }

section.library { padding: 40px 0 72px; }

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

.section-head h2 {
    font-family: Syne, "Noto Sans SC", sans-serif;
    font-size: 22px;
}

.section-head span { color: var(--muted); font-size: 12px; letter-spacing: 0.16em; }

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

.card {
    display: flex;
    flex-direction: column;
    background: #110d22;
    border: 1px solid var(--line);
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 79, 209, 0.55);
    box-shadow: 0 12px 40px rgba(255, 79, 209, 0.12);
}

.cover {
    height: 148px;
    background: linear-gradient(145deg, #24183d, #0c1c28) center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 48px;
    background: linear-gradient(transparent, #110d22);
}

.tag {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    color: var(--cyan);
    border: 1px solid rgba(122, 243, 255, 0.4);
    background: rgba(0, 0, 0, 0.45);
}

.meta { padding: 14px 14px 16px; }
.meta h3 { font-size: 16px; font-weight: 700; }
.meta p { color: var(--muted); font-size: 13px; margin-top: 6px; min-height: 2.5em; }
.meta time { display: block; margin-top: 8px; font-size: 11px; color: #6f6790; letter-spacing: 0.08em; }

.empty, .err {
    grid-column: 1 / -1;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(16, 12, 32, 0.5);
}

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

.page { padding: 48px 0 80px; }
.page h1 {
    font-family: Syne, "Noto Sans SC", sans-serif;
    font-size: 36px;
    margin-bottom: 10px;
}
.page .lead { color: var(--muted); max-width: 40em; margin-bottom: 28px; }

.play-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
}

.play-bar h1 { font-size: 18px; font-family: Syne, "Noto Sans SC", sans-serif; }

.stage {
    height: calc(100vh - 140px);
    min-height: 420px;
    background: #000;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(122, 243, 255, 0.08);
}

.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.foot {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 22px 0 36px;
}

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding-top: 32px; }
    nav a { padding: 8px 8px; }
}
