:root {
    --bg: #f6f7f9;
    --bg-soft: #f1f2f5;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #ececf1;
    --text: #17171c;
    --text-soft: #3f414b;
    --muted: #777a87;
    --accent: #6657d9;
    --accent-strong: #5547c7;
    --accent-ink: #ffffff;
    --line: #e6e7eb;
    --line-strong: #d9dbe1;
    --shadow: 0 10px 30px rgba(27, 28, 36, 0.06);
    --radius-sm: 9px;
    --radius: 12px;
    --radius-lg: 18px;
    --container: 1280px;
}

html {
    scroll-padding-top: 88px;
}

body {
    padding-bottom: 88px;
    color: var(--text-soft);
    background: var(--bg);
    font-size: 16px;
}

body::selection {
    color: #fff;
    background: var(--accent);
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    border-color: var(--bg);
    background: #c8cad1;
}

.site-header {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
    min-height: 68px;
    gap: 22px;
}

.logo {
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: none;
    font-size: 18px;
}

.logo-type {
    color: var(--text);
    font-size: 18px;
    letter-spacing: -0.035em;
}

.logo-type small {
    display: none;
}

.search-wrap {
    width: min(100%, 460px);
}

.search-icon {
    left: 16px;
    color: #858894;
    font-size: 15px;
}

.search-box input[type="text"],
.search-box input[type="text"]:focus {
    height: 44px;
    padding: 0 50px 0 42px;
    border-color: var(--line);
    color: var(--text);
    background: var(--surface-2);
    box-shadow: none;
    font-size: 14px;
}

.search-box input[type="text"]:focus {
    border-color: rgba(102, 87, 217, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 87, 217, 0.08);
}

.search-box button[type="submit"] {
    right: 5px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    font-size: 14px;
}

.header-nav {
    gap: 20px;
}

.header-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.btn-menu {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-color: var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-2);
    font-size: 20px;
}

.site-layout {
    width: min(calc(100% - 48px), 1180px);
    padding: 24px 0 56px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.sidebar {
    display: none;
}

.sidebar-inner {
    top: 92px;
}

.side-label {
    margin-bottom: 7px;
    color: #9698a2;
    font-size: 12px;
    letter-spacing: 0.1em;
}

.main-nav {
    gap: 3px;
}

.main-nav a {
    min-height: 40px;
    padding: 0 11px;
    gap: 10px;
    border-radius: 9px;
    color: #696c78;
    font-size: 14px;
    font-weight: 650;
}

.main-nav a i {
    width: 18px;
    color: #8a8d98;
    font-size: 16px;
}

.main-nav a:hover,
.main-nav li:first-child a {
    border-color: var(--line);
    color: var(--text);
    background: #fff;
}

.main-nav a:hover i,
.main-nav li:first-child a i {
    color: var(--accent);
}

.sidebar-meta {
    margin-top: 20px;
    gap: 7px;
    color: #8a8d98;
    font-size: 12px;
    font-weight: 600;
}

.main-content > .sect:first-child,
.main-content > #dle-content:first-child > .sect:first-child {
    margin-top: 0;
}

.sect {
    margin-top: 38px;
}

.sect-header {
    margin-bottom: 14px;
    gap: 16px;
}

.eyebrow {
    gap: 7px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.09em;
}

.sect-title,
.sect-title-small {
    margin-top: 5px;
    color: var(--text);
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-index {
    display: none;
}

.sect-content {
    gap: 8px;
}

.sect-content.sect-cols > #dle-content {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: inherit;
    gap: inherit;
}

.sect-content.sect-cols > #dle-content > .track-item {
    margin-top: 0;
}

.sect-content > .bottom-nav,
.sect-content.sect-cols > #dle-content > .bottom-nav {
    grid-column: 1 / -1;
}

.track-item {
    min-height: 66px;
    padding: 8px;
    gap: 10px;
    border-color: var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
    grid-template-columns: 48px minmax(0, 1fr) 48px 34px;
}

.track-item:hover {
    border-color: #d3d0f3;
    background: #fff;
    box-shadow: 0 6px 18px rgba(34, 35, 45, 0.06);
    transform: translateY(-1px);
}

.track-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.track-play {
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 10px rgba(19, 20, 28, 0.16);
    font-size: 14px;
}

.track-play:hover,
.js-item-played .track-play {
    color: #fff;
    background: var(--accent);
}

.track-title {
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.track-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.track-meta {
    min-width: 0;
    align-items: flex-end;
    color: #92949e;
    font-size: 12px;
}

.track-quality {
    display: none;
}

.track-time {
    margin-top: 0;
}

.track-dl {
    width: 32px;
    height: 32px;
    border-color: transparent;
    color: #777a86;
    background: var(--surface-2);
    font-size: 14px;
}

.track-dl:hover {
    border-color: #dddaf6;
    color: var(--accent);
    background: #f1effc;
}

#dle-content > .track-item {
    margin-top: 8px;
}

.empty-state {
    padding: 22px;
    border-color: var(--line-strong);
    border-radius: 12px;
    color: var(--muted);
    background: #fff;
    font-size: 14px;
}

.speedbar {
    margin-bottom: 12px;
    gap: 8px;
    color: #8a8d97;
    font-size: 12px;
}

.speedbar a {
    color: #727581;
}

.track-hero {
    padding: 26px;
    gap: 28px;
    border-color: var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    grid-template-columns: 164px minmax(0, 1fr);
}

.fimg {
    width: 164px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(28, 29, 38, 0.1);
}

.cover-play {
    right: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    box-shadow: 0 7px 18px rgba(25, 26, 34, 0.18);
    font-size: 20px;
}

.track-hero h1 {
    margin-top: 9px;
    color: var(--text);
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.track-artist {
    margin-top: 8px;
    color: #555762;
    font-size: 18px;
}

.finfo {
    margin-top: 15px;
    gap: 6px;
}

.finfo li {
    min-height: 30px;
    padding: 0 10px;
    border-color: var(--line);
    color: #747783;
    background: var(--surface-2);
    font-size: 12px;
}

.finfo i {
    color: var(--accent);
    font-size: 12px;
}

.fmeta {
    margin-top: 18px;
    gap: 8px;
}

.fplay {
    min-height: 42px;
    padding: 0 18px;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.035em;
    text-transform: none;
}

.fdl {
    border-color: var(--line-strong);
    color: var(--text);
    background: #fff;
}

.fdl:hover {
    border-color: #d4d0f3;
    color: var(--accent);
    background: #f6f4ff;
}

.track-description {
    margin-top: 14px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.track-description h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.35;
}

.track-description p {
    max-width: 760px;
    margin: 0;
    color: #555863;
    font-size: 16px;
    line-height: 1.7;
}

.lyrics-panel {
    margin-top: 14px;
    padding: 24px;
    border-color: var(--line);
    border-radius: 16px;
    background: #fff;
}

.lyrics-heading {
    margin-bottom: 16px;
}

.lyrics-heading h2 {
    margin-top: 5px;
    color: var(--text);
    font-size: clamp(21px, 2.2vw, 27px);
}

.lyrics-heading > i {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-color: var(--line);
    border-radius: 10px;
    color: var(--accent);
    background: var(--surface-2);
    font-size: 16px;
}

.lyrics-content {
    max-width: 720px;
    color: #555863;
    font-size: 16px;
    line-height: 1.8;
}

.recommendations {
    margin-top: 38px;
}

.full-text {
    color: #4f525d;
}

.full-text a {
    color: var(--accent);
    text-decoration-color: rgba(102, 87, 217, 0.35);
}

.static-content,
.form-wrap,
.search-page,
.comment-form {
    padding: 26px;
    border-color: var(--line);
    border-radius: 16px;
    background: #fff;
}

.sub-title h1,
.mtitle,
.form-wrap h1 {
    font-size: clamp(27px, 3vw, 38px);
}

.searchtable td {
    color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea {
    border-color: var(--line-strong);
    color: var(--text);
    background: #fff;
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(102, 87, 217, 0.5);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 87, 217, 0.08);
}

.editor-group .wseditor,
.wseditor {
    border-color: var(--line) !important;
    background: #fff !important;
}

.comment-item {
    border-color: var(--line);
}

.comment-author,
.comment-text {
    color: var(--text);
}

.berrors {
    border-color: #dedaf6;
    color: #494654;
    background: #f5f3ff;
}

.berrors strong {
    color: var(--text);
}

.navigation a,
.navigation span,
.pprev a,
.pnext a {
    border-color: var(--line);
    color: var(--muted);
    background: #fff;
}

.footer {
    padding: 30px 0 22px;
    border-color: var(--line);
}

.footer-main {
    gap: 24px;
    grid-template-columns: 160px minmax(0, 1fr) auto;
}

.footer-brand {
    color: var(--text);
    font-size: 18px;
}

.footer-brand small,
.ft-desc,
.footer-links a {
    color: #7f828d;
    font-size: 12px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-color: var(--line);
    color: #999ba5;
}

.wplayer {
    bottom: 12px;
    border-color: var(--line-strong);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(28, 29, 38, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

.audioplayer {
    height: 64px;
    padding: 7px 14px;
    gap: 12px;
}

.ap-desc {
    width: min(30%, 300px);
    gap: 10px;
}

.ap-img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 8px;
}

.ap-title {
    color: var(--text);
    font-size: 13px;
}

.ap-artist {
    color: var(--muted);
    font-size: 12px;
}

.ap-btns {
    gap: 9px;
}

.ap-prev,
.ap-next,
.audioplayer-volume-button a,
.ap-dl {
    color: #777a86;
}

.ap-prev:hover,
.ap-next:hover,
.audioplayer-volume-button a:hover,
.ap-dl:hover {
    color: var(--accent);
}

.audioplayer-playpause a {
    width: 38px;
    height: 38px;
    box-shadow: none;
    font-size: 18px;
}

.audioplayer-bar {
    height: 4px;
    background: #e2e3e8;
}

.audioplayer-bar-loaded {
    background: #cfd1d8;
}

.ap-time {
    color: #8d909a;
}

.audioplayer-volume-adjust {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 29, 38, 0.13);
}

.audioplayer-volume-adjust > div {
    background: #e1e2e7;
}

.side-panel {
    padding-top: 70px;
    border-color: var(--line);
    background: #fff;
    box-shadow: 24px 0 55px rgba(28, 29, 38, 0.14);
}

.close-overlay {
    background: rgba(28, 29, 38, 0.24);
}

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

.mgf,
.mgf1,
.mgf2,
.mgf3,
.mgf4,
.mgf5 {
    color: #aaaeb8;
}

@media (max-width: 1180px) {
    .site-layout {
        gap: 0;
    }
}

@media (max-width: 860px) {
    body {
        padding-bottom: 78px;
    }

    .site-layout {
        padding-top: 18px;
    }

    .sect-content {
        gap: 7px;
    }

    .track-hero {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .fimg {
        width: 150px;
    }

    .footer-main {
        grid-template-columns: 150px 1fr;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 126px;
    }

    .header-inner {
        padding: 9px 0;
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .search-box input[type="text"],
    .search-box input[type="text"]:focus {
        height: 42px;
    }

    .sect {
        margin-top: 32px;
    }

    .track-hero {
        padding: 18px;
        gap: 18px;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .fimg {
        width: 118px;
    }

    .cover-play {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .track-hero h1 {
        margin-top: 5px;
        font-size: clamp(25px, 7vw, 34px);
    }

    .track-artist {
        margin-top: 5px;
        font-size: 16px;
    }

    .finfo {
        margin-top: 10px;
    }

    .finfo li:nth-child(3),
    .finfo li:nth-child(4) {
        display: none;
    }

    .fmeta {
        margin-top: 12px;
        gap: 6px;
    }

    .fplay {
        min-height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

    .lyrics-panel {
        padding: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .wplayer {
        bottom: 0;
        border-color: var(--line-strong);
        border-radius: 13px 13px 0 0;
    }

    .audioplayer {
        height: 62px;
    }
}

@media (max-width: 520px) {
    .site-layout {
        padding-bottom: 44px;
    }

    .sect-title,
    .sect-title-small {
        font-size: 24px;
    }

    .track-item {
        min-height: 62px;
        padding: 7px;
        gap: 9px;
        grid-template-columns: 46px minmax(0, 1fr) 32px;
    }

    .track-cover {
        width: 46px;
        height: 46px;
        border-radius: 8px;
    }

    .track-meta {
        display: none;
    }

    .track-dl {
        width: 30px;
        height: 30px;
    }

    .track-hero {
        padding: 15px;
        gap: 14px;
        border-radius: 14px;
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .fimg {
        width: 96px;
        border-radius: 10px;
    }

    .track-hero .eyebrow {
        display: none;
    }

    .track-hero h1 {
        margin-top: 0;
        font-size: clamp(22px, 7vw, 29px);
    }

    .finfo li {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .fmeta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fplay {
        width: 100%;
        min-height: 38px;
        padding: 0 8px;
        font-size: 11px;
    }

    .lyrics-panel,
    .static-content,
    .form-wrap,
    .search-page,
    .comment-form {
        padding: 18px;
        border-radius: 13px;
    }

    .lyrics-heading h2 {
        font-size: 21px;
    }

    .lyrics-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .ap-img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
