/* ============================================================
   原创音乐蓖麻榜 · 主样式
   文件：assets/css/main.css
   规则：青色主色、深蓝/橙色辅助、浅蓝灰背景；
         PC 圆角 ≤ 5px，移动端圆角 ≤ 3px；文字 ≥ 12px。
   ============================================================ */

:root {
    --bbm-primary: #0fa9a0;
    --bbm-primary-dark: #0a7f78;
    --bbm-primary-soft: #e4f7f4;
    --bbm-blue: #123a5a;
    --bbm-blue-dark: #0b2a43;
    --bbm-blue-soft: #e8f1f7;
    --bbm-orange: #f59e0b;
    --bbm-orange-soft: #fff4df;
    --bbm-bg: #eef4f8;
    --bbm-card: #ffffff;
    --bbm-text: #182b3a;
    --bbm-muted: #607588;
    --bbm-line: #dbe7ef;
    --bbm-danger: #d9534f;
    --bbm-success: #178f61;
    --bbm-radius: 5px;
    --bbm-radius-sm: 3px;
    --bbm-shadow: 0 8px 28px rgba(18, 58, 90, 0.08);
    --bbm-shadow-sm: 0 2px 10px rgba(18, 58, 90, 0.06);
    --bbm-font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--bbm-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(15, 169, 160, 0.08), transparent 32rem),
        radial-gradient(circle at 90% 8%, rgba(245, 158, 11, 0.07), transparent 26rem),
        var(--bbm-bg);
    font-family: var(--bbm-font);
    font-size: 14px;
    line-height: 1.65;
}

a {
    color: var(--bbm-primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--bbm-primary);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.bbm-container {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.bbm-main {
    min-height: 58vh;
    padding: 22px 0 46px;
}

body.has-player .bbm-main {
    padding-bottom: 120px;
}

.bbm-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    fill: currentColor;
    vertical-align: -0.125em;
}

.bbm-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 300;
    padding: 8px 12px;
    color: #fff;
    background: var(--bbm-blue);
    border-radius: var(--bbm-radius);
    transform: translateY(-160%);
}

.bbm-skip-link:focus {
    transform: translateY(0);
}

/* ---------- Header ---------- */

.bbm-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 231, 239, 0.9);
    backdrop-filter: blur(12px);
}

.bbm-header__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.bbm-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bbm-blue);
    flex: 0 0 auto;
}

.bbm-brand:hover {
    color: var(--bbm-blue);
}

.bbm-brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--bbm-primary), var(--bbm-primary-dark));
    border-radius: var(--bbm-radius);
    box-shadow: 0 5px 14px rgba(15, 169, 160, 0.25);
}

.bbm-brand__mark .bbm-icon {
    width: 19px;
    height: 19px;
}

.bbm-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bbm-brand__text strong {
    font-size: 17px;
    letter-spacing: 0.5px;
}

.bbm-brand__text small {
    margin-top: 4px;
    color: var(--bbm-muted);
    font-size: 12px;
    letter-spacing: 0.4px;
}

.bbm-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.bbm-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: var(--bbm-muted);
    border-radius: var(--bbm-radius);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bbm-nav__link .bbm-icon {
    width: 15px;
    height: 15px;
}

.bbm-nav__link:hover,
.bbm-nav__link.is-active {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
}

.bbm-userbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.bbm-userbar__user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bbm-text);
    padding: 4px 6px 4px 4px;
    border-radius: var(--bbm-radius);
}

.bbm-userbar__user:hover {
    background: var(--bbm-blue-soft);
    color: var(--bbm-blue);
}

.bbm-userbar__name {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.bbm-userbar__link {
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-inline-form {
    display: inline-flex;
    margin: 0;
}

.bbm-link-button {
    padding: 4px;
    color: var(--bbm-muted);
    background: none;
    border: 0;
    font-size: 13px;
}

.bbm-link-button:hover {
    color: var(--bbm-danger);
}

.bbm-avatar {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    object-fit: cover;
    color: #fff;
    background: linear-gradient(135deg, var(--bbm-primary), var(--bbm-blue));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--bbm-radius);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.bbm-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.bbm-avatar--lg {
    width: 104px;
    height: 104px;
    font-size: 30px;
    border-width: 4px;
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-avatar--xl {
    width: 120px;
    height: 120px;
    font-size: 34px;
}

/* ---------- Breadcrumb ---------- */

.bbm-breadcrumb-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--bbm-line);
    margin-bottom: 18px;
}

.bbm-breadcrumb {
    min-height: 42px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-breadcrumb__home {
    display: inline-flex;
    color: var(--bbm-primary-dark);
}

.bbm-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.bbm-breadcrumb__item a {
    color: var(--bbm-muted);
}

.bbm-breadcrumb__item a:hover {
    color: var(--bbm-primary-dark);
}

.bbm-breadcrumb__item span[aria-current="page"] {
    color: var(--bbm-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-breadcrumb__sep {
    color: #a7b8c6;
}

/* ---------- Flash ---------- */

.bbm-flashes {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.bbm-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--bbm-line);
    border-left: 4px solid var(--bbm-primary);
    border-radius: var(--bbm-radius);
    background: #fff;
    box-shadow: var(--bbm-shadow-sm);
    font-size: 13px;
}

.bbm-flash--success {
    border-left-color: var(--bbm-success);
    background: #f1fbf7;
}

.bbm-flash--error {
    border-left-color: var(--bbm-danger);
    background: #fff4f3;
}

.bbm-flash--warning {
    border-left-color: var(--bbm-orange);
    background: var(--bbm-orange-soft);
}

.bbm-flash__close {
    margin-left: auto;
    padding: 4px;
    color: var(--bbm-muted);
    background: none;
    border: 0;
}

/* ---------- Buttons ---------- */

.bbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: var(--bbm-radius);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.bbm-btn:active {
    transform: translateY(1px);
}

.bbm-btn .bbm-icon {
    width: 15px;
    height: 15px;
}

.bbm-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--bbm-primary), var(--bbm-primary-dark));
    box-shadow: 0 6px 16px rgba(15, 169, 160, 0.18);
}

.bbm-btn--primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #12b8ae, var(--bbm-primary-dark));
}

.bbm-btn--blue {
    color: #fff;
    background: var(--bbm-blue);
}

.bbm-btn--blue:hover {
    color: #fff;
    background: var(--bbm-blue-dark);
}

.bbm-btn--orange {
    color: #fff;
    background: var(--bbm-orange);
}

.bbm-btn--orange:hover {
    color: #fff;
    background: #dd8b05;
}

.bbm-btn--ghost {
    color: var(--bbm-blue);
    background: #fff;
    border-color: var(--bbm-line);
}

.bbm-btn--ghost:hover {
    color: var(--bbm-primary-dark);
    border-color: var(--bbm-primary);
    background: var(--bbm-primary-soft);
}

.bbm-btn--soft {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-color: transparent;
}

.bbm-btn--soft:hover {
    background: #d4f1ed;
}

.bbm-btn--sm {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 13px;
}

.bbm-btn--xs {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 12px;
}

.bbm-btn--block {
    width: 100%;
}

.bbm-btn.is-active {
    color: #fff;
    background: var(--bbm-primary);
    border-color: var(--bbm-primary);
}

.bbm-btn.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

.bbm-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--bbm-muted);
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
}

.bbm-icon-btn:hover,
.bbm-icon-btn.is-active {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-color: #bfe9e5;
}

.bbm-icon-btn.is-active .bbm-icon {
    fill: var(--bbm-primary);
}

.bbm-icon-btn .bbm-icon {
    width: 15px;
    height: 15px;
}

.bbm-action-btn {
    min-width: 40px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 7px;
    color: var(--bbm-muted);
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    font-size: 12px;
    font-weight: 600;
}

.bbm-action-btn:hover,
.bbm-action-btn.is-active {
    color: #a85f00;
    background: var(--bbm-orange-soft);
    border-color: #f2d29b;
}

.bbm-action-btn .bbm-icon {
    width: 13px;
    height: 13px;
}

.bbm-mt-16 {
    margin-top: 16px;
}

/* ---------- Cards and layout ---------- */

.bbm-card {
    background: var(--bbm-card);
    border: 1px solid rgba(219, 231, 239, 0.9);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-section {
    margin: 26px 0;
}

.bbm-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.bbm-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--bbm-blue);
}

.bbm-section__title .bbm-icon {
    color: var(--bbm-primary);
}

.bbm-section__sub {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-section__more {
    flex: 0 0 auto;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-section__more:hover {
    color: var(--bbm-primary-dark);
}

.bbm-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.bbm-page-head h1 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 26px;
    line-height: 1.3;
}

.bbm-page-head p {
    margin: 5px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 2px 8px;
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-radius: var(--bbm-radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.bbm-tag--orange {
    color: #9a5b00;
    background: var(--bbm-orange-soft);
}

.bbm-tag--blue {
    color: var(--bbm-blue);
    background: var(--bbm-blue-soft);
}

.bbm-tag--muted {
    color: var(--bbm-muted);
    background: #f2f6f9;
}

/* ---------- Home hero ---------- */

.bbm-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 44px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(245, 158, 11, 0.28), transparent 18rem),
        linear-gradient(135deg, var(--bbm-blue) 0%, #125b70 52%, var(--bbm-primary-dark) 100%);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow);
}

.bbm-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--bbm-radius);
    transform: rotate(18deg);
}

.bbm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    color: #d8fffb;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--bbm-radius);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.bbm-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 14px 0 10px;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: 1px;
}

.bbm-hero p {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.bbm-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.bbm-hero__stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 26px;
}

.bbm-hero__stat strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.bbm-hero__stat span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

/* ---------- Song list ---------- */

.bbm-song-list {
    display: grid;
    gap: 8px;
}

.bbm-song-row {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bbm-song-row:hover {
    border-color: #b9dedb;
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-song-row.is-featured {
    border-left: 3px solid var(--bbm-orange);
}

.bbm-song-row__index {
    color: var(--bbm-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.bbm-song-cover {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--bbm-primary-dark);
    background: linear-gradient(135deg, var(--bbm-primary-soft), var(--bbm-blue-soft));
    border-radius: var(--bbm-radius-sm);
}

.bbm-song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-song-cover .bbm-icon {
    width: 20px;
    height: 20px;
}

.bbm-song-cover--detail {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
}

.bbm-song-main {
    min-width: 0;
}

.bbm-song-title {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: var(--bbm-text);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-song-title:hover {
    color: var(--bbm-primary-dark);
}

.bbm-song-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-song-meta a {
    color: var(--bbm-muted);
}

.bbm-song-meta a:hover {
    color: var(--bbm-primary-dark);
}

.bbm-song-stats {
    display: flex;
    gap: 12px;
    color: var(--bbm-muted);
    font-size: 12px;
    white-space: nowrap;
}

.bbm-song-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bbm-song-stats .bbm-icon {
    width: 12px;
    height: 12px;
}

.bbm-song-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbm-play-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--bbm-primary), var(--bbm-primary-dark));
    border: 0;
    border-radius: var(--bbm-radius);
    box-shadow: 0 4px 12px rgba(15, 169, 160, 0.2);
}

.bbm-play-btn:hover {
    background: var(--bbm-primary-dark);
}

.bbm-play-btn .bbm-icon {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.bbm-play-btn__pause {
    display: none;
}

.bbm-play-btn__pause .bbm-icon {
    margin-left: 0;
}

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

.bbm-play-btn.is-playing .bbm-play-btn__pause {
    display: inline-flex;
}

.bbm-play-btn.is-playing {
    background: var(--bbm-blue);
}

.bbm-play-btn.is-playing .bbm-icon {
    margin-left: 0;
}

.bbm-play-btn--wide {
    width: auto;
    padding: 0 14px;
    gap: 7px;
}

.bbm-play-btn--wide .bbm-icon {
    margin-left: 0;
}

.bbm-play-btn--ghost {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    box-shadow: none;
}

.bbm-play-btn--ghost:hover {
    color: #fff;
}

/* ---------- Artist profile ---------- */

.bbm-profile {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow);
}

.bbm-profile__cover {
    position: relative;
    height: 228px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.35), transparent 15rem),
        linear-gradient(135deg, var(--bbm-blue), var(--bbm-primary-dark));
}

.bbm-profile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-profile__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 42, 67, 0.02), rgba(11, 42, 67, 0.48));
}

.bbm-profile__body {
    padding: 0 24px 22px;
}

.bbm-profile__top {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: -52px;
    position: relative;
    z-index: 1;
}

.bbm-profile__avatar {
    flex: 0 0 auto;
}

.bbm-profile__identity {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.bbm-profile__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--bbm-blue);
    font-size: 28px;
    line-height: 1.2;
}

.bbm-profile__handle {
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-profile__bio {
    max-width: 760px;
    margin: 12px 0 0;
    color: #3e5568;
    font-size: 14px;
    white-space: pre-line;
}

.bbm-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 12px;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-profile__meta span,
.bbm-profile__meta a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bbm-profile__meta .bbm-icon {
    color: var(--bbm-primary);
}

.bbm-profile__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--bbm-line);
    border-bottom: 1px solid var(--bbm-line);
}

.bbm-profile__stat {
    padding: 0 10px;
    border-right: 1px solid var(--bbm-line);
}

.bbm-profile__stat:last-child {
    border-right: 0;
}

.bbm-profile__stat strong {
    display: block;
    color: var(--bbm-blue);
    font-size: 20px;
    line-height: 1.2;
}

.bbm-profile__stat span {
    display: block;
    margin-top: 2px;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-profile__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.bbm-profile__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bbm-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    color: var(--bbm-blue);
    background: var(--bbm-blue-soft);
    border-radius: var(--bbm-radius-sm);
    font-size: 12px;
}

.bbm-social-link:hover {
    color: #fff;
    background: var(--bbm-blue);
}

/* ---------- Tabs ---------- */

.bbm-tabs {
    display: flex;
    gap: 4px;
    margin: 18px 0;
    padding: 4px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
    scrollbar-width: thin;
}

.bbm-tab {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 14px;
    color: var(--bbm-muted);
    background: transparent;
    border: 0;
    border-radius: var(--bbm-radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.bbm-tab:hover {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
}

.bbm-tab.is-active {
    color: #fff;
    background: var(--bbm-blue);
}

.bbm-tab__count {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.75;
}

.bbm-panel {
    min-height: 80px;
}

/* ---------- Product / busking cards ---------- */

.bbm-product-grid,
.bbm-busking-grid,
.bbm-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.bbm-product-card,
.bbm-busking-card,
.bbm-artist-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bbm-product-card:hover,
.bbm-busking-card:hover,
.bbm-artist-card:hover {
    transform: translateY(-2px);
    border-color: #b9dedb;
    box-shadow: var(--bbm-shadow);
}

.bbm-product-card__cover {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--bbm-primary-dark);
    background: linear-gradient(135deg, var(--bbm-primary-soft), var(--bbm-blue-soft));
}

.bbm-product-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-product-card__cover .bbm-icon {
    width: 34px;
    height: 34px;
}

.bbm-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.bbm-product-card__play {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.bbm-product-card__body,
.bbm-busking-card__body,
.bbm-artist-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}

.bbm-product-card__name,
.bbm-busking-card__title,
.bbm-artist-card__name {
    margin: 0;
    color: var(--bbm-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.bbm-product-card__desc,
.bbm-busking-card__desc {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.bbm-price {
    color: #c97800;
    font-size: 18px;
    font-weight: 800;
}

.bbm-price small {
    font-size: 12px;
    font-weight: 600;
}

.bbm-artist-card {
    align-items: center;
    padding: 18px 14px;
    text-align: center;
}

.bbm-artist-card__avatar {
    width: 66px;
    height: 66px;
    font-size: 20px;
}

.bbm-artist-card__name {
    margin-top: 10px;
}

.bbm-artist-card__meta {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 12px;
}

/* ---------- Busking ---------- */

.bbm-busking-card__top {
    display: flex;
    gap: 12px;
    padding: 12px 12px 0;
}

.bbm-busking-card__date {
    flex: 0 0 54px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--bbm-blue);
    border-radius: var(--bbm-radius-sm);
    line-height: 1.1;
}

.bbm-busking-card__date strong {
    font-size: 19px;
}

.bbm-busking-card__date span {
    margin-top: 3px;
    font-size: 12px;
    opacity: 0.8;
}

.bbm-busking-card__head {
    min-width: 0;
}

.bbm-busking-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 6px;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-busking-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bbm-busking-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

/* ---------- Empty state ---------- */

.bbm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 26px 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed #bcd3e1;
    border-radius: var(--bbm-radius);
}

.bbm-empty__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-radius: var(--bbm-radius);
}

.bbm-empty__icon .bbm-icon {
    width: 20px;
    height: 20px;
}

.bbm-empty h2,
.bbm-empty h3 {
    margin: 10px 0 4px;
    color: var(--bbm-blue);
    font-size: 17px;
}

.bbm-empty p {
    max-width: 520px;
    margin: 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

/* ---------- Auth ---------- */

.bbm-auth {
    width: min(460px, 100%);
    margin: 24px auto;
}

.bbm-auth__card {
    padding: 28px;
}

.bbm-auth__head {
    margin-bottom: 18px;
    text-align: center;
}

.bbm-auth__head .bbm-brand__mark {
    margin: 0 auto 10px;
}

.bbm-auth__head h1 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 25px;
}

.bbm-auth__head p {
    margin: 5px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-auth__foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bbm-line);
    color: var(--bbm-muted);
    text-align: center;
    font-size: 13px;
}

/* ---------- Forms ---------- */

.bbm-form {
    display: grid;
    gap: 14px;
}

.bbm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.bbm-form-grid > * {
    min-width: 0;
}

.bbm-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.bbm-field--full {
    grid-column: 1 / -1;
}

.bbm-label {
    color: var(--bbm-text);
    font-size: 13px;
    font-weight: 700;
}

.bbm-label small {
    color: var(--bbm-muted);
    font-weight: 400;
}

.bbm-input,
.bbm-select,
.bbm-textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--bbm-text);
    background: #fff;
    border: 1px solid #cbdbe6;
    border-radius: var(--bbm-radius);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bbm-textarea {
    min-height: 120px;
    resize: vertical;
}

.bbm-input:focus,
.bbm-select:focus,
.bbm-textarea:focus {
    border-color: var(--bbm-primary);
    box-shadow: 0 0 0 3px rgba(15, 169, 160, 0.12);
}

.bbm-input::placeholder,
.bbm-textarea::placeholder {
    color: #9aafbe;
}

.bbm-help {
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-field-value {
    display: flex;
    align-items: center;
    background: #f8fbfd;
}

.bbm-qty-input {
    width: 78px;
    min-height: 34px;
    padding: 4px 7px;
}

.bbm-error {
    color: var(--bbm-danger);
    font-size: 12px;
}

.bbm-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bbm-captcha .bbm-input {
    flex: 1 1 120px;
    min-width: 100px;
}

.bbm-captcha__image {
    width: 132px;
    height: 46px;
    object-fit: cover;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius-sm);
    background: #fff;
    cursor: pointer;
}

.bbm-check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--bbm-primary);
}

.bbm-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.bbm-form-actions .bbm-btn {
    min-width: 120px;
}

.bbm-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8fbfd;
    border: 1px dashed #c6d9e5;
    border-radius: var(--bbm-radius);
}

.bbm-upload__preview {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-radius: var(--bbm-radius-sm);
}

.bbm-upload__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-upload__preview .bbm-avatar {
    width: 100%;
    height: 100%;
    border: 0;
    font-size: 18px;
}

.bbm-upload__preview--wide {
    width: 120px;
    height: 58px;
}

.bbm-upload__body {
    min-width: 0;
    flex: 1;
}

.bbm-upload input[type="file"] {
    width: 100%;
    max-width: 100%;
    color: var(--bbm-muted);
    font-size: 12px;
}

/* ---------- Member ---------- */

.bbm-member-layout {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
}

.bbm-member-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.bbm-member-nav {
    position: sticky;
    top: 84px;
    padding: 10px;
    min-width: 0;
}

.bbm-member-nav__title {
    padding: 4px 8px 8px;
    color: var(--bbm-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.bbm-member-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    color: #365064;
    border-radius: var(--bbm-radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.bbm-member-nav__link:hover,
.bbm-member-nav__link.is-active {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
}

.bbm-member-nav__link .bbm-icon {
    width: 14px;
    height: 14px;
}

.bbm-member-content {
    min-width: 0;
}

.bbm-member-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bbm-member-page-head h1 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 23px;
    line-height: 1.3;
}

.bbm-member-page-head p {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-member-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding-top: 14px;
}

.bbm-member-card {
    padding: 20px;
}

.bbm-member-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bbm-line);
}

.bbm-member-head h1 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 23px;
    line-height: 1.3;
}

.bbm-member-head p {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-member-head .bbm-btn {
    margin-left: auto;
    flex: 0 0 auto;
}

.bbm-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.bbm-stat-card {
    padding: 14px;
    background: #f8fbfd;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
}

.bbm-stat-card strong {
    display: block;
    color: var(--bbm-blue);
    font-size: 21px;
    line-height: 1.2;
}

.bbm-stat-card span {
    display: block;
    margin-top: 3px;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.bbm-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    color: var(--bbm-text);
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
}

.bbm-link-card:hover {
    color: var(--bbm-primary-dark);
    border-color: #b9dedb;
    background: var(--bbm-primary-soft);
}

.bbm-link-card__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
    border-radius: var(--bbm-radius-sm);
}

.bbm-link-card strong {
    display: block;
    font-size: 14px;
}

.bbm-link-card small {
    display: block;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    background: linear-gradient(135deg, var(--bbm-blue-soft), var(--bbm-primary-soft));
    border: 1px solid #cfe4ea;
    border-radius: var(--bbm-radius);
}

.bbm-preview__body {
    min-width: 0;
    flex: 1;
}

.bbm-preview__body strong {
    display: block;
    color: var(--bbm-blue);
    font-size: 17px;
}

.bbm-preview__body p {
    margin: 3px 0 0;
    color: var(--bbm-muted);
    font-size: 12px;
}

/* ---------- Member tables ---------- */

.bbm-admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.bbm-admin-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 13px;
}

.bbm-admin-table th {
    padding: 9px 8px;
    color: var(--bbm-muted);
    background: #f7fafc;
    border-bottom: 1px solid var(--bbm-line);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.bbm-admin-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #eef4f8;
    vertical-align: middle;
}

.bbm-admin-table tbody tr:hover {
    background: #fbfdfe;
}

.bbm-admin-table__actions {
    text-align: right !important;
    white-space: nowrap;
}

.bbm-admin-empty {
    padding: 30px 10px !important;
    color: var(--bbm-muted);
    text-align: center;
}

.bbm-news-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin: 16px 0;
    border-radius: var(--bbm-radius-sm);
}

.bbm-article-content {
    color: #31495b;
    line-height: 1.85;
    font-size: 14px;
}

.bbm-comment {
    padding: 12px 0;
    border-top: 1px solid var(--bbm-line);
}

.bbm-comment__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bbm-comment p {
    margin: 0;
    color: #3e5568;
    font-size: 13px;
}

.bbm-certificate {
    max-width: 860px;
    margin: 30px auto;
    padding: 38px;
    border: 1px solid #cfdee8;
    background:
        radial-gradient(circle at 90% 8%, rgba(245, 158, 11, 0.09), transparent 18rem),
        #fff;
    box-shadow: var(--bbm-shadow);
}

.bbm-certificate__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--bbm-primary);
}

.bbm-certificate__head h1 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 26px;
}

.bbm-certificate__head p {
    margin: 4px 0 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-certificate__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin: 24px 0;
}

.bbm-certificate__meta dt {
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-certificate__meta dd {
    margin: 3px 0 0;
    color: var(--bbm-text);
    font-weight: 700;
}

@media (max-width: 560px) {
    .bbm-certificate {
        padding: 20px 14px;
        margin: 16px auto;
    }

    .bbm-certificate__head h1 {
        font-size: 20px;
    }

    .bbm-certificate__meta {
        grid-template-columns: 1fr;
    }
}

/* ---------- Member APP UI ---------- */

.bbm-app-home,
.bbm-app-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.bbm-app-home {
    padding: 2px 0 24px;
    animation: bbm-app-page-in 0.38s ease-out both;
}

.bbm-app-hero {
    position: relative;
    overflow: hidden;
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.46), transparent 13rem),
        radial-gradient(circle at 8% 100%, rgba(15, 169, 160, 0.55), transparent 15rem),
        linear-gradient(135deg, #0b2a43 0%, #123a5a 48%, #0a6f69 100%);
    border-radius: var(--bbm-radius);
    box-shadow: 0 14px 32px rgba(11, 42, 67, 0.22);
}

.bbm-app-hero::after {
    position: absolute;
    right: -48px;
    bottom: -74px;
    width: 220px;
    height: 220px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.bbm-app-hero__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.bbm-app-avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.bbm-app-hero__meta {
    min-width: 0;
    flex: 1;
}

.bbm-app-hero__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #9fe7df;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.bbm-app-hero__meta h1 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-app-hero__meta p {
    margin: 3px 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bbm-app-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bbm-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    color: #e9fffb;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.2;
}

.bbm-app-chip .bbm-icon {
    width: 10px;
    height: 10px;
}

.bbm-app-hero__edit {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.bbm-app-hero__edit:hover {
    color: var(--bbm-blue);
    background: #fff;
}

.bbm-app-hero__edit .bbm-icon {
    width: 15px;
    height: 15px;
}

.bbm-app-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 20px;
    padding: 11px 8px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--bbm-radius-sm);
    backdrop-filter: blur(6px);
}

.bbm-app-hero__stats div {
    min-width: 0;
    padding: 0 3px;
    text-align: center;
}

.bbm-app-hero__stats strong {
    display: block;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
}

.bbm-app-hero__stats span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
}

.bbm-app-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.bbm-app-hero__actions .bbm-btn--primary {
    color: var(--bbm-blue);
    background: #fff;
    border-color: #fff;
}

.bbm-app-hero__actions .bbm-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
}

.bbm-app-sections {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.bbm-app-section {
    padding: 15px 14px 10px;
    background: var(--bbm-card);
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-app-section__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bbm-app-section__head h2 {
    margin: 0;
    color: var(--bbm-blue);
    font-size: 16px;
    line-height: 1.3;
}

.bbm-app-section__head p {
    margin: 2px 0 0;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-app-section__line {
    flex: 1;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--bbm-line), transparent);
}

.bbm-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.bbm-app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 9px 3px 7px;
    color: #365064;
    border: 1px solid transparent;
    border-radius: var(--bbm-radius-sm);
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.bbm-app-tile:hover,
.bbm-app-tile.is-active {
    color: var(--bbm-primary-dark);
    background: #f5fbfa;
    border-color: #d5eeeb;
    transform: translateY(-2px);
}

.bbm-app-tile__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 4px 9px rgba(18, 58, 90, 0.13);
}

.bbm-app-tile__icon .bbm-icon {
    width: 19px;
    height: 19px;
}

.bbm-app-tile__icon.is-teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.bbm-app-tile__icon.is-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bbm-app-tile__icon.is-orange {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.bbm-app-tile__icon.is-pink {
    background: linear-gradient(135deg, #f472b6, #be185d);
}

.bbm-app-tile__icon.is-green {
    background: linear-gradient(135deg, #4ade80, #15803d);
}

.bbm-app-tile__icon.is-purple {
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
}

.bbm-app-tile__icon.is-cyan {
    background: linear-gradient(135deg, #22d3ee, #0e7490);
}

.bbm-app-tile__icon.is-red {
    background: linear-gradient(135deg, #fb7185, #be123c);
}

.bbm-app-tile__label {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #3c5263;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 用户中心内页：全新独立页面视觉 */
.bbm-app-page {
    padding: 2px 0 24px;
}

.bbm-app-pagebar {
    position: sticky;
    top: 66px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 6px 0;
    margin-bottom: 12px;
    background: rgba(238, 244, 248, 0.9);
    border-bottom: 1px solid rgba(219, 231, 239, 0.8);
    backdrop-filter: blur(12px);
}

.bbm-app-pagebar__link {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--bbm-blue);
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(18, 58, 90, 0.06);
}

.bbm-app-pagebar__link:hover {
    color: var(--bbm-primary-dark);
    border-color: #b9dedb;
    background: var(--bbm-primary-soft);
}

.bbm-app-pagebar__link .bbm-icon {
    width: 14px;
    height: 14px;
}

.bbm-app-pagebar__title {
    min-width: 0;
    flex: 1;
    text-align: center;
}

.bbm-app-pagebar__title span {
    display: block;
    color: var(--bbm-muted);
    font-size: 12px;
    line-height: 1.2;
}

.bbm-app-pagebar__title strong {
    display: block;
    overflow: hidden;
    color: var(--bbm-blue);
    font-size: 15px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-app-page-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: -2px 0 10px;
}

.bbm-app-pagebody {
    min-width: 0;
    animation: bbm-app-page-in 0.38s ease-out both;
}

.bbm-app-pagebody .bbm-member-card {
    padding: 18px;
}

.bbm-app-pagebody .bbm-member-head {
    padding-bottom: 12px;
}

.bbm-app-pagebody .bbm-member-head h1 {
    font-size: 20px;
}

.bbm-app-pagebody .bbm-member-page-head {
    margin-bottom: 12px;
}

@keyframes bbm-app-page-in {
    from {
        opacity: 0;
        transform: translateY(9px) rotateX(1.8deg);
        transform-origin: center top;
    }

    to {
        opacity: 1;
        transform: none;
        transform-origin: center top;
    }
}

@media (min-width: 620px) {
    .bbm-app-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
    }

    .bbm-app-section {
        padding: 18px 18px 12px;
    }

    .bbm-app-hero {
        padding: 30px;
    }

    .bbm-app-avatar {
        width: 84px;
        height: 84px;
    }

    .bbm-app-hero__meta h1 {
        font-size: 29px;
    }
}

@media (min-width: 980px) {
    .bbm-app-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .bbm-app-sections {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .bbm-app-hero {
        padding: 18px 15px;
    }

    .bbm-app-avatar {
        width: 62px;
        height: 62px;
    }

    .bbm-app-hero__meta h1 {
        font-size: 21px;
    }

    .bbm-app-hero__stats {
        margin-top: 16px;
    }

    .bbm-app-hero__actions .bbm-btn {
        flex: 1;
        justify-content: center;
    }

    .bbm-app-section {
        padding: 13px 10px 8px;
    }

    .bbm-app-tile__icon {
        width: 39px;
        height: 39px;
    }

    .bbm-app-tile__label {
        font-size: 12px;
    }

    .bbm-app-pagebar {
        top: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbm-app-home,
    .bbm-app-pagebody,
    .bbm-app-tile {
        animation: none;
        transition: none;
    }
}

/* ---------- Rich text / CKEditor 5 ---------- */

.bbm-rich-text {
    color: #31495b;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.bbm-rich-text > :first-child {
    margin-top: 0;
}

.bbm-rich-text > :last-child {
    margin-bottom: 0;
}

.bbm-rich-text p {
    margin: 0 0 10px;
}

.bbm-rich-text h2,
.bbm-rich-text h3,
.bbm-rich-text h4 {
    margin: 18px 0 8px;
    color: var(--bbm-blue);
    line-height: 1.35;
}

.bbm-rich-text h2 {
    font-size: 20px;
}

.bbm-rich-text h3 {
    font-size: 17px;
}

.bbm-rich-text h4 {
    font-size: 15px;
}

.bbm-rich-text ul,
.bbm-rich-text ol {
    margin: 8px 0 12px;
    padding-left: 22px;
}

.bbm-rich-text li {
    margin: 3px 0;
}

.bbm-rich-text blockquote {
    margin: 12px 0;
    padding: 8px 14px;
    color: #4b6478;
    background: #f3f9f8;
    border-left: 3px solid var(--bbm-primary);
}

.bbm-rich-text a {
    color: var(--bbm-primary-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bbm-rich-text img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: var(--bbm-radius-sm);
}

.bbm-rich-text table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.bbm-rich-text th,
.bbm-rich-text td {
    padding: 7px 9px;
    border: 1px solid var(--bbm-line);
    text-align: left;
}

.bbm-rich-text th {
    color: var(--bbm-blue);
    background: #f4f9fc;
}

.bbm-rich-text hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid var(--bbm-line);
}

.bbm-rich-text code,
.bbm-rich-text pre {
    padding: 2px 5px;
    color: #365064;
    background: #f1f6f9;
    border-radius: 3px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.bbm-rich-text pre {
    padding: 10px;
    overflow-x: auto;
}

.ck.ck-editor {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
}

.ck.ck-editor .ck.ck-toolbar {
    flex-wrap: wrap;
    background: #f7fafc;
    border-color: var(--bbm-line);
}

.ck.ck-editor .ck.ck-toolbar .ck-toolbar__items {
    flex-wrap: wrap;
}

.ck.ck-editor .ck-editor__main > .ck-editor__editable {
    min-height: 220px;
    max-height: 560px;
    overflow-y: auto;
    color: var(--bbm-text);
    background: #fff;
    border-color: var(--bbm-line);
    font-family: var(--bbm-font);
    font-size: 14px;
    line-height: 1.75;
}

.ck.ck-editor .ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: var(--bbm-primary);
    box-shadow: 0 0 0 2px rgba(15, 169, 160, 0.12);
}

.ck.ck-editor .ck.ck-button {
    color: #365064;
}

.ck.ck-editor .ck.ck-button.ck-on,
.ck.ck-editor .ck.ck-button:hover {
    color: var(--bbm-primary-dark);
    background: var(--bbm-primary-soft);
}

@media (max-width: 560px) {
    .ck.ck-editor .ck.ck-toolbar {
        padding: 3px;
    }

    .ck.ck-editor .ck.ck-toolbar .ck-toolbar__items {
        gap: 0;
    }

    .ck.ck-editor .ck-editor__main > .ck-editor__editable {
        min-height: 180px;
        max-height: 460px;
        font-size: 14px;
    }
}

/* ---------- Chart hall ---------- */

.bbm-chart-stage {
    position: relative;
    overflow: hidden;
    padding: 9px 14px 17px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
        linear-gradient(135deg, #f43f5e 0%, #fb5b4f 45%, #ff8a4c 100%);
    border-radius: var(--bbm-radius) var(--bbm-radius) 0 0;
    box-shadow: 0 8px 22px rgba(225, 56, 58, 0.2);
}

.bbm-chart-stage::before,
.bbm-chart-stage::after {
    position: absolute;
    content: "";
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.bbm-chart-stage::before {
    top: -72px;
    left: -36px;
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.04), 0 0 0 31px rgba(255, 255, 255, 0.03);
}

.bbm-chart-stage::after {
    right: -48px;
    bottom: 38px;
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.04);
}

.bbm-chart-stage__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

.bbm-chart-stage__back {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.bbm-chart-stage__back:hover {
    color: #f43f5e;
    background: #fff;
}

.bbm-chart-stage__back .bbm-icon {
    width: 14px;
    height: 14px;
}

.bbm-chart-stage__top h1 {
    flex: 1;
    margin: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 1px;
}

.bbm-chart-stage__period {
    min-width: 58px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    text-align: right;
}

.bbm-chart-podium {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.08fr 1fr;
    align-items: end;
    gap: 8px;
    width: 100%;
    max-width: 640px;
    margin: 8px auto 0;
}

.bbm-chart-podium__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    min-height: 138px;
    padding: 11px 6px 9px;
    color: var(--bbm-text);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 7px 18px rgba(136, 22, 40, 0.16);
}

.bbm-chart-podium__card.is-first {
    z-index: 2;
    min-height: 158px;
    border: 2px solid #ffd45a;
    transform: translateY(-8px);
}

.bbm-chart-podium__card.is-empty {
    opacity: 0.82;
}

.bbm-chart-podium__crown {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 2px;
    color: #fff;
    background: #aeb8c4;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.bbm-chart-podium__crown .bbm-icon {
    width: 18px;
    height: 18px;
}

.bbm-chart-podium__crown.is-gold {
    color: #fff4c2;
    background: linear-gradient(135deg, #ffd45a, #f0a500);
}

.bbm-chart-podium__crown.is-silver {
    color: #fff;
    background: linear-gradient(135deg, #cbd5df, #8f9daf);
}

.bbm-chart-podium__card.is-first .bbm-chart-podium__crown {
    width: 39px;
    height: 39px;
}

.bbm-chart-podium__card.is-first .bbm-chart-podium__crown .bbm-icon {
    width: 23px;
    height: 23px;
}

.bbm-chart-podium__label {
    margin-top: 2px;
    color: #6f7f8d;
    font-size: 12px;
}

.bbm-chart-podium__number {
    max-width: 100%;
    margin: 3px 0 1px;
    overflow: hidden;
    color: #e53935;
    font-size: 21px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-podium__card.is-first .bbm-chart-podium__number {
    font-size: 25px;
}

.bbm-chart-podium__view {
    display: inline-block;
    min-width: 58px;
    margin-top: 6px;
    padding: 2px 10px;
    color: #e53935;
    border: 1px solid #f06b6b;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
}

.bbm-chart-podium__view:hover {
    color: #fff;
    background: #e53935;
    border-color: #e53935;
}

.bbm-chart-podium__view.is-disabled {
    color: #9aa8b3;
    border-color: #dce5eb;
}

.bbm-chart-tabs {
    display: flex;
    gap: 4px;
    padding: 7px 10px;
    overflow-x: auto;
    background: linear-gradient(90deg, #ff8a4c, #f97345);
    border-radius: 0 0 var(--bbm-radius) var(--bbm-radius);
    scrollbar-width: none;
}

.bbm-chart-tabs::-webkit-scrollbar {
    display: none;
}

.bbm-chart-tab {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.86);
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

.bbm-chart-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.bbm-chart-tab.is-active {
    color: #d9363e;
    background: rgba(255, 255, 255, 0.96);
    font-weight: 700;
}

.bbm-chart-season {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    margin-top: 11px;
    padding: 13px 12px;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-chart-season__mark {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    color: #fff7c7;
    background: linear-gradient(135deg, #ffcf4a, #f59e0b);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.24);
}

.bbm-chart-season__mark > .bbm-icon {
    width: 27px;
    height: 27px;
}

.bbm-chart-season__badges {
    position: absolute;
    right: 3px;
    bottom: 3px;
    left: 3px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.bbm-chart-season__badges i {
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    color: #fff;
    border-radius: 2px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.bbm-chart-season__badges i.is-1 {
    background: #f3b21f;
}

.bbm-chart-season__badges i.is-2 {
    background: #9ba9b7;
}

.bbm-chart-season__badges i.is-3 {
    background: #c4783c;
}

.bbm-chart-season__main {
    min-width: 0;
    flex: 1;
}

.bbm-chart-season__main h2 {
    margin: 0;
    overflow: hidden;
    color: var(--bbm-blue);
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-season__main p {
    margin: 3px 0 2px;
    overflow: hidden;
    color: #52697a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-season__main span {
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-chart-season__join {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #fff;
    background: #e53935;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.bbm-chart-season__join:hover {
    color: #fff;
    background: #c62828;
}

.bbm-chart-ranking {
    margin-top: 11px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bbm-line);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow-sm);
}

.bbm-chart-ranking__head,
.bbm-chart-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1.65fr) 76px 44px 54px 46px;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
}

.bbm-chart-ranking__head {
    min-height: 38px;
    color: #7b8b99;
    background: #f7f9fb;
    border-bottom: 1px solid #edf2f6;
    font-size: 12px;
}

.bbm-chart-ranking__head span:nth-child(n+3) {
    text-align: center;
}

.bbm-chart-row {
    min-height: 58px;
    border-bottom: 1px solid #f0f4f7;
}

.bbm-chart-row:last-child {
    border-bottom: 0;
}

.bbm-chart-row:hover {
    background: #fffaf5;
}

.bbm-chart-row__song {
    min-width: 0;
}

.bbm-chart-row__song a {
    display: block;
    overflow: hidden;
    color: #263c4c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-row__song a:hover {
    color: #e53935;
}

.bbm-chart-row__song small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: var(--bbm-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-row__artist {
    overflow: hidden;
    color: #5d7181;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-chart-row__play {
    display: flex;
    justify-content: center;
}

.bbm-chart-row__play .bbm-play-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    color: #e53935;
    background: #fff1f0;
    border: 1px solid #ffd3cf;
    border-radius: 50%;
}

.bbm-chart-row__play .bbm-play-btn .bbm-icon {
    width: 12px;
    height: 12px;
}

.bbm-chart-row__play .bbm-play-btn__label {
    display: none;
}

.bbm-chart-row__count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #6e8090;
    font-size: 12px;
    white-space: nowrap;
}

.bbm-chart-row__count .bbm-icon {
    width: 11px;
    height: 11px;
}

.bbm-rank-medal {
    display: grid;
    place-items: center;
    width: 25px;
    height: 28px;
    color: #fff;
    background: #a2b0bc;
    clip-path: polygon(50% 0, 100% 23%, 100% 76%, 50% 100%, 0 76%, 0 23%);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.bbm-rank-medal.rank-1 {
    background: linear-gradient(145deg, #ffd85a, #e9a400);
}

.bbm-rank-medal.rank-2 {
    background: linear-gradient(145deg, #d4dee8, #8697aa);
}

.bbm-rank-medal.rank-3 {
    background: linear-gradient(145deg, #e3a36b, #ad642c);
}

.bbm-chart-ranking__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px;
    color: var(--bbm-muted);
    text-align: center;
}

.bbm-chart-ranking__empty > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 9px;
    color: #e53935;
    background: #fff1f0;
    border-radius: 50%;
}

.bbm-chart-ranking__empty > span .bbm-icon {
    width: 20px;
    height: 20px;
}

.bbm-chart-ranking__empty strong {
    color: var(--bbm-blue);
    font-size: 15px;
}

.bbm-chart-ranking__empty p {
    margin: 4px 0 0;
    font-size: 12px;
}

.bbm-chart-empty {
    margin-top: 14px;
}

@media (max-width: 560px) {
    .bbm-chart-stage {
        padding: 8px 10px 14px;
    }

    .bbm-chart-stage__top h1 {
        font-size: 18px;
    }

    .bbm-chart-stage__period {
        min-width: 48px;
        font-size: 12px;
    }

    .bbm-chart-podium {
        gap: 5px;
    }

    .bbm-chart-podium__card {
        min-height: 124px;
        padding: 9px 4px 7px;
    }

    .bbm-chart-podium__card.is-first {
        min-height: 142px;
        transform: translateY(-6px);
    }

    .bbm-chart-podium__number {
        font-size: 19px;
    }

    .bbm-chart-podium__card.is-first .bbm-chart-podium__number {
        font-size: 22px;
    }

    .bbm-chart-podium__view {
        min-width: 50px;
        padding: 1px 7px;
        font-size: 12px;
    }

    .bbm-chart-tabs {
        padding: 6px 8px;
    }

    .bbm-chart-tab {
        padding: 5px 8px;
    }

    .bbm-chart-season {
        gap: 8px;
        padding: 10px 8px;
    }

    .bbm-chart-season__mark {
        width: 48px;
        height: 48px;
    }

    .bbm-chart-season__mark > .bbm-icon {
        width: 23px;
        height: 23px;
    }

    .bbm-chart-season__main h2 {
        font-size: 14px;
    }

    .bbm-chart-season__main p {
        font-size: 12px;
    }

    .bbm-chart-season__main span {
        font-size: 12px;
    }

    .bbm-chart-season__join {
        padding: 6px 8px;
        font-size: 12px;
    }

    .bbm-chart-ranking__head,
    .bbm-chart-row {
        grid-template-columns: 29px minmax(0, 1.5fr) 57px 36px 43px 39px;
        gap: 2px;
        padding: 0 7px;
    }

    .bbm-chart-ranking__head {
        font-size: 12px;
    }

    .bbm-chart-row {
        min-height: 54px;
    }

    .bbm-chart-row__song a {
        font-size: 12px;
    }

    .bbm-chart-row__artist,
    .bbm-chart-row__count {
        font-size: 12px;
    }

    .bbm-chart-row__count .bbm-icon {
        display: none;
    }

    .bbm-rank-medal {
        width: 23px;
        height: 26px;
        font-size: 12px;
    }

    .bbm-chart-season__badges i {
        font-size: 12px;
    }
}

/* ---------- Footer ---------- */

.bbm-footer {
    margin-top: 28px;
    padding: 24px 0;
    background: #fff;
    border-top: 1px solid var(--bbm-line);
}

.bbm-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bbm-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbm-footer__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--bbm-blue);
    border-radius: var(--bbm-radius-sm);
}

.bbm-footer__brand strong {
    display: block;
    color: var(--bbm-blue);
    font-size: 14px;
}

.bbm-footer__brand p {
    margin: 2px 0 0;
    color: var(--bbm-muted);
    font-size: 12px;
}

.bbm-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--bbm-muted);
    font-size: 12px;
}

/* ---------- Mobile nav ---------- */

.bbm-mobile-nav {
    display: none;
}

/* ---------- Player ---------- */

.bbm-player {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 68px;
    z-index: 95;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
        "cover meta controls"
        "timeline timeline timeline"
        "extras extras extras";
    align-items: center;
    gap: 7px 10px;
    padding: 9px 10px;
    color: #fff;
    background: rgba(11, 42, 67, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--bbm-radius);
    box-shadow: 0 14px 38px rgba(11, 42, 67, 0.28);
    backdrop-filter: blur(14px);
}

.bbm-player__cover {
    grid-area: cover;
    position: relative;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #bff7f2;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--bbm-radius-sm);
}

.bbm-player__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbm-player__cover-fallback .bbm-icon {
    width: 20px;
    height: 20px;
}

.bbm-player__meta {
    grid-area: meta;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.bbm-player__title {
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-player__title:hover {
    color: #bff7f2;
}

.bbm-player__artist {
    overflow: hidden;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbm-player__controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bbm-player__icon-btn {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    border: 0;
    border-radius: var(--bbm-radius-sm);
}

.bbm-player__icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.bbm-player__icon-btn .bbm-icon {
    width: 14px;
    height: 14px;
}

.bbm-player__toggle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--bbm-blue-dark);
    background: #bff7f2;
    border: 0;
    border-radius: var(--bbm-radius);
}

.bbm-player__toggle:hover {
    background: #fff;
}

.bbm-player__toggle .bbm-icon {
    width: 14px;
    height: 14px;
}

.bbm-player__pause-icon,
.bbm-player__mute-icon {
    display: none;
}

.bbm-player.is-playing .bbm-player__play-icon {
    display: none;
}

.bbm-player.is-playing .bbm-player__pause-icon {
    display: inline-flex;
}

.bbm-player.is-muted .bbm-player__volume-icon {
    display: none;
}

.bbm-player.is-muted .bbm-player__mute-icon {
    display: inline-flex;
}

.bbm-player__timeline {
    grid-area: timeline;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbm-player__time {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.bbm-player__seek,
.bbm-player__volume {
    height: 4px;
    accent-color: var(--bbm-primary);
    cursor: pointer;
}

.bbm-player__seek {
    min-width: 0;
    flex: 1;
}

.bbm-player__volume {
    width: 74px;
}

.bbm-player__extras {
    grid-area: extras;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bbm-player__download,
.bbm-player__system {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    border-radius: var(--bbm-radius-sm);
}

.bbm-player__download:hover,
.bbm-player__system:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.bbm-player__download .bbm-icon {
    width: 12px;
    height: 12px;
}

.bbm-player__close {
    margin-left: auto;
}

/* ---------- Toast ---------- */

.bbm-toast {
    position: fixed;
    top: 82px;
    left: 50%;
    z-index: 300;
    max-width: min(420px, calc(100% - 32px));
    padding: 10px 15px;
    color: #fff;
    background: var(--bbm-blue);
    border-radius: var(--bbm-radius);
    box-shadow: var(--bbm-shadow);
    font-size: 13px;
    transform: translateX(-50%);
}

.bbm-toast.is-error {
    background: var(--bbm-danger);
}

.bbm-toast.is-success {
    background: var(--bbm-success);
}

/* ---------- 404 ---------- */

.bbm-error-page {
    width: min(560px, 100%);
    margin: 60px auto;
    padding: 34px;
    text-align: center;
}

.bbm-error-page__code {
    color: var(--bbm-primary);
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.bbm-error-page h1 {
    margin: 10px 0 6px;
    color: var(--bbm-blue);
    font-size: 24px;
}

.bbm-error-page p {
    margin: 0;
    color: var(--bbm-muted);
    font-size: 13px;
}

.bbm-error-page__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .bbm-nav__link span {
        display: none;
    }

    .bbm-nav__link {
        padding: 8px 9px;
    }
}

@media (max-width: 900px) {
    .bbm-header__inner {
        min-height: 58px;
        gap: 10px;
    }

    .bbm-nav {
        display: none;
    }

    .bbm-brand__text small {
        display: none;
    }

    .bbm-brand__text strong {
        font-size: 15px;
    }

    .bbm-userbar__name,
    .bbm-userbar__link {
        display: none;
    }

    .bbm-main {
        padding-bottom: 160px;
    }

    body.has-player .bbm-main {
        padding-bottom: 250px;
    }

    .bbm-footer {
        padding-bottom: 86px;
    }

    .bbm-hero {
        padding: 30px 22px;
    }

    .bbm-hero h1 {
        font-size: 28px;
    }

    .bbm-hero p {
        font-size: 14px;
    }

    .bbm-profile__cover {
        height: 172px;
    }

    .bbm-profile__body {
        padding: 0 16px 18px;
    }

    .bbm-profile__top {
        margin-top: -40px;
        gap: 12px;
    }

    .bbm-avatar--lg {
        width: 82px;
        height: 82px;
        font-size: 24px;
    }

    .bbm-profile__name {
        font-size: 22px;
    }

    .bbm-profile__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 0;
    }

    .bbm-profile__stat:nth-child(2) {
        border-right: 0;
    }

    .bbm-profile__stat:nth-child(3),
    .bbm-profile__stat:nth-child(4) {
        padding-top: 10px;
        border-top: 1px solid var(--bbm-line);
    }

    .bbm-member-layout {
        grid-template-columns: 1fr;
    }

    .bbm-member-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        overflow: visible;
        padding: 6px;
        width: 100%;
        max-width: 100%;
    }

    .bbm-member-head {
        flex-wrap: wrap;
    }

    .bbm-member-head > div {
        flex: 1 1 180px;
        min-width: 0;
    }

    .bbm-member-head p {
        overflow-wrap: anywhere;
    }

    .bbm-member-head .bbm-btn {
        margin-left: 0;
    }

    .bbm-member-nav__title {
        display: none;
    }

    .bbm-member-nav__link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

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

    .bbm-song-row {
        grid-template-columns: 22px 46px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 9px;
    }

    .bbm-song-cover {
        width: 46px;
        height: 46px;
    }

    .bbm-song-stats {
        display: none;
    }

    .bbm-song-actions {
        gap: 4px;
    }

    .bbm-play-btn {
        width: 34px;
        height: 34px;
    }

    .bbm-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bbm-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .bbm-mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--bbm-line);
        box-shadow: 0 -6px 24px rgba(18, 58, 90, 0.08);
        backdrop-filter: blur(12px);
    }

    .bbm-mobile-nav__item {
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--bbm-muted);
        font-size: 12px;
        font-weight: 600;
    }

    .bbm-mobile-nav__item .bbm-icon {
        width: 17px;
        height: 17px;
    }

    .bbm-mobile-nav__item.is-active {
        color: var(--bbm-primary-dark);
        background: var(--bbm-primary-soft);
    }

    .bbm-player {
        border-radius: var(--bbm-radius-sm);
    }

    .bbm-product-grid,
    .bbm-busking-grid,
    .bbm-artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .bbm-card,
    .bbm-product-card,
    .bbm-busking-card,
    .bbm-artist-card,
    .bbm-profile,
    .bbm-tabs,
    .bbm-btn,
    .bbm-input,
    .bbm-select,
    .bbm-textarea,
    .bbm-player,
    .bbm-empty {
        border-radius: var(--bbm-radius-sm);
    }
}

@media (max-width: 560px) {
    .bbm-container {
        width: min(1160px, calc(100% - 22px));
    }

    .bbm-brand__text strong {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bbm-userbar {
        gap: 5px;
    }

    .bbm-userbar .bbm-btn {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 12px;
    }

    .bbm-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .bbm-page-head h1 {
        font-size: 22px;
    }

    .bbm-hero h1 {
        font-size: 24px;
    }

    .bbm-hero__stats {
        gap: 16px;
    }

    .bbm-hero__stat strong {
        font-size: 19px;
    }

    .bbm-song-row {
        grid-template-columns: 18px 42px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 8px;
    }

    .bbm-song-cover {
        width: 42px;
        height: 42px;
    }

    .bbm-song-title {
        font-size: 14px;
    }

    .bbm-song-actions .bbm-icon-btn {
        display: none;
    }

    .bbm-song-actions .bbm-icon-btn:first-child {
        display: inline-grid;
    }

    .bbm-song-actions .bbm-action-btn {
        display: none;
    }

    .bbm-profile__top {
        align-items: flex-start;
        flex-direction: column;
        margin-top: -34px;
    }

    .bbm-profile__identity {
        width: 100%;
    }

    .bbm-profile__actions .bbm-btn {
        flex: 1 1 calc(50% - 8px);
        padding-inline: 9px;
    }

    .bbm-product-grid,
    .bbm-busking-grid,
    .bbm-artist-grid {
        grid-template-columns: 1fr;
    }

    .bbm-product-grid,
    .bbm-artist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bbm-auth__card,
    .bbm-member-card {
        padding: 18px 14px;
    }

    .bbm-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bbm-player {
        left: 8px;
        right: 8px;
        bottom: 64px;
    }

    .bbm-player__controls .bbm-player__icon-btn {
        display: none;
    }

    .bbm-player__volume {
        display: none;
    }

    .bbm-player__system {
        display: none;
    }

    .bbm-toast {
        top: 70px;
    }
}
