/* ═══════════════════════════════════════════════════════════════
   全站公共组件样式（ui.css）
   以前这些样式散落在各页面的 scoped css 里，新页面容易漏定义导致按钮裸奔。
   现在统一放全局；页面自己的 scoped 定义优先级更高，可按需覆盖。
   ═══════════════════════════════════════════════════════════════ */

/* ─── 按钮 ─── */
.pose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--t-ink, #3a3238);
    background: var(--t-chip, rgba(0, 0, 0, 0.05));
    font-family: inherit;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

    .pose-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .pose-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .pose-btn.primary {
        color: #fff;
        background: linear-gradient(135deg, var(--t-accent, #e8608a), var(--t-accent-2, #ff9a76));
        box-shadow: 0 6px 16px rgba(var(--t-accent-rgb, 232, 96, 138), 0.35);
        border-color: transparent;
    }

        .pose-btn.primary:hover:not(:disabled) {
            filter: brightness(1.06);
        }

    .pose-btn.ghost {
        background: var(--t-chip, rgba(0, 0, 0, 0.05));
        border-color: var(--t-line, rgba(0, 0, 0, 0.12));
    }

    .pose-btn.danger {
        color: #fff;
        background: linear-gradient(135deg, #c92a2a, #e8590c);
        box-shadow: 0 6px 16px rgba(201, 42, 42, 0.3);
    }

    .pose-btn.wipe {
        background: none;
        border-color: var(--t-line, rgba(0, 0, 0, 0.12));
        color: var(--t-ink-soft, #8a7a82);
    }

        .pose-btn.wipe:hover:not(:disabled) {
            color: #c92a2a;
            border-color: rgba(201, 42, 42, 0.5);
        }

/* ─── 面板 ─── */
.panel {
    margin-top: 1.2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 22px;
    background: var(--t-panel, rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--t-line, rgba(0, 0, 0, 0.08));
    box-shadow: 0 10px 30px rgba(var(--t-shadow-rgb, 0, 0, 0), 0.2);
}

/* ─── 页头 hero ─── */
.pose-hero {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    padding: 1.8rem 2.2rem 1.6rem;
    border-radius: 28px;
    background: var(--t-glass, rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--t-glass-border, rgba(0, 0, 0, 0.06));
    box-shadow: 0 10px 30px rgba(var(--t-shadow-rgb, 0, 0, 0), 0.2);
}

    .pose-hero h1 {
        margin: 0.4rem 0 0.5rem;
        font-size: 1.9rem;
        background: linear-gradient(135deg, var(--t-accent-deep, #b3476f), var(--t-accent-2, #e8608a));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .pose-hero p {
        margin: 0;
        color: var(--t-ink-soft, #8a7a82);
        line-height: 1.8;
        font-size: 0.92rem;
    }

.hero-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--t-chip, rgba(0, 0, 0, 0.05));
    border: 1px solid var(--t-line, rgba(0, 0, 0, 0.08));
    color: var(--t-accent-deep, #b3476f);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

    .hero-badges span {
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        background: var(--t-chip, rgba(0, 0, 0, 0.05));
        font-size: 0.78rem;
        color: var(--t-ink-soft, #8a7a82);
    }

/* ─── 表单 ─── */
.field { display: block; margin-bottom: 0.7rem; }

    .field span {
        display: block;
        font-size: 0.8rem;
        color: var(--t-ink-soft, #8a7a82);
        margin-bottom: 0.3rem;
    }

    .field input, .field select, .field textarea {
        width: 100%;
        padding: 0.5rem 0.7rem;
        border-radius: 10px;
        border: 1px solid var(--t-line, rgba(0, 0, 0, 0.12));
        background: var(--t-input, rgba(255, 255, 255, 0.9));
        color: var(--t-ink, #3a3238);
        font-family: inherit;
        font-size: 0.92rem;
    }

/* ─── 文本 ─── */
.meta { font-size: 0.8rem; color: var(--t-ink-soft, #8a7a82); }

.muted { color: var(--t-ink-soft, #8a7a82); }

.msg {
    margin: 0.9rem 0 0;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
}

    .msg.error {
        background: rgba(var(--t-accent-rgb, 232, 96, 138), 0.12);
        border: 1px solid rgba(var(--t-accent-rgb, 232, 96, 138), 0.4);
        color: var(--t-accent-deep, #b3476f);
    }

    .msg.ok {
        background: rgba(43, 138, 62, 0.1);
        border: 1px solid rgba(43, 138, 62, 0.35);
        color: #2b8a3e;
    }

/* ─── 空状态 ─── */
.empty {
    text-align: center;
    padding: 2.6rem 1rem;
    border-radius: 20px;
    background: var(--t-panel, rgba(255, 255, 255, 0.9));
    border: 1px dashed var(--t-line, rgba(0, 0, 0, 0.12));
    margin-top: 1.2rem;
}

    .empty .empty-emoji { font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
    .empty p { color: var(--t-ink-soft, #8a7a82); }

/* ─── 弹窗 ─── */
.pose-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(var(--t-shadow-rgb, 0, 0, 0), 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pose-modal {
    width: min(560px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 1.2rem 1.4rem 1rem;
    border-radius: 20px;
    background: var(--t-panel, #fff);
    border: 1px solid var(--t-line, rgba(0, 0, 0, 0.08));
    box-shadow: 0 24px 60px rgba(var(--t-shadow-rgb, 0, 0, 0), 0.35);
}

.pose-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

    .pose-modal-head h3 { margin: 0; font-size: 1.05rem; }

.hidden-input { display: none; }

/* ─── 筛选 chip ─── */
.chip {
    border: 1px solid var(--t-line, rgba(0, 0, 0, 0.12));
    background: var(--t-chip, rgba(0, 0, 0, 0.05));
    color: var(--t-ink-soft, #8a7a82);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}

    .chip.on {
        background: var(--t-accent, #e8608a);
        border-color: var(--t-accent, #e8608a);
        color: #fff;
    }

/* ═══════════ 全站悬浮歌单播放器（fx.js 纯 DOM 创建，全局样式不走 scoped CSS） ═══════════
   位置：桌面侧栏（250px）右侧的壁纸留白区上方，不挡导航也不挡内容 */
.site-music {
    position: fixed;
    left: 262px;
    top: 1rem;
    z-index: 900;
}

.music-panel {
    width: 300px;
    padding: 0.7rem 0.8rem 0.8rem;
    border-radius: 16px;
    background: rgba(20, 16, 24, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.music-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.music-fold {
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.music-fold:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* 收起：面板隐藏但 iframe 留在 DOM 里继续播放，只留一颗小圆钮 */
.site-music.folded .music-panel {
    display: none;
}

.music-unfold {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 16, 24, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.music-unfold:hover {
    transform: scale(1.08);
}

.site-music.folded .music-unfold {
    display: block;
}

.music-frame {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
}

/* 🎴 完整歌单 */
.music-card .music-frame {
    height: 430px;
}

/* 〰️ 迷你横条 / 💿 唱片风 */
.music-mini .music-frame,
.music-vinyl .music-frame {
    height: 110px;
}

/* 💿 唱片风：旋转黑胶（纯装饰——iframe 跨域读不到正在播的歌，做不了跟随封面） */
.vinyl-disc {
    width: 96px;
    height: 96px;
    margin: 0.2rem auto 0.7rem;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #17171d 0 2px, #26262e 2px 4px);
    border: 3px solid #101014;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vinyl-spin 6s linear infinite;
}

.vinyl-disc i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f08a24, #e8383d);
    border: 2px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .vinyl-disc {
        animation: none;
    }
}
