/* ==========================================================================
   LAYOUT 5 — "Aurora Light"
   Thẻ trắng nổi, avatar tròn overlap, bottom bar cố định (view / like / now playing)
   Tái sử dụng engine layout5.js (bản ez.js) nên giữ đầy đủ id: c-name, c-bio,
   c-socials, c-avatar, c-badges, c-discord-*, c-guild-*, weather-*, c-views...
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Bỏ màu hồng/xanh highlight mặc định khi chạm nút/link trên mobile */
    -webkit-tap-highlight-color: transparent;
}

:root {
    --f-sans: 'Inter', system-ui, sans-serif;
    --f-serif: 'Playfair Display', Georgia, serif;
    --f-mono: 'Geist Mono', monospace;

    --ink: #111214;
    --ink-soft: #4b4f57;
    --ink-faint: #8a9099;
    --panel: #ffffff;
    --line: rgba(0, 0, 0, 0.06);
    --card-bg: rgba(255, 255, 255, 0.92);
    --accent: #ff4d8d;
}

::selection {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
}

html {
    scroll-behavior: smooth;
    /* Nền chờ trung tính để không lóe trắng trước khi CSS/ảnh nền tải xong */
    background: #e8ebf1;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--f-sans);
    background:
        radial-gradient(ellipse 70% 55% at 50% -5%, #e9eef7 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 105%, #eef0f4 0%, transparent 55%),
        linear-gradient(180deg, #f4f6fa 0%, #eef1f6 55%, #e8ebf1 100%);
    background-color: #e8ebf1;
    overflow-x: hidden;
}

/* Ảnh/video nền tùy chỉnh (nếu người dùng đặt trong dashboard) */
#bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}

canvas#cc {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    mix-blend-mode: multiply;
    opacity: .35;
}

audio {
    display: none;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ============================ WRAP / CARD ============================ */
.zcl-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 16px 96px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    perspective: 1200px;
    z-index: 10;
}

.zcl-card {
    position: relative;
    width: 720px;
    max-width: 100%;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

/* ============================ HEADER (name + avatar) ============================ */
.zcl-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    padding-right: 32px;
    margin-bottom: -70px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

.zcl-name-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 24px;
    padding-bottom: 92px;
    box-sizing: border-box;
    min-width: 0;
}

/* Badges (engine đổ ảnh vào #c-badges) — cùng hàng với tên/tag, không xuống dòng */
.zcl-badges {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 0;
    flex-shrink: 0;
}

.zcl-badges:empty {
    display: none;
}

.zcl-badges img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.zcl-badges img:hover {
    transform: scale(1.35) translateY(-2px);
}

/* Tên hiển thị — font Outfit giống Layout 3 (light italic) */
.zcl-name {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 2.9rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
    text-align: right;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* Avatar tròn overlap panel */
.zcl-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    min-width: 150px;
    margin-bottom: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 30, 55, 0.18);
}

.zcl-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zcl-avatar img.c-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.02);
    transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}

.zcl-avatar:hover img.c-avatar {
    transform: scale(1.1);
}

.zcl-avatar .c-avatar-dec {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 184px;
    height: 184px;
    pointer-events: none;
    z-index: 3;
}

/* ============================ PANEL ============================ */
.zcl-panel {
    width: 100%;
    box-sizing: border-box;
    background: var(--card-bg);
    border-radius: 32px;
    box-shadow:
        0 24px 60px rgba(30, 40, 70, 0.12),
        0 2px 8px rgba(30, 40, 70, 0.05);
    padding: 62px 36px 34px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity .6s ease, transform .6s ease;
}

/* Social row (engine đổ icon vào #c-socials) */
.zcl-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 22px;
    align-items: center;
}

.zcl-social-row a {
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    opacity: .85;
    transition: transform .2s, opacity .2s;
}

.zcl-social-row a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.zcl-social-row a i {
    font-size: 22px;
}

.zcl-social-row a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.zcl-social-row a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.zcl-divider {
    width: 100%;
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

/* Bio */
.zcl-bio {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-soft);
    min-height: 24px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.zcl-bio::after {
    content: '|';
    margin-left: 2px;
    opacity: .35;
    animation: zcl-blink 1s step-end infinite;
}

@keyframes zcl-blink {

    0%,
    100% {
        opacity: .35;
    }

    50% {
        opacity: 0;
    }
}

/* ============================ WIDGET CARDS (discord / guild / weather) ============ */
.zcl-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
}

.c-card {
    position: relative;
    background: #f6f7f9;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-discord-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.c-discord-av-wrap {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.c-discord-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #e6e8ec;
    display: block;
}

.c-discord-dec {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    pointer-events: none;
    z-index: 2;
}

.c-discord-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    object-fit: contain;
    z-index: 3;
    background: #fff;
    border-radius: 50%;
    padding: 1px;
}

.c-discord-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.c-discord-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    min-width: 0;
    flex-wrap: nowrap;
}

.c-discord-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: all .25s;
    text-decoration: none;
}

.add-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.12);
}

.add-btn i {
    font-size: 10px;
}

.c-clan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: var(--f-mono);
    font-size: .65rem;
    color: var(--ink-soft);
    margin-left: 4px;
}

.c-clan img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    border-radius: 3px;
}

.c-discord-activity {
    font-size: .85rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-discord-detail {
    font-size: .75rem;
    color: var(--ink-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.c-discord-art {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e6e8ec;
}

/* Guild */
.c-guild {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.c-guild-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.c-guild-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.c-guild-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c-guild-stats {
    display: flex;
    gap: 8px;
    font-size: .75rem;
    color: var(--ink-soft);
}

.c-guild-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.c-guild-dot-on,
.c-guild-dot-off {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.c-guild-dot-on {
    background: #23a55a;
}

.c-guild-dot-off {
    background: #b6bcc4;
}

.c-guild-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    flex-shrink: 0;
    background: #248046;
    border: none;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all .2s;
}

.c-guild-join:hover {
    background: #1a6334;
}

.c-guild-outside-container:empty {
    display: none;
}

/* Weather */
#weather-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

#weather-icon {
    font-size: 2.3rem;
    color: var(--ink);
    flex-shrink: 0;
}

#weather-card .w-body {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    text-align: left;
}

#weather-loc {
    font-size: .72rem;
    color: var(--ink-faint);
    letter-spacing: .4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#weather-card .w-temp {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2px 0;
}

#weather-range,
#weather-wind,
#weather-rain {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* ============================ BOTTOM BAR ============================ */
.zcl-bottom {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100%;
    padding: 0 clamp(16px, 5vw, 50px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999990;
    box-sizing: border-box;
    color: var(--ink);
    font-family: var(--f-sans);
    pointer-events: none;
}

.zcl-left-stats {
    display: flex;
    gap: 18px;
    align-items: center;
    pointer-events: auto;
}

.zcl-view {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 8px 14px;
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
}

.zcl-view svg {
    width: 20px;
    height: 20px;
}

/* ========== FLOATING MUSIC WIDGET (kiểu layout 3 / ez, tông sáng) ========== */
/* Nút tròn nổi góc phải-dưới; bấm/hover mở panel dọc đầy đủ điều khiển */
.float-music-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999995;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: auto;
}

.float-music-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
    transition: transform .28s cubic-bezier(.15, .85, .35, 1), background .28s ease;
    -webkit-tap-highlight-color: transparent;
}

.float-music-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.42);
}

.float-music-panel {
    width: 264px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: all .3s cubic-bezier(.15, .85, .35, 1);
    transform-origin: bottom right;
}

.float-music-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Ảnh bìa tròn, xoay như đĩa nhạc khi đang phát (engine thêm class .spin) */
.fm-cover-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.fm-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fm-art-spin 10s linear infinite;
    animation-play-state: paused;
}

.fm-cover.spin {
    animation-play-state: running;
}

@keyframes fm-art-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tên bài — căn giữa, tự cắt gọn nếu quá dài (không bị mất chữ) */
.fm-title {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.fm-progress {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 14px;
}

.fm-time {
    font-size: 0.78rem;
    color: var(--ink-faint);
    font-weight: 600;
    font-family: var(--f-mono);
    width: 34px;
    text-align: center;
    flex-shrink: 0;
}

.fm-bar {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    touch-action: none;
}

.fm-fill {
    height: 100%;
    background: var(--ink);
    border-radius: 999px;
    width: 0%;
    position: relative;
}

.fm-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fm-controls i {
    color: var(--ink-soft);
    font-size: 1.15rem;
    cursor: pointer;
    transition: color .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}

.fm-controls i:hover {
    color: var(--ink);
}

.fm-controls i:active {
    transform: scale(.88);
}

.fm-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform .2s;
    -webkit-tap-highlight-color: transparent;
}

.fm-play:hover {
    transform: scale(1.08);
}

.fm-play i {
    color: #fff !important;
}

.fm-volume {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 16px;
}

.fm-volume i {
    color: var(--ink-soft);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    cursor: pointer;
    transition: color .2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.fm-volume i:hover {
    color: var(--ink);
}

.fm-vol-bar {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    touch-action: none;
}

.fm-vol-fill {
    height: 100%;
    background: var(--ink);
    border-radius: 999px;
    width: 100%;
    position: relative;
}

/* ============================ OVERLAY LOADING ============================ */
.overlay {
    position: fixed;
    inset: 0;
    /* Bán trong suốt + blur mạnh để thấy ảnh nền lờ mờ phía sau, không trắng tinh */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999999;
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), visibility .7s;
    pointer-events: none;
    will-change: opacity;
}

.ov-name {
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--ink-faint);
    text-transform: lowercase;
}

.ov-spinner-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ov-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, .08);
    border-top-color: var(--ink);
    animation: ov-spin 1s linear infinite;
}

.ov-spinner-2 {
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .05);
    border-bottom-color: var(--ink-soft);
    animation: ov-spin 1.6s linear infinite reverse;
}

@keyframes ov-spin {
    to {
        transform: rotate(360deg);
    }
}

.ov-hint {
    font-family: var(--f-mono);
    font-size: .62rem;
    color: var(--ink-soft);
    letter-spacing: 4px;
    animation: ov-b 2.6s ease-in-out infinite;
}

@keyframes ov-b {

    0%,
    100% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }
}

/* Fade-in */
.fin {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.fin.v {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar hide */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ============================ NAME TEXT EFFECT ============================ */
/* Engine (layout5.js) gán animation nameNeon/nameGlitch/namePulse lên #c-name
   (hoặc lên các <span> con với shine/wave). Các keyframe bên dưới điều khiển
   text-shadow/filter/transform để hiệu ứng chạy. */

@keyframes namePulse {
    0% {
        filter: brightness(0.5);
        text-shadow: none;
    }

    50% {
        filter: brightness(1.3);
        text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
    }

    100% {
        filter: brightness(0.5);
        text-shadow: none;
    }
}

@keyframes nameNeon {

    0%,
    100% {
        text-shadow: 0 0 4px currentColor, 0 0 11px currentColor, 0 0 19px currentColor;
        filter: brightness(1.1);
    }

    33% {
        text-shadow: 0 0 2px currentColor;
        filter: brightness(0.7);
    }

    66% {
        text-shadow: 0 0 6px currentColor, 0 0 14px currentColor, 0 0 22px currentColor;
        filter: brightness(1.2);
    }
}

@keyframes nameGlitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 #ff0040, 2px 0 #00ffff;
    }

    20% {
        transform: translate(-2px, 1px);
        text-shadow: 2px 0 #ff0040, -2px 0 #00ffff;
    }

    40% {
        transform: translate(2px, -1px);
        text-shadow: -2px 0 #00ffff, 2px 0 #ff0040;
    }

    60% {
        transform: translate(-1px, 2px);
        text-shadow: 2px 0 #ff0040, -2px 0 #00ffff;
    }

    80% {
        transform: translate(1px, -2px);
        text-shadow: -2px 0 #00ffff, 2px 0 #ff0040;
    }

    100% {
        transform: translate(0);
        text-shadow: -2px 0 #ff0040, 2px 0 #00ffff;
    }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 640px) {
    .zcl-wrap {
        padding: 84px 14px 132px;
    }

    .zcl-panel {
        padding: 52px 20px 26px;
        border-radius: 26px;
    }

    .zcl-header {
        padding-right: 16px;
        margin-bottom: -56px;
    }

    .zcl-avatar {
        width: 112px;
        height: 112px;
        min-width: 112px;
    }

    .zcl-avatar .c-avatar-dec {
        width: 138px;
        height: 138px;
    }

    .zcl-name-col {
        padding-bottom: 66px;
        margin-right: 14px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .zcl-name {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.1;
    }

    /* Tên dài cho phép rút gọn thay vì tràn màn hình */
    .c-discord-name {
        max-width: 46vw;
    }

    .zcl-social-row {
        gap: 15px;
        font-size: 20px;
    }

    .zcl-social-row a i,
    .zcl-social-row a svg,
    .zcl-social-row a img {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .zcl-bio {
        font-size: .95rem;
    }

    .zcl-divider {
        margin: 18px 0;
    }

    /* Bottom bar: chỉ còn lượt xem, căn trái */
    .zcl-bottom {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        bottom: 10px;
        padding: 0 14px;
    }

    .zcl-left-stats {
        gap: 14px;
        flex-shrink: 0;
    }

    .zcl-view {
        font-size: 13px;
        padding: 7px 12px;
    }

    .zcl-view svg {
        width: 18px;
        height: 18px;
    }

    /* Widget nhạc nổi: nhỏ lại, panel không tràn màn hình */
    .float-music-wrapper {
        bottom: 16px;
        right: 16px;
    }

    .float-music-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .float-music-panel {
        width: min(80vw, 264px);
    }
}

@media (max-width: 400px) {
    .zcl-wrap {
        padding: 72px 10px 128px;
    }

    .zcl-panel {
        padding: 48px 16px 22px;
        border-radius: 22px;
    }

    .zcl-avatar {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .zcl-avatar .c-avatar-dec {
        width: 118px;
        height: 118px;
    }

    .zcl-name-col {
        padding-bottom: 56px;
    }

    .zcl-name {
        font-size: clamp(1.4rem, 9vw, 1.9rem);
    }

    .zcl-social-row {
        gap: 12px;
        font-size: 18px;
    }
}
