/* ==========================================================================
   帧野 · 界面样式???:1 对齐 zhuiying3.cc v6 模板???
   逆向依据：recon/full/_v6_css_common.css
     --sidebar-width: 180px      左侧固定导航
     --gap: 12px                 卡片间距
     --theme-blue: #0080ff       主色
     --theme-orange: #ff5c38     强调???     --body-background: #151618  背景
     卡片 9 列布局，封???3:4.5，圆???8px
     header ???76px 渐变遮罩 padding 0 64px
     hero 44vw 高（min 640 / max 1168???   ========================================================================== */

:root {
  --sidebar-width: 180px;
  --gap: 12px;
  --theme-blue: #0080ff;
  --theme-orange: #ff5c38;
  --content-margin-left: 64px;
  --content-margin-right: 64px;
  --body-background: #151618;

  --text: #f1f1f1;
  --text-dim: rgba(255, 255, 255, .6);
  --text-mute: rgba(255, 255, 255, .4);
  --line: rgba(255, 255, 255, .08);
  --radius: 8px;
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--body-background);
  color: var(--text);
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ==========================================================================
   左侧固定导航
   ========================================================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  z-index: 1001;
  background: linear-gradient(to right, rgba(21, 22, 24, .98), rgba(21, 22, 24, .55));
}

/* logo：跟导航同一左基线（上游 logo ???margin:4px 0 16px 32px 的左对齐???*/
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  margin: 4px 0 16px 0;
  padding-left: 32px;
}

.sidebar-logo a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sidebar-logo .logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--theme-blue), #0066cc);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 128, 255, .3);
}

.sidebar-logo .logo-mark svg { width: 14px; height: 14px; fill: #fff; }

.sidebar-logo .logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  line-height: 24px;
}

/* ---- 侧边导航：对???zhuiying3.cc 形???----
 * 上游是「图标在左、文字在右、整体左对齐、无底色块??? * hover/active 只调透明度」的横向条目??? * 之前做成竖向图标???+ 蓝色选中块，跟上游差别很大??? */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 12px 10px 12px 32px;
  margin-bottom: 2px;
  border-radius: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  opacity: .6;
  transition: opacity .2s;
  text-decoration: none;
  cursor: pointer;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  flex-shrink: 0;
  transition: color .2s;
}

.nav-item:hover { opacity: 1; color: #fff; background: none; }

/* 选中：不铺色块，只提???+ 图标上主题色（与上游一致） */
.nav-item.active { opacity: 1; color: #fff; background: none; }
.nav-item.active svg { color: var(--theme-blue); }

.sidebar-bottom {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.sidebar-bottom .nav-item {
  width: 100%;
  padding: 12px 10px 12px 32px;
  font-size: 16px;
}

/* ==========================================================================
   顶部浮动???   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-h);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 64px;
  gap: 24px;
  z-index: 1005;
  background: linear-gradient(to bottom, rgba(21, 22, 24, .92), transparent);
  pointer-events: none;
}

.header > * { pointer-events: auto; }

/* ---- 顶部功能按钮组：对齐 zhuiying3.cc ----
 * 图标在上、文字在下，横向排一排，最后跟一个胶囊形登录按钮。
 * 原来只有一个「我的追剧」文字链接，跟上游差得比较远。
 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-tool {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, opacity .2s;
  white-space: nowrap;
  text-decoration: none;
}

/*
 * 图标尺寸必须写死，并且加 flex: none。
 * 不写的话，SVG 在 flex 容器里拿不到约束会按 viewBox 比例铺满父级，
 * 表现就是「登录按钮变成一个巨大的白色圆形/方块」。
 * （旧 CSS 缓存时踩过这个坑）
 */
.header-tool svg {
  width: 21px;
  height: 21px;
  flex: none;
  display: block;
}
.header-tool:hover { color: #fff; }

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 7px;
  height: 36px;
  padding: 0 20px 0 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background-color .2s;
  white-space: nowrap;
}

/* 同样必须写死尺寸 + flex:none，否则图标会撑满整个按钮 */
.login-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
  opacity: .9;
}

.login-btn span { line-height: 1; }

.login-btn:hover { background: rgba(255, 255, 255, .18); }
.login-btn.logged { background: rgba(0, 128, 255, .22); }

/* ---- 语言 / 客户端 弹层 ---- */
.tool-pop {
  position: fixed;
  top: calc(var(--header-h) - 18px);
  right: 64px;
  min-width: 180px;
  padding: 8px;
  border-radius: 12px;
  background: #1f2123;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  z-index: 1200;
}
.tool-pop[hidden] { display: none; }
.tool-pop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.tool-pop-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.tool-pop-item.on { color: var(--theme-blue); }
.tool-pop-item .hint { font-size: 11.5px; color: var(--text-mute); }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 315px;
  height: 35px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .02);
  transition: background-color .3s;
}

.search-box:focus-within { background: rgba(255, 255, 255, .14); }

.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 13px;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-mute); }

.search-box .split-sign {
  color: rgba(255, 255, 255, .22);
  font-size: 12px;
  margin: 0 9px 0 8px;
}

.search-box .search-btn {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}
.search-box .search-btn:hover { color: var(--theme-blue); }

.header-action {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 7px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .06);
  transition: .2s;
  white-space: nowrap;
}
.header-action:hover { color: var(--text); background: rgba(255, 255, 255, .12); }
.header-action svg { width: 15px; height: 15px; fill: currentColor; }

/* 搜索建议 */
.suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #1f2123;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  overflow: hidden;
  max-height: 62vh;
  overflow-y: auto;
  z-index: 60;
}

.suggest-item {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  align-items: center;
  cursor: pointer;
  transition: background .15s;
}
.suggest-item:hover, .suggest-item.active { background: rgba(255, 255, 255, .07); }
.suggest-item img {
  width: 32px; height: 44px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #26282c;
}
.suggest-item .si-main { min-width: 0; flex: 1; }
.suggest-item .si-name {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-item .si-meta {
  font-size: 11.5px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   主内容区
   ========================================================================== */

.main-content {
  margin-left: var(--sidebar-width);
  padding-bottom: 30px;
  min-height: 100vh;
}

/* ==========================================================================
   Hero 轮播
   ========================================================================== */

.hero-container {
  position: relative;
  width: 100%;
  height: 44vw;
  min-height: 640px;
  max-height: 1168px;
  margin-bottom: 10px;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transition: opacity .9s ease;
  /*
   * 我们的片源只有竖版海报（3:4.5），铺成 44vw 高的宽幅背景必然拉伸。
   * 轻微放大 + 模糊把它处理成虚化背景，观感接近上游的横版剧照，
   * 同时保留画面色彩氛围，不会像纯色块那样死板。
   */
  transform: scale(1.08);
  filter: blur(6px) saturate(1.15) brightness(.92);
}
.hero-layer.active { opacity: 1; }

/* 遮罩层：源站用精确百分比，不是随意比???*/
.hero-layer-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 19.71%;
  background: linear-gradient(180deg, #141517, rgba(20, 21, 23, 0));
  z-index: 2;
  pointer-events: none;
}

.hero-layer-left {
  position: absolute;
  left: -3px;
  top: 0;
  width: 36.2%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(270deg, rgba(20, 21, 23, 0), #141517);
  pointer-events: none;
}

.hero-layer-bottom {
  width: 100%;
  height: 34.86%;
  background: linear-gradient(180deg, rgba(20, 21, 23, 0), #141517 80%);
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  pointer-events: none;
}

.hero-info {
  position: relative;
  z-index: 10;
  padding-left: 64px;
  margin-bottom: 24px;
  max-width: 730px;
  pointer-events: none;
}

/* 源站：响应式字号 + 900 字重 + 字间???2px */
.hero-title {
  font-size: clamp(28px, 3vw, 54px);
  line-height: clamp(34px, 3.5vw, 64px);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, .8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 10px);
  margin-bottom: clamp(12px, 1.5vw, 20px);
  align-items: center;
}

.hero-tag {
  font-size: clamp(11px, .85vw, 14px);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero-desc {
  font-size: clamp(12px, 1vw, 16px);
  line-height: clamp(18px, 1.6vw, 26px);
  margin-bottom: clamp(16px, 2vw, 30px);
  color: #ddd;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  pointer-events: auto;
}

/* 源站播放按钮：毛玻璃半透明，不是蓝色实???*/
.play-btn {
  height: clamp(32px, 2.8125vw, 54px);
  line-height: clamp(32px, 2.8125vw, 54px);
  width: clamp(74px, 6.9444vw, 144px);
  font-size: clamp(12px, 1.1111vw, 20px);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  border: none;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.25, 1, .5, 1),
              background-color .3s, color .3s, box-shadow .3s;
}

.play-btn:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

.play-btn svg { width: 1em; height: 1em; fill: currentColor; }

.hero-bottom-area {
  position: relative;
  width: 100%;
  z-index: 20;
  padding: 0 64px;
}

.hero-thumbs {
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 64px 5px 64px;
  margin: 0 -64px;
  scrollbar-width: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }

.hero-thumb {
  /* 源站：底部缩略图带是 11 列等分，不是固定宽度 */
  flex: 0 0 calc((100% - (var(--gap) * 10)) / 11);
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  transform-origin: bottom center;
  opacity: .5;
}
.hero-thumb:hover { opacity: .88; }
.hero-thumb.active { opacity: 1; }

.hero-thumb .card-cover {
  position: relative;
  aspect-ratio: 3 / 4.5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #26282c;
}
.hero-thumb .card-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb.active .card-cover {
  box-shadow: 0 0 0 2px var(--theme-blue), 0 8px 22px rgba(0, 0, 0, .7);
}

/* 源站箭头是通栏细长条，不是圆形按钮 */
.scroll-btn {
  position: absolute;
  top: 120px;
  width: 64px;
  height: calc(100% - 240px);
  border: none;
  color: #ccc;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1005;
  transition: opacity .3s, visibility .3s, color .3s;
  opacity: .8;
  background: transparent;
}
.scroll-btn:hover { color: #fff; opacity: 1; }
.scroll-btn-left { left: 0; }
.scroll-btn-right { right: 0; }

/* ==========================================================================
   分区与横向滚???   ========================================================================== */

.section {
  padding: 0 64px 30px 64px;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  width: max-content;
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: #f1f1f1;
  white-space: nowrap;
}

.title-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  margin-left: 10px;
  height: 22px;
  overflow: hidden;
  padding-right: 6px;
  transition: color .3s;
}
.title-more:hover { color: #fff; }
.title-more .more-label { white-space: nowrap; }
.title-more .more-arrow { font-size: 11px; }

.carousel-container { position: relative; }
.carousel-container .scroll-btn-left { left: 0; }
.carousel-container .scroll-btn-right { right: 0; }

.carousel-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.carousel-wrapper::-webkit-scrollbar { display: none; }

.card-row { display: flex; gap: var(--gap); padding: 2px 0; }

.card-row .card { flex: 0 0 calc((100% - (var(--gap) * 8)) / 9); min-width: 0; }

/* ==========================================================================
   卡片
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #26282c;
  transition: box-shadow .3s;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.card:hover .card-cover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 10px 25px rgba(0, 0, 0, .8);
}
.card:hover .card-cover img { transform: scale(1.06); }

.score-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #0053f0 0%, rgba(0, 83, 240, 0) 50%, rgba(0, 83, 240, 0));
  border-radius: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 6px 0 0 8px;
  pointer-events: none;
}
.score-badge .score-source { font-size: 9px; color: rgba(255, 255, 255, .85); line-height: 1.2; }
.score-badge .score-num { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.1; }

.card-status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 2px #000;
  z-index: 5;
  padding: 0 6px;
  white-space: nowrap;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
  line-height: 22px;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.card:hover .card-title { color: #fff; }

/* hover 浮层 */
.hover-popout {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(6px) scale(.96);
  width: 260px;
  padding-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 40;
  pointer-events: none;
}

.card:hover .hover-popout {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.popout-scale {
  background: #1f2123;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .78);
}

.yk-cover-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.yk-cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.yk-cover-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1f2123, transparent 55%);
}

.yk-title-wrap { padding: 4px 12px 0; }
.yk-title-text {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yk-mix-wrap { padding: 8px 12px 12px; }
.yk-tags-container { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.yk-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}
.yk-tag-dubo { background: rgba(0, 128, 255, .25); color: #9ecbff; }
.yk-tag-grey { background: rgba(255, 255, 255, .12); }
.yk-tag-transparent { background: rgba(255, 92, 56, .2); color: #ffb199; }

.yk-info-text {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   详情???   ========================================================================== */

.detail-hero { position: relative; min-height: 520px; overflow: hidden; }

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(1.4);
  transform: scale(1.12);
  opacity: .4;
}

.detail-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(21, 22, 24, .82), var(--body-background) 88%),
    linear-gradient(to right, rgba(21, 22, 24, .95) 15%, transparent 70%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  padding: 100px var(--content-margin-right) 30px var(--content-margin-left);
}

.detail-flex-left { display: flex; gap: 32px; }

.detail-poster-wrap {
  position: relative;
  width: 236px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .7);
}

.detail-poster { width: 100%; aspect-ratio: 3 / 4.5; object-fit: cover; display: block; }

.poster-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .92);
  text-align: right;
}

.detail-info-center { flex: 1; min-width: 0; }

.title-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }

.detail-title { font-size: 34px; font-weight: 700; line-height: 1.2; margin: 0; }

.detail-year { font-size: 17px; color: var(--text-mute); }

.hero-meta-matrix {
  display: flex;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}

.matrix-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 22px;
  border-right: 1px solid var(--line);
}
.matrix-item:last-child { border-right: 0; }

.m-val { font-size: 14.5px; color: var(--text); }
.m-lbl { font-size: 11.5px; color: var(--text-mute); }

.cast-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.actor-line { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.7; }
.actor-line .label { color: var(--text-mute); flex-shrink: 0; }
.actor-line .val { color: rgba(255, 255, 255, .82); min-width: 0; }

.actor-val-box {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actor-val-box.expanded { -webkit-line-clamp: unset; }

.actor-more-btn { color: var(--theme-blue); cursor: pointer; font-size: 13px; white-space: nowrap; }

.synopsis-glass {
  position: relative;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.synopsis-glass-title { font-size: 14px; font-weight: 600; margin-bottom: 9px; color: rgba(255, 255, 255, .9); }

.synopsis-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .66);
  max-height: 84px;
  overflow: hidden;
  transition: max-height .3s;
}
.synopsis-text.expanded { max-height: 900px; }

.synopsis-toggler {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  cursor: pointer;
  color: var(--text-mute);
  transition: color .2s;
}
.synopsis-toggler:hover { color: var(--theme-blue); }
.synopsis-toggler svg { width: 20px; height: 20px; fill: currentColor; transition: transform .25s; }
.synopsis-toggler.open svg { transform: rotate(180deg); }

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 30px;
  border-radius: 100px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 128, 255, .38);
  transition: filter .2s;
}
.btn-play:hover { filter: brightness(1.1); }
.btn-play svg { width: 16px; height: 16px; fill: currentColor; }

.btn-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .09);
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  transition: .2s;
  cursor: pointer;
}
.btn-icon-pill:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-icon-pill svg { width: 16px; height: 16px; fill: currentColor; }
.btn-icon-pill.active { background: rgba(0, 128, 255, .22); color: #9ecbff; }

/* ==========================================================================
   选集 / 播放???   ========================================================================== */

.play-section { padding: 0 var(--content-margin-right) 40px var(--content-margin-left); }

.source-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.source-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: .2s;
}
.source-tab:hover { background: rgba(255, 255, 255, .13); color: var(--text); }
.source-tab.active { background: var(--theme-blue); color: #fff; font-weight: 500; }
.source-tab .tab-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .22);
}

.ep-list { display: flex; flex-wrap: wrap; gap: 8px; }

.ep-item {
  min-width: 84px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-item:hover { background: rgba(0, 128, 255, .22); color: #fff; }
.ep-item.active { background: var(--theme-blue); color: #fff; font-weight: 500; }

.ep-more {
  display: block;
  margin: 14px auto 0;
  padding: 8px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  font-size: 13px;
  color: var(--text-dim);
  transition: .2s;
}
.ep-more:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.netdisk-list { display: flex; flex-direction: column; gap: 9px; max-width: 720px; }

.netdisk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  transition: .2s;
}
.netdisk-item:hover { border-color: rgba(0, 128, 255, .45); }

.netdisk-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: 15px;
  flex-shrink: 0;
}
.netdisk-name { font-size: 14px; }
.netdisk-code { font-size: 11.5px; color: var(--text-mute); font-family: ui-monospace, monospace; }

.netdisk-btn {
  margin-left: auto;
  padding: 7px 18px;
  border-radius: 100px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}
.netdisk-btn.ghost { background: rgba(255, 255, 255, .09); color: var(--text-dim); margin-left: auto; }
.netdisk-btn.ghost + .netdisk-btn { margin-left: 8px; }

/* ==========================================================================
   播放???   ========================================================================== */

.player-wrap {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-h));
}
.player-wrap .artplayer-app { width: 100%; height: 100%; }

.player-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 14px;
  background: rgba(0, 0, 0, .55);
}

.play-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px var(--content-margin-right) 16px var(--content-margin-left);
}

.play-title { font-size: 21px; font-weight: 600; margin: 0; }
.play-sub { font-size: 13px; color: var(--text-mute); }

.play-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 var(--content-margin-right) 18px var(--content-margin-left);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.chip {
  padding: 6px 15px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.chip:hover { background: rgba(255, 255, 255, .13); color: var(--text); }
.chip.on { background: var(--theme-blue); color: #fff; }

/* ==========================================================================
   分类???/ 搜索???   ========================================================================== */

.page-head {
  padding: 100px var(--content-margin-right) 20px var(--content-margin-left);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.page-title { font-size: 28px; font-weight: 600; margin: 0; }
.page-count { font-size: 13px; color: var(--text-mute); }

.grid-container { padding: 0 var(--content-margin-right) 20px var(--content-margin-left); }

.grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 24px var(--gap);
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px var(--content-margin-left);
}

.pager button {
  padding: 9px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  font-size: 13.5px;
  color: var(--text-dim);
  transition: .2s;
}
.pager button:hover:not(:disabled) { background: var(--theme-blue); color: #fff; }
.pager button:disabled { opacity: .32; cursor: not-allowed; }
.pager .pager-info { font-size: 13px; color: var(--text-mute); }

/* ==========================================================================
   状???   ========================================================================== */

.empty { text-align: center; padding: 100px 20px; color: var(--text-mute); }
.empty h3 { font-size: 17px; margin-bottom: 8px; color: var(--text-dim); }
.empty p { font-size: 13.5px; }

.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 24px;
  border-radius: 100px;
  background: #26282c;
  border: 1px solid var(--line);
  font-size: 13.5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .65);
  z-index: 3000;
  max-width: 90vw;
  text-align: center;
  animation: toastIn .22s ease;
}
.toast.err { border-color: var(--theme-orange); color: #ffb199; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21, 22, 24, .74);
  backdrop-filter: blur(4px);
  z-index: 2500;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--theme-blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, #1f2123 25%, #26282c 50%, #1f2123 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { aspect-ratio: 3 / 4.5; }
/* ==========================================================================
   榜单页（对齐 top.css???   ========================================================================== */

.rank-container {
  max-width: 1636px;
  margin: 0 auto;
  padding: 86px 24px 40px;
  box-sizing: border-box;
  min-height: calc(100vh - 200px);
}

.rank-tabs {
  display: flex;
  gap: 40px;
  margin: 30px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.rank-tab {
  font-size: 18px;
  color: #999;
  padding-bottom: 16px;
  cursor: pointer;
  position: relative;
  transition: color .3s;
  font-weight: 500;
}
.rank-tab:hover { color: #fff; }
.rank-tab.active { color: var(--theme-blue); font-weight: bold; }
.rank-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--theme-blue);
  border-radius: 2px;
}

.rank-list { display: flex; flex-direction: column; }

.rank-item {
  display: flex;
  padding: 24px;
  border-radius: 8px;
  align-items: center;
  gap: 18px;
  transition: background .2s;
}
.rank-item:hover { background: rgba(255, 255, 255, .04); }

.rank-cover {
  position: relative;
  width: 140px;
  aspect-ratio: 3 / 4.2;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.rank-item:hover .rank-cover img { transform: scale(1.05); }

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 54px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px;
  pointer-events: none;
}
.rank-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 128, 255, .95), rgba(0, 128, 255, .35));
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%);
  z-index: -1;
}
.rank-badge.top-three::before { background: linear-gradient(135deg, #ffb648, #ff5c38); }

.rank-text {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  transform: skewX(-6deg);
  font-style: italic;
}

.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.rank-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rank-tag-red {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 65, 65, .16);
  color: #ff7b7b;
}
.rank-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-hot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 76px;
}
.rank-hot svg { width: 20px; height: 20px; fill: #ff4141; }
.rank-hot-num { font-size: 22px; font-weight: 700; color: #ff4141; }
.rank-hot-lbl { font-size: 11px; color: rgba(255, 255, 255, .35); }
/* ==========================================================================
   留言页（对齐 gbook.html???   ========================================================================== */

.gbook-container { max-width: 900px; margin: 0 auto; padding: 100px 24px 60px; }

.list-section {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.list-header {
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.message-list { padding: 8px 0; }

.message-item {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.message-item:last-child { border-bottom: 0; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.message-content { flex: 1; min-width: 0; }

.message-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.author-name { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.post-time { font-size: 12px; color: var(--text-mute); }

.message-text {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .72);
  word-break: break-word;
}

.admin-reply {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(0, 128, 255, .08);
  border-left: 3px solid var(--theme-blue);
}
.admin-reply-title { font-size: 12px; color: var(--theme-blue); margin-bottom: 5px; font-weight: 500; }
.admin-reply-text { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .62); }

.gbook-form { margin-top: 20px; }
.gbook-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.gbook-form textarea:focus { border-color: var(--theme-blue); }
.gbook-form .form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.gbook-form .hint { font-size: 12.5px; color: var(--text-mute); }
.gbook-form button {
  padding: 9px 26px;
  border-radius: 100px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 13.5px;
}

/* ==========================================================================
   筛选栏
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 64px 20px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  color: var(--text-mute);
  width: 52px;
  flex-shrink: 0;
}

.filter-item {
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .05);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
}
.filter-item:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.filter-item.active { background: rgba(0, 128, 255, .2); color: #9ecbff; }

/* ==========================================================================
   响应???   ========================================================================== */

@media (max-width: 1600px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .card-row .card { flex: 0 0 calc((100% - (var(--gap) * 7)) / 8); }
  .hero-title { font-size: 40px; }
}

@media (max-width: 1280px) {
  :root { --content-margin-left: 32px; --content-margin-right: 32px; }
  .header { padding: 0 32px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-row .card { flex: 0 0 calc((100% - (var(--gap) * 5)) / 6); }
  .hero-info { padding-right: 40%; }
  .hero-title { font-size: 34px; }
  .detail-poster-wrap { width: 190px; }
}

@media (max-width: 1024px) {
  :root { --sidebar-width: 0px; --content-margin-left: 20px; --content-margin-right: 20px; }
  .sidebar {
    top: auto;
    bottom: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0;
    background: rgba(21, 22, 24, .97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .sidebar-logo, .sidebar-bottom { display: none; }
  .sidebar-nav { flex-direction: row; justify-content: space-around; padding: 6px 0; width: 100%; }
  .nav-item { padding: 7px 10px; font-size: 10.5px; gap: 3px; flex: 1; }
  .nav-item svg { width: 19px; height: 19px; }

  .header { left: 0; height: 60px; padding: 0 16px; gap: 12px; }
  .search-box { width: auto; flex: 1; }
  .main-content { padding-bottom: 76px; }

  .hero-container { height: 62vw; min-height: 380px; padding-bottom: 6px; }
  .hero-info { padding-right: 8%; margin-bottom: 14px; }
  .hero-title { font-size: 26px; margin-bottom: 10px; }
  .hero-desc { -webkit-line-clamp: 2; font-size: 12.5px; margin-bottom: 12px; }
  .hero-tag { font-size: 11px; padding: 3px 9px; }
  .play-btn { padding: 9px 22px; font-size: 13.5px; }
  .hero-thumb { flex: 0 0 96px; }

  .section-title { font-size: 17px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
  .card-row .card { flex: 0 0 calc((100% - (var(--gap) * 3)) / 4); }
  .card-title { font-size: 13px; margin-top: 6px; }
  .hover-popout { display: none; }

  .detail-layout { padding: 76px 20px 24px; }
  .detail-flex-left { flex-direction: column; gap: 18px; }
  .detail-poster-wrap { width: 140px; }
  .detail-title { font-size: 23px; }
  .hero-meta-matrix { flex-wrap: wrap; }
  .matrix-item { border-right: 0; padding: 10px 14px; flex: 1 0 33%; }
  .page-head { padding: 76px 20px 16px; }
  .page-title { font-size: 21px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-row .card { flex: 0 0 calc((100% - (var(--gap) * 2)) / 3); }
  .hero-container { height: 78vw; min-height: 340px; }
  .hero-title { font-size: 21px; }
  .detail-title { font-size: 20px; }
  .play-title { font-size: 16px; }
  .ep-item { min-width: 70px; padding: 8px 10px; font-size: 12px; }
}

/* ---- 周期切换（总榜/?????????0天）---- */
#periodTabs .rank-tab {
  font-size: 14px;
  padding: 6px 14px;
  padding-bottom: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  margin-right: 8px;
}
#periodTabs .rank-tab.active {
  background: var(--theme-blue);
  color: #fff;
}
#periodTabs .rank-tab.active::after { content: none; }

/* ---- 站内公告???---- */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  background: rgba(64,158,255,.10);
  border: 1px solid rgba(64,158,255,.28);
  color: #cfe4ff;
}
.notice-bar.notice-warn {
  background: rgba(255,170,0,.10);
  border-color: rgba(255,170,0,.30);
  color: #ffe0a3;
}
.notice-bar.notice-success {
  background: rgba(60,200,120,.10);
  border-color: rgba(60,200,120,.30);
  color: #b5f0cf;
}
.notice-tag {
  flex: none;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: currentColor;
  color: #111;
  font-weight: 700;
}
.notice-title { font-weight: 600; }
.notice-body { opacity: .75; }

/* ---- 卡片热度角标 ---- */
.hot-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #ffb648;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(3px);
}


/* ==========================================================================
   用户体系 / 登录注册 / 发布页
   ========================================================================== */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  width: 420px;
  max-width: 100%;
  padding: 32px 30px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.6;
}

.auth-field {
  display: block;
  margin-bottom: 16px;
}

.auth-field > span {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 7px;
}

.auth-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, background-color .2s;
}

.auth-field input:focus {
  border-color: var(--theme-blue);
  background: rgba(255, 255, 255, .09);
}

.auth-err {
  padding: 9px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(255, 92, 56, .12);
  border: 1px solid rgba(255, 92, 56, .3);
  color: #ffb199;
  font-size: 13px;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 100px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
  border: 0;
  text-align: center;
  line-height: 44px;
}

.auth-submit:hover { filter: brightness(1.1); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }

.auth-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.auth-link:hover { color: var(--theme-blue); }

/* 个人中心 */
.user-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.user-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 16px;
}
.user-row > span { color: var(--text-mute); }

.user-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.user-btn {
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  color: var(--text-dim);
  font-size: 13.5px;
  border: 0;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}
.user-btn:hover { background: var(--theme-blue); color: #fff; }

/* 头部工具栏的响应式：窄屏收掉文字，只留图标 */
@media (max-width: 1280px) {
  .header-tools { gap: 16px; }
  .header-tool span { display: none; }
}

@media (max-width: 1024px) {
  .header-tools { gap: 12px; }
  .login-btn { padding: 0 14px; }
  .auth-wrap { padding: 90px 16px 40px; }
}

/* ==========================================================================
   详情页 · 其他可用源（多源冗余展示）
   ========================================================================== */

.alt-src-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alt-src {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: .2s;
}

.alt-src:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(0, 128, 255, .45);
}

.alt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #888;
}
.alt-dot.alt-healthy  { background: #3cc878; box-shadow: 0 0 6px rgba(60, 200, 120, .6); }
.alt-dot.alt-degraded { background: #ffaa00; }
.alt-dot.alt-down     { background: #ff5c38; }

.alt-name {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.alt-meta {
  font-size: 12px;
  color: var(--text-mute);
}

/* 自动切换源时的提示条 */
.fallback-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 var(--content-margin-left) 14px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 170, 0, .1);
  border: 1px solid rgba(255, 170, 0, .28);
  color: #ffe0a3;
  font-size: 13px;
}
