/* =============================================================================
   SÓNG — giao diện "rừng đêm" (nạp SAU CÙNG)

   Bám theo bộ ảnh thiết kế trong assets/img (01-bai-hat … 09-yeu-thich):
   nền xanh đen như rừng ban đêm, điểm nhấn xanh chanh (lime), tiêu đề chữ
   mảnh, ảnh bìa ngang 16:9 có thời lượng in ở góc, và biểu tượng giọng hát
   nam / nữ đi cùng thể loại ở dòng phụ của mọi thẻ.

   Tệp này chỉ lo DIỆN MẠO. Cấu trúc và hành vi nằm ở các tệp trước và ở
   snippets. Màu lấy từ tokens.css; riêng sắc ngôn ngữ / giọng hát ở đây là
   màu trang trí nên được phép viết cứng.
   ========================================================================== */

/* ---- Nền & chữ ---------------------------------------------------------- */
body {
    background:
        radial-gradient(900px 480px at 85% -6%, rgba(120, 170, 90, .10), transparent 60%),
        var(--bg);
}

h1, h2, .section__title { font-family: var(--font-display); font-weight: 300; letter-spacing: -.01em; }

/* ---- Khung -------------------------------------------------------------- */
.shell__col { min-width: 0; }

/* ---- Thanh bên ---------------------------------------------------------- */
.sidebar {
    background: var(--bg-2);
    border-right: 1px solid var(--line);
    padding: var(--s-4) var(--s-3) calc(var(--h-player) + var(--s-3));
    flex-direction: column;
}
@media (min-width: 1080px) { .sidebar { display: flex; } }

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem 1.4rem;
    color: var(--brand);
}
.brand:hover { color: var(--brand); }
.brand__wave { width: 44px; height: 30px; flex-shrink: 0; }
.brand__img { max-height: 44px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name {
    font-family: var(--font-display);
    font-size: 2.05rem;
    font-weight: 300;
    letter-spacing: .08em;
    color: var(--brand);
}
.brand__tag {
    margin-top: .45rem;
    font-size: .5rem;
    letter-spacing: .14em;
    line-height: 1.5;
    color: var(--text-2);
    max-width: 17ch;
}

.sidebar__group { margin-bottom: var(--s-4); }
.sidebar__group--genres {
    flex: 1;
    min-height: 0;
    border-top: 1px solid var(--line);
    padding-top: var(--s-4);
}
.sidebar__label {
    font-size: var(--fs-sm);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-2);
    padding: 0 var(--s-3);
    margin-bottom: var(--s-2);
}

.nav-item {
    width: 100%;
    gap: .9rem;
    padding: .72rem .9rem;
    border-radius: 14px;
    font-size: var(--fs-md);
    font-weight: 400;
    color: var(--text);
    text-align: left;
}
.nav-item svg { width: 22px; height: 22px; opacity: .95; }
.nav-item:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); color: var(--text); }
.nav-item--on {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: var(--brand);
    font-weight: 500;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent);
}
.nav-item--on svg { color: var(--brand); }
.nav-item--on::before { display: none; }

.nav-item--sub {
    padding: .42rem .9rem .42rem 1.1rem;
    font-size: var(--fs-base);
    color: var(--text);
    border-radius: 10px;
}
.nav-item--sub.nav-item--on { color: var(--brand); }

.sidebar__foot {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: var(--s-3);
    display: grid;
    gap: 2px;
}
.nav-item--sm { padding: .5rem .9rem; font-size: var(--fs-sm); gap: .8rem; }
.nav-item--sm svg { width: 18px; height: 18px; }

/* ---- Đầu trang ---------------------------------------------------------- */
.header {
    height: var(--h-header);
    padding: 0 var(--s-5);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom: 1px solid var(--line);
    gap: var(--s-4);
}
.header__brand { display: none; color: var(--brand); font-family: var(--font-display); font-weight: 300; letter-spacing: .08em; font-size: 1.4rem; }
.header__brand .brand__wave { width: 34px; height: 24px; }
@media (max-width: 1079px) { .header__brand { display: inline-flex; } }

.search {
    flex: 0 1 480px;
    margin: 0 auto;
    position: relative;
}
.search__input {
    width: 100%;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--surface);
    border: 1px solid var(--line-2);
    padding-left: 2.6rem;
}
.search__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }

.header__right { gap: var(--s-3); margin-left: auto; }

.langsw { background: var(--surface); border-color: var(--line-2); padding: 3px; }
.langsw a { padding: 5px 18px; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.langsw a[aria-current="true"] { background: var(--brand); color: var(--text-on-brand); }

.avatar-btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--r-full);
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text-2);
}
.avatar-btn:hover { color: var(--brand); border-color: var(--brand); }
.avatar-btn svg { width: 20px; height: 20px; }

/* ---- Nút & chip --------------------------------------------------------- */
.btn--grad, .play-fab {
    background: var(--brand);
    color: var(--text-on-brand);
    box-shadow: none;
}
.btn--grad:hover, .play-fab:hover { background: var(--brand-soft); color: var(--text-on-brand); }
.play-fab svg, .btn--grad svg { color: var(--text-on-brand); }

.chip {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text);
    padding: .38rem 1rem;
    font-size: var(--fs-sm);
    border-radius: 10px;
}
.chip:hover { background: var(--surface-2); border-color: var(--line-2); }
.chip--on, .chip--on:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--text-on-brand);
    font-weight: 600;
    box-shadow: none;
}

/* ---- Thẻ bài hát / MV: ảnh ngang 16:9 ------------------------------------ */
.card__art {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: none;
    background: var(--surface-2);
}
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.card__dur {
    background: rgba(8, 12, 10, .72);
    border-radius: 6px;
    font-size: .75rem;
    padding: 2px 7px;
    right: .6rem; bottom: .6rem;
}
.card__title { font-size: var(--fs-md); font-weight: 400; margin: .1rem 0 .15rem; }
.card__play { right: .7rem; bottom: .7rem; }
@media (hover: hover) {
    .card { transition: none; transform: none; }
    .card:hover { transform: none; }
    .card:hover .card__art { border-color: var(--brand); box-shadow: none; }
}

.card__meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .55rem;
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-2);
    min-width: 0;
}
.card__genre, .card__lang { white-space: nowrap; }
.card__genre::after, .card__lang::after {
    content: '|';
    margin-left: .55rem;
    color: var(--text-3);
}
.card__lang:last-child::after, .card__genre:last-child::after { content: none; }

.lgtag { background: none; padding: 0; font-size: inherit; font-weight: 400; color: inherit; border-radius: 0; }

/* Dòng tiêu đề + nút "…" của thẻ */
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.card__more {
    flex-shrink: 0;
    color: var(--text-2);
    padding: 2px 4px;
    margin-top: -2px;
    border-radius: 6px;
    background: none;
}
.card__more:hover { color: var(--brand); background: var(--surface-2); }
.card__more svg { width: 20px; height: 20px; }


/* ---- Bảng bài hát (trow) ------------------------------------------------- */
.trow { border-radius: 0; border-bottom: 1px solid var(--line); }
.trow:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }

/* ---- Thanh phát dưới cùng ------------------------------------------------ */
:root { --h-player: 86px; }
.player {
    background: color-mix(in srgb, var(--bg-2) 94%, transparent);
    border-top: 1px solid var(--line-2);
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) minmax(260px, 1fr);
}
.player__art { width: 56px; height: 56px; border-radius: 8px; }
.player__title { font-size: var(--fs-md); font-weight: 400; }
.player__artist { font-size: var(--fs-sm); }
#pl-like[aria-pressed="true"], #pl-like.icon-btn--on { color: var(--brand); }
.player__play { width: 46px; height: 46px; background: #fff; color: #0c1408; }
.player__play svg { width: 22px; height: 22px; }
.pbar__track { background: rgba(255, 255, 255, .14); height: 3px; }
.pbar__fill { background: var(--brand); }
.pbar__knob { background: var(--brand); }

.player__tag {
    display: none;
    font-size: .5625rem;
    letter-spacing: .14em;
    line-height: 1.6;
    color: var(--text-2);
    text-align: right;
    max-width: 22ch;
    padding-left: var(--s-4);
    margin-left: var(--s-4);
    border-left: 1px solid var(--line-2);
}
@media (min-width: 1320px) { .player__tag { display: block; } }

/* ---- Ngăn kéo danh sách chờ ---------------------------------------------- */
.queue { background: var(--bg-2); }
.queue__now { order: -1; padding: var(--s-4) var(--s-4) 0; }
.queue__now[hidden] { display: none; }
.queue__nowart { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.queue__nowart img { width: 100%; height: 100%; object-fit: cover; }
.queue__nowtitle { margin: var(--s-3) 0 0; font-size: var(--fs-lg); font-weight: 400; line-height: 1.25; }
.queue__nowsub { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }

/* Dải cuộn: snap không tính phần đệm nên thẻ đầu tiên bị kéo sát mép */
.rail { scroll-padding-inline: var(--s-5); }
@media (max-width: 640px) { .rail { scroll-padding-inline: var(--s-4); } }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* =============================================================================
   TRANG DANH SÁCH (bài hát, MV)
   ========================================================================== */

.main { padding: var(--s-5) var(--s-6) var(--s-7); max-width: none; }
@media (max-width: 640px) { .main { padding: var(--s-4); } }

/* Tiêu đề trang: chữ lớn mảnh, mô tả cùng hàng, số lượng + nút đổi kiểu xem bên phải */
.pghead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-4);
    margin: var(--s-3) 0 var(--s-5);
    flex-wrap: wrap;
}
.pghead__title { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; min-width: 0; }
.pghead h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0; }
.pghead__sub { margin: 0; color: var(--text-2); font-size: var(--fs-base); }
.pghead__tools { display: flex; align-items: center; gap: var(--s-4); }
.pghead__count { color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }

.viewsw { display: inline-flex; gap: 2px; }
.viewsw__btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    color: var(--text-2);
    background: none;
}
.viewsw__btn svg { width: 22px; height: 22px; }
.viewsw__btn:hover { color: var(--text); }
.viewsw__btn--on { color: var(--brand); background: var(--surface-2); }

/* Bộ lọc */
.filters { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.filters__line { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.filters__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.filters__label { color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; margin-right: .2rem; }
.filters__sep { width: 1px; align-self: stretch; min-height: 28px; background: var(--line-2); }
.filters__spacer { flex: 1; }
.filters .chip { display: inline-flex; align-items: center; gap: .4rem; }

.filters__sel { display: inline-flex; align-items: center; gap: .6rem; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: .5rem 2.2rem .5rem .85rem;
    font: inherit;
    font-size: var(--fs-sm);
    min-width: 8rem;
    cursor: pointer;
}
.select select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.select svg { position: absolute; right: .6rem; width: 16px; height: 16px; pointer-events: none; color: var(--text-2); }
.select option { background: var(--surface); color: var(--text); }

/* Lưới thẻ ngang */
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 22vw, 330px), 1fr)); gap: var(--s-5) var(--s-4); }
.grid--mv    { grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 28vw, 440px), 1fr)); gap: var(--s-5) var(--s-4); }

/* Kiểu xem danh sách: thẻ xếp thành hàng ngang */
[data-viewhost].is-list { grid-template-columns: 1fr; gap: var(--s-2); }
[data-viewhost].is-list .card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 0 var(--s-4); align-items: center; }
[data-viewhost].is-list .card__art { grid-row: 1 / span 3; margin: 0; }

.card__badge {
    position: absolute;
    left: .6rem; top: .6rem;
    padding: 2px 9px;
    border-radius: 6px;
    background: rgba(8, 12, 10, .62);
    border: 1px solid var(--line-2);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text);
}

/* Khối MV nổi bật */
.mvhero {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr) minmax(100px, .5fr);
    align-items: center;
    gap: var(--s-5);
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) var(--s-5);
    padding: var(--s-5) var(--s-6);
    background: linear-gradient(180deg, rgba(20, 30, 24, .9), transparent);
    border-bottom: 1px solid var(--line);
}
.mvhero__title h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; line-height: 1.05; }
.mvhero__title h1 span { color: var(--brand); }
.mvhero__title p { margin: var(--s-3) 0 0; color: var(--text-2); }
.mvhero__side {
    display: grid; gap: .35rem;
    margin: 0;
    justify-items: end;
    font-size: .6875rem;
    letter-spacing: .3em;
    color: var(--text-2);
}
@media (max-width: 1100px) { .mvhero { grid-template-columns: 1fr; } .mvhero__side { display: none; } }
@media (max-width: 640px) { .mvhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-4); padding: var(--s-4); } }

.fmv {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--s-5);
    align-items: center;
    padding: var(--s-3);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(10, 16, 13, .55);
}
.fmv__art { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: block; background: var(--surface-2); }
.fmv__art img { width: 100%; height: 100%; object-fit: cover; }
.fmv__play {
    position: absolute; inset: 0; margin: auto;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: var(--r-full);
    background: rgba(10, 16, 13, .55);
    border: 2px solid var(--brand);
    color: var(--brand);
}
.fmv__play svg { width: 24px; height: 24px; }
.fmv__kicker { margin: 0 0 .4rem; font-size: .6875rem; letter-spacing: .22em; color: var(--text-2); text-transform: uppercase; }
.fmv__title { margin: 0 0 .5rem; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.fmv__title a { color: var(--text); }
.fmv__desc { margin: .7rem 0 1rem; color: var(--text-2); font-size: var(--fs-sm); max-width: 34ch; }
.fmv__cta { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 500; }
.fmv__ctaico {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-full);
    background: var(--brand);
    color: var(--text-on-brand);
}
.fmv__ctaico svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .fmv { grid-template-columns: 1fr; } }

.sidebar { height: 100vh; overflow: hidden; }
.sidebar__group--genres { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; margin-bottom: var(--s-2); }

/* =============================================================================
   TRANG CHI TIẾT BÀI HÁT
   ========================================================================== */

.dhero { position: relative; isolation: isolate; margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) var(--s-6); padding: var(--s-4) var(--s-6) var(--s-5); }
.dhero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--dhero-img);
    background-size: cover;
    background-position: center;
    opacity: .38;
    filter: blur(1px) saturate(.9);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
            mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
}
.dhero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 16, 13, .35), var(--bg) 100%);
}
@media (max-width: 640px) { .dhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-5); padding: var(--s-3) var(--s-4) var(--s-4); } }

.dhero__back {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--text);
    background: none;
    padding: .4rem 0;
    font-size: var(--fs-base);
    margin-bottom: var(--s-4);
}
.dhero__back svg { width: 18px; height: 18px; }
.dhero__back:hover { color: var(--brand); }

.dhero__grid { display: grid; grid-template-columns: minmax(220px, 31%) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 860px) { .dhero__grid { grid-template-columns: 1fr; gap: var(--s-5); } .dhero__art { max-width: 420px; } }

.dhero__art {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.dhero__art img { width: 100%; height: 100%; object-fit: cover; }

.dhero__kicker { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .24em; color: var(--text-2); }
.dhero__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -.01em;
}
.dhero__alt { margin: .5rem 0 0; color: var(--text-2); }
.dhero__tag { margin: var(--s-4) 0 0; font-size: var(--fs-md); line-height: 1.5; max-width: 34rem; color: var(--text); }

.dmeta { display: flex; flex-wrap: wrap; align-items: center; margin: var(--s-4) 0 var(--s-5); padding: 0; list-style: none; color: var(--text-2); font-size: var(--fs-base); }
.dmeta li { display: inline-flex; align-items: center; gap: .45rem; padding: 0 1rem; }
.dmeta li:first-child { padding-left: 0; }
.dmeta li + li { border-left: 1px solid var(--line-2); }
.dmeta a { color: inherit; }
.dmeta a:hover { color: var(--brand); }
.dmeta svg { width: 16px; height: 16px; }

.dacts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.dacts__play {
    display: inline-flex; align-items: center; gap: .8rem;
    background: none; color: var(--brand);
    font-size: var(--fs-md);
    font-weight: 500;
}
.dacts__playico {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    border-radius: var(--r-full);
    background: var(--brand);
    color: var(--text-on-brand);
}
.dacts__playico svg { width: 24px; height: 24px; }
.dacts__play:hover .dacts__playico { background: var(--brand-soft); }
.dacts__btn {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; color: var(--text);
    font-size: var(--fs-base);
    padding: .5rem .2rem;
}
.dacts__btn svg { width: 22px; height: 22px; }
.dacts__btn:hover, .dacts__btn[aria-pressed="true"] { color: var(--brand); }
.dacts__btn--icon { margin-left: auto; }

.lyrbox {
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: rgba(10, 16, 13, .55);
    padding: var(--s-4) var(--s-5);
    max-width: 52rem;
    position: relative; overflow: hidden; isolation: isolate;
}
/* Nền khung lời: ảnh bìa bài hát (đặt --lyr-bg từ JS/template), mờ nhẹ; không có ảnh thì chỉ còn vệt màu thương hiệu */
.lyrbox::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 16, 13, .72), rgba(10, 16, 13, .9)),
        var(--lyr-bg, none) center / cover no-repeat,
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
    filter: saturate(1.1);
}
.lyrbox__head { display: flex; align-items: center; gap: .7rem; }
.lyrbox__head > svg { width: 20px; height: 20px; color: var(--text-2); }
.lyrbox__head h2 { margin: 0; font-family: var(--font); font-weight: 500; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.lyrbox__tabs { display: inline-flex; gap: .3rem; margin-left: var(--s-3); }
.lyrbox__tab { background: none; color: var(--text-2); padding: .15rem .6rem; border-radius: var(--r-full); font-size: var(--fs-xs); }
.lyrbox__tab[aria-selected="true"] { background: var(--brand); color: var(--text-on-brand); }
.lyrbox__more { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; background: none; color: var(--text-2); font-size: var(--fs-sm); }
.lyrbox__more svg { width: 14px; height: 14px; }
.lyrbox__more:hover { color: var(--brand); }
.lyrbox__body { position: relative; max-height: 11rem; overflow: hidden; margin-top: var(--s-3); padding-left: 2.1rem; }
.lyrbox__body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2rem; background: linear-gradient(transparent, rgba(12, 18, 15, .96)); pointer-events: none; }
.lyrbox--open .lyrbox__body { max-height: none; }
.lyrbox--open .lyrbox__body::after { display: none; }
.lyrbox .lyrics { line-height: 1.75; font-size: var(--fs-base); margin: 0; color: var(--text-2); }

.dabout { max-width: 52rem; }
.dabout__body { color: var(--text-2); line-height: 1.7; }

/* Dải bài hát liên quan: thẻ nhỏ + nút trái/phải */
.railnav { display: inline-flex; align-items: center; gap: var(--s-3); }
.railnav__btn {
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: var(--r-full);
    border: 1px solid var(--line-2);
    background: none; color: var(--text);
}
.railnav__btn svg { width: 16px; height: 16px; }
.railnav__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.railnav__btn:disabled { opacity: .35; cursor: default; }
.rail--cards { grid-auto-columns: minmax(230px, 20vw); }

/* =============================================================================
   TRANG XEM MV
   ========================================================================== */

.watch { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 400px); gap: var(--s-6); align-items: start; }
@media (max-width: 1100px) { .watch { grid-template-columns: 1fr; } }
.watch__main { min-width: 0; }

#video-host .vstage { border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; }
.play-fab--ring {
    width: 84px; height: 84px;
    background: rgba(8, 12, 10, .5);
    border: 2px solid rgba(238, 242, 234, .85);
    color: var(--text);
    box-shadow: none;
}
.play-fab--ring svg { color: var(--brand); width: 34px; height: 34px; }
.play-fab--ring:hover { background: rgba(8, 12, 10, .7); }

.watch__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin: var(--s-4) 0 var(--s-3); flex-wrap: wrap; }
.watch__title { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.dmeta--flat { margin: 0; }
.dmeta--flat li { padding: 0 .9rem; }
.dmeta--flat li:first-child { padding-left: 0; }
.watch__acts { display: flex; align-items: center; gap: var(--s-4); }
.dacts__btn--heart svg { width: 26px; height: 26px; }
.dacts__btn--heart[aria-pressed="true"] svg { fill: var(--brand); }

.section__title--lime { color: var(--brand); font-size: var(--fs-md); font-weight: 400; }

/* Dải MV liên quan: thẻ rất nhỏ */
.rail--mini { grid-auto-columns: clamp(130px, 12vw, 160px); gap: var(--s-3); margin: 0; padding: 0 0 var(--s-2); }
.minicard { display: block; min-width: 0; color: var(--text); }
.minicard__art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.minicard__art img { width: 100%; height: 100%; object-fit: cover; }
.minicard__art .card__dur { right: .3rem; bottom: .3rem; font-size: .6875rem; padding: 0 5px; }
.minicard__title { display: block; margin-top: .4rem; font-size: var(--fs-sm); }
.minicard:hover .minicard__art { border-color: var(--brand); }

/* Cột "Tiếp theo" */
.watch__nexthead { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.watch__nexthead h2 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--brand); }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__ui { position: relative; width: 42px; height: 24px; border-radius: var(--r-full); background: var(--surface-3); transition: background var(--t-fast) var(--ease); }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform var(--t-fast) var(--ease); }
.switch input:checked + .switch__ui { background: var(--brand); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: var(--text-on-brand); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--brand); outline-offset: 2px; }

.tlist { display: grid; gap: var(--s-3); }
.nxt { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.nxt__art { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.nxt__art img { width: 100%; height: 100%; object-fit: cover; }
.nxt__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 12, 10, .0); color: transparent; }
.nxt__play svg { width: 26px; height: 26px; }
.nxt__art:hover .nxt__play { background: rgba(8, 12, 10, .45); color: var(--brand); }
.nxt__art .card__dur { right: .3rem; bottom: .3rem; font-size: .6875rem; padding: 0 5px; }
.nxt__title { display: block; color: var(--text); font-size: var(--fs-md); margin-bottom: .2rem; }
.nxt__body { min-width: 0; }
.nxt .card__meta { font-size: var(--fs-xs); }

/* =============================================================================
   DANH SÁCH PHÁT (danh sách + chi tiết)
   ========================================================================== */

.plhero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(260px, 1fr);
    align-items: center;
    gap: var(--s-5);
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) 0;
    padding: var(--s-6);
    min-height: 220px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(10, 16, 13, .55) 40%, rgba(10, 16, 13, .35) 100%),
        url('../img/cropped-assets/47-playlist-header-art.png') center right / cover no-repeat,
        var(--bg-2);
}
.plhero__kicker { margin: 0 0 var(--s-3); font-size: .6875rem; letter-spacing: .3em; color: var(--text-2); }
.plhero h1 { margin: 0 0 var(--s-3); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.05; }
.plhero__sub { margin: 0; color: var(--text-2); max-width: 36ch; line-height: 1.55; }
.plhero__motto { margin: 0; justify-self: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--text); transform: rotate(-6deg); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.plhero__side { display: grid; gap: .35rem; margin: 0; justify-items: end; font-size: .6875rem; letter-spacing: .3em; color: var(--text-2); }
@media (max-width: 900px) { .plhero { grid-template-columns: 1fr; } .plhero__motto, .plhero__side { display: none; } }
@media (max-width: 640px) { .plhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0; padding: var(--s-5) var(--s-4); } }

.tabsbar { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 var(--s-5); }
.tabs2 { display: flex; gap: var(--s-5); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; padding: .9rem 0; color: var(--text-2); font-size: var(--fs-md); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab--on { color: var(--brand); }
.tab--on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.tabsbar__tools { display: flex; align-items: center; gap: var(--s-3); padding-bottom: .5rem; }

.grid--pl { grid-template-columns: repeat(auto-fill, minmax(clamp(300px, 30vw, 460px), 1fr)); gap: var(--s-5) var(--s-4); }

/* Chi tiết danh sách phát */
.pldhero {
    position: relative;
    isolation: isolate;
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) 0;
    padding: var(--s-5) var(--s-6);
    border-bottom: 1px solid var(--line);
}
.pldhero::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background-image: var(--pl-img);
    background-size: cover;
    background-position: center;
    opacity: .45;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 90%);
            mask-image: linear-gradient(90deg, transparent 30%, #000 90%);
}
.pldhero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 13, .2), var(--bg)); }
.pldhero__grid { display: grid; grid-template-columns: minmax(200px, 26%) minmax(0, 1fr); gap: var(--s-5); align-items: center; }
@media (max-width: 760px) { .pldhero__grid { grid-template-columns: 1fr; } .pldhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0; padding: var(--s-4); } }
.pldhero__art { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); }
.pldhero__art img { width: 100%; height: 100%; object-fit: cover; }
.pldhero__kicker { margin: 0 0 .4rem; font-size: .75rem; letter-spacing: .24em; color: var(--text-2); }
.pldhero h1 { margin: 0 0 var(--s-3); font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; }
.pldhero__desc { margin: 0 0 var(--s-3); color: var(--text-2); max-width: 46rem; line-height: 1.6; }
.pldhero__meta { margin: 0 0 var(--s-4); color: var(--text-2); }
.pldhero__btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.btn--lime { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.6rem; border-radius: var(--r-full); background: var(--brand); color: var(--text-on-brand); font-weight: 600; }
.btn--lime:hover { background: var(--brand-soft); color: var(--text-on-brand); }
.btn--lime svg { width: 18px; height: 18px; }
.btn--outline { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.5rem; border-radius: var(--r-full); border: 1px solid var(--line-2); background: none; color: var(--text); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--outline svg { width: 18px; height: 18px; }

/* Bảng bài hát (playlist, bảng xếp hạng) */
.ttable { width: 100%; border-collapse: collapse; margin-top: var(--s-4); }
.ttable th { text-align: left; font-weight: 400; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); padding: .7rem .6rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ttable td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); font-size: var(--fs-base); }
.ttable tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.ttable .t-no { width: 3rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ttable .t-title { color: var(--text); }
.ttable .t-title a { color: var(--text); }
.ttable .t-title a:hover { color: var(--brand); }
.ttable .t-song { display: flex; align-items: center; gap: var(--s-3); }
.ttable .t-song img, .ttable .t-song .ph { width: 52px; height: 32px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.ttable .t-act { width: 3rem; text-align: right; }
.ttable .t-act .play-fab { width: 32px; height: 32px; }
.ttable .t-act .play-fab svg { width: 14px; height: 14px; }
.ttable .t-more { width: 2.5rem; text-align: center; }
.ttable .t-more .card__more { margin: 0; }
.ttable .num { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .ttable .t-hide { display: none; } }
.pill { display: inline-block; padding: .15rem .7rem; border-radius: var(--r-full); background: rgba(255,255,255,.06); font-size: var(--fs-sm); color: var(--text-2); }
.pldhero h1 em { font-style: normal; color: var(--brand); }
.ttable .t-playico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.plhero + .tabsbar { margin-top: 0; }
.tabsbar { padding-top: 0; }
.main > .tabsbar { margin-top: var(--s-2); }

/* =============================================================================
   BẢNG XẾP HẠNG
   ========================================================================== */

.rkhero {
    position: relative;
    isolation: isolate;
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) var(--s-5);
    padding: var(--s-5) var(--s-6) var(--s-4);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(700px 240px at 85% 0%, rgba(120, 170, 90, .16), transparent 70%),
        linear-gradient(180deg, rgba(20, 30, 24, .7), transparent);
}
.rkhero h1 { margin: 0 0 .4rem; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; }
.rkhero h1 span { color: var(--brand); }
.rkhero p { margin: 0 0 var(--s-4); color: var(--text-2); }
.rkhero__filters { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
@media (max-width: 640px) { .rkhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-4); padding: var(--s-4); } }

.segm { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--surface); }
.segm__b { padding: .45rem 1.3rem; border-radius: var(--r-full); color: var(--text); font-size: var(--fs-sm); }
.segm__b--on { background: var(--brand); color: var(--text-on-brand); font-weight: 600; }

.rktop { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: var(--s-4); }
.rkcard {
    position: relative;
    display: grid;
    grid-template-columns: auto 100px minmax(0, 1fr);
    gap: var(--s-3);
    align-items: center;
    padding: var(--s-3) var(--s-4) var(--s-3) var(--s-4);
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: linear-gradient(120deg, rgba(40, 56, 34, .55), rgba(16, 24, 19, .8));
}
.rkcard--2 { background: linear-gradient(120deg, rgba(32, 46, 48, .55), rgba(16, 24, 22, .8)); }
.rkcard--3 { background: linear-gradient(120deg, rgba(60, 40, 30, .55), rgba(22, 20, 18, .8)); }
.rkcard__no { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; color: var(--brand); letter-spacing: -.03em; }
.rkcard--2 .rkcard__no { color: #cfeee4; }
.rkcard--3 .rkcard__no { color: #f0a477; }
.rkcard__art { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.rkcard__art img { width: 100%; height: 100%; object-fit: cover; }
.rkcard__body { min-width: 0; padding-right: 2.8rem; }
.rkcard__body h3 { margin: 0 0 .5rem; font-size: var(--fs-md); font-weight: 400; }
.rkcard__body h3 a { color: var(--text); }
.rkcard__tags { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0 0 .6rem; }
.rkcard__plays { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.rkcard__plays svg { width: 14px; height: 14px; }
.rkcard .play-fab { position: absolute; right: var(--s-4); bottom: var(--s-3); width: 44px; height: 44px; }
@media (max-width: 640px) { .rkcard { grid-template-columns: auto 84px minmax(0, 1fr); } }

.ttable--chart td { padding: .6rem; font-size: var(--fs-md); }
.ttable--chart .t-no { font-size: 1.15rem; color: var(--text); }

/* =============================================================================
   YÊU THÍCH + trạng thái nút trái tim
   ========================================================================== */

.favhero {
    position: relative;
    isolation: isolate;
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) 0;
    padding: var(--s-6);
    min-height: 200px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.favhero::before {
    content: ''; position: absolute; inset: -10px; z-index: -2;
    background: url('../img/cropped-assets/02-la-sau-mua.png') right center / cover no-repeat;
    filter: blur(5px) brightness(.8);
}
.favhero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 16, 13, .55) 45%, rgba(10, 16, 13, .25) 100%); }
.favhero h1 { margin: 0 0 .5rem; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.05; }
.favhero h1 span { color: var(--brand); }
.favhero__count { margin: 0 0 .5rem; font-size: var(--fs-md); }
.favhero__count strong { color: var(--brand); font-weight: 500; }
.favhero__sub { margin: 0; color: var(--text-2); max-width: 28ch; line-height: 1.55; }
.favhero__side { display: grid; gap: .35rem; margin: 0; justify-items: end; font-size: .6875rem; letter-spacing: .3em; color: var(--text-2); }
@media (max-width: 900px) { .favhero__side { display: none; } }
@media (max-width: 640px) { .favhero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0; padding: var(--s-5) var(--s-4); } }

.tabsbar__tools .filters__sel { gap: .4rem; }

/* Trái tim: tô đặc màu xanh chanh khi đã thích */
[data-like] svg { transition: fill var(--t-fast) var(--ease); }
[data-like][aria-pressed="true"] { color: var(--brand); }
[data-like][aria-pressed="true"] svg { fill: var(--brand); stroke: var(--brand); }
.card__heart { flex-shrink: 0; background: none; color: var(--text-2); padding: 2px 4px; margin-top: -2px; }
.card__heart svg { width: 20px; height: 20px; }
.card__heart:hover { color: var(--brand); }
.card__head > .card__title { flex: 1; min-width: 0; }

/* =============================================================================
   TÌM KIẾM
   ========================================================================== */
.search-head--new { margin: var(--s-3) 0 var(--s-4); }
.search-head--new h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .3rem; }
.search-head--new p { color: var(--text-2); margin: 0; font-size: var(--fs-md); }
.search-head--new mark { background: none; color: var(--brand); }
.tabsbar--search { border-bottom: 0; align-items: center; margin-bottom: var(--s-4); }
.spills { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.spill { padding: .5rem 1.4rem; border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--text); }
.spill:hover { border-color: var(--brand); }
.spill--on { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); font-weight: 600; }
.grid--search { grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 17vw, 260px), 1fr)); gap: var(--s-4); }
.section__title--ico { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.5rem; }
.section__title--ico svg { width: 26px; height: 26px; }
.section__title--ico small { font-size: var(--fs-md); color: var(--text-2); font-weight: 300; }

/* =============================================================================
   TRANG CHỦ ("Khám phá")
   ========================================================================== */

.home-hero {
    position: relative;
    isolation: isolate;
    margin: calc(var(--s-5) * -1) calc(var(--s-6) * -1) var(--s-6);
    padding: clamp(2.5rem, 7vw, 5rem) var(--s-6);
    border-radius: 0;
    background:
        radial-gradient(700px 320px at 82% 20%, rgba(140, 190, 100, .20), transparent 65%),
        linear-gradient(135deg, #0f1a14 0%, #13241b 55%, #0c1511 100%);
    border-bottom: 1px solid var(--line);
}
.home-hero--img { background: var(--bg-2); }
.home-hero--img::after { background: linear-gradient(100deg, rgba(10, 16, 13, .92) 0%, rgba(10, 16, 13, .6) 50%, rgba(10, 16, 13, .15) 100%); }
.home-hero__kicker { color: var(--brand); letter-spacing: .24em; font-size: .75rem; }
.home-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.01em; text-shadow: none; }
.home-hero__text { color: var(--text-2); }
.home-hero .btn--grad { background: var(--brand); color: var(--text-on-brand); box-shadow: none; }
.home-hero .btn--grad:hover { background: var(--brand-soft); color: var(--text-on-brand); }
.home-hero .btn--ghost { background: none; border: 1px solid var(--line-2); color: var(--text); }
.home-hero .btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) { .home-hero { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) var(--s-5); padding: var(--s-6) var(--s-4); } }

/* Ô thể loại / ngôn ngữ: phẳng, viền mảnh, biểu tượng xanh chanh */
.tiles { display: grid; gap: var(--s-3); }
.tiles--genre { grid-auto-flow: column; grid-auto-columns: clamp(130px, 11vw, 170px); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tiles--genre::-webkit-scrollbar { display: none; }
.tiles--lang { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.tile {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    padding: var(--s-3) var(--s-4);
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    color: var(--text);
    isolation: isolate;
}
.tile:hover { border-color: var(--brand); color: var(--text); }
.tile__name { font-weight: 400; font-size: var(--fs-md); line-height: 1.25; }
.tile__sub { font-size: var(--fs-xs); color: var(--text-2); }
.tile--genre { aspect-ratio: 4 / 3; }
.tile__ico { width: 28px; height: 28px; margin-bottom: auto; padding: 5px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.tile--lang { min-height: 108px; }
.tile__glyph { position: absolute; right: 10px; top: 2px; font-size: 3.6rem; font-weight: 200; line-height: 1; color: var(--brand); opacity: .22; z-index: -1; letter-spacing: -.04em; }
@media (max-width: 640px) { .tiles--lang { grid-template-columns: repeat(2, 1fr); } }

.section__more { color: var(--text-2); }
.section__more:hover { color: var(--brand); }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 1000px) { .home-hero:has(.home-hero__feat) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.home-hero__feat { min-width: 0; }

/* Thanh tab dưới cùng (điện thoại) */
.tabbar { background: color-mix(in srgb, var(--bg-2) 94%, transparent); border-top: 1px solid var(--line-2); }
.tabbar__item--on { color: var(--brand); }
/* Mục "Thêm" (điện thoại): mở khay chứa Bảng xếp hạng / Playlist */
.tabbar__more { position: relative; display: flex; }
.tabbar__more > summary { list-style: none; cursor: pointer; flex: 1; }
.tabbar__more > summary::-webkit-details-marker { display: none; }
.tabbar__more[open] > summary { color: var(--brand); }
.tabbar__sheet { position: absolute; right: 6px; bottom: calc(100% + 8px); min-width: 170px; padding: .35rem; border-radius: 14px;
    background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); display: grid; }
.tabbar__sheet a { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 9px; color: var(--text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.tabbar__sheet a svg { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.tabbar__sheet a:active, .tabbar__sheet a:hover { background: var(--surface-2); }

/* Bộ lọc trên màn hình hẹp: mỗi hàng chip cuộn ngang thay vì xuống dòng nhiều tầng */
@media (max-width: 900px) {
    .filters__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
    .filters__row::-webkit-scrollbar { display: none; }
    .filters__row .chip { flex-shrink: 0; }
    .filters__sep { display: none; }
    .filters__line { gap: var(--s-3); }
    .filters__spacer { display: none; }
    .tabsbar__tools { flex-wrap: wrap; }
}

/* Trang chủ: khối đầu gọn như một biểu ngữ, lưới 4 cột cho "Mới phát hành" */
.home-hero { padding-top: clamp(1.8rem, 4vw, 3rem); padding-bottom: clamp(1.8rem, 4vw, 3rem); }
.home-hero__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.home-hero .fmv { background: rgba(10, 16, 13, .7); }

/* Ô thể loại / ngôn ngữ có ảnh do biên tập viên tải lên */
.tile--img { border-color: transparent; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform var(--t-slow) var(--ease); }
.tile--img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 10, .05) 30%, rgba(8, 12, 10, .78) 100%); }
.tile--img:hover .tile__img { transform: scale(1.05); }
.tile--img .tile__glyph { display: none; }
.tile--img .tile__name { text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

/* =============================================================================
   CHIA SẺ + DÒNG SỐ LIỆU
   ========================================================================== */

.sharewrap { position: relative; display: inline-block; }
.sharemenu {
    position: absolute;
    z-index: 50;
    left: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    padding: .4rem;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    box-shadow: var(--sh-3);
}
.sharemenu[hidden] { display: none; }
.sharemenu__item {
    display: flex; align-items: center; gap: .8rem;
    width: 100%;
    padding: .55rem .7rem;
    border-radius: 8px;
    background: none;
    color: var(--text);
    font-size: var(--fs-sm);
    text-align: left;
}
.sharemenu__item[hidden] { display: none; }
.sharemenu__item:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); color: var(--brand); }
.sharemenu__ico {
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--surface-2);
    font-size: .8rem;
    font-weight: 700;
}

.statline { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-4); padding: 0; list-style: none; color: var(--text-2); font-size: var(--fs-sm); }
.statline li { display: inline-flex; align-items: baseline; gap: .4rem; }
.statline svg { width: 16px; height: 16px; align-self: center; }
.statline span { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Thanh tìm / lọc ở trang thống kê quản trị */
.statbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: 0 0 var(--s-3); }
.statbar__q { height: 38px; padding: 0 1rem; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); min-width: 16rem; }
.tbl th a { color: inherit; }

/* Hàng nút chia sẻ hiện sẵn (thay cho menu thả xuống) */
.sharerow { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s-4); }
.sharerow__label { display: inline-flex; align-items: center; gap: .4rem; margin-right: .4rem; color: var(--text-2); font-size: var(--fs-sm); }
.sharerow__label svg { width: 18px; height: 18px; }
.sharebtn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--r-full);
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
    font-size: .8125rem; font-weight: 700; line-height: 1;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.sharebtn[hidden] { display: none; }
.sharebtn:hover { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
.sharebtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* =============================================================================
   Chi tiết bài hát — responsive + khung lời mở rộng
   ========================================================================== */

/* Ảnh bìa đứng yên khi cuộn đọc lời dài (chỉ khi hai cột) */
@media (min-width: 861px) {
    .dhero__art { position: sticky; top: calc(var(--h-header) + var(--s-4)); }
}

/* Mở rộng: khung lời trải hết chiều ngang cột phải; màn rộng thì chia cột chữ cho đỡ dài */
.lyrbox { scroll-margin-top: calc(var(--h-header) + var(--s-3)); }
.lyrbox--open { max-width: none; }
@media (min-width: 1280px) {
    .lyrbox--open .lyrics { column-width: 17rem; column-gap: var(--s-6); }
}
.lyrbox--open .lyrics { break-inside: avoid-column; }

@media (max-width: 860px) {
    .dhero__art { max-width: min(100%, 440px); margin: 0 auto; }
    .dhero__title { font-size: clamp(1.4rem, 6vw, 1.9rem); text-align: left; }
    .dhero__tag { max-width: none; }
}

@media (max-width: 560px) {
    .dmeta { margin-bottom: var(--s-4); }
    .dmeta li { padding: 0 .7rem; }
    .statline { gap: var(--s-2) var(--s-4); }
    .statline small { display: none; }       /* chỉ giữ biểu tượng + số cho gọn */
    .dacts { gap: var(--s-3) var(--s-4); }
    .dacts__play { flex: 1 1 100%; }          /* nút Phát ngay chiếm cả hàng */
    .dacts__btn { flex: 1 1 auto; justify-content: flex-start; }
    .lyrbox { padding: var(--s-3) var(--s-4); }
    .lyrbox__body { padding-left: 0; max-height: 9rem; }
    .lyrbox__head { flex-wrap: wrap; }
    .sharerow { gap: .4rem; }
    .sharebtn { width: 36px; height: 36px; }
}
@media (max-width: 860px) {
    .dhero__art { aspect-ratio: 16 / 9; max-width: 100%; }
}

/* =============================================================================
   TRANG CHỦ (bản theo ảnh thiết kế) + CHÂN TRANG
   ========================================================================== */

/* Khối nổi bật: ảnh toàn chiều ngang, chữ bên trái */
.home-hero { display: block; min-height: clamp(280px, 34vw, 420px); display: flex; align-items: center; }
.home-hero--img { background: var(--bg-2); }
.home-hero--img::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: var(--hero-img) center right / cover no-repeat;
}
.home-hero--img::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10, 16, 13, .94) 0%, rgba(10, 16, 13, .72) 38%, rgba(10, 16, 13, .15) 75%, rgba(10, 16, 13, 0) 100%);
}
.home-hero__in { max-width: 36rem; }
.home-hero__kicker { font-size: .6875rem; letter-spacing: .24em; margin-bottom: var(--s-4); }
.home-hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; margin-bottom: var(--s-4); }
.home-hero__text { font-size: var(--fs-md); max-width: 30rem; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn--lg { padding: .8rem 1.6rem; }

/* Đầu mỗi khối */
.hsec { margin-bottom: var(--s-7); }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.sechead__kicker { margin: 0 0 .5rem; font-size: .6875rem; letter-spacing: .22em; color: var(--text-2); }
.sechead__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sechead__sub { margin: .35rem 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.sechead__more { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); font-size: var(--fs-sm); white-space: nowrap; padding-bottom: .3rem; }
.sechead__more svg { width: 15px; height: 15px; }
.sechead__more:hover { color: var(--brand); }

/* Ô thể loại có ảnh: tên + mô tả nhỏ ở đáy */
.tiles--genre { grid-auto-columns: clamp(150px, 12.5vw, 190px); }
.tile--genre { aspect-ratio: 4 / 3; justify-content: flex-end; }
.tile--genre .tile__ico { display: none; }
.tile--genre:not(.tile--img) .tile__ico { display: block; position: absolute; top: var(--s-3); left: var(--s-3); }
.tile--lang { aspect-ratio: 16 / 9; min-height: 0; }
.tile--lang .tile__name { font-size: var(--fs-md); }
.tiles--lang { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles--lang { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles--lang { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lưới cho khối trang chủ */
.grid--mv3 { grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 30vw, 460px), 1fr)); gap: var(--s-5) var(--s-4); }
.grid--pl4 { grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 22vw, 340px), 1fr)); gap: var(--s-5) var(--s-4); }

/* Biểu ngữ Nhạc không lời */
.instban {
    display: grid; grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--line-2);
    border-radius: 14px; overflow: hidden;
    background: linear-gradient(120deg, #12231a, #0f1a14);
}
.instban--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.instban__txt { padding: clamp(1.4rem, 3vw, 2.4rem); align-self: center; }
.instban__kicker { margin: 0 0 .8rem; font-size: .6875rem; letter-spacing: .22em; color: var(--brand); }
.instban__title { margin: 0 0 .7rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.2; }
.instban__text { margin: 0 0 1.1rem; color: var(--text-2); max-width: 32ch; line-height: 1.55; }
.instban__go { display: inline-flex; align-items: center; gap: .45rem; color: var(--brand); font-weight: 500; }
.instban__go svg { width: 15px; height: 15px; }
.instban__art { min-height: 220px; position: relative; }
.instban__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.instban__art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0f1a14, transparent 40%); }
@media (max-width: 760px) { .instban--img { grid-template-columns: 1fr; } .instban__art { order: -1; min-height: 160px; } .instban__art::before { background: linear-gradient(0deg, #0f1a14, transparent 50%); } }

/* Hàng xếp hạng "Nghe nhiều nhất" */
.toprows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }
@media (max-width: 900px) { .toprows { grid-template-columns: 1fr; } }
.toprow {
    display: grid; grid-template-columns: 2.4rem 64px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3);
    padding: .55rem var(--s-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}
.toprow:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--brand) 4%, transparent); }
.toprow__no { font-family: var(--font-display); font-weight: 300; font-size: 1.15rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.toprow__art { display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.toprow__art img { width: 100%; height: 100%; object-fit: cover; }
.toprow__body { min-width: 0; }
.toprow__title { display: block; color: var(--text); font-size: var(--fs-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toprow__meta { margin: 0; color: var(--text-2); font-size: var(--fs-xs); }
.toprow__plays { color: var(--text-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.toprow__play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-full); background: none; border: 1px solid var(--line-2); color: var(--text); }
.toprow__play svg { width: 13px; height: 13px; }
.toprow__play:hover { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }

/* Lời mời khám phá */
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
    margin: var(--s-7) calc(var(--s-6) * -1) 0;
    padding: clamp(1.8rem, 4vw, 3rem) var(--s-6);
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(20, 34, 26, .9), rgba(12, 20, 15, .6));
}
.cta__kicker { margin: 0 0 .6rem; font-size: .6875rem; letter-spacing: .24em; color: var(--brand); }
.cta__title { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta__sub { margin: 0; color: var(--text-2); }
@media (max-width: 640px) { .cta { margin: var(--s-6) calc(var(--s-4) * -1) 0; padding: var(--s-5) var(--s-4); } }

/* Chân trang */
.foot { margin: 0 calc(var(--s-6) * -1); padding: var(--s-6) var(--s-6) calc(var(--h-player) + var(--s-5)); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
.foot__logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--brand); font-family: var(--font-display); font-weight: 300; font-size: 1.7rem; letter-spacing: .08em; }
.foot__logo .brand__wave { width: 40px; height: 28px; }
.foot__tag { margin: var(--s-3) 0 0; max-width: 34ch; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.foot__social { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.foot__social a { display: inline-block; padding: .3rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--text); font-size: var(--fs-xs); }
.foot__social a:hover { border-color: var(--brand); color: var(--brand); }
.foot__title { margin: 0 0 var(--s-3); font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.foot__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.foot__col a { color: var(--text-2); font-size: var(--fs-sm); }
.foot__col a:hover { color: var(--brand); }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-xs); }
.foot__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.foot__legal a { color: var(--text-2); }
.foot__legal a:hover { color: var(--brand); }
.foot__top { display: inline-flex; align-items: center; gap: .4rem; background: none; color: var(--text-2); font-size: var(--fs-xs); }
.foot__top svg { width: 14px; height: 14px; }
.foot__top:hover { color: var(--brand); }
@media (max-width: 640px) { .foot { margin: 0 calc(var(--s-4) * -1); padding: var(--s-5) var(--s-4) calc(var(--h-player-m) + var(--h-tabbar) + var(--s-5)); } }

/* Khối đầu trang chủ: chữ bên trái, bài hát nổi bật bên phải (như bản trước) */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
@media (min-width: 1000px) { .home-hero:has(.home-hero__feat) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.home-hero--img::after { background: linear-gradient(100deg, rgba(10, 16, 13, .93) 0%, rgba(10, 16, 13, .72) 45%, rgba(10, 16, 13, .4) 100%); }
.home-hero__feat { min-width: 0; }
.home-hero .fmv { background: rgba(10, 16, 13, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
button.fmv__cta { background: none; padding: 0; font: inherit; }
.home-hero .fmv__title { font-size: clamp(1.3rem, 2vw, 1.8rem); }

/* =============================================================================
   Điều khiển ngay trên khung video (trang xem MV)
   ========================================================================== */
.vstage { cursor: pointer; }
.vstage__bar {
    display: grid; gap: .35rem;
    padding: var(--s-6) var(--s-3) var(--s-2);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
    cursor: default;
}
.vstage__track { width: 100%; height: 4px; flex: none; background: rgba(255, 255, 255, .28); }
.vstage__track:hover { height: 6px; }
.vstage__fill { background: var(--brand); }
.vstage__row { gap: .4rem; }
.vstage__row .icon-btn svg { width: 20px; height: 20px; }
.vstage__time { font-size: var(--fs-xs); color: #fff; margin-left: .3rem; white-space: nowrap; }
.vstage__sp { flex: 1; }
/* Một nút hai biểu tượng: đang phát hiện "dừng", đang dừng hiện "phát" */
.vstage__play .ico-pause { display: none; }
.vstage:not(.vstage--paused) .vstage__play .ico-play { display: none; }
.vstage:not(.vstage--paused) .vstage__play .ico-pause { display: inline; }
.vstage__mute.icon-btn--on { color: var(--brand); }
/* Khung nổi ở góc: quá nhỏ cho thanh điều khiển — chỉ bấm vào hình để phát/dừng và nút đóng */
.vstage--float .vstage__bar { display: none; }
/* Toàn màn hình */
.vstage:fullscreen, .vstage:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; border: 0; }
.vstage:fullscreen video, .vstage:-webkit-full-screen video { object-fit: contain; }
.vstage:fullscreen .vstage__bar, .vstage:-webkit-full-screen .vstage__bar { padding-bottom: var(--s-4); }
@media (hover: none) { .vstage__bar { opacity: 1; } }

/* =============================================================================
   Thanh bên: thể loại hiện đủ (không cuộn riêng), có biểu tượng
   ========================================================================== */
/* Cả thanh bên cuộn MỘT lần nếu màn hình quá thấp; danh sách thể loại không còn khung cuộn riêng */
.sidebar { overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar__group--genres { flex: none; overflow: visible; min-height: auto; }
.sidebar__foot { margin-top: var(--s-3); }
.nav-item--sub { display: flex; align-items: center; gap: .7rem; padding: .36rem .9rem; font-size: var(--fs-sm); }
.nav-item--sub .gi, .nav-item--sub svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item--sub.nav-item--on .gi, .nav-item--sub:hover .gi { opacity: 1; color: var(--brand); }
/* Màn hình thấp: siết khoảng cách để thường vẫn vừa không phải cuộn */
@media (min-width: 1080px) and (max-height: 860px) {
    .brand { padding-bottom: .8rem; }
    .nav-item { padding-top: .5rem; padding-bottom: .5rem; }
    .nav-item--sub { padding-top: .22rem; padding-bottom: .22rem; }
    .sidebar__group { margin-bottom: var(--s-2); }
}
.tile__ico .gi { width: 100%; height: 100%; display: block; }

/* Màn hình thấp: thể loại chia hai cột để vẫn hiện đủ mà không phải cuộn thanh bên */
@media (min-width: 1080px) and (max-height: 900px) {
    .sidebar__group--genres { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; }
    .sidebar__group--genres .sidebar__label { grid-column: 1 / -1; }
    .nav-item--sub { padding: .3rem .55rem; gap: .5rem; font-size: .78rem; min-width: 0; }
    .nav-item--sub { align-items: flex-start; }
    .nav-item--sub span { line-height: 1.2; }          /* tên dài ("Trữ tình / Bolero") xuống dòng thay vì bị cắt */
    .nav-item--sub .gi, .nav-item--sub svg { margin-top: 1px; }
}
@media (min-width: 1080px) and (max-height: 900px) {
    .sidebar { padding-bottom: var(--h-player); }
    .sidebar__foot { margin-top: .25rem; padding-top: .35rem; }
    .sidebar__group--genres { padding-top: var(--s-3); }
}

/* Lời bài hát nằm dưới khối ảnh bìa, trải hết chiều ngang */
.dlyrics { margin: 0 0 var(--s-6); }
.dlyrics .lyrbox { max-width: none; }
.dlyrics .lyrbox__body { max-height: 12rem; }
@media (min-width: 900px) { .dlyrics .lyrics { column-width: 22rem; column-gap: var(--s-6); } }
.dlyrics .lyrbox--open .lyrbox__body { max-height: none; }

/* Âm lượng + tua 10s trên khung MV */
.vstage__vol { width: 72px; height: 4px; flex: none; margin: 0 .5rem 0 .1rem; background: rgba(255, 255, 255, .28); cursor: pointer; }
.vstage__vol:hover { height: 6px; }
.vstage__volfill { background: var(--brand); }
.vstage__skip svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .vstage__vol { display: none; } }

/* Thẻ MV: nút phát nằm GIỮA ảnh khi rê chuột (không bị số phút che) */
.card--video .card__play { right: 50%; bottom: 50%; transform: translate(50%, calc(50% + 8px)); }
@media (hover: hover) {
    .card--video:hover .card__play, .card--video:focus-within .card__play { transform: translate(50%, 50%); }
}
@media (hover: none) { .card--video .card__play { transform: translate(50%, 50%); } }

/* Khung MV thu nhỏ ở góc: phóng to / về trang MV */
.vstage__tools { position: absolute; top: .4rem; left: .4rem; display: none; gap: .3rem; }
.vstage--float .vstage__tools { display: flex; opacity: 0; transition: opacity .15s; }
.vstage--float:hover .vstage__tools, .vstage--float:focus-within .vstage__tools { opacity: 1; }
.vstage__tools .icon-btn { background: rgba(0, 0, 0, .6); color: #fff; }
@media (hover: none) { .vstage--float .vstage__tools { opacity: 1; } }
.vstage--float:fullscreen .vstage__bar, .vstage--float:-webkit-full-screen .vstage__bar { display: block; }
.vstage:fullscreen .vstage__tools, .vstage:-webkit-full-screen .vstage__tools { display: none; }
.vstage--float:fullscreen, .vstage--float:-webkit-full-screen { right: 0; bottom: 0; }

/* Logo: nốt nhạc nhiều màu */
.brand__wave { width: 46px; height: 34px; }
.header__brand .brand__wave { width: 36px; height: 27px; }
.foot__logo .brand__wave { width: 42px; height: 31px; }
.brand__name { background: linear-gradient(90deg, #d3f55c, #5ee0a0 60%, #4cc3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Thẻ bài hát: nút phát giữa ảnh khi rê chuột */
.card--track .card__play { right: 50%; bottom: 50%; transform: translate(50%, calc(50% + 8px)); }
@media (hover: hover) {
    .card--track:hover .card__play, .card--track:focus-within .card__play { transform: translate(50%, 50%); }
}
@media (hover: none) { .card--track .card__play { transform: translate(50%, 50%); } }

/* Logo v2: ô gradient + nốt nhạc; chữ không bị cắt dấu */
.brand__wave { width: 40px; height: 40px; }
.header__brand .brand__wave { width: 30px; height: 30px; }
.foot__logo .brand__wave { width: 34px; height: 34px; }
.brand__name { line-height: 1.35; padding-top: .12em; margin-top: -.1em; }

/* Lời chạy theo nhạc / phụ đề */
.lyrics--sync { white-space: normal; }
.lyrics--sync .ly { display: block; padding: .25rem .6rem; margin-left: -.6rem; border-radius: 8px; cursor: pointer; transition: color .2s, background .2s; }
.lyrics--sync .ly:hover { color: var(--text); }
.lyrics--sync .ly--gap { display: none; }
.lyrics--sync .ly.is-on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); font-weight: 600; }
.lyrbox__body:has(.lyrics--sync) { scroll-behavior: smooth; }

.vstage__cap {
    position: absolute; left: 6%; right: 6%; bottom: 3.2rem; text-align: center; pointer-events: none;
    color: #fff; font-weight: 600; font-size: clamp(.9rem, 2.2vw, 1.4rem); line-height: 1.35;
    text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8);
}
.vstage__cap:empty { display: none; }
.vstage--float .vstage__cap { font-size: .7rem; bottom: 2.4rem; }
.vstage__cc[aria-pressed="false"] { opacity: .45; }
.vstage__spd, .vstage__cc { font-size: .7rem; font-weight: 700; width: auto; padding: 0 .5rem; }
.player__spd { font-size: .72rem; font-weight: 700; width: auto; padding: 0 .5rem; }

/* MV thu nhỏ: vẫn có nút phát / tua / thanh tua khi rê chuột */
.vstage--float .vstage__bar { display: block; padding: 1.2rem .5rem .4rem; }
.vstage--float .vstage__time, .vstage--float .vstage__sp, .vstage--float .vstage__vol,
.vstage--float .vstage__mute, .vstage--float .vstage__fs, .vstage--float .vstage__cc,
.vstage--float .vstage__spd { display: none; }
.vstage--float .vstage__row { gap: .1rem; justify-content: center; }
.vstage--float .vstage__row .icon-btn svg { width: 18px; height: 18px; }
.vstage--float:fullscreen .vstage__time, .vstage--float:fullscreen .vstage__sp,
.vstage--float:fullscreen .vstage__vol, .vstage--float:fullscreen .vstage__mute,
.vstage--float:fullscreen .vstage__fs, .vstage--float:fullscreen .vstage__cc,
.vstage--float:fullscreen .vstage__spd { display: inline-flex; }
.vstage--float:fullscreen .vstage__row { justify-content: flex-start; }

/* Chân trang: cột Thể loại chia hai cột */
.foot__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }
.foot__col--genres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__col--genres { grid-column: 1 / -1; } }

/* ==== Tài khoản, playlist riêng, bảng giao diện ============================= */
.avatar-btn { position: relative; }
.avatar-btn__ini { font-weight: 700; font-size: .95rem; line-height: 1; color: var(--text-on-brand); }
.avatar-btn--on { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
.header__right { gap: .5rem; }

.amodal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; background: rgba(4, 8, 6, .72); backdrop-filter: blur(4px); }
.amodal__box { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 1.6rem 1.5rem 1.3rem; box-shadow: var(--sh-3); }
.amodal__x { position: absolute; top: .6rem; right: .8rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.amodal__x:hover { color: var(--text); background: var(--surface-2); }
.amodal__note { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, transparent); font-size: var(--fs-sm); }
.amodal__tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.amodal__tab { background: none; border: 0; padding: .5rem 0 .7rem; font: inherit; font-size: var(--fs-md); color: var(--text-2); cursor: pointer; position: relative; }
.amodal__tab--on { color: var(--brand); }
.amodal__tab--on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.amodal__form { display: grid; gap: .85rem; }
.amodal__f { display: grid; gap: .3rem; font-size: var(--fs-sm); color: var(--text-2); }
.amodal__f input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; padding: .65rem .8rem; }
.amodal__f input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.amodal__f em { font-size: var(--fs-xs); font-style: normal; opacity: .8; }
.amodal__err { margin: 0; min-height: 1.1em; color: #ff7b7b; font-size: var(--fs-sm); }
.amodal__go { justify-content: center; width: 100%; }
.amodal__perks { margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--text-2); text-align: center; line-height: 1.5; }
.amodal__admin { display: block; margin-top: .7rem; text-align: center; font-size: var(--fs-xs); color: var(--text-2); text-decoration: underline; }

.amenu, .tpanel { position: fixed; z-index: 380; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--sh-3); padding: .5rem; min-width: 220px; max-width: calc(100vw - 16px); }
.amenu__head { display: grid; padding: .5rem .7rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.amenu__head span { font-size: var(--fs-xs); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.amenu__i { display: block; width: 100%; text-align: left; padding: .55rem .7rem; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.amenu__i:hover { background: var(--surface-2); color: var(--brand); }
.amenu__i--out { color: var(--text-2); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: .3rem; }
.amenu--pl { width: 280px; }
.amenu__t { margin: .3rem .6rem .4rem; font-weight: 600; font-size: var(--fs-sm); }
.amenu__list { max-height: 220px; overflow: auto; display: grid; }
.amenu__row { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; font-size: var(--fs-sm); cursor: pointer; }
.amenu__row:hover { background: var(--surface-2); }
.amenu__row input { accent-color: var(--brand); }
.amenu__new { display: flex; gap: .4rem; padding: .5rem .3rem .2rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.amenu__new input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: inherit; font-size: var(--fs-sm); padding: .4rem .6rem; }
.amenu__new button { background: var(--brand); color: var(--text-on-brand); border: 0; border-radius: 8px; padding: 0 .8rem; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }

.tpanel { width: 280px; padding: .9rem 1rem 1rem; }
.tpanel__t { margin: 0 0 .5rem; font-weight: 600; }
.tpanel__l { margin: .8rem 0 .4rem; font-size: var(--fs-xs); color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.tpanel__seg { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.tpanel__seg button { flex: 1; border: 0; background: none; color: var(--text-2); padding: .45rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.tpanel__seg button.on { background: var(--brand); color: var(--text-on-brand); font-weight: 600; }
.tpanel__sws { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tpanel__sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tpanel__sw--on { border-color: var(--text); }
.tpanel__custom { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-xs); color: var(--text-2); cursor: pointer; }
.tpanel__custom input { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.tpanel__sel { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; font-size: var(--fs-sm); padding: .5rem .6rem; }
.tpanel__reset { margin-top: .9rem; width: 100%; background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; font-size: var(--fs-sm); padding: .5rem; cursor: pointer; }
.tpanel__reset:hover { border-color: var(--brand); color: var(--brand); }

.libnav { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 var(--s-5); }
.libnav__a { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: var(--fs-sm); }
.libnav__a:hover { color: var(--text); }
.libnav__a--on { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); font-weight: 600; }

.plgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.plcard { display: grid; gap: .35rem; align-content: start; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 150px; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.plcard:hover { border-color: var(--brand); }
.plcard__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-bottom: .4rem; }
.plcard__ico svg, .plcard--new svg { width: 22px; height: 22px; }
.plcard__t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plcard__n { font-size: var(--fs-xs); color: var(--text-2); }
.plcard--new { place-items: center; align-content: center; border-style: dashed; color: var(--brand); }
.plhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 0 0 var(--s-5); }
.plhead h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; }
.plhead__k { margin: 0 0 .3rem; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.plhead__n { margin: .4rem 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.plhead__acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.card__rm:hover { color: #ff7b7b; }

/* ==== Tanro Music: tên dài hơn, chân trang thoáng hơn, ảnh góc thanh bên ==== */
.brand__name { font-size: 1.55rem; letter-spacing: .04em; white-space: nowrap; }
.foot { padding-left: max(var(--s-6), 2.5rem); padding-right: max(var(--s-6), 2.5rem); }
@media (max-width: 640px) { .foot { padding-left: var(--s-4); padding-right: var(--s-4); } }
.foot__credit { margin-left: .4rem; color: var(--text-2); font-size: var(--fs-xs); opacity: .8; }
.foot__credit:hover { color: var(--brand); opacity: 1; }
.sidebar__art {
    margin: var(--s-3) .25rem 0; height: 128px; border-radius: 14px;
    background: url('../img/side-night.png') center / cover no-repeat;
    border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
@media (max-height: 820px) { .sidebar__art { display: none; } }
.sidebar .brand__name { font-size: 1.3rem; letter-spacing: .02em; }
.sidebar .brand { gap: .6rem; }

/* Góc dưới thanh bên: ảnh làm NỀN cả vùng, nút Giao diện nằm đè lên */
.sidebar__art { display: none; }
.sidebar__foot {
    min-height: 190px; align-content: start; padding: var(--s-2) var(--s-2) var(--s-3);
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 12, 10, .82) 0%, rgba(8, 12, 10, .35) 45%, rgba(8, 12, 10, 0) 100%),
        url('../img/side-night.png') center bottom / cover no-repeat;
}
.sidebar__foot .nav-item { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.sidebar__foot .nav-item:hover { background: rgba(255, 255, 255, .12); }
@media (max-height: 760px) { .sidebar__foot { min-height: 0; background-image: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; } .sidebar__foot .nav-item { color: inherit; text-shadow: none; } }

/* Trang MV: đúng 3 video một dòng (2 trên máy tính bảng, 1 trên điện thoại) */
.grid--mv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--mv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid--mv { grid-template-columns: minmax(0, 1fr); } }

/* Ảnh nền góc dưới trái: sát mép dưới, tràn hết bề ngang thanh bên, chỉ cao quá nút Giao diện một chút */
@media (min-width: 1080px) {
    .sidebar, .sidebar:has(.sidebar__foot) { padding-bottom: 0; }
    body:has(.player--on) .sidebar { padding-bottom: var(--h-player); }
    .sidebar__foot {
        margin: auto calc(var(--s-3) * -1) 0;
        border: 0; border-top: 1px solid var(--line); border-radius: 0;
        min-height: 112px; padding: var(--s-2) var(--s-3) 0;
        background:
            linear-gradient(180deg, rgba(8, 12, 10, .75) 0%, rgba(8, 12, 10, .15) 55%, rgba(8, 12, 10, 0) 100%),
            url('../img/side-night.png') center bottom / cover no-repeat;
    }
    .sidebar__foot .nav-item { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
}
@media (min-width: 1080px) and (max-height: 900px) { .sidebar { padding-bottom: 0; } body:has(.player--on) .sidebar { padding-bottom: var(--h-player); } }

/* Góc dưới thanh bên: nút Giao diện, rồi gợi ý bài hát bên dưới (không còn ảnh nền) */
.sidebar__art { display: none; }
.sidebar .sidebar__foot, .sidebar:has(.sidebar__foot) .sidebar__foot {
    background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0;
    min-height: 0; margin: auto 0 0; padding: var(--s-3) 0 0; align-content: start;
}
.sidebar .sidebar__foot .nav-item { color: inherit; text-shadow: none; }
.sidebar .sidebar__foot .nav-item:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
@media (min-width: 1080px) { .sidebar, body:has(.player--on) .sidebar { padding-bottom: var(--s-3); } body:has(.player--on) .sidebar { padding-bottom: var(--h-player); } }
.sidebar__pick { margin-top: var(--s-3); padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sidebar__pick-k { margin: 0 0 .45rem; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.sidebar__pick-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.sidebar__pick-art { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.sidebar__pick-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar__pick-t { font-size: var(--fs-sm); line-height: 1.25; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar__pick-t:hover { color: var(--brand); }
@media (max-height: 760px) { .sidebar__pick { display: none; } }

/* ==== Form đăng nhập / đăng ký (bản chỉnh) ================================== */
.amodal { animation: amIn .18s ease-out; }
@keyframes amIn { from { opacity: 0; } to { opacity: 1; } }
.amodal__box { width: min(430px, 100%); padding: 2rem 1.75rem 1.4rem; border-radius: 24px; animation: amUp .22s ease-out;
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--surface)) 0%, var(--surface) 38%); }
@keyframes amUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.amodal__x { display: grid; place-items: center; }
.amodal__x svg { width: 18px; height: 18px; }
.amodal__hero { text-align: center; margin-bottom: 1.2rem; }
.amodal__mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: .8rem;
    background: var(--brand-grad); color: var(--text-on-brand); box-shadow: 0 8px 24px var(--brand-glow); }
.amodal__mark svg { width: 26px; height: 26px; }
.amodal__h { margin: 0 0 .3rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.amodal__p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.amodal__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 1.1rem; border: 0; border-radius: 12px; background: var(--bg-2); }
.amodal__tab { padding: .55rem 0; border-radius: 9px; font-size: var(--fs-sm); font-weight: 500; text-align: center; }
.amodal__tab::after { display: none; }
.amodal__tab--on { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.amodal__form { gap: 1rem; }
.amodal__fl { font-weight: 500; color: var(--text); font-size: var(--fs-sm); }
.amodal__in { position: relative; display: flex; align-items: center; }
.amodal__ico { position: absolute; left: .85rem; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.amodal__in input { width: 100%; padding: .75rem .9rem .75rem 2.5rem; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.amodal__in input::placeholder { color: var(--text-3); }
.amodal__in input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.amodal__in:focus-within .amodal__ico { color: var(--brand); }
.amodal__eye { position: absolute; right: .35rem; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; }
.amodal__eye:hover { color: var(--text); background: var(--surface-2); }
.amodal__eye svg { width: 18px; height: 18px; }
.amodal__in:has(.amodal__eye) input { padding-right: 2.7rem; }
.amodal__err:not(:empty) { padding: .55rem .75rem; border-radius: 10px; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .3); }
.amodal__go { padding: .85rem 1rem; font-size: var(--fs-md); border-radius: 12px; }
.amodal__go.is-busy { opacity: .65; cursor: progress; }
.amodal__swap { margin: 1rem 0 0; text-align: center; color: var(--text-2); font-size: var(--fs-sm); }
.amodal__link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 600; cursor: pointer; }
.amodal__link:hover { text-decoration: underline; }
.amodal__perks { list-style: none; margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; }
.amodal__perks li { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: 1; text-align: center; font-size: .6875rem; color: var(--text-2); line-height: 1.3; }
.amodal__perks svg { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 420px) { .amodal__box { padding: 1.6rem 1.2rem 1.1rem; } }
.amodal { overflow-y: auto; align-items: safe center; }
.amodal__err:empty { min-height: 0; margin: -.4rem 0 0; }
@media (max-height: 760px) { .amodal__box { padding-top: 1.4rem; } .amodal__mark { width: 44px; height: 44px; margin-bottom: .5rem; } .amodal__perks { display: none; } }

/* Nút đăng nhập mạng xã hội */
.amodal__social { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .75rem 1rem; margin: 0 0 .2rem;
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: var(--fs-sm); transition: border-color .15s, background .15s; }
.amodal__social:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-2)); color: var(--text); }
.amodal__social svg { width: 20px; height: 20px; }
.amodal__or { display: flex; align-items: center; gap: .8rem; margin: .9rem 0 1rem; color: var(--text-2); font-size: var(--fs-xs); }
.amodal__or::before, .amodal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ==== Menu tài khoản có biểu tượng + các hộp phụ ============================ */
.amenu { min-width: 250px; padding: .4rem; }
.amenu__head { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem .8rem; border-bottom: 0; margin-bottom: .1rem; }
.amenu__av { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-grad); color: var(--text-on-brand); font-weight: 700; font-size: 1.05rem; }
.amenu__who { display: grid; min-width: 0; line-height: 1.25; }
.amenu__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amenu__who span { font-size: var(--fs-xs); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amenu__i { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 10px; }
.amenu__i svg { flex: none; width: 19px; height: 19px; color: var(--text-2); transition: color .12s; }
.amenu__i:hover svg { color: var(--brand); }
.amenu__sep { height: 1px; background: var(--line); margin: .3rem .5rem; }
.amenu__i--out { margin-top: 0; border-top: 0; border-radius: 10px; color: var(--text); }
.amenu__i--out:hover { color: #ff7b7b; }
.amenu__i--out:hover svg { color: #ff7b7b; }
.amodal__forgot { justify-self: end; margin-top: -.4rem; background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-xs); color: var(--brand); cursor: pointer; }
.amodal__forgot:hover { text-decoration: underline; }
.amodal__sent { text-align: center; margin: 0 0 .8rem; line-height: 1.55; }
.amodal__sent strong { color: var(--text); word-break: break-all; }
.amodal__resend { margin-top: .3rem; }
.amodal__box > .amodal__go { margin-top: .4rem; }
/* Thanh bên không bao giờ nằm dưới thanh phát: khi đang phát, thanh bên ngắn lại đúng bằng chiều cao thanh phát */
@media (min-width: 1080px) {
    body:has(.player--on) .sidebar { height: calc(100vh - var(--h-player) - 6px); padding-bottom: var(--s-3); }
}

/* ==== Chế độ sáng: banner trang chủ theo thiết kế (ảnh nền, thẻ bo góc) ===== */
:root[data-theme="light"] .home-hero,
:root[data-theme="light"] .home-hero--img {
    margin: 0 0 var(--s-6); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: 340px;
    background: #f1f5ea var(--img-hero-light, url('../img/hero-light.webp')) right center / cover no-repeat;
}
:root[data-theme="light"] .home-hero::before,
:root[data-theme="light"] .home-hero::after,
:root[data-theme="light"] .home-hero--img::before,
:root[data-theme="light"] .home-hero--img::after { display: none; }
:root[data-theme="light"] .home-hero__kicker { color: var(--brand); }
:root[data-theme="light"] .home-hero__title { color: var(--text); }
:root[data-theme="light"] .home-hero__text { color: var(--text-2); }
:root[data-theme="light"] .home-hero .btn--ghost { background: rgba(255, 255, 255, .85); border-color: var(--line-2); color: var(--text); }
:root[data-theme="light"] .home-hero .btn--grad,
:root[data-theme="light"] .home-hero .btn--grad:hover { color: var(--text-on-brand); }
@media (max-width: 640px) { :root[data-theme="light"] .home-hero { margin: 0 0 var(--s-5); min-height: 0; background-position: 70% center; } }

/* Chế độ sáng: thẻ bài nổi bật trên ảnh banner là kính mờ sáng, chữ tối; tên logo đậm hơn để đọc được trên nền sáng */
:root[data-theme="light"] .home-hero .fmv { background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); border-color: rgba(20, 40, 25, .12); box-shadow: 0 8px 30px rgba(20, 40, 25, .12); color: var(--text); }
:root[data-theme="light"] .home-hero .fmv__title { color: var(--text); }
:root[data-theme="light"] .home-hero .fmv__desc { color: var(--text-2); }
:root[data-theme="light"] .brand__name { background: linear-gradient(90deg, #4f7a10, #2f8f5a 70%, #2a82b5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Nút thích có nhãn (Lưu / Đã lưu) và "Phát tất cả" đang phát */
[data-like][aria-pressed="true"] svg { fill: currentColor; }
.btn--outline[data-like][aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
[data-play-all].is-playing { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }

/* Chế độ sáng: khối lời mời ngay trên chân trang có ảnh ngang riêng */
:root[data-theme="light"] .cta {
    border-top: 0; min-height: 190px; border-radius: 0;
    background: #f3f1e4 var(--img-cta-light, url('../img/cta-light.webp')) center 62% / cover no-repeat;
    position: relative;
}
:root[data-theme="light"] .cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 247, 236, .88) 0%, rgba(247, 247, 236, .55) 45%, rgba(247, 247, 236, 0) 80%); pointer-events: none; }
:root[data-theme="light"] .cta > * { position: relative; }
:root[data-theme="light"] .cta__title { color: var(--text); }
:root[data-theme="light"] .cta__sub { color: var(--text-2); }
/* ==== Thống kê (stats.php): giao diện mới ==================================== */
.shead { display: flex; align-items: center; gap: 1rem; margin: 0 0 var(--s-5); }
.shead__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-grad); color: var(--text-on-brand); box-shadow: 0 8px 22px var(--brand-glow); flex: none; }
.shead__ico svg { width: 26px; height: 26px; }
.shead h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.shead p { margin: .15rem 0 0; color: var(--text-2); font-size: var(--fs-sm); }

.stat-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.stat { position: relative; display: grid; grid-template-columns: 1fr; padding: 1.1rem 1.1rem 1rem; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.stat__ico { position: absolute; top: .9rem; right: .9rem; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.stat__ico svg { width: 19px; height: 19px; }
.stat__v { font-size: 1.9rem; }

.section__title { display: flex; align-items: center; gap: .6rem; }
.section__title > svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.section__title small { font-weight: 400; color: var(--text-2); font-size: var(--fs-xs); }

.statbar { padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.statbar__s { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.statbar__s svg { width: 16px; height: 16px; color: var(--text-2); }
.statbar__q { background: none; border: 0; color: var(--text); font: inherit; padding: .5rem 0; min-width: 11rem; outline: 0; }
.statbar__sp { flex: 1; }
.statbar__l { font-size: var(--fs-xs); color: var(--text-2); }
.statbar .chip { display: inline-flex; align-items: center; gap: .35rem; }
.statbar .chip svg { width: 14px; height: 14px; }

.slist { display: grid; gap: .5rem; margin-top: var(--s-3); }
.srow { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s; }
.srow[open] { border-color: var(--brand); }
.srow > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2rem 64px minmax(0, 1fr) repeat(4, auto) 1.2rem; align-items: center; gap: .9rem; padding: .6rem .9rem; }
.srow > summary::-webkit-details-marker { display: none; }
.srow > summary:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); border-radius: 14px; }
.srow__rk { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: center; font-weight: 600; }
.srow__th { width: 64px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.srow__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.srow__th svg { width: 18px; height: 18px; }
.srow__t { min-width: 0; display: grid; gap: .1rem; }
.srow__t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow__t small { color: var(--text-2); font-size: var(--fs-xs); }
.srow__m { display: inline-flex; align-items: center; gap: .35rem; min-width: 4.2rem; justify-content: flex-end; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.srow__m svg { width: 15px; height: 15px; color: var(--text-2); }
.srow__chev { width: 16px; height: 16px; color: var(--text-2); transition: transform .2s; }
.srow[open] .srow__chev { transform: rotate(180deg); color: var(--brand); }
.badge--track { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.badge--video { background: rgba(236, 72, 153, .16); color: #e06aa8; }
.srow__body { padding: .4rem 1rem 1.1rem; border-top: 1px solid var(--line); }
.srow__acts { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 1rem; }
.sbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: var(--brand); color: var(--text-on-brand); font-size: var(--fs-sm); font-weight: 600; }
.sbtn svg { width: 15px; height: 15px; }
.sbtn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.sbtn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.skpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.skpi { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.skpi > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.skpi > div { display: grid; line-height: 1.25; min-width: 0; }
.skpi__v { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.skpi__k { font-size: var(--fs-xs); color: var(--text-2); }
.skpi small { font-size: .6875rem; color: var(--text-3); }
.srow__h { margin: 1.1rem 0 .5rem; font-weight: 600; font-size: var(--fs-sm); }
.srow__h small { font-weight: 400; color: var(--text-3); margin-left: .4rem; }
.spark { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 3px; height: 64px; }
.spark i { display: block; height: var(--h, 0%); min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--brand) var(--p, 0%), color-mix(in srgb, var(--brand) 28%, transparent) var(--p, 0%)); }
.spark i[style*="--h:0%"] { background: var(--line); }
.schips { display: flex; flex-wrap: wrap; gap: .4rem; }
.schip { padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); }
.schip b { color: var(--brand); margin-left: .25rem; }
.schip--none { color: var(--text-3); border-style: dashed; }
.sempty { color: var(--text-3); padding: 1rem; text-align: center; }
.pager { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: center; margin: var(--s-4) 0 0; }
.pg { min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); }
a.pg:hover { color: var(--text); border-color: var(--line-2); }
.pg--on { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); font-weight: 700; }
.pg--dis { opacity: .45; background: none; }
.pager__i { margin-left: .8rem; font-size: var(--fs-xs); color: var(--text-2); }
@media (max-width: 820px) { .srow > summary { grid-template-columns: 1.6rem 52px minmax(0, 1fr) auto 1rem; gap: .6rem; } .srow__m--h { display: none; } .srow__m:nth-of-type(1) { display: none; } .srow__th { width: 52px; } }.chart { padding: var(--s-4); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); height: 220px; }
.bar { max-width: 64px; }
.bar i { border-radius: 6px 6px 0 0; }

/* Chế độ sáng: khối "Nhạc không lời" dùng ảnh phòng đàn piano làm nền cả khối */
:root[data-theme="light"] .instban,
:root[data-theme="light"] .instban--img {
    display: block; position: relative; overflow: hidden; min-height: 230px; border: 1px solid var(--line); border-radius: 22px;
    background: #f5f1de var(--img-inst-light, url('../img/inst-light.webp')) right center / cover no-repeat;
}
:root[data-theme="light"] .instban::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 243, 226, .72) 0%, rgba(246, 243, 226, .35) 40%, rgba(246, 243, 226, 0) 62%); pointer-events: none; }
:root[data-theme="light"] .instban__art { display: none; }
:root[data-theme="light"] .instban__txt { position: relative; max-width: 460px; padding: clamp(1.6rem, 3.5vw, 2.8rem); }
:root[data-theme="light"] .instban__title { color: var(--text); }
:root[data-theme="light"] .instban__text { color: var(--text-2); }
:root[data-theme="light"] .instban__go { color: var(--brand); }
@media (max-width: 760px) { :root[data-theme="light"] .instban { background-position: 78% center; } :root[data-theme="light"] .instban::before { background: rgba(246, 243, 226, .6); } }

/* Màn hình thấp: nút Giao diện luôn dính đáy thanh bên (không bị đẩy xuống dưới thanh phát); phần thể loại cuộn phía trên nếu thiếu chỗ */
@media (min-width: 1080px) {
    .sidebar { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
    .sidebar .sidebar__foot { position: sticky; bottom: 0; z-index: 3; background: var(--bg-2); padding-bottom: var(--s-2); }
}
.sidebar > * { flex-shrink: 0; }

/* Banner cuối trang ở nền tối: ảnh núi hồ lúc hoàng hôn, lớp phủ tối bên trái cho chữ dễ đọc */
:root:not([data-theme="light"]) .cta {
    position: relative; border-top: 1px solid var(--line); min-height: 190px;
    background: #0b110e var(--img-cta-dark, url('../img/cta-dark.webp')) center 55% / cover no-repeat;
}
:root:not([data-theme="light"]) .cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 13, 10, .88) 0%, rgba(8, 13, 10, .55) 45%, rgba(8, 13, 10, .08) 85%); pointer-events: none; }
:root:not([data-theme="light"]) .cta > * { position: relative; }
/* ==== Ảnh banner mặc định (thay được trong Couch → Thiết lập chung) =========== */
/* Banner đầu trang — nền tối */
:root:not([data-theme="light"]) .home-hero {
    background:
        linear-gradient(100deg, rgba(8, 13, 10, .55) 0%, rgba(8, 13, 10, .2) 45%, rgba(8, 13, 10, 0) 70%),
        #0b110e var(--img-hero-dark, url('../img/hero-dark.webp')) right center / cover no-repeat;
}
:root:not([data-theme="light"]) .home-hero::before, :root:not([data-theme="light"]) .home-hero::after { display: none; }

/* Nhạc không lời — ảnh phủ cả khối ở cả hai nền (ảnh có sẵn vùng trống bên trái cho chữ) */
.instban, .instban--img {
    display: block; position: relative; overflow: hidden; min-height: 230px; border: 1px solid var(--line); border-radius: 22px;
    background: #0e1511 var(--img-inst-dark, url('../img/inst-dark.webp')) right center / cover no-repeat;
}
.instban::before { display: none; }
.instban__art { display: none; }
.instban__txt { position: relative; max-width: 460px; padding: clamp(1.6rem, 3.5vw, 2.8rem); }
:root[data-theme="light"] .instban, :root[data-theme="light"] .instban--img { background: #f5f1de var(--img-inst-light, url('../img/inst-light.webp')) right center / cover no-repeat; }
:root[data-theme="light"] .instban::before { display: none; }
:root:not([data-theme="light"]) .instban__title { color: #fff; }
:root:not([data-theme="light"]) .instban__text { color: rgba(255, 255, 255, .78); }

/* Banner cuối trang — ảnh mới đã có sẵn vùng chữ, bỏ lớp phủ cũ */
:root:not([data-theme="light"]) .cta::before, :root[data-theme="light"] .cta::before { display: none; }
:root:not([data-theme="light"]) .cta { background: #0b110e var(--img-cta-dark, url('../img/cta-dark.webp')) center / cover no-repeat; }
:root[data-theme="light"] .cta { background: #f3f1e4 var(--img-cta-light, url('../img/cta-light.webp')) center / cover no-repeat; }
/* Thanh bên: nhóm "Quốc gia" — huy hiệu chữ thay cho biểu tượng thể loại */
.sidebar__group--langs { margin-top: var(--s-2); }
.nav-glyph { flex: none; width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; font-size: .625rem; font-weight: 700; line-height: 1; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.nav-item--sub.nav-item--on .nav-glyph, .nav-item--sub:hover .nav-glyph { background: var(--brand); color: var(--text-on-brand); }/* Có thêm nhóm Quốc gia nên thanh bên dài hơn: thẻ gợi ý chỉ hiện khi màn hình đủ cao */
@media (max-height: 940px) { .sidebar__pick { display: none; } }

/* ==== Thanh bên KHÔNG cuộn: tự thu gọn theo chiều cao màn hình ============== */
@media (min-width: 1080px) {
    .sidebar, body:has(.player--on) .sidebar { overflow: hidden; }
    .sidebar .sidebar__group:first-of-type .nav-item { padding-top: .5rem; padding-bottom: .5rem; }
    .brand { padding-bottom: .7rem; }
    .sidebar__group--genres { padding-top: var(--s-2); }
    .sidebar__label { margin-bottom: .2rem; }
    .nav-item--sub { padding-top: .2rem; padding-bottom: .2rem; }
    .sidebar__foot { position: static; padding-top: var(--s-2); }
}
/* thấp hơn: bỏ dòng khẩu hiệu dưới logo, nén nữa */
@media (min-width: 1080px) and (max-height: 860px) {
    .brand__tag { display: none; }
    .brand { padding-bottom: .4rem; }
    .sidebar .sidebar__group:first-of-type .nav-item { padding-top: .38rem; padding-bottom: .38rem; }
    .nav-item--sub { padding-top: .14rem; padding-bottom: .14rem; }
}
/* thấp nữa: nhóm Quốc gia nhường chỗ (đã có ở trang chủ và chân trang) */
@media (min-width: 1080px) and (max-height: 760px) { .sidebar__group--langs { display: none; } }
/* rất thấp: thể loại cũng nhường chỗ, chỉ còn menu chính và nút Giao diện */
@media (min-width: 1080px) and (max-height: 600px) { .sidebar__group--genres { display: none; } }
/* Khi thanh phát đang hiện, chỗ trống ít hơn ~92px: các mức thu gọn đến sớm hơn tương ứng */
@media (min-width: 1080px) and (max-height: 960px) {
    body:has(.player--on) .brand__tag { display: none; }
    body:has(.player--on) .brand { padding-bottom: .4rem; }
    body:has(.player--on) .sidebar .sidebar__group:first-of-type .nav-item { padding-top: .38rem; padding-bottom: .38rem; }
    body:has(.player--on) .nav-item--sub { padding-top: .14rem; padding-bottom: .14rem; }
}
@media (min-width: 1080px) and (max-height: 850px) { body:has(.player--on) .sidebar__group--langs { display: none; } }
@media (min-width: 1080px) and (max-height: 690px) { body:has(.player--on) .sidebar__group--genres { display: none; } }

/* Thống kê: biểu tượng đứng trước nhãn (cờ, thiết bị, hệ điều hành, trình duyệt) */
.hbar__k { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.hbar__k > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hico { flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--brand); }
.hico svg { width: 18px; height: 18px; }
.hico--flag { color: inherit; }
.hico--flag img { width: 22px; height: auto; aspect-ratio: 4 / 3; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(128, 128, 128, .35); display: block; }
.hbar { grid-template-columns: 150px minmax(0, 1fr) 72px; }
/* Thống kê: tiêu đề khối có khoảng thở và đường kẻ phân cách với nội dung bên dưới */
.shead ~ .section > .section__title, .shead ~ .split .section__title { margin: 0 0 var(--s-4); padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.shead ~ .section, .shead ~ .split { margin-top: var(--s-6); }
.gnote { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; margin: var(--s-3) 0 0; }
.gnote code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.gnote a { color: var(--brand); }

/* Quốc gia theo từng bài */
.ctry { display: grid; gap: .45rem; }
.ctry__r { display: grid; grid-template-columns: 22px 120px minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: var(--fs-sm); }
.ctry__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctry__v { color: var(--text-2); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.sempty--sm { text-align: left; padding: .3rem 0; font-size: var(--fs-xs); }
@media (max-width: 640px) { .ctry__r { grid-template-columns: 22px 90px minmax(0, 1fr); } .ctry__v { grid-column: 2 / -1; } }

/* Bot ghé thăm */
.bkinds { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 var(--s-4); }
.bkind { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: var(--fs-xs); }
.bkind svg { width: 14px; height: 14px; }
.bkind b { color: var(--brand); }
.botlist { display: grid; gap: .4rem; }
.botrow { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1fr) 64px 92px; gap: .8rem; align-items: center; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.botrow__i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.botrow__i svg { width: 18px; height: 18px; }
.botrow__n { display: grid; min-width: 0; line-height: 1.25; }
.botrow__n strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.botrow__n small { color: var(--text-2); font-size: .6875rem; }
.botrow__v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.botrow__l { text-align: right; color: var(--text-2); font-size: var(--fs-xs); }
@media (max-width: 760px) { .botrow { grid-template-columns: 34px minmax(0, 1fr) 56px; } .botrow .hbar__t, .botrow__l { display: none; } }
/* ---- Thống kê: tab Năm / Tháng / Ngày trong một khối ---- */
.ptabs__r { position: absolute; opacity: 0; pointer-events: none; }
.ptabs__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-bottom: var(--s-4); }
.ptabs__head .section__title { margin: 0; border: 0; padding: 0; flex: 1 1 auto; }
.ptabs__bar { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
.ptabs__bar label { cursor: pointer; padding: .35rem 1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); transition: background .15s, color .15s; }
.ptabs__bar label:hover { color: var(--text); }
.ptabs__pick { display: inline-flex; gap: var(--s-2); align-items: center; }
.ptabs__pick select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .35rem .6rem; font: inherit; font-size: var(--fs-sm); }
.ptabs__panel { display: none; }
.ptabs__cap { margin: 0 0 var(--s-3); font-weight: 600; color: var(--text-2); font-size: var(--fs-sm); }
.ptabs__note { margin: var(--s-3) 0 0; color: var(--text-3); font-size: var(--fs-sm); }
.pf-m { display: none; }
#pt-year:checked  ~ .ptabs__head label[for="pt-year"],
#pt-month:checked ~ .ptabs__head label[for="pt-month"],
#pt-day:checked   ~ .ptabs__head label[for="pt-day"] { background: var(--brand); color: var(--text-on-brand); }
#pt-year:checked  ~ .pp-year, #pt-month:checked ~ .pp-month, #pt-day:checked ~ .pp-day { display: block; }
#pt-year:checked ~ .ptabs__head .pf-y, #pt-year:checked ~ .ptabs__head .pf-m { display: none; }
#pt-day:checked ~ .ptabs__head .pf-m { display: inline-block; }
.ptabs__r:focus-visible ~ .ptabs__head .ptabs__bar { outline: 2px solid var(--brand); outline-offset: 2px; }
#pt-year:checked ~ .ptabs__head .ptabs__pick { display: none; }

/* ==== Thanh bên: nhóm "Quốc gia" KHÔNG còn bị ẩn khi màn hình thấp ===========
   Thay vì ẩn, màn hình thấp thì chia 2 cột như Thể loại. Nếu vẫn hết chỗ (cửa sổ rất thấp), thanh bên cuộn được
   bằng con lăn (thanh cuộn ẩn) chứ không cắt mất mục nào. */
@media (min-width: 1080px) and (max-height: 900px) {
    .sidebar__group--langs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2px; }
    .sidebar__group--langs .sidebar__label { grid-column: 1 / -1; }
}
@media (min-width: 1080px) and (max-height: 760px) { .sidebar__group--langs { display: grid; } }
@media (min-width: 1080px) and (max-height: 850px) { body:has(.player--on) .sidebar__group--langs { display: grid; } }
@media (min-width: 1080px) {
    .sidebar, body:has(.player--on) .sidebar { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
    .sidebar::-webkit-scrollbar { display: none; }
}
/* Rất thấp: thể loại nhường chỗ nhưng Quốc gia vẫn còn */
@media (min-width: 1080px) and (max-height: 600px) { .sidebar__group--langs { display: grid; } }
@media (min-width: 1080px) and (max-height: 820px) {
    .sidebar__group--langs .nav-item--sub { padding: .22rem .5rem; align-items: center; }
    .sidebar__group--langs .nav-item--sub span:not(.nav-glyph) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1080px) and (max-height: 760px) {
    .sidebar .sidebar__group:first-of-type .nav-item { padding-top: .28rem; padding-bottom: .28rem; }
    .sidebar__group { margin-bottom: .1rem; }
    .sidebar__group--genres, .sidebar__group--langs { padding-top: .25rem; }
    .nav-item--sub { padding-top: .1rem; padding-bottom: .1rem; }
    .sidebar__label { margin-bottom: .1rem; }
    .sidebar__foot { padding-top: .2rem; }
}
/* Thấp hơn nữa (≤ 650px): thể loại nhường chỗ cho Quốc gia (thể loại vẫn có ở trang chủ và chân trang) */
@media (min-width: 1080px) and (max-height: 650px) { .sidebar__group--genres:not(.sidebar__group--langs), body:has(.player--on) .sidebar__group--genres:not(.sidebar__group--langs) { display: none; } }
@media (min-width: 1080px) and (max-height: 690px) { body:has(.player--on) .sidebar__group--langs { display: grid; } }

/* Thanh bên: nhóm Quốc gia giữ biểu tượng (huy hiệu chữ) ở mọi chiều cao, chỉ thu nhỏ khi màn hình thấp */
@media (min-width: 1080px) and (max-height: 820px) {
    .sidebar__group--langs .nav-item--sub { gap: .4rem; padding-left: .4rem; padding-right: .3rem; }
    .sidebar__group--langs .nav-glyph { width: 20px; height: 20px; border-radius: 6px; font-size: .5rem; flex: none; }
}

/* ---- Gợi ý khi gõ vào ô tìm kiếm ---- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; max-height: min(70vh, 420px); overflow-y: auto; padding: .35rem; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.suggest[hidden] { display: none; }
.suggest__i { display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.suggest__i:hover, .suggest__i.is-on { background: color-mix(in srgb, var(--brand) 14%, var(--surface-2)); }
.suggest__th { flex: none; width: 52px; height: 30px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.suggest__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest__t { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__t b { color: var(--brand); font-weight: 800; }
.suggest__k { flex: none; font-size: 11px; font-weight: 700; color: var(--text-2); padding: .12rem .5rem; border: 1px solid var(--line-2); border-radius: 999px; }
.suggest__k--video { color: #a78bfa; border-color: color-mix(in srgb, #a78bfa 45%, transparent); }
.suggest__k--album { color: #fbbf24; border-color: color-mix(in srgb, #fbbf24 45%, transparent); }
.suggest__k--artist { color: #34d399; border-color: color-mix(in srgb, #34d399 45%, transparent); }
.suggest__none { margin: 0; padding: .7rem .8rem; color: var(--text-2); font-size: var(--fs-sm); }
.search-big .search { position: relative; }

/* ==== Mobile: không để trang rộng hơn màn hình ==============================
   Chân trang nằm NGOÀI <main> (xem doc-close.html) nên lề âm kiểu cũ làm nó tràn 16px sang phải,
   kéo cả trang rộng hơn màn hình điện thoại. */
.foot { margin-left: 0; margin-right: 0; }
@media (max-width: 480px) {
    .header { gap: .5rem; }
    .header__brand { min-width: 0; flex: 1 1 auto; }
    .header__brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .header__right { flex: none; min-width: 0; }
}
html, body { max-width: 100%; overflow-x: clip; }

/* Hiệu ứng nền khi phát nhạc: bảng "Giao diện" có 4 nút */
.tpanel__seg--4 button { padding-left: .3rem; padding-right: .3rem; font-size: .75rem; }
.tpanel__sel:disabled { opacity: .5; }
@media print { #fx-bg { display: none; } }

/* ==== Danh sách chờ: tên bài đủ chỗ (tối đa 2 dòng), ảnh bìa không bị bo cắt mất chữ in trên ảnh ==== */
.queue .trow { grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: .55rem .5rem; border-radius: 10px; border-bottom: 0; }
.queue .trow__art { width: 56px; height: 32px; border-radius: 6px; }
.queue .trow__title { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.queue .trow__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); }
.queue .trow--playing { background: color-mix(in srgb, var(--brand) 12%, transparent); }
/* Ảnh "đang phát": hiện nguyên khung (nhiều ảnh bìa có in sẵn thời lượng/chữ ở góc — bo góc to sẽ cắt mất) */
.queue__nowart { border-radius: 8px; background: #000; }
.queue__nowart img { object-fit: contain; }

.tpanel__chk { display: flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.tpanel__chk input { accent-color: var(--brand); }

/* ==== KARAOKE: lời chạy theo tiếng hát, toàn màn hình ==== */
.kara { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 180; display: block; color: #fff; overflow: hidden; --ks: 1; }
.kara[hidden] { display: none; }
.kara__bg { position: absolute; inset: -6%; background: center / cover no-repeat; filter: blur(46px) saturate(1.5) brightness(.55); transform: scale(1.1); }
.kara__shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(8,10,9,.25), rgba(8,10,9,.88)); }
.kara__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 2.5rem); }
.kara__meta { min-width: 0; }
.kara__title { margin: 0; font-size: 1.15rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kara__sub { margin: .1rem 0 0; font-size: .85rem; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kara__tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.kara__btn { min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; backdrop-filter: blur(6px); }
.kara__btn:hover { background: rgba(255,255,255,.18); }
.kara__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.kara__off { min-width: 3rem; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; opacity: .75; }
.kara__note { position: relative; margin: 0; padding: 0 clamp(1rem, 4vw, 2.5rem); font-size: .85rem; opacity: .75; min-height: 1.2em; }
.kara__lines { position: relative; overflow-y: auto; padding: 38vh clamp(1rem, 6vw, 4rem) 42vh; text-align: center; scrollbar-width: none; outline: none; }
.kara__lines::-webkit-scrollbar { display: none; }
.kara__ln { margin: 0 auto; padding: .35em 0; max-width: 28ch; width: 100%; max-width: 900px; font-size: calc(clamp(1.25rem, 3.2vw, 2.1rem) * var(--ks)); line-height: 1.35; font-weight: 600; color: rgba(255,255,255,.38); transition: color .35s, transform .35s, opacity .35s; transform: scale(.94); cursor: default; overflow-wrap: anywhere; }
.kara__ln--gap { min-height: 1.4em; }
.kara__ln--past { color: rgba(255,255,255,.28); }
.kara__ln--on { color: rgba(255,255,255,.55); transform: scale(1.06); }
.kara__lines:not(.kara__lines--plain) .kara__ln { cursor: pointer; }
.kara__w { --p: 0; white-space: pre-wrap; }
.kara__ln--on .kara__w {
    background: linear-gradient(90deg, var(--brand, #d3f55c) calc(var(--p) * 1%), rgba(255,255,255,.6) calc(var(--p) * 1%));
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--brand, #d3f55c) 45%, transparent));
}
.kara__ln--past .kara__w { background: none; }
html.kara-open { overflow: hidden; }
@media (max-width: 640px) {
    .kara__tools .kara__btn:not(.kara__btn--x) { min-width: 2rem; height: 2rem; padding: 0 .45rem; font-size: .7rem; }
    .kara__head { padding-top: .8rem; }
}
.lyrbox__kara { display: inline-flex; align-items: center; gap: .35rem; margin-right: .4rem; }
.lyrbox__kara svg { width: 16px; height: 16px; }

/* ---- Khi hiệu ứng ánh sáng đang chạy: tiêu đề / thanh bên / chân trang trong hơn để thấy đèn sân khấu ---- */
.sidebar, .header, .foot, .player { transition: background-color .7s ease, backdrop-filter .7s ease, border-color .7s ease; }
html.fx-live .sidebar { background: color-mix(in srgb, var(--bg-2) 26%, transparent); border-right-color: color-mix(in srgb, var(--line) 50%, transparent); backdrop-filter: blur(2px); }
html.fx-live .header  { background: color-mix(in srgb, var(--bg) 18%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 45%, transparent); backdrop-filter: blur(2px); }
html.fx-live .foot    { background: color-mix(in srgb, var(--bg-2) 22%, transparent); border-top-color: color-mix(in srgb, var(--line) 45%, transparent); }
html.fx-live .lyrbox  { background: rgba(10, 16, 13, .16); border-color: color-mix(in srgb, var(--line-2) 55%, transparent); backdrop-filter: blur(2px); }
html.fx-live .lyrbox::before { opacity: .35; }
html.fx-live .lyrbox__body::after { background: linear-gradient(transparent, rgba(12, 18, 15, .45)); }
html.fx-live .player  { background: color-mix(in srgb, var(--bg-2) 62%, transparent); backdrop-filter: blur(10px); }
@media print { #fx-wave { display: none; } }

/* ---- Tiêu đề bài hát / MV / playlist dùng chung một font (trước đây trang chi tiết dùng chữ có chân Cormorant, lệch với phần còn lại) ---- */
.dhero__title, .fmv__title, .pldhero h1 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.015em; line-height: 1.08; }
.dhero__title { font-size: clamp(1.55rem, 2.8vw, 2.35rem); line-height: 1.15; overflow-wrap: anywhere; }
.fmv__title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.pldhero h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }

/* ---- Bài đang phát: nút phát đổi thành sóng nhạc ---- */
.eq { display: none; align-items: flex-end; justify-content: center; gap: 2px; width: 1.1em; height: 1em; color: currentColor; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; transform: scaleY(.35); }
.is-live .eq i, .trow--live .eq i { animation: eqbar 1s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.7s; } .eq i:nth-child(3) { animation-delay: -.4s; } .eq i:nth-child(4) { animation-delay: -.9s; }
.eq i:nth-child(2) { height: 85%; } .eq i:nth-child(4) { height: 70%; }
@keyframes eqbar { 0%, 100% { transform: scaleY(.25); } 30% { transform: scaleY(1); } 60% { transform: scaleY(.5); } 80% { transform: scaleY(.85); } }
/* Sóng chỉ hiện khi bài ĐANG PHÁT; tạm dừng thì trả lại biểu tượng play (bấm vào sóng cũng là tạm dừng). */
[data-play].is-live svg { display: none; }
[data-play].is-live .eq { display: inline-flex; width: 18px; height: 16px; }
.card__play.is-now { opacity: 1; }          /* chỉ hiện sẵn — KHÔNG đụng transform: nút có phép dịch riêng, đổi nó làm nút nhảy chỗ */
/* số thứ tự trong bảng bài hát đổi thành sóng */
body .trow--live .trow__no .num-text, body .trow--live .trow__no .trow__play { display: none !important; }
.trow--live .trow__no .eq { display: inline-flex; color: var(--brand); }
.trow--playing .trow__no .eq--no { width: 18px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .is-live .eq i, .trow--live .eq i { animation: none; transform: scaleY(.7); } }

/* ---- Khung YouTube trên trang bài hát ---- */
.ytbox { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 0 var(--s-6); border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ytbox__face { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center;
    background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.55)), var(--yt-img, none) center / cover no-repeat, #111; }
.ytbox__btn { width: 68px; height: 48px; border-radius: 14px; background: #f00; display: grid; place-items: center; transition: transform .15s ease, filter .15s ease; }
.ytbox__btn svg { width: 26px; height: 26px; color: #fff; fill: currentColor; }
.ytbox__face:hover .ytbox__btn, .ytbox__face:focus-visible .ytbox__btn { transform: scale(1.08); filter: brightness(1.1); }
.ytbox__face:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.ytbox__cap { position: absolute; left: 14px; bottom: 12px; font-size: .85rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.ytbox__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Trái tim đã thích: tô đặc. Biểu tượng #i-heart là nét viền (symbol), nên tô qua biến --heart-fill chảy vào symbol. ---- */
[data-like][aria-pressed="true"] svg, #pl-like[aria-pressed="true"] svg, [data-like].icon-btn--on svg { --heart-fill: var(--brand); fill: var(--brand); stroke: var(--brand); }
[data-like] svg { transition: fill .15s ease, stroke .15s ease; }
@keyframes heartpop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
[data-like][aria-pressed="true"] svg { animation: heartpop .3s ease; }

/* ---- Karaoke: ảnh + tên bài + thích/chia sẻ bên trái, lời bên phải, thanh phát nhạc vẫn ở dưới ---- */
.kara__grid { position: relative; height: 100%; display: grid; grid-template-columns: minmax(240px, 32%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.kara__side, .kara__main { min-height: 0; }
.kara__side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem clamp(1rem, 2.5vw, 2.5rem); min-width: 0; }
.kara__cover { width: min(100%, 320px); aspect-ratio: 1; border-radius: 16px; background: #222 center / cover no-repeat; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.kara__side .kara__meta { text-align: center; max-width: 100%; }
.kara__side .kara__title { font-size: 1.3rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.kara__acts { display: flex; gap: .6rem; }
.kara__act { width: 2.7rem; height: 2.7rem; padding: 0; }
.kara__act svg { width: 20px; height: 20px; }
.kara__act[aria-pressed="true"] { color: var(--brand, #d3f55c); border-color: var(--brand, #d3f55c); }
.kara__act[aria-pressed="true"] svg { --heart-fill: var(--brand, #d3f55c); fill: var(--brand, #d3f55c); stroke: var(--brand, #d3f55c); }
.kara__main { position: relative; min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
.kara__head { justify-content: flex-end; }
.kara__lines { padding-top: 30vh; padding-bottom: 34vh; }
@media (max-width: 860px) {
    .kara__grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
    .kara__side { flex-direction: row; justify-content: flex-start; gap: .8rem; padding: .8rem 1rem 0; text-align: left; }
    .kara__cover { width: 56px; border-radius: 10px; flex: none; }
    .kara__side .kara__meta { flex: 1; min-width: 0; text-align: left; }
    .kara__side .kara__title { font-size: 1rem; -webkit-line-clamp: 1; }
    .kara__act { width: 2.2rem; height: 2.2rem; }
    .kara__main { grid-row: 2; }
    .kara__lines { padding-top: 18vh; padding-bottom: 22vh; }
}
/* ==== Thanh bên: cuộn cùng trang, tới CUỐI thanh bên thì dừng (dính đáy) ====
   Nội dung bên phải cuộn tiếp. Hiện đầy đủ thể loại và quốc gia. Giá trị top do boot.js tính theo chiều cao thật. */
@media (min-width: 1080px) {
    .sidebar, body:has(.player--on) .sidebar {
        position: sticky; top: 0; align-self: start;   /* top được boot.js đặt = chiều cao màn hình − chiều cao thanh bên */
        height: auto !important; min-height: 0; overflow: visible !important;
        padding-bottom: calc(var(--h-player) + var(--s-5)) !important;
    }
    .sidebar__group--genres, .sidebar__group--langs { display: block !important; overflow: visible; flex: none; }
    .sidebar .sidebar__foot { position: static !important; }
    .sidebar__pick { display: block !important; }
}
@media (min-width: 1080px) { .sidebar .sidebar__foot, .sidebar:has(.sidebar__foot) .sidebar__foot { margin-top: var(--s-4) !important; } }
.card--track .card__play.is-now, .card--video .card__play.is-now { transform: translate(50%, 50%); }

/* =============================================================================
   ĐIỆN THOẠI: thanh phát rút gọn + màn hình "Đang phát" (assets/js/nowplaying.js)
   ============================================================================= */
@media (max-width: 1079px) {
    /* Chưa có bài: thanh phát phải ẩn HẲN. Trước đây nó chỉ trượt xuống đúng bằng chiều cao của chính nó, mà nó lại nằm trên thanh
       menu → rơi đúng vào thanh menu và che mất. */
    .player:not(.player--on) { transform: translateY(calc(100% + var(--h-tabbar) + env(safe-area-inset-bottom, 0px) + 12px)); visibility: hidden; pointer-events: none; }
    .player { display: flex; align-items: center; gap: .6rem; padding-left: .75rem; padding-right: .5rem; }
    .player .player__now { flex: 1 1 auto; min-width: 0; cursor: pointer; gap: .65rem; }
    .player .player__art { width: 44px; height: 44px; }
    .player .player__meta { flex: 1; min-width: 0; }
    .player .player__title { font-size: .9rem; }
    .player .player__right { display: none; }
    .player #pl-like { flex: none; }
    .player .player__mobile { display: flex; flex: none; gap: .15rem; align-items: center; }
    .player .player__mobile .player__play { width: 42px; height: 42px; }
    .player .player__mobile .icon-btn { width: 38px; height: 38px; }
    /* thanh tua mảnh nằm trên mép trên của thanh phát, vùng chạm rộng, kéo được */
    .player .player__center { display: block; position: absolute; left: 0; right: 0; top: -1px; height: 3px; padding: 0; z-index: 2; }
    .player .player__btns, .player .player__center .num { display: none; }
    .player .player__center .pbar { display: block; width: 100%; height: 3px; }
    .player .player__center .pbar__track { height: 3px; border-radius: 0; background: rgba(255,255,255,.14); touch-action: none; }
    .player .player__center .pbar__track::before { inset: -14px 0; }
    .player .player__center .pbar__fill, .player .player__center .pbar__buf { border-radius: 0; }
    .player .player__center .pbar__knob { opacity: 1; width: 9px; height: 9px; }
}
html.npv-open { overflow: hidden; }
.npv { position: fixed; inset: 0; z-index: 450; display: flex; flex-direction: column; align-items: center; color: #fff; background: #0b100a;
    padding: env(safe-area-inset-top, 0px) 22px calc(18px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.npv[hidden] { display: none; }
.npv__bg { position: absolute; inset: -12%; background: center / cover no-repeat; filter: blur(52px) saturate(1.5) brightness(.42); }
.npv > :not(.npv__bg) { position: relative; width: 100%; max-width: 440px; }
.npv__top { display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; flex: none; }
.npv__top .icon-btn { color: #fff; }
.npv__top .icon-btn svg { width: 24px; height: 24px; }
.npv__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.npv__art { flex: none; width: min(80vw, 44vh); max-width: 100%; aspect-ratio: 1; margin: .9rem auto; border-radius: 18px; background: #222 center / cover no-repeat; box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.npv__info { display: flex; align-items: center; gap: .8rem; flex: none; }
.npv__meta { flex: 1; min-width: 0; }
.npv__title { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.npv__artist { margin: .2rem 0 0; font-size: .95rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npv__like { color: #fff; width: 44px; height: 44px; }
.npv__like svg { width: 26px; height: 26px; }
.npv__like[aria-pressed="true"] { color: var(--brand); }
.npv__acts { display: flex; justify-content: space-around; padding: .9rem 0 .4rem; flex: none; }
.npv__act { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 64px; padding: .3rem .5rem; color: rgba(255,255,255,.85); font: inherit; font-size: .7rem; border-radius: 12px; }
.npv__act svg { width: 24px; height: 24px; }
.npv__act b { font-size: .95rem; line-height: 24px; }
.npv__act:active { background: rgba(255,255,255,.1); }
.npv__seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin-top: auto; font-size: .75rem; opacity: .95; flex: none; }
.npv__track { height: 5px; background: rgba(255,255,255,.2); touch-action: none; }
.npv__track::before { inset: -16px 0; }
.npv__track .pbar__knob { opacity: 1; width: 14px; height: 14px; }
.npv__btns { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0 .4rem; flex: none; }
.npv__btns .icon-btn { color: #fff; width: 46px; height: 46px; }
.npv__btns .icon-btn svg { width: 24px; height: 24px; }
.npv__btns .icon-btn.icon-btn--on { color: var(--brand); }
.npv__btns .npv__skip svg { width: 28px; height: 28px; }
.npv .npv__play { width: 68px; height: 68px; }
.npv .npv__play svg { width: 30px; height: 30px; }
@media (max-height: 640px) { .npv__art { width: min(60vw, 36vh); margin: .4rem auto; } .npv__acts { padding: .4rem 0 .2rem; } }
.npv > .npv__art { flex: 0 1 auto; width: auto; height: min(80vw, 42vh); max-height: calc(100vh - 440px); min-height: 110px; aspect-ratio: 1; align-self: center; max-width: 100%; margin: .8rem auto; }
.npv > .npv__acts { padding-top: .5rem; }

/* ==== Thanh bên thu vào / mở ra (chỉ máy tính ≥ 1080 px) ================================================ */
.side-toggle { display: none; flex: none; }
@media (min-width: 1080px) {
    .side-toggle { display: inline-grid; margin-right: .25rem; }
    .shell { transition: grid-template-columns .22s ease; }
    html.side-min { --w-sidebar: 72px; }
    html.side-min .sidebar { padding-left: .5rem; padding-right: .5rem; overflow-x: hidden !important; }
    html.side-min .brand { justify-content: center; padding-left: 0; padding-right: 0; }
    html.side-min .brand__txt, html.side-min .brand__tag { display: none; }
    html.side-min .sidebar .nav-item { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
    html.side-min .sidebar .nav-item > span:not(.nav-glyph) { display: none; }
    html.side-min .sidebar__label, html.side-min .sidebar__pick { display: none !important; }
    html.side-min .sidebar__group--genres { padding-top: var(--s-2); }
    html.side-min .nav-item--sub { flex-direction: row; }
}

/* ---- Gợi ý thông minh (assets/js/reco.js) ---- */
.reco[hidden] { display: none; }
.reco .sechead__more { background: none; border: 0; cursor: pointer; font: inherit; }
.reco__continue { margin-bottom: var(--s-4); }
.reco__continue[hidden] { display: none; }
.reco__continue .btn { max-width: 100%; }
.reco__continue .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__genre { color: var(--brand); font-size: var(--fs-xs); }

/* ---- Chọn ngôn ngữ dạng menu (nhiều ngôn ngữ) ---- */
.langsw--menu { position: relative; display: block; background: none; padding: 0; border: 0; }
.langsw__d > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .7rem; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: .8rem; text-transform: uppercase; }
.langsw__d > summary::-webkit-details-marker { display: none; }
.langsw__d > summary svg { width: 16px; height: 16px; }
.langsw__chev { opacity: .6; transition: transform .15s ease; }
.langsw__d[open] .langsw__chev { transform: rotate(180deg); }
.langsw__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; margin: 0; padding: .35rem; list-style: none; min-width: 190px;
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); max-height: 70vh; overflow-y: auto; }
.langsw__list a { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .9rem; }
.langsw__list a b { width: 2rem; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--text-3); }
.langsw__list a:hover { background: var(--surface-2); }
.langsw__list a[aria-current="true"] { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--text); font-weight: 700; }
.langsw__list a[aria-current="true"] b { color: var(--brand); }
/* ==== Bình luận (comments.js) ============================================== */
.cmts { max-width: 52rem; }
.cmts__n { margin-left: .6rem; padding: .05rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.cmts__n:empty { display: none; }
.cmts__form { display: grid; gap: .5rem; margin: 0 0 var(--s-4); }
.cmts__ta { width: 100%; min-height: 4.5rem; resize: vertical; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--bg-2) 70%, transparent); color: var(--text); font: inherit; line-height: 1.5; }
.cmts__ta:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.cmts__row { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.cmts__cnt { color: var(--text-3); font-size: var(--fs-xs); margin-right: auto; }
.cmts__note { margin: 0; padding: .7rem .9rem; border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); }
.cmts__login { justify-self: start; }
.cmts__empty { color: var(--text-2); margin: var(--s-3) 0; }
.cmts__list, .cmt__replies { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.cmt { display: grid; grid-template-columns: 38px 1fr; gap: .75rem; }
.cmt__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #4cc3ff)); color: var(--text-on-brand); }
.cmt--reply { grid-template-columns: 30px 1fr; }
.cmt--reply .cmt__av { width: 30px; height: 30px; font-size: .8rem; }
.cmt__main { min-width: 0; }
.cmt__head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.cmt__name { font-size: var(--fs-sm); }
.cmt__at { color: var(--text-3); font-size: var(--fs-xs); }
.cmt__text { margin: .2rem 0 .35rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.cmt__acts { display: flex; gap: .9rem; flex-wrap: wrap; }
.cmt__act { background: none; border: 0; padding: .1rem 0; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.cmt__act:hover { color: var(--text); }
.cmt__act svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.cmt__act.is-on { color: var(--brand); }
.cmt__act.is-on svg { fill: var(--heart-fill, currentColor); }
.cmt__replies { margin-top: var(--s-3); padding-left: 0; }
.cmt__main > .cmts__form { margin-top: .6rem; }
.cmts__more { margin-top: var(--s-4); }
html.fx-live .cmts__ta { background: color-mix(in srgb, var(--bg-2) 40%, transparent); }

/* Trang MV dùng khung YouTube thay cho khung phát của site */
.watch__main .ytbox--watch { max-width: none; margin-bottom: var(--s-4); }

/* ==== Video YouTube trong trình phát của site (assets/js/yt.js) ============== */
.ytbox__btn { background: var(--brand); box-shadow: 0 8px 26px color-mix(in srgb, var(--brand) 45%, transparent); }
.ytbox__btn svg { color: var(--text-on-brand); }
.ytbox__face:hover .ytbox__btn, .ytbox__face:focus-visible .ytbox__btn { background: var(--brand-strong, var(--brand)); }
.ytbox.is-on { background: #000; }
.ytbox.is-on .ytbox__face { display: none; }

.ytstage { position: fixed; z-index: 60; isolation: isolate; }
.ytstage__vid { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #000; }
.ytstage__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytstage__tools { display: none; }

/* Ánh sáng quanh khung khi đang phát (không bám nhịp — âm thanh YouTube nằm trong iframe khác nguồn) */
.ytstage__glow { position: absolute; inset: -12px; z-index: -1; border-radius: 26px; opacity: 0; transition: opacity .6s ease; pointer-events: none;
    background: conic-gradient(from 0deg, #5ee0a0, #4cc3ff, #b48cff, #ff6ec7, #ffd166, #d3f55c, #5ee0a0); filter: blur(22px); }
.ytstage.is-live .ytstage__glow { opacity: .55; animation: ytglow 9s linear infinite; }
@keyframes ytglow { to { transform: rotate(360deg); } }
.ytstage--dock .ytstage__glow { inset: -6px; }

/* Thu nhỏ: góc dưới phải, trên thanh phát */
.ytstage--mini { right: var(--s-4); bottom: calc(var(--h-player) + var(--s-4)); width: 320px; aspect-ratio: 16 / 9; z-index: 190; }
.ytstage--mini .ytstage__vid { border-radius: 12px; box-shadow: var(--sh-3, 0 12px 36px rgba(0,0,0,.55)); }
.ytstage--mini .ytstage__tools { display: flex; position: absolute; left: 0; right: 0; top: 0; padding: 6px 8px; gap: 8px; align-items: center;
    background: linear-gradient(rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .15s ease; border-radius: 12px 12px 0 0; z-index: 2; }
.ytstage--mini:hover .ytstage__tools, .ytstage--mini:focus-within .ytstage__tools { opacity: 1; }
.ytstage__open { flex: 1; min-width: 0; color: #fff; font-size: .78rem; font-weight: 600; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ytstage__x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ytstage__x:hover { background: rgba(0,0,0,.8); }
@media (hover: none) { .ytstage--mini .ytstage__tools { opacity: 1; } }
@media (max-width: 1079px) {
    .ytstage--mini { width: 200px; right: var(--s-3); bottom: calc(var(--h-player-m) + var(--h-tabbar) + var(--s-3)); }
}
@media (prefers-reduced-motion: reduce) { .ytstage.is-live .ytstage__glow { animation: none; } }

/* ==== Trang xem MV: bố cục tiêu đề / thanh thao tác / số liệu / chia sẻ ======= */
.watch__head { display: block; margin: var(--s-4) 0 var(--s-3); }
.watch__head .watch__title { margin: 0 0 .5rem; }
.watch__head .dmeta--flat { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .2rem; margin: 0; }
.watch__head .dmeta--flat li { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); font-size: var(--fs-sm); }
.watch__head .dmeta--flat li svg { width: 15px; height: 15px; }
.watch__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); flex-wrap: wrap;
    margin: 0 0 var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.watch__bar .watch__acts { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.watch__bar .statline { margin: 0; }
.pillbtn { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease; }
.pillbtn svg { width: 18px; height: 18px; flex: none; }
.pillbtn:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.pillbtn[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.pillbtn--heart[aria-pressed="true"] svg { fill: var(--brand); }
@media (max-width: 560px) {
    .watch__bar { flex-direction: column; align-items: flex-start; }
    .pillbtn { height: 38px; padding: 0 .85rem; }
}
html.fx-live .pillbtn { background: color-mix(in srgb, var(--surface) 35%, transparent); }

/* Khay "Thêm" của thanh dưới nổi lên trên thanh phát khi mở */
.tabbar.tabbar--more { z-index: 260; }

/* ==== Trang Yêu thích: bố cục mới (banner tự đổi ảnh, thẻ số liệu, bộ sưu tập) ==== */
.crumbs { display: flex; align-items: center; gap: .55rem; margin: 0 0 var(--s-4); font-size: var(--fs-sm); color: var(--text-3); }
.crumbs strong { color: var(--text); font-weight: 600; }

.favhero2 { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(220px, 24vw, 290px);
    margin: 0 0 var(--s-4); padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); }
.favhero2__bg { position: absolute; inset: 0; z-index: -2; }
.fslide { position: absolute; inset: 0; background-size: cover; background-position: right center; background-repeat: no-repeat;
    background-image: var(--fd); opacity: 0; transition: opacity 2.4s ease; }
.fslide.is-on { opacity: 1; }
:root[data-theme="light"] .fslide { background-image: var(--fl); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]):not([data-theme="light"]) .fslide { background-image: var(--fl); } }
/* lớp phủ: giữ phần chữ bên trái luôn đọc rõ trên mọi ảnh */
.favhero2::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 72%); }
.favhero2__txt { max-width: 38rem; }
.favhero2__k { margin: 0 0 .7rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.favhero2 h1 { margin: 0 0 .7rem; font-family: var(--font); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.01em; }
.favhero2__p { margin: 0 0 1.25rem; color: color-mix(in srgb, var(--text) 82%, transparent); max-width: 34rem; line-height: 1.55; font-size: var(--fs-md); text-transform: none; letter-spacing: 0; }
.favhero2__acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.favhero2__acts .btn--lime, .favhero2__acts .btn--outline { display: inline-flex; align-items: center; gap: .5rem; height: 42px; }
.favhero2__acts svg { width: 16px; height: 16px; }
.favhero2__chip { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 62%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(6px); font-size: var(--fs-xs); color: var(--text-2); }
.favhero2__chip svg { width: 13px; height: 13px; color: var(--brand); }
.favhero2__chip b { color: var(--text); font-weight: 700; }

.favstats { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.favstats li { display: flex; align-items: center; gap: .75rem; min-width: 128px; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 70%, transparent); }
.favstats svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.favstats strong { display: block; font-size: 1.25rem; line-height: 1.1; font-weight: 700; }
.favstats span { font-size: var(--fs-xs); color: var(--text-2); }

.favsec { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.favsec h2 { margin: 0 0 .3rem; font-family: var(--font); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.favsec p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.favsec .btn--outline { display: inline-flex; align-items: center; gap: .5rem; }
.favsec .btn--outline svg { width: 15px; height: 15px; }
.tab__n { margin-left: .25rem; font-style: normal; font-size: .85em; color: var(--text-3); font-weight: 500; }
.tab--on .tab__n { color: var(--brand); }

@media (max-width: 640px) {
    .favhero2 { min-height: 0; padding: 1.25rem; }
    .favhero2::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 55%, transparent)); }
    .favhero2__chip { position: static; margin-top: 1rem; align-self: flex-start; }
    .favhero2 { flex-direction: column; align-items: flex-start; }
    .favstats li { flex: 1; min-width: 0; padding: .65rem .75rem; }
}
html.fx-live .favhero2, html.fx-live .favstats li { background-color: color-mix(in srgb, var(--bg-2) 40%, transparent); }

/* Bộ lọc thể loại / ngôn ngữ của trang Yêu thích: chip có biểu tượng */
.favfilters .chip { display: inline-flex; align-items: center; gap: .45rem; }
.favfilters .chip__ic { width: 16px; height: 16px; flex: none; }
.chip__g { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; font-size: .68rem; font-weight: 700; line-height: 1;
    background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text-2); }
.chip--on .chip__g { background: color-mix(in srgb, var(--text-on-brand) 18%, transparent); color: inherit; }

/* Bình luận: khách thấy ô nhập (chỉ đọc) + lời nhắc đăng nhập */
.cmts__ta[readonly] { cursor: pointer; opacity: .9; }
.cmts__row--guest { justify-content: space-between; }
.cmts__guest { color: var(--text-2); font-size: var(--fs-sm); margin-right: auto; }

/* "Có thể bạn thích": tiêu đề gọn hơn, ngang cỡ các mục phụ */
.reco .sechead__title { font-size: var(--fs-md); font-weight: 650; }

/* ---- Thẻ (tag) của bài hát / MV ---- */
.tagsec { margin-top: var(--s-6); }
.tagsec__t { margin: 0 0 var(--s-3); font-size: var(--fs-sm); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.tagrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.tagrow--pick { margin: 0 0 var(--s-5); }
.tag { display: inline-flex; align-items: center; padding: .32rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); line-height: 1.2; transition: color .15s, border-color .15s, background .15s; }
.tag:hover { color: var(--brand); border-color: var(--brand); }
.tag--on { color: var(--text-on-brand, #0c1408); background: var(--brand); border-color: var(--brand); font-weight: 650; }
.tagpage { margin-bottom: var(--s-4); }

/* Tiêu đề MV ở trang chi tiết: vừa phải hơn */
.watch__title { font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.2; font-weight: 400; }

/* ---- Trang Liên hệ + Bản quyền ---- */
.ctc { max-width: 70rem; margin: 0 auto; }
.ctc__head { margin: 0 0 var(--s-6); max-width: 46rem; }
.ctc__head h1 { margin: .2rem 0 .6rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; }
.ctc__lead { margin: 0; color: var(--text-2); line-height: 1.6; }
.ctc__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (max-width: 900px) { .ctc__grid { grid-template-columns: 1fr; } }
.ctc__form, .ctc__cp { border: 1px solid var(--line); border-radius: var(--r-md, 16px); background: var(--surface); padding: var(--s-5); display: grid; gap: var(--s-4); }
.ctc__form h2, .ctc__cp h2 { margin: 0; font-size: var(--fs-md); }
.ctc__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .ctc__row { grid-template-columns: 1fr; } }
.ctc__f { display: grid; gap: .35rem; font-size: var(--fs-sm); }
.ctc__f > span:first-child { color: var(--text-2); }
.ctc__f input, .ctc__f textarea { width: 100%; box-sizing: border-box; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; }
.ctc__f input:focus, .ctc__f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.ctc__f .select { display: flex; width: 100%; }
.ctc__f .select select { width: 100%; }
.ctc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ctc__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.ctc__msg { margin: 0; font-size: var(--fs-sm); }
.ctc__msg.is-ok { color: var(--brand); }
.ctc__msg.is-bad { color: var(--bad, #f87171); }
.ctc__cp p, .ctc__cp li { color: var(--text-2); line-height: 1.6; font-size: var(--fs-sm); }
.ctc__cp ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.ctc__note { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--bg-2); border-left: 3px solid var(--brand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bảng Giao diện: biểu tượng, khoảng cách giữa các ô chọn ---- */
.tpanel__l { display: flex; align-items: center; gap: .45rem; }
.tpanel__l svg { width: 14px; height: 14px; flex: none; color: var(--brand); }
.tpanel__seg button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.tpanel__seg button svg { width: 16px; height: 16px; flex: none; }
.tpanel__sel + .tpanel__sel, .tpanel__sel + .tpanel__chk { margin-top: .6rem; }
.tpanel__sel { margin-bottom: 0; }

/* Trang Liên hệ: một cột */
.ctc { max-width: 46rem; }
.ctc__grid { display: block; }

/* ---- Trang Liên hệ: ảnh nền sáng / tối, form bên trái + lời cảm ơn bên phải ---- */
.ctc { max-width: 72rem; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line-2); border-radius: 22px;
    padding: clamp(1.25rem, 4vw, 3rem); background: var(--bg-2) url('../img/contact/contact-dark.webp') right center / cover no-repeat; }
:root[data-theme="light"] .ctc { background-image: url('../img/contact/contact-light.webp'); }
.ctc__head { max-width: 40rem; }
.ctc__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .ctc__grid { grid-template-columns: 1fr; } }
.ctc__form { background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: var(--line-2); }
.ctc__thanks { display: grid; gap: .8rem; align-content: center; padding: clamp(.5rem, 2vw, 1.5rem); max-width: 26rem; justify-self: end; }
@media (max-width: 900px) { .ctc__thanks { justify-self: start; } }
.ctc__thanks svg { width: 34px; height: 34px; color: var(--brand); }
.ctc__thanks h2 { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.ctc__thanks p { margin: 0; color: var(--text-2); line-height: 1.7; }

/* ---- Chế độ xem thử (quản trị viên): thanh báo trên cùng --------------------------------------- */
.pvbar{position:sticky;top:0;z-index:300;display:flex;gap:var(--s-3,12px);align-items:center;justify-content:space-between;
  padding:8px 16px;background:#e8b923;color:#1a1400;font-size:13px;line-height:1.4}
.pvbar b{font-weight:700}
.pvbar__x{flex:none;padding:5px 12px;border-radius:999px;background:#1a1400;color:#fff;text-decoration:none;font-weight:600;font-size:12.5px}
.pvbar__x:hover{background:#000}
@media (max-width:640px){.pvbar{flex-direction:column;align-items:flex-start}}

/* ---- Blog + trang giới thiệu (landing) --------------------------------------------------------- */
.blog-head { margin-bottom: var(--s-5); }
.blog-head h1 { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.blog-head__sub { margin: 0; color: var(--text-2); max-width: 60ch; }

.card--blog { display: flex; flex-direction: column; gap: var(--s-3); }
.card--blog .card__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md, 14px); background: var(--bg-2); }
.card--blog .card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card--blog:hover .card__art img { transform: scale(1.03); }
.card--blog .card__date { font-size: .75rem; letter-spacing: .08em; color: var(--text-2); }
.card--blog .card__title { margin: .25rem 0 .4rem; font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
.card--blog .card__title a { color: var(--text); text-decoration: none; }
.card--blog .card__title a:hover { color: var(--brand); }
.card--blog .card__desc { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.blog-post { max-width: var(--w-read, 760px); margin: 0 auto var(--s-7, 48px); }
.blog-post__head h1 { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.2; }
.blog-post__head .dhero__kicker a { color: inherit; text-decoration: none; }
.blog-post__meta { margin: 0 0 var(--s-5); color: var(--text-2); font-size: .85rem; }
.blog-post__cover { margin: 0 0 var(--s-5); border-radius: var(--r-lg, 18px); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.blog-post__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-post__body { font-size: 1.05rem; line-height: 1.8; }
.blog-post__body img { max-width: 100%; height: auto; border-radius: var(--r-md, 14px); }

.blog-rel { margin: var(--s-7, 48px) 0 0; }
.blog-rel > h2 { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.blog-rel:not(:has(.card)) { display: none; }

.lp-hero { margin-bottom: var(--s-6, 32px); }
.lp-sec { margin: 0 0 var(--s-7, 48px); }
.lp-sec__title { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.lp-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-4); }
.lp-feat__i { padding: var(--s-5); border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: var(--r-lg, 18px); background: var(--surface, rgba(255,255,255,.03)); }
.lp-feat__i svg { width: 28px; height: 28px; color: var(--brand); margin-bottom: var(--s-3); }
.lp-feat__i h3 { margin: 0 0 .35rem; font-size: 1.02rem; font-weight: 600; }
.lp-feat__i p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.lp-end { text-align: center; padding: var(--s-7, 48px) var(--s-5); border-radius: var(--r-xl, 24px);
  background: linear-gradient(135deg, rgba(211,245,92,.14), rgba(76,195,255,.12)); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.lp-end h2 { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lp-end p { margin: 0 0 var(--s-5); color: var(--text-2); }

.pvbar__btns { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.pvbar__x--ghost { background: transparent; color: #1a1400; box-shadow: inset 0 0 0 1.5px #1a1400; }
.pvbar__x--ghost:hover { background: rgba(26,20,0,.12); }
.tpanel__rng { width: 100%; margin: .2rem 0 .3rem; accent-color: var(--brand); }

/* ---- Đang phát nhạc (html.fx-live): đầu trang trong suốt để thấy ánh sáng sân khấu phía sau ------- */
html.fx-live .header { background: transparent; border-bottom-color: transparent; }
html.fx-live .search__input,
html.fx-live .langsw__d > summary,
html.fx-live .avatar-btn {
  background: color-mix(in srgb, var(--surface) 38%, transparent);
  border-color: color-mix(in srgb, var(--line-2) 70%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---- Landing + giới thiệu (welcome.php) — bố cục theo bản thiết kế --------------------------------- */
.lp-kick { margin: 0 0 .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--brand); }
.lp-hero2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6, 32px); align-items: center;
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: var(--r-xl, 24px); overflow: hidden;
  background: linear-gradient(120deg, var(--bg-2, #0e1512), var(--bg, #0a100d)); margin-bottom: var(--s-5, 20px); }
.lp-hero2__txt { padding: clamp(1.4rem, 4vw, 3.4rem); }
.lp-hero2__txt h1 { margin: 0 0 .8rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -.01em; }
.lp-lead { margin: 0 0 1.4rem; color: var(--text-2); max-width: 46ch; line-height: 1.65; }
.lp-hero2__img { align-self: stretch; min-height: 260px; }
.lp-hero2__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .lp-hero2 { grid-template-columns: 1fr; } .lp-hero2__img { order: -1; min-height: 0; aspect-ratio: 16 / 9; } }

.lp-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); margin: 0 0 var(--s-7, 48px); padding: var(--s-4) var(--s-2); }
.lp-perks > div { display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; align-items: center; }
.lp-perks svg { grid-row: span 2; width: 28px; height: 28px; color: var(--brand); }
.lp-perks b { font-size: .95rem; }
.lp-perks span { color: var(--text-2); font-size: .8rem; }

.lp-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.lp-genre { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg, 18px); overflow: hidden; background: var(--bg-2); text-decoration: none; color: #fff; }
.lp-genre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lp-genre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72)); }
.lp-genre:hover img { transform: scale(1.05); }
.lp-genre span { position: absolute; left: .8rem; right: .8rem; bottom: .7rem; z-index: 1; font-weight: 600; }

.lp-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-6, 32px); align-items: center;
  padding: clamp(1.2rem, 3vw, 2.4rem); border-radius: var(--r-xl, 24px); background: color-mix(in srgb, var(--bg-2, #0e1512) 80%, var(--brand) 6%); }
.lp-band h2 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.lp-band p { color: var(--text-2); }
.lp-langs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.lp-langs a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg, 18px); overflow: hidden; color: #fff; text-decoration: none; }
.lp-langs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-langs a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); }
.lp-langs span { position: absolute; left: .6rem; bottom: .55rem; z-index: 1; font-weight: 600; font-size: .9rem; }
@media (max-width: 860px) { .lp-band { grid-template-columns: 1fr; } .lp-langs { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }

.lp-mv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-6, 32px); align-items: center;
  border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: var(--r-xl, 24px); overflow: hidden; background: var(--bg-2, #0e1512); }
.lp-mv__txt { padding: clamp(1.2rem, 3vw, 2.4rem); }
.lp-mv__txt h2 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.lp-mv__txt p { color: var(--text-2); }
.lp-mv__img { position: relative; display: block; align-self: stretch; min-height: 240px; }
.lp-mv__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-mv__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: var(--text-on-brand, #0c1408); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
.lp-mv__play svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .lp-mv { grid-template-columns: 1fr; } .lp-mv__img { order: -1; aspect-ratio: 16 / 9; min-height: 0; } }

.lp-about h2 { margin: 0 0 var(--s-4); font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lp-about__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-6, 32px); color: var(--text-2); line-height: 1.7; }
.lp-about ul { margin: .6rem 0 0; padding-left: 1.2rem; list-style: disc; }
.lp-about li { margin: .3rem 0; }

.lp-end { position: relative; text-align: center; padding: clamp(2rem, 6vw, 4.5rem) var(--s-5); border-radius: var(--r-xl, 24px); overflow: hidden;
  background: linear-gradient(180deg, rgba(10,16,13,.55), rgba(10,16,13,.8)), var(--lp-end-img, none) center / cover no-repeat; border: 1px solid var(--line, rgba(255,255,255,.08)); }
.lp-genre:nth-child(n+7) { display: none; }

/* Nhãn Nháp / Hẹn giờ trên thẻ (chỉ khi xem thử) */
.pvtag{position:absolute;left:8px;top:8px;z-index:3;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.5;background:#e0a800;color:#1a1400;pointer-events:none}
.pvtag--s{background:#3b82f6;color:#fff}
.trow__title .pvtag{position:static;display:inline-block;margin-left:6px;vertical-align:middle}

/* Bảng Giao diện và màu sắc: màn hình thấp (hoặc chữ to) thì thu gọn khoảng cách để vừa một màn hình, không phải cuộn */
@media (max-height: 820px) {
  .tpanel { padding: .6rem .8rem .7rem; }
  .tpanel__t { margin-bottom: .25rem; }
  .tpanel__l { margin: .5rem 0 .25rem; font-size: .68rem; }
  .tpanel__seg button { padding: .3rem; font-size: .8rem; }
  .tpanel__sw, .tpanel__custom input { width: 22px; height: 22px; }
  .tpanel__sws { gap: .35rem; }
  .tpanel__sel { padding: .3rem .5rem; }
  .tpanel__reset { margin-top: .5rem; padding: .3rem; }
}
@media (max-height: 640px) {
  .tpanel { padding: .45rem .65rem .55rem; }
  .tpanel__l { margin: .35rem 0 .15rem; }
  .tpanel__seg button { padding: .2rem; font-size: .74rem; }
  .tpanel__sw, .tpanel__custom input { width: 18px; height: 18px; }
  .tpanel__reset { margin-top: .35rem; padding: .2rem; }
}

/* Ô tìm kiếm khi đang phát nhạc: đậm hơn một chút (38% → 48%) cho dễ đọc */
html.fx-live .search__input { background: color-mix(in srgb, var(--surface) 48%, transparent); }

/* ---- Công cụ âm thanh (tools.php) ---- */
.tl { max-width: 760px; margin: 0 auto; padding: var(--s-6, 32px) 0; }
.tl__head { margin-bottom: 1.2rem; }
.tl__head h1 { margin: .2rem 0 .6rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.tl__lead { margin: 0; color: var(--text-2); line-height: 1.65; }
.tl__card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl, 20px); padding: clamp(1rem, 3vw, 1.6rem); }
.tl__drop { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 2.2rem 1rem; border: 2px dashed var(--line-2); border-radius: 16px; cursor: pointer; color: var(--text); }
.tl__drop:hover, .tl__drop.is-over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.tl__drop svg { width: 36px; height: 36px; color: var(--brand); }
.tl__drop span { color: var(--text-2); }
.tl__drop small { color: var(--text-2); font-size: .78rem; }
.tl__name { margin: 0 0 .6rem; font-weight: 600; word-break: break-word; }
.tl audio { width: 100%; }
.tl__len { margin: .6rem 0; color: var(--text-2); }
.tl__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: .8rem 0; }
.tl__row label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--text-2); }
.tl__row input, .tl__row select { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: inherit; padding: .5rem .6rem; }
.tl__act { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0; }
.tl progress { width: 100%; height: 8px; margin: .4rem 0; }
.tl__msg { min-height: 1.3em; margin: .3rem 0; color: var(--text-2); }
.tl__msg.is-bad { color: #ff8c8c; }
.tl__out { display: grid; gap: .6rem; margin-top: .6rem; }
.tl__note { margin: 1rem 0 0; font-size: .78rem; color: var(--text-2); }
@media (max-width: 560px) { .tl__row { grid-template-columns: 1fr; } }
.tl__info { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .9rem; margin: .4rem 0 .8rem; font-size: .85rem; }
.tl__info dt { color: var(--text-2); }
.tl__info dd { margin: 0; }
.tl__hint { margin: .4rem 0; font-size: .82rem; color: var(--text-2); }
.tl__hint:not(:empty) { padding: .5rem .7rem; border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 6px; }

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

/* Sóng âm + khung chọn đoạn cắt; thông tin tệp 2 cột */
.tl__wave { position: relative; height: 96px; margin: .4rem 0 .8rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; }
.tl__wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tl__sel { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: color-mix(in srgb, var(--brand) 16%, transparent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5); cursor: grab; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.tl__sel:active { cursor: grabbing; }
.tl__h { position: absolute; top: 0; bottom: 0; width: 14px; background: var(--brand); cursor: ew-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.tl__h::after { content: ''; width: 2px; height: 22px; border-radius: 2px; background: var(--text-on-brand, #0a100d); box-shadow: -3px 0 0 var(--text-on-brand, #0a100d), 3px 0 0 var(--text-on-brand, #0a100d); opacity: .6; }
.tl__h--l { left: -1px; border-radius: 8px 0 0 8px; } .tl__h--r { right: -1px; border-radius: 0 8px 8px 0; }
.tl__h:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.tl__hint2 { margin: .2rem 0 0; font-size: .8rem; color: var(--text-2); }
.tl__info { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin: .5rem 0 .8rem; }
.tl__i { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem .6rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.tl__i svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl__i span { min-width: 0; }
.tl__i dt { font-size: .72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.tl__i dd { margin: 0; font-size: .88rem; word-break: break-word; }
@media (max-width: 480px) { .tl__info { grid-template-columns: 1fr; } }

.tl [hidden] { display: none !important; }

/* ---- Welcome: bố cục theo bản thiết kế mới ---- */
.lp-hero2 { border: 0; background: transparent; border-radius: 0; margin-bottom: var(--s-4, 16px); min-height: clamp(360px, 46vw, 520px); position: relative; }
.lp-hero2__txt { position: relative; z-index: 2; padding-left: 0; }
.lp-hero2__txt h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.lp-hero2__img { position: absolute; top: 0; right: calc(50% - 50vw); bottom: 0; width: min(62vw, 980px); min-height: 0; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.lp-hero2__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, var(--bg), transparent); }
@media (max-width: 860px) {
  .lp-hero2 { min-height: 0; }
  .lp-hero2__img { position: relative; right: auto; width: 100%; order: -1; -webkit-mask-image: none; mask-image: none; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; }
  .lp-hero2__img::after { display: none; }
}
.lp-albums, .lp-mvs { display: grid; gap: var(--s-6, 32px); align-items: center; }
.lp-albums { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.lp-mvs { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.lp-albums__txt h2, .lp-mvs__txt h2 { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; }
.lp-albums__txt p, .lp-mvs__txt p { color: var(--text-2); }
.lp-more { display: inline-block; margin-top: .6rem; color: var(--brand); font-weight: 600; text-decoration: none; }
.lp-albums__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4, 16px); }
.lp-mvs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4, 16px); }
@media (max-width: 860px) { .lp-albums, .lp-mvs { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lp-albums__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-mvs__grid { grid-template-columns: 1fr; } }

/* ---- Welcome hero: ảnh tràn hai đầu màn hình, chữ đè lên vùng tối/sáng bên trái của ảnh ---- */
.shell--blog { overflow-x: clip; }
.lp-hero2 { display: flex; align-items: center; position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0;
  min-height: clamp(420px, 50vw, 640px); background: var(--bg); overflow: hidden; border: 0; border-radius: 0; }
.lp-hero2__img { position: absolute; inset: 0; width: auto; right: 0; z-index: 0; min-height: 0; -webkit-mask-image: none; mask-image: none; }
.lp-hero2__img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.lp-hi--light { display: none; }
html[data-theme="light"] .lp-hi--light { display: block; }
html[data-theme="light"] .lp-hi--dark { display: none; }
.lp-hero2__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 58%); }
.lp-hero2__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 24%; background: linear-gradient(0deg, var(--bg), transparent); display: block; }
.lp-hero2__txt { position: relative; z-index: 2; width: 100%; max-width: var(--bl-w, 1200px); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--s-5, 20px); }
.lp-hero2__txt h1 { max-width: 12ch; }
.lp-hero2__txt .lp-lead { max-width: 40ch; }
@media (max-width: 860px) {
  .lp-hero2 { display: block; min-height: 0; }
  .lp-hero2__img { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .lp-hero2__img::before { display: none; }
  .lp-hero2__img::after { height: 40%; display: block; }
  .lp-hero2__txt { padding-top: var(--s-4, 16px); }
  .lp-hero2__txt h1 { max-width: none; }
}

.badge--blog { background: rgba(96, 165, 250, .16); color: #7db4f5; }

.ptabs__sub { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.ptabs__sub small { font-weight: 400; color: var(--text-3); }
.chart--play .bar i { background: linear-gradient(180deg, #ec4899, #a855f7); }

/* Thống kê: blog + nhật ký IP */
.btop { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: .4rem; counter-reset: bt; }
.btop li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); counter-increment: bt; }
.btop li::before { content: counter(bt); color: var(--text-3); width: 1.4rem; flex: none; }
.btop li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 600; }
.btop li span { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-2); font-size: .82rem; white-space: nowrap; }
.btop li svg { width: 14px; height: 14px; }
.ipbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: var(--s-4); }
.iptab { overflow-x: auto; margin-top: var(--s-4); }
.iptab .stable { width: 100%; border-collapse: collapse; font-size: .84rem; }
.iptab th, .iptab td { padding: .45rem .6rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.iptab th { color: var(--text-2); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.iptab .n { text-align: right; }

/* Thống kê: cột phải 2 khối quốc gia; bảng IP có icon + phân trang */
.dtop__side { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.dtop__side > .section { margin: 0; min-width: 0; padding: var(--s-4); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.dtop__side .dcard .section__title { margin: 0 0 var(--s-3); padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
.ipc { display: inline-flex; align-items: center; gap: .45rem; }
.ipc .hico { flex: none; }
.ippager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: var(--s-4) 0 0; }
.chip--off { opacity: .4; pointer-events: none; }
.ippager__d { color: var(--text-3); padding: 0 .1rem; }

/* Truy cập theo IP: bộ lọc gọn */
.ipf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1rem; margin: 0 0 var(--s-4); }
.ipf__f { display: grid; gap: .25rem; font-size: .74rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.ipf__f select { min-width: 9.5rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: .45rem .6rem; font: inherit; font-size: .86rem; text-transform: none; letter-spacing: 0; }
.ipbot { color: #f0a35e; }
.ipbot small { color: var(--text-3); font-size: .7rem; }
