:root {
    --bg: #071116;
    --bg-deep: #03080b;
    --surface: rgba(15, 27, 34, 0.5);
    --surface-strong: rgba(20, 34, 42, 0.72);
    --surface-soft: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.16);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text: #eff8fb;
    --muted: #96b0ba;
    --accent: #74f2dd;
    --accent-2: #ffcf8c;
    --accent-3: #7fb5ff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --glass-blur: blur(24px);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 520px at 12% 8%, rgba(116, 242, 221, 0.22), transparent 55%),
        radial-gradient(720px 460px at 88% 0%, rgba(127, 181, 255, 0.2), transparent 52%),
        radial-gradient(840px 560px at 50% 100%, rgba(255, 207, 140, 0.14), transparent 50%),
        linear-gradient(160deg, #041016 0%, #08141a 38%, #091018 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.7;
}

body::before {
    width: 320px;
    height: 320px;
    top: 90px;
    left: -80px;
    background: rgba(116, 242, 221, 0.15);
}

body::after {
    width: 280px;
    height: 280px;
    right: -50px;
    bottom: 140px;
    background: rgba(127, 181, 255, 0.12);
}

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

a:hover {
    text-decoration: none;
}

.page-wrap {
    position: relative;
    z-index: 1;
    width: min(1380px, calc(100% - 40px));
    margin: 24px auto 120px;
    min-height: calc(100vh - 144px);
    border-radius: 34px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(9, 17, 23, 0.62), rgba(8, 15, 19, 0.52));
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.page-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.site-header {
    position: relative;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-block {
    max-width: 460px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 34px;
    letter-spacing: 0.04em;
}

.logo-badge {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    row-gap: 2px;
}

.logo-mark,
.logo-type {
    font-weight: 700;
}

.logo-mark {
    color: var(--accent);
    text-shadow: 0 0 26px rgba(116, 242, 221, 0.35);
}

.logo-dot {
    color: rgba(239, 248, 251, 0.62);
    font-weight: 500;
    font-size: 18px;
}

.brand-copy {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 40ch;
}

.search-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 620px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.playlist-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.playlist-link:hover,
.playlist-link.is-active {
    transform: translateY(-1px);
    border-color: rgba(116, 242, 221, 0.32);
    background: rgba(116, 242, 221, 0.12);
}

.playlist-count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.search-form input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(2, 8, 12, 0.38);
    color: var(--text);
    outline: none;
}

.search-form input::placeholder {
    color: rgba(150, 176, 186, 0.78);
}

.search-form input:focus {
    border-color: rgba(116, 242, 221, 0.4);
    box-shadow: 0 0 0 4px rgba(116, 242, 221, 0.1);
}

.search-form button {
    height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(116, 242, 221, 0.95), rgba(127, 181, 255, 0.9));
    color: #031117;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 18px 30px rgba(76, 177, 186, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.search-form button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 22px 34px rgba(76, 177, 186, 0.28);
}

.content {
    padding: 28px 32px 104px;
    min-width: 0;
}

.content-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.glass-panel {
    position: relative;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.sidebar-panel {
    padding: 22px 20px 20px;
}

.sidebar-panel-primary {
    background: linear-gradient(180deg, rgba(116, 242, 221, 0.12), rgba(255, 255, 255, 0.04));
}

.content-primary {
    min-width: 0;
    padding: 28px;
    animation: rise 0.45s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-heading {
    margin-bottom: 14px;
}

.panel-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(239, 248, 251, 0.62);
}

.panel-heading h2,
.content h2 {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 22px;
    line-height: 1.2;
}

.content h1 {
    margin: 0 0 10px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.16;
    max-width: none;
    overflow-wrap: anywhere;
}

.content h2 {
    margin: 28px 0 14px;
}

.content p {
    margin: 0 0 18px;
    max-width: 64ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.last-phrases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.last-phrases-title {
    display: none;
}

.phrase-tag {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.phrase-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(116, 242, 221, 0.34);
    background: rgba(116, 242, 221, 0.12);
}

.phrase-tag-secondary {
    background: rgba(127, 181, 255, 0.08);
}

.track-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.chart-hero {
    margin-bottom: 18px;
}

.chart-hero h1 {
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.15;
    max-width: 24ch;
}

.chart-updated {
    display: inline-flex;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(239, 248, 251, 0.78);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
    padding: 0;
}

.chart-card {
    width: 100%;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.chart-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.chart-card h3 {
    margin: 7px 0 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 19px;
    line-height: 1.2;
}

.chart-source {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(116, 242, 221, 0.09);
    border: 1px solid rgba(116, 242, 221, 0.15);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chart-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(239, 248, 251, 0.8);
    font-size: 12px;
}

.chart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-item {
    display: grid;
    grid-template-columns: 44px 72px minmax(0, 1fr) 44px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.chart-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.chart-media {
    position: relative;
    width: 72px;
    height: 72px;
}

.chart-cover {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-cover-placeholder {
    background: linear-gradient(135deg, rgba(116, 242, 221, 0.14), rgba(127, 181, 255, 0.12));
}

.chart-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.chart-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 0;
}

.chart-track {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.chart-artist {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.track-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.track-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.btn-play,
.btn-download,
.btn-playlist,
.playlist-mini-btn,
.btn-stream-search {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-play {
    background: linear-gradient(135deg, rgba(116, 242, 221, 0.26), rgba(127, 181, 255, 0.22));
    box-shadow: 0 14px 24px rgba(87, 186, 189, 0.18);
}

.btn-download {
    background: linear-gradient(135deg, rgba(255, 207, 140, 0.22), rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 24px rgba(255, 207, 140, 0.12);
}

.btn-playlist,
.playlist-mini-btn {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.btn-stream-search {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-stream-search-spotify {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.24), rgba(255, 255, 255, 0.08));
    border-color: rgba(30, 215, 96, 0.24);
}

.btn-stream-search-apple {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.2), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 166, 134, 0.2);
}

.btn-play:hover,
.btn-download:hover,
.btn-playlist:hover,
.btn-stream-search:hover,
.playlist-mini-btn:hover,
.player-btn:hover {
    transform: translateY(-1px);
}

.btn-play svg,
.btn-download svg,
.btn-playlist svg,
.btn-stream-search svg,
.playlist-mini-btn svg,
.player-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

.btn-play.is-playing {
    background: linear-gradient(135deg, rgba(116, 242, 221, 0.55), rgba(127, 181, 255, 0.48));
}

.btn-play .icon-pause {
    display: none;
}

.btn-play.is-playing .icon-play {
    display: none;
}

.btn-play.is-playing .icon-pause {
    display: inline-block;
}

.btn-playlist.is-saved,
.btn-playlist-inline.is-saved {
    border-color: rgba(116, 242, 221, 0.34);
    background: rgba(116, 242, 221, 0.16);
    color: var(--accent);
}

.btn-playlist-inline {
    width: auto;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.btn-playlist-track {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    justify-self: end;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-download-track {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 207, 140, 0.24), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 220, 168, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 20px rgba(255, 207, 140, 0.1);
}

.track-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    flex-wrap: nowrap;
}

.track-artist {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-name {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(239, 248, 251, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.playlist-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.playlist-page-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.playlist-page-total {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: var(--text);
}

.playlist-clear-btn,
.playlist-remove-btn,
.playlist-mini-link,
.playlist-stream-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
}

.playlist-stream-link {
    width: 38px;
    min-width: 38px;
    padding: 0;
    border-radius: 12px;
}

.playlist-stream-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text);
}

.playlist-stream-link-spotify {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.24), rgba(255, 255, 255, 0.08));
    border-color: rgba(30, 215, 96, 0.24);
}

.playlist-stream-link-apple {
    background: linear-gradient(135deg, rgba(255, 122, 89, 0.2), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 166, 134, 0.2);
}

.playlist-empty-state {
    padding: 28px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.playlist-empty-state h2 {
    margin: 0 0 8px;
}

.playlist-empty-state p {
    margin-bottom: 0;
}

.playlist-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.playlist-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.playlist-entry-cover {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 28px;
}

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

.playlist-entry-main {
    min-width: 0;
}

.playlist-entry-top {
    margin-bottom: 6px;
}

.playlist-source-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(116, 242, 221, 0.09);
    border: 1px solid rgba(116, 242, 221, 0.15);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.playlist-entry-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.playlist-entry-artist {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.playlist-entry-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
    color: var(--accent);
}

.playlist-entry-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.playlist-entry-duration {
    font-size: 12px;
    color: rgba(239, 248, 251, 0.62);
}

.playlist-entry-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    overflow-wrap: anywhere;
}

.site-footer a {
    color: var(--accent);
}

.site-footer p {
    margin: 6px 0;
}

@media (max-width: 1180px) {
    .track-list {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        gap: 16px;
    }
}

@media (max-width: 980px) {
    .page-wrap {
        width: min(100% - 24px, 1380px);
        border-radius: 28px;
    }

    .logo-search {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-block {
        max-width: none;
    }

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

    .search-form {
        max-width: none;
    }

    .content-shell {
        grid-template-columns: 1fr;
    }

    .content-primary {
        order: 1;
    }

    .content-sidebar {
        order: 2;
    }

    .content-sidebar .sidebar-panel-primary {
        order: 99;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-wrap {
        width: 100%;
        margin: 0 0 120px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow-x: clip;
    }

    .site-header {
        padding: 18px 16px 16px;
    }

    .logo {
        gap: 12px;
        font-size: 30px;
    }

    .logo-badge {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .brand-copy {
        font-size: 13px;
    }

    .search-form {
        flex-direction: column;
        padding: 10px;
        border-radius: 22px;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        height: 48px;
    }

    .content {
        padding: 16px 16px 116px;
    }

    .content-primary,
    .sidebar-panel {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .header-actions {
        gap: 10px;
    }

    .playlist-link {
        width: 100%;
        justify-content: space-between;
    }

    .last-phrases {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .phrase-tag {
        min-height: 42px;
        padding: 10px 12px;
        white-space: normal;
        overflow: hidden;
        text-overflow: clip;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .content h1 {
        max-width: none;
        font-size: 24px;
    }

    .content h2,
    .panel-heading h2 {
        font-size: 20px;
    }

    .chart-card {
        padding: 16px;
    }

    .chart-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-item {
        grid-template-columns: 40px 64px minmax(0, 1fr) 44px;
        gap: 10px;
        padding: 10px;
    }

    .chart-card {
        width: 100%;
    }

    .chart-media {
        width: 64px;
        height: 64px;
    }

    .chart-cover {
        width: 64px;
        height: 64px;
    }

    .chart-rank {
        width: 40px;
        min-height: 40px;
    }

    .track-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 10px 12px;
        padding: 14px;
    }

    .track-rank {
        width: 48px;
        min-height: 48px;
        border-radius: 14px;
        font-size: 12px;
    }

    .track-actions {
        grid-column: 3;
        justify-self: end;
        gap: 6px;
    }

    .track-item .btn-playlist-track,
    .track-item .btn-download-track {
        min-width: 44px;
    }

    .track-item .btn-stream-search {
        min-width: 44px;
    }

    .playlist-page-head,
    .playlist-entry {
        grid-template-columns: 1fr;
        display: grid;
    }

    .playlist-page-summary,
    .playlist-entry-actions,
    .playlist-entry-buttons {
        align-items: flex-start;
        justify-content: flex-start;
    }
}
