* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

a { color: inherit; }
.layout { display: flex; min-height: 100vh; }

/* ============ 左侧侧边栏 ============ */
.sidebar {
    width: 240px;
    background: #1a1a1a;
    color: #ddd;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10;
}
.site-brand { margin-bottom: 44px; }
.site-brand h1 { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 6px; letter-spacing: 1px; }
.site-brand h1 a { text-decoration: none; color: #fff; }
.subtitle { font-size: 13px; color: #888; font-style: italic; }

.primary-nav ul { list-style: none; }
.primary-nav > ul > li { margin-bottom: 6px; }
.primary-nav a { color: #ccc; text-decoration: none; font-size: 15px; display: block; padding: 6px 0; transition: color .2s; }
.primary-nav > ul > li.active > a { color: #fff; font-weight: 500; }
.primary-nav a:hover { color: #fff; }

.secondary-nav { list-style: none; margin: 2px 0 4px 18px; }
.secondary-nav li { margin: 2px 0; }
.secondary-nav a { font-size: 13px; color: #999; padding: 3px 0; }
.secondary-nav li.active a { color: #fff; }
.secondary-nav .nav-count { font-style: normal; font-size: 11px; color: #777; margin-left: 6px; }
.secondary-nav li.active .nav-count { color: #aaa; }
.tertiary-nav { list-style: none; margin: 2px 0 2px 18px; }
.tertiary-nav li { margin: 2px 0; }
.tertiary-nav a { font-size: 12px; color: #888; padding: 2px 0; }
.tertiary-nav li.active a { color: #fff; }
.tertiary-nav .nav-count { font-style: normal; font-size: 11px; color: #777; margin-left: 6px; }

/* 标签云 */
.tag-cloud { margin-top: auto; padding-top: 28px; border-top: 1px solid #2e2e2e; }
.tag-cloud h3 { font-size: 12px; font-weight: 500; color: #888; margin-bottom: 12px; letter-spacing: 1px; }
.tag-cloud .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .tag { padding: 3px 9px; background: #2a2a2a; color: #aaa; border-radius: 12px; cursor: default; transition: all .2s; }
.tag-cloud .tag:hover { background: #444; color: #fff; }

/* ============ 右侧内容区 ============ */
.content { margin-left: 240px; flex: 1; width: calc(100% - 240px); padding: 44px 48px 60px; }

/* 汉堡菜单按钮 + 遮罩（桌面隐藏，手机显示） */
.sidebar-toggle { display: none; position: fixed; top: 14px; left: 14px; z-index: 70; width: 40px; height: 40px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sidebar-toggle span { display: block; width: 18px; height: 2px; background: #333; border-radius: 1px; }
.sidebar-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .3s ease; }

.page-header { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.page-header h2 { font-size: 22px; font-weight: 500; color: #222; }
.page-header .count { font-size: 14px; color: #999; font-weight: 400; margin-left: 6px; }
.page-stats { margin-top: 6px; font-size: 13px; color: #999; }
.page-stats span { margin-right: 24px; }

.search-box { position: relative; }
.search-box input {
    width: 220px; padding: 8px 12px 8px 34px; border: 1px solid #ddd; border-radius: 6px;
    background: #fff; font-size: 13px; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: #999; }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-55%); font-size: 16px; opacity: .5; }

/* 标签筛选条 */
.tag-filter { margin: 6px 0 24px; padding: 14px 16px; background: #fff; border-radius: 8px; }
.tag-filter .filter-label { font-size: 13px; color: #999; margin-right: 6px; }
.tag-filter a { display: inline-block; padding: 4px 12px; margin: 3px; text-decoration: none; color: #666; border-radius: 15px; font-size: 13px; transition: all .2s; }
.tag-filter a:hover, .tag-filter a.active { background: #333; color: #fff; }
/* 星级筛选条：紧跟页头，去掉页头已有的下边距避免间距过大 */
.rating-filter { margin: 0 0 24px; }

/* ============ 海报网格 ============ */
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; align-items: start; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover .poster-card { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.poster-card {
    background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.05); transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
}
.poster-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.poster-card.hidden { display: none; }

.poster-img { position: relative; width: 100%; aspect-ratio: 2/3; overflow: hidden; background: #eee; }
/* 音乐专辑封面基本是正方形，用 1:1 展示避免被裁切（挂在 .poster-grid 或 .poster-card 上） */
.square-cover .poster-img { aspect-ratio: 1/1; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #bbb; background: #f0f0f0; }

.poster-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.78); color: #fff; padding: 12px; font-size: 12px; line-height: 1.6;
    opacity: 0; transition: opacity .25s ease; display: flex; align-items: center; justify-content: center; text-align: center;
}
.poster-card:hover .poster-overlay { opacity: 1; }

.poster-info { padding: 8px 9px 8px; }
.poster-info .title { font-size: 13px; font-weight: 500; color: #222; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-info .meta { font-size: 11px; color: #999; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-bottom { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; border-top: 1px solid #f0f0f0; background: #fafafa; }
.poster-bottom .watch-date { font-size: 11px; color: #888; white-space: nowrap; }
.poster-bottom .rating-line { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.poster-bottom .my-rating { color: #e09015; font-size: 11px; letter-spacing: 1px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.mini-tag { font-size: 11px; padding: 2px 6px; background: #f0f0f0; color: #888; border-radius: 3px; }
/* 「在听」专辑的曲目进度条：听了几首 / 共几首 */
.mini-progress { height: 3px; background: #ececec; border-radius: 2px; overflow: hidden; margin: 2px 0 4px; }
.mini-progress > div { height: 100%; background: #d8a13a; border-radius: 2px; transition: width .3s ease; }
.empty-tip { color: #999; font-size: 14px; padding: 30px 0; grid-column: 1 / -1; }

/* ============ 分页 ============ */
.pagination { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.p-btn { padding: 8px 18px; border: 1px solid #ddd; background: #fff; border-radius: 6px; text-decoration: none; font-size: 13px; color: #666; transition: all .2s; }
.p-btn:hover:not(.disabled) { border-color: #999; color: #333; }
.p-btn.disabled { opacity: .4; pointer-events: none; }
.page-info { font-size: 13px; color: #999; min-width: 60px; text-align: center; }

/* ============ 首页 ============ */
.hero { text-align: center; padding: 30px 0 10px; }
.hero h2 { font-size: 24px; font-weight: 500; color: #222; margin-bottom: 10px; }
.hero-sub { color: #999; font-size: 14px; }
.stat-strip { display: flex; justify-content: center; gap: 40px; margin: 26px 0 40px; flex-wrap: wrap; }
.stat { text-align: center; text-decoration: none; display: block; cursor: pointer; }
.stat:hover .num { color: #1a1a1a; }
.stat:hover .lab { color: #666; }
.stat .num { display: block; font-size: 26px; font-weight: 500; color: #222; transition: color .2s; }
.stat .lab { font-size: 12px; color: #999; transition: color .2s; }

.section-title { font-size: 18px; font-weight: 500; color: #222; margin: 26px 0 14px; }
.section-title .more { float: right; font-size: 13px; color: #888; text-decoration: none; }
.grid-section section { margin-bottom: 10px; }
.grid-section .poster-grid { grid-template-columns: repeat(6, minmax(0,1fr)); }

/* ============ 文章 ============ */
.article-list { margin-top: 6px; }
.article-item { background: #fff; padding: 18px 20px; border-radius: 8px; margin-bottom: 14px; }
.article-item h4 a { color: #333; text-decoration: none; font-size: 17px; }
.article-item time { color: #999; font-size: 12px; margin-top: 4px; display: block; }
.article-detail { max-width: 760px; margin: 0 auto; background: #fff; padding: 40px 48px; border-radius: 10px; }
.article-detail-head { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 24px; }
.article-detail-head h2 { font-size: 26px; font-weight: 500; }
.article-detail-head time { color: #999; font-size: 13px; }
.article-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.9; color: #333; }
.back { margin-top: 30px; }
.back a { color: #888; text-decoration: none; font-size: 13px; }

/* ============ 现场 ============ */
.timeline { margin-top: 6px; }
.live-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eee; }
.live-date { flex-shrink: 0; width: 110px; color: #999; font-size: 13px; padding-top: 4px; }
.live-body h3 { font-size: 16px; font-weight: 500; }
.live-body .meta { color: #999; font-size: 13px; }
.live-body .notes { color: #555; font-size: 14px; margin-top: 6px; }

/* ============ 表单/按钮 ============ */
.btn { display: inline-block; padding: 8px 18px; border: 1px solid #ddd; background: #fff; border-radius: 6px; text-decoration: none; font-size: 13px; color: #666; }
.btn.primary { background: #333; color: #fff; border-color: #333; cursor: pointer; }
.admin-form { background: #fff; padding: 20px; border-radius: 8px; max-width: 720px; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.admin-form input, .admin-form textarea { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; font-family: inherit; }
.form-row input { flex: 1; width: auto; min-width: 140px; }
.admin-form textarea { resize: vertical; }

/* ============ 数据页 ============ */
.data-cards { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.data-card { flex: 1; min-width: 180px; background: #fff; border-radius: 10px; padding: 26px; text-align: center; }
.data-num { font-size: 34px; font-weight: 500; color: #222; }
.data-label { color: #999; font-size: 13px; margin-top: 6px; }
.data-block { background: #fff; border-radius: 10px; padding: 24px 28px; margin-bottom: 24px; }
.bar-chart { margin-top: 12px; }
a.bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; text-decoration: none; border-radius: 6px; padding: 4px 6px; transition: background .2s; }
a.bar-item:hover { background: #faf6ef; }
.bar-item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bar-label { width: 44px; font-size: 13px; color: #666; }
.bar-track { flex: 1; background: #f0f0f0; border-radius: 4px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; background: #333; border-radius: 4px; }
.bar-count { width: 36px; font-size: 13px; color: #999; }
.section-title .hint { font-size: 12px; color: #aaa; font-weight: 400; margin-left: 8px; }
.genre-chart { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
/* 强制上下布局：饼图在上、颜色图例在下（不随容器宽度变化而左右横排） */
.genre-chart--stack { flex-direction: column; align-items: flex-start; }
.genre-pie { width: 180px; height: 180px; border-radius: 50%; flex: 0 0 auto; }
.genre-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.genre-legend li { font-size: 14px; color: #444; display: flex; align-items: center; gap: 8px; }
.genre-legend .legend-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.genre-legend em { font-style: normal; color: #999; margin-left: auto; }
.year-chart { display: flex; align-items: stretch; gap: 2px; height: 220px; padding: 12px 4px 0; border-bottom: 1px solid #eee; margin-top: 12px; }
.year-col { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.year-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.year-bar { width: 62%; max-width: 18px; background: #e09015; border-radius: 2px 2px 0 0; min-height: 1px; transition: background .2s; position: relative; }
.year-count { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 10px; color: #666; white-space: nowrap; margin-bottom: 3px; }
.year-col:hover .year-bar { background: #c4740a; }
.year-num { font-size: 9px; color: #999; margin-top: 5px; transform: rotate(-90deg); white-space: nowrap; transform-origin: top center; }
.tag-cloud-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag-cloud-inline .tag { padding: 5px 12px; background: #f0f0f0; color: #555; border-radius: 15px; }
.tag-cloud-inline .tag em { font-style: normal; color: #aaa; margin-left: 4px; font-size: 11px; }

/* ============ 推荐页 ============ */
.rec-tags { margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rec-tags .tag { padding: 5px 12px; background: #fff; color: #555; border-radius: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.rec-section { margin-bottom: 26px; }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
    .sidebar { width: 200px; }
    .content { margin-left: 200px; width: calc(100% - 200px); padding: 32px 24px; }
    .poster-grid, .grid-section .poster-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
    .search-box input { width: 170px; }
}
@media (max-width: 780px) {
    .poster-grid, .grid-section .poster-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .sidebar { display: flex; width: 260px; transform: translateX(-100%); transition: transform .3s ease; z-index: 60; }
    .sidebar.open { transform: translateX(0); box-shadow: 2px 0 12px rgba(0,0,0,.2); }
    .sidebar-toggle { display: flex; }
    .sidebar-mask.show { opacity: 1; pointer-events: auto; }
    /* 顶部让出汉堡按钮的位置（fixed: top 14px + 40px 高 = 54px），避免标题被压住 */
    .content { margin-left: 0; width: 100%; padding: 64px 14px 22px; }
    .poster-grid, .grid-section .poster-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    /* 低分辨率：饼图区块统一改为上下布局（饼图在上、颜色图例在下），
       与出版社分布在窄屏下因图例换行自然形成的表现一致 */
    .genre-chart { flex-direction: column; align-items: flex-start; }
    .search-box { width: 100%; }
    .search-box input { width: 100%; }
    .stat-strip { gap: 22px; }
    .live-item { flex-direction: column; gap: 6px; }
    .live-date { width: auto; }
    .article-detail { padding: 24px 20px; }
}
@media (max-width: 400px) {
    .poster-grid, .grid-section .poster-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============ 文章卡片（左图右文，一行一篇） ============ */
.article-grid { display: flex; flex-direction: column; gap: 16px; }
.article-card { background: #fff; border: 1px solid #ececec; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.article-card a { text-decoration: none; color: inherit; display: flex; width: 100%; }
.article-cover { position: relative; width: 280px; flex-shrink: 0; aspect-ratio: 16/10; overflow: hidden; background: #f2f2f2; }
.article-cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover-ph { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
                    background: linear-gradient(145deg, #eef1f5, #e2e6ec); color: #b3bac6; font-size: 34px; font-weight: 600; }
.article-body { flex: 1; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.article-body .article-card-title { font-size: 17px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; color: #222; }
.article-body .article-card-excerpt { font-size: 14px; color: #666; line-height: 1.7; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-body .article-card-meta { font-size: 12px; color: #999; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.article-body .article-card-meta .card-tags { margin-top: 0; }
.article-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .article-cover { width: 130px; } .article-body { padding: 12px 14px; } .article-body .article-card-title { font-size: 15px; margin-bottom: 8px; } .article-body .article-card-excerpt { -webkit-line-clamp: 2; font-size: 13px; margin-bottom: 8px; } .article-grid { gap: 12px; } }
@media (max-width: 400px) { .article-cover { width: 100px; } }

/* 文章详情页 */
.article-detail-cover { width: 100%; max-width: 760px; margin: 0 auto 24px; border-radius: 10px; overflow: hidden; }
.article-detail-cover img { width: 100%; display: block; }
.article-detail-head { max-width: 760px; margin: 0 auto 20px; }
.article-detail-head h2 { font-size: 26px; margin: 0 0 10px; line-height: 1.4; }
.article-detail-head time { color: #999; font-size: 13px; }
.article-detail-head .card-tags { margin-top: 12px; }
.article-content { max-width: 760px; margin: 0 auto; line-height: 1.8; font-size: 16px; color: #333; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px 0; }
.article-content p { margin: 0 0 18px; }
.article-content h2, .article-content h3 { margin: 28px 0 12px; line-height: 1.4; }
.article-content blockquote { border-left: 3px solid #ccc; padding-left: 16px; color: #666; margin: 18px 0; }
.article-content figure { margin: 18px 0; }
.article-content figcaption { text-align: center; color: #999; font-size: 13px; margin-top: 6px; }
.article-content iframe { max-width: 100%; }
.article-content a { color: #1a1a1a; text-decoration: underline; }

/* 详情页 */
.detail-wrap { max-width: 860px; margin: 0 auto; padding: 10px 0 40px; }
.detail-back { margin: 4px 0 18px; }
.detail-back a { color: #888; text-decoration: none; font-size: 14px; }
.detail-back a:hover { color: #1a1a1a; }
.detail-head { display: flex; gap: 26px; align-items: flex-start; }
.detail-cover { flex-shrink: 0; width: 220px; }
.detail-cover img { width: 100%; display: block; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.detail-info h2 { font-size: 26px; font-weight: 600; margin: 0 0 10px; line-height: 1.3; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #888; font-size: 14px; margin-bottom: 12px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tags .tag { padding: 4px 12px; background: #f0f0f0; color: #555; border-radius: 15px; font-size: 13px; }
.detail-body { margin-top: 30px; border-top: 1px solid #eee; padding-top: 8px; }
.detail-row { display: flex; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.detail-row .label { flex: 0 0 96px; color: #999; font-size: 14px; }
.detail-row .value { color: #222; font-size: 14px; line-height: 1.6; }
@media (max-width: 640px) {
    .detail-head { flex-direction: column; }
    .detail-cover { width: 180px; }
}

.admin-entry{margin-top:auto;padding-top:24px}.admin-entry a{color:#9aa0a6;font-size:12px;text-decoration:none}.admin-entry a:hover{color:#fff}

/* ===== 导演星系（/media/movie/star） ===== */
.star-stage { position: relative; height: calc(100vh - 200px); min-height: 560px;
    border-radius: 16px; overflow: hidden; background: #04070d;
    box-shadow: 0 10px 40px rgba(0,0,0,.28); }
.star-stage canvas { display: block; cursor: grab; }
.star-stage canvas.dragging { cursor: grabbing; }

.star-hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.star-hud h3 { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: #e8edf6; }
.star-hud p { margin: 5px 0 0; font-size: 11.5px; color: #7e8ca2; letter-spacing: .04em; }
.star-brand { position: absolute; left: 26px; top: 22px; }

.star-back { position: absolute; left: 24px; top: 20px; display: none; pointer-events: auto;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e8edf6;
    padding: 6px 14px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.star-back:hover { background: rgba(255,255,255,.12); }

.star-panel { position: absolute; right: 22px; top: 20px; width: 236px; display: none;
    pointer-events: auto; background: rgba(10,17,32,.74); border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px; padding: 15px 17px; backdrop-filter: blur(12px);
    font-size: 12.5px; line-height: 1.8; color: #e8edf6; }
.star-panel .nm { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.star-panel .sub { color: #8593a8; font-size: 11.5px; }
.star-panel .bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.09); margin: 11px 0 8px; overflow: hidden; }
.star-panel .bar > div { height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg,#8a6420,#f6b545); }
.star-panel .bar > div.full { background: linear-gradient(90deg,#f6b545,#fff3d4); box-shadow: 0 0 10px rgba(246,181,69,.8); }
.star-panel .nm .crown { color: #f6b545; font-weight: 500; margin-left: 4px; }
.star-panel .row { display: flex; justify-content: space-between; color: #8593a8; font-size: 11.5px; }
.star-panel .row b { color: #e8edf6; font-weight: 500; }
.star-panel .row b.gold { color: #f6b545; }

.star-legend { position: absolute; left: 26px; bottom: 22px; font-size: 11.5px; color: #8593a8; line-height: 2; }
.star-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.star-legend .dot-lit { background: #f6b545; box-shadow: 0 0 8px rgba(246,181,69,.85); }
.star-legend .dot-unlit { background: #6d7686; }
.star-legend .dot-full { background: #fff3d4; box-shadow: 0 0 10px 2px rgba(246,181,69,.95); }

.star-hint { position: absolute; right: 24px; bottom: 22px; text-align: right;
    font-size: 11.5px; color: #8593a8; line-height: 1.9; }

.star-tip { position: absolute; pointer-events: none; z-index: 9; padding: 9px 12px; border-radius: 10px;
    background: rgba(8,13,24,.94); border: 1px solid rgba(255,255,255,.10); color: #e8edf6;
    font-size: 12px; line-height: 1.6; max-width: 250px; opacity: 0; transition: opacity .12s; }
.star-tip .t { font-weight: 600; }
.star-tip .m { color: #8593a8; font-size: 11px; }
.star-tip .badge { display: inline-block; margin-top: 5px; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; }
.star-tip .on { background: rgba(246,181,69,.16); color: #f6b545; }
.star-tip .off { background: rgba(120,132,150,.16); color: #9aa7ba; }
.star-tip .crown { background: rgba(246,181,69,.22); color: #ffd98a; border: 1px solid rgba(246,181,69,.45); }

.page-stats .stat-full { color: #f6b545; }

.star-toast { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(8px);
    background: rgba(10,17,32,.92); border: 1px solid rgba(255,255,255,.10); padding: 8px 18px;
    border-radius: 999px; font-size: 12px; color: #b9c4d4; opacity: 0; transition: .25s; pointer-events: none; z-index: 10; }
.star-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
    .star-stage { height: calc(100vh - 170px); min-height: 460px; }
    .star-hint { display: none; }
    .star-brand { left: 18px; top: 16px; }
    .star-legend { left: 18px; bottom: 16px; }
    .star-panel { right: 14px; top: 14px; width: 200px; padding: 12px 14px; }
}

.book-words{color:#999;font-size:12px;}

/* 数据页左右并排区块：两卡片等高，图表在卡内垂直居中 */
.data-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.data-cols > .data-block { display: flex; flex-direction: column; margin-bottom: 0; }
.data-cols .genre-chart { flex: 1; align-content: center; }
@media (max-width: 900px) {
  .data-cols { grid-template-columns: 1fr; gap: 0; }
  .data-cols > .data-block { margin-bottom: 24px; }
}

/* 音乐类型图例：每行 5 个 */
.genre-legend-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 20px; flex: 1 1 520px; }
.genre-legend-5 li { display: grid; grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px; row-gap: 1px; min-width: 0; font-size: 13px; }
.genre-legend-5 .legend-dot { grid-column: 1; grid-row: 1; }
.genre-legend-5 .lg-name { grid-column: 2; grid-row: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.genre-legend-5 em { grid-column: 2; grid-row: 2; margin-left: 0; font-size: 12px; color: #a9a9a9; }
@media (max-width: 900px) { .genre-legend-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); flex-basis: 100%; } }
