﻿:root {
    --ink: #f8fbff;
    --muted: #a7b7cf;
    --panel: rgba(10, 13, 28, .72);
    --panel-strong: rgba(13, 17, 35, .88);
    --line: rgba(172, 224, 255, .22);
    --cyan: #46e6ff;
    --pink: #ff4fc3;
    --lime: #b6ff6a;
    --gold: #ffd66b;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(4, 7, 18, .62), rgba(6, 7, 18, .92) 45%, #050711 100%),
        url("Images/kpop-stage-hero.png") center top / cover fixed no-repeat,
        #050711;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 79, 195, .18), transparent 28%, transparent 72%, rgba(70, 230, 255, .18)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 18px);
    mix-blend-mode: screen;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 22px;
}

.top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}

.top-links a {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(8, 11, 25, .58);
    color: #eaf7ff;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.top-links a:hover {
    border-color: rgba(70, 230, 255, .72);
    color: #ffffff;
}

.theme-toggle {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #eaf7ff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.theme-toggle:hover {
    border-color: rgba(255, 214, 107, .72);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(11, 15, 34, .82), rgba(9, 12, 28, .72) 44%, rgba(20, 8, 28, .76)),
        rgba(5, 7, 18, .75);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .48),
        inset 0 0 0 1px rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 79, 195, .28), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(70, 230, 255, .22), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,.07), transparent 36%);
}

.stage-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
    height: 230px;
    background: url("Images/kpop-stage-hero.png") center / cover no-repeat;
    opacity: .52;
    mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%, #000 100%);
}

.title-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(255, 79, 195, .52);
    border-radius: 8px;
    background: rgba(255, 79, 195, .12);
    color: #ffd8f3;
    font-size: 12px;
    font-weight: 800;
}

.site-title {
    margin: 12px 0 0;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(30px, 4.8vw, 56px);
    line-height: 1.08;
    letter-spacing: 0;
    text-shadow: 0 0 28px rgba(70, 230, 255, .26);
}

.site-subtitle {
    max-width: 700px;
    margin: 12px 0 0;
    color: #d7e4f5;
    font-size: 16px;
    line-height: 1.7;
}

.status-stack {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    gap: 7px;
    justify-items: end;
}

.status-pill {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(182, 255, 106, .52);
    border-radius: 8px;
    background: rgba(182, 255, 106, .12);
    color: #dcffb3;
    font-size: 13px;
    font-weight: 800;
}

.status-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-console {
    position: relative;
    padding: 16px;
    border: 1px solid rgba(70, 230, 255, .22);
    border-radius: 8px;
    background: rgba(3, 6, 17, .54);
    box-shadow: inset 0 0 28px rgba(70, 230, 255, .06);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.search-input {
    width: 100% !important;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(211, 232, 255, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    color: #101526;
    font-size: 16px;
    outline: none;
}

.search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(70, 230, 255, .18), 0 0 30px rgba(70, 230, 255, .18);
}

.action-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn,
input[type="submit"].btn,
input[type="button"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255, 79, 195, .72);
    border-radius: 8px;
    background: linear-gradient(135deg, #ff3eb8, #7c5cff 52%, #21c8ff);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 79, 195, .22);
    text-decoration: none;
}

.btn:hover,
input[type="submit"].btn:hover,
input[type="button"].btn:hover {
    filter: brightness(1.08);
}

.btn-secondary,
input[type="submit"].btn-secondary,
input[type="button"].btn-secondary {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #eef8ff;
    box-shadow: none;
}

.btn-secondary:hover,
input[type="submit"].btn-secondary:hover,
input[type="button"].btn-secondary:hover {
    border-color: rgba(70, 230, 255, .62);
    background: rgba(70, 230, 255, .12);
}

.small-input {
    width: 76px !important;
    height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    color: #11192b;
}

.tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.quick-chip {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #dfeaff;
    font-weight: 700;
    cursor: pointer;
}

.quick-chip:hover {
    border-color: rgba(255, 214, 107, .72);
    color: #fff3c4;
}

.results-wrap {
    position: relative;
    margin-top: 20px;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #b9cae7;
    font-size: 12px;
    font-weight: 800;
}

.results-heading span:first-child {
    color: var(--cyan);
}

.results-box {
    width: 100% !important;
    min-height: 520px;
    height: min(68vh, 840px) !important;
    padding: 18px;
    border: 1px solid rgba(180, 194, 214, .55) !important;
    border-radius: 8px;
    background: #f8fafc !important;
    color: #166534 !important;
    font-family: "Microsoft YaHei", "PingFang SC", Consolas, monospace !important;
    font-size: 16px !important;
    line-height: 1.72;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .78),
        0 16px 38px rgba(0, 0, 0, .26);
    resize: vertical;
}

body[data-theme="night"] .results-box {
    border-color: rgba(130, 146, 170, .55) !important;
    background: #111827 !important;
    color: #bbf7d0 !important;
}

body[data-theme="day"] {
    color: #182235;
    background:
        linear-gradient(180deg, rgba(247, 250, 255, .86), rgba(236, 244, 255, .94)),
        url("Images/kpop-stage-hero.png") center top / cover fixed no-repeat,
        #eef4ff;
}

body[data-theme="day"]::before {
    background:
        linear-gradient(90deg, rgba(255, 79, 195, .08), transparent 36%, rgba(70, 230, 255, .08)),
        repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0, rgba(255,255,255,.28) 1px, transparent 1px, transparent 20px);
    mix-blend-mode: normal;
}

body[data-theme="day"] .top-links a,
body[data-theme="day"] .theme-toggle {
    border-color: rgba(33, 54, 82, .16);
    background: rgba(255, 255, 255, .76);
    color: #24364d;
}

body[data-theme="day"] .hero {
    border-color: rgba(33, 54, 82, .16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(244, 248, 255, .84)),
        rgba(255, 255, 255, .82);
}

body[data-theme="day"] .site-title {
    color: #111827;
    text-shadow: none;
}

body[data-theme="day"] .site-subtitle,
body[data-theme="day"] .results-heading,
body[data-theme="day"] .info-band {
    color: #46566d;
}

body[data-theme="day"] .search-console,
body[data-theme="day"] .info-band {
    border-color: rgba(33, 54, 82, .14);
    background: rgba(255, 255, 255, .72);
}

body[data-theme="day"] .btn-secondary,
body[data-theme="day"] input[type="submit"].btn-secondary,
body[data-theme="day"] input[type="button"].btn-secondary,
body[data-theme="day"] .link-button,
body[data-theme="day"] .quick-chip {
    border-color: rgba(33, 54, 82, .18);
    background: rgba(255, 255, 255, .82);
    color: #24364d;
}

body[data-theme="day"] .status-note {
    color: #5c6b80;
}

body[data-theme="day"] .site-footer {
    background: rgba(255, 255, 255, .86);
    color: #55657a;
}

body[data-theme="day"] .site-footer a {
    color: #40516a;
}

.info-band {
    position: relative;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #c4d2e8;
    font-size: 14px;
    line-height: 1.8;
}

.info-band span {
    display: block;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding: 12px;
    background: rgba(4, 7, 18, .86);
    color: #9fb0ca;
    text-align: center;
    font-size: 13px;
}

.site-footer a {
    color: #c9d9f2;
    text-decoration: none;
}

@media (max-width: 760px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 12px;
    }

    .top-links {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .top-links::-webkit-scrollbar {
        display: none;
    }

    .top-links a {
        flex: 0 0 auto;
    }

    .hero {
        padding: 18px;
    }

    .stage-art {
        width: 100%;
        height: 180px;
        opacity: .34;
        mask-image: linear-gradient(180deg, #000 0, transparent 100%);
        -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 100%);
    }

    .title-row,
    .search-panel {
        display: block;
    }

    .status-stack {
        justify-items: start;
        margin-top: 14px;
    }

    .search-input {
        margin-bottom: 10px;
    }

    .action-grid .btn,
    .action-grid input[type="submit"],
    .action-grid input[type="button"] {
        flex: 1 1 148px;
    }

    .results-heading {
        display: grid;
    }

    .results-box {
        min-height: 420px;
        font-size: 14px !important;
    }
}

/* Spotify link */
.spotify-link {
    border-color: rgba(30, 215, 96, .4) !important;
    background: rgba(30, 215, 96, .1) !important;
    color: #1ed760 !important;
}

.spotify-link:hover {
    background: rgba(30, 215, 96, .2) !important;
    border-color: rgba(30, 215, 96, .7) !important;
}
