/* =========================================================
   绿映影视 CMS · 前台样式（绿色清新）
   ========================================================= */
:root {
  --g-700: #15803d;
  --g-600: #16a34a;
  --g-500: #22c55e;
  --g-200: #bbf7d0;
  --g-100: #dcfce7;
  --g-50:  #f0fdf4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5efe8;
  --card-shadow: 0 2px 10px rgba(22, 163, 74, .06);
  --card-shadow-hover: 0 12px 28px rgba(22, 163, 74, .14);
}

html, body {
  background: #f4f9f5;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--g-700); text-decoration: none; }
a:hover { color: var(--g-600); }

/* ---------- 顶部导航 ---------- */
.navbar-cms {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-cms .navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--g-700);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.navbar-cms .navbar-brand .logo-badge {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--g-600), var(--g-500));
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.navbar-cms .nav-link {
  color: var(--ink-2);
  font-weight: 600;
  padding: .5rem 1.05rem;
  border-radius: 8px;
}
.navbar-cms .nav-link:hover, .navbar-cms .nav-link.active {
  color: var(--g-700);
  background: var(--g-50);
}
.navbar-cms .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
  padding: .5rem;
  min-width: 200px;
}
.navbar-cms .dropdown-item { border-radius: 8px; padding: .45rem .8rem; font-size: .92rem; }
.navbar-cms .dropdown-item:hover { background: var(--g-50); color: var(--g-700); }
.navbar-cms .dropdown-item .icon { color: var(--g-600); margin-right: .4rem; }

/* 搜索框 */
.search-wrap { position: relative; }
.search-box {
  display: flex; align-items: center;
  background: var(--g-50);
  border: 1px solid var(--g-200);
  border-radius: 50px;
  padding: .18rem .2rem .18rem 1rem;
  transition: box-shadow .2s, border-color .2s;
}
.search-box:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.search-box input {
  border: 0; outline: 0; background: transparent; width: 230px; font-size: .92rem;
}
.search-box .btn {
  background: linear-gradient(135deg, var(--g-600), var(--g-500));
  color: #fff; border-radius: 50px; border: 0;
  padding: .35rem 1.1rem; font-weight: 600;
}
.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15,23,42,.14);
  z-index: 1040; overflow: hidden; display: none;
}
.suggest-box.show { display: block; }
.suggest-box .suggest-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .8rem; cursor: pointer; font-size: .9rem;
}
.suggest-box .suggest-item:hover { background: var(--g-50); }
.suggest-box .suggest-item img { width: 38px; height: 52px; object-fit: cover; border-radius: 6px; }
.suggest-box .suggest-item .t { font-weight: 600; color: var(--ink); }
.suggest-box .suggest-item .meta { font-size: .78rem; color: var(--muted); }
.suggest-box .suggest-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }

.user-menu .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-500), var(--g-700));
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.user-menu .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* 移动端导航排行行头像（小号） */
.nav-mobile-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-500), var(--g-700));
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; overflow: hidden;
}
.nav-mobile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* 导航折叠按钮：展开时显示灰圈，收回后清除（JS 控制出现/渐变消失） */
.navbar-toggler.toggler-open {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .65) !important;
}
.navbar-toggler.toggler-collapsed {
  box-shadow: none !important;
  outline: none !important;
}

/* 移动端头像下拉：卡片固定在头像正下方、右对齐（不随空间翻转） */
@media (max-width: 991.98px) {
  .nav-mobile-dd {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 4px 0 0 !important;
  }
}
.user-menu .dropdown-item .icon { color: var(--g-600); margin-right: .45rem; }

/* ---------- 主体通用 ---------- */
.cms-main { min-height: 60vh; padding-top: 1.4rem; padding-bottom: 2.5rem; }

/* 区块标题 */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.sec-title {
  font-size: 1.15rem; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: .55rem;
}
.sec-title::before {
  content: ""; width: 5px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--g-500), var(--g-700));
}
.sec-title .bi { color: var(--g-600); }
.sec-more { font-size: .85rem; color: var(--muted); font-weight: 600; }
.sec-more:hover { color: var(--g-700); }

/* ---------- 影片卡片 ---------- */
.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.video-card .poster-wrap { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.video-card .poster-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.video-card:hover .poster-wrap img { transform: scale(1.06); }
.video-card .poster-wrap .play-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.72));
  opacity: 0; transition: opacity .25s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem;
}
.video-card:hover .play-mask { opacity: 1; }
.video-card .poster-wrap .play-mask .play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--g-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; transform: translateY(8px); transition: transform .25s;
}
.video-card:hover .play-mask .play-btn { transform: translateY(0); }
.video-card .badge-type {
  position: absolute; top: 8px; left: 8px;
  background: rgba(15,23,42,.55); color: #fff;
  font-size: .7rem; padding: .15rem .5rem; border-radius: 20px;
  backdrop-filter: blur(4px);
}
.video-card .score-pill {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.94); color: var(--g-700);
  font-weight: 800; font-size: .8rem; border-radius: 8px; padding: .1rem .45rem;
}
.video-card .card-body { padding: .6rem .7rem .7rem; }
.video-card .card-title {
  font-size: .92rem; font-weight: 700; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-card .card-title a { color: var(--ink); }
.video-card .card-title a:hover { color: var(--g-700); }
.video-card .card-meta {
  font-size: .78rem; color: var(--muted); margin-top: .2rem;
  display: flex; align-items: center; gap: .35rem;
}

/* ---------- 首页轮播 ---------- */
.hero-banner { border-radius: 18px; overflow: hidden; box-shadow: var(--card-shadow); }
.carousel-cms .carousel-item img { width: 100%; height: 360px; object-fit: cover; }
.carousel-cms .carousel-caption {
  left: 5%; right: auto; text-align: left; bottom: 12%;
  max-width: 60%;
  background: linear-gradient(90deg, rgba(15,23,42,.6), transparent);
  padding: 1rem 1.6rem; border-radius: 14px;
}
.carousel-cms .carousel-caption h5 { font-weight: 800; font-size: 1.5rem; }
.carousel-cms .carousel-caption p { margin: .2rem 0 0; opacity: .9; font-size: .9rem; }
.carousel-cms .carousel-indicators [data-bs-target] { width: 26px; background: var(--g-500); border: 0; }

/* ---------- 榜单 ---------- */
.rank-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .6rem .9rem; }
.rank-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .3rem; border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  width: 22px; height: 22px; border-radius: 6px;
  background: #eef5f0; color: var(--ink-2);
  font-weight: 800; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.rank-item:nth-child(-n+3) .rank-no { background: linear-gradient(135deg, var(--g-500), var(--g-700)); color: #fff; }
.rank-item .rank-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.rank-item .rank-title:hover { color: var(--g-700); }
.rank-item .rank-score { color: var(--g-700); font-weight: 700; font-size: .82rem; flex: none; }
.rank-item .rank-views { color: var(--muted); font-size: .75rem; flex: none; }

/* 播放页猜你喜欢：与播放器底部对齐 */
.like-list { display: flex; flex-direction: column; }
.like-list .rank-item { flex: 1 1 auto; }

/* ---------- 筛选面板 ---------- */
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.1rem; }
.filter-row { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; flex-wrap: wrap; border-bottom: 1px dotted rgba(0,0,0,.1); }
.filter-row:last-child { border-bottom: 0; }
.filter-label {
  width: 56px; flex: none; color: var(--muted); font-size: .88rem;
  padding-top: .3rem; font-weight: 600;
}
.filter-links { display: flex; flex-wrap: nowrap; gap: .3rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-links::-webkit-scrollbar { display: none; }
.filter-links a {
  display: inline-block; padding: .22rem .75rem; border-radius: 20px;
  font-size: .86rem; color: var(--ink-2); border: 1px solid transparent;
  flex: none; white-space: nowrap;
}
.filter-links a:hover { color: var(--g-700); background: var(--g-50); }
.filter-links a.active { background: var(--g-600); color: #fff; font-weight: 600; }
.sort-tabs .filter-links a.active { background: var(--g-50); color: var(--g-700); border-color: var(--g-200); font-weight: 700; }
/* 手机扫码观看卡片 */
.scan-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem .9rem; margin-bottom: 1.1rem; }
.scan-card .scan-body { padding: .8rem 0; }

/* ---------- 详情页 ---------- */
.detail-hero {
  background: linear-gradient(135deg, #ffffff, var(--g-50));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem;
}
.detail-poster { width: 220px; border-radius: 14px; overflow: hidden; box-shadow: var(--card-shadow-hover); flex: none; }
.detail-poster img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
.detail-title { font-size: 1.7rem; font-weight: 800; }
.detail-alias { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: .6rem 0 1rem; color: var(--ink-2); font-size: .92rem; }
.detail-meta .m-item .k { color: var(--muted); margin-right: .3rem; }
.score-big {
  font-size: 2.4rem; font-weight: 900; line-height: 1;
}
.score-stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: 2px; }
.detail-tags a {
  display: inline-block; background: var(--g-50); color: var(--g-700);
  border: 1px solid var(--g-200); border-radius: 20px;
  padding: .15rem .7rem; font-size: .82rem; margin: 0 .3rem .3rem 0;
}
.detail-tags a:hover { background: var(--g-600); color: #fff; }
.btn-fav.active { background: var(--g-600) !important; color: #fff !important; border-color: var(--g-600) !important; }

/* 剧集列表 */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .5rem; }
.ep-grid .ep-item {
  text-align: center; padding: .42rem .2rem; border-radius: 9px;
  background: #f7fbf8; border: 1px solid var(--line);
  color: var(--ink-2); font-size: .85rem;
  transition: all .15s;
}
.ep-grid .ep-item:hover { border-color: var(--g-500); color: var(--g-700); }
.ep-grid .ep-item.active { background: var(--g-600); color: #fff; border-color: var(--g-600); font-weight: 700; }

/* 评论 */
.comment-item { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.comment-item:last-child { border-bottom: 0; }
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--g-500), var(--g-700)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; gap: .6rem; align-items: baseline; font-size: .82rem; }
.comment-name { font-weight: 700; color: var(--ink-2); }
.comment-time { color: var(--muted); }
.comment-content { margin-top: .35rem; font-size: .93rem; line-height: 1.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 播放页 */
.player-shell {
  background: #052e16; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(5,46,22,.35);
}
.player-stage { aspect-ratio: 16/9; position: relative; }
.player-stage video { width: 100%; height: 100%; display: block; }
.player-stage .player-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #b6f0c9; gap: .8rem;
  background: radial-gradient(circle at 50% 40%, #0b3d24, #052e16);
}
.player-stage .player-placeholder .bi { font-size: 3.4rem; opacity: .7; }
.player-stage .player-placeholder .tip { font-size: .9rem; opacity: .75; }
.player-info-bar {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem;
  color: var(--ink);
}
.player-info-bar .pi-title { font-weight: 700; }
.player-info-bar .pi-ep { background: var(--g-50); color: var(--g-700); border-radius: 8px; padding: .1rem .6rem; font-size: .82rem; }
.player-info-bar .text-opacity-50 { color: var(--muted) !important; }
.video-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { max-width: 430px; margin: 2.5rem auto; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2.2rem 2rem; box-shadow: var(--card-shadow-hover);
}
.auth-card .auth-logo {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto .8rem;
  background: linear-gradient(135deg, var(--g-600), var(--g-500)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.auth-card .form-control, .auth-card .form-select {
  border-radius: 10px; padding: .6rem .9rem;
}
.auth-card .form-control:focus, .auth-card .form-select:focus {
  border-color: var(--g-500); box-shadow: 0 0 0 .2rem rgba(34,197,94,.15);
}
.btn-green {
  background: linear-gradient(135deg, var(--g-600), var(--g-500));
  border: 0; color: #fff; font-weight: 700; border-radius: 10px; padding: .6rem 1.4rem;
}
.btn-green:hover { background: linear-gradient(135deg, var(--g-700), var(--g-600)); color: #fff; }
.btn-green.btn-sm { padding: .25rem .5rem; border: 1px solid transparent; }
.btn-outline-green {
  border: 1px solid var(--g-500); color: var(--g-700); border-radius: 10px;
  background: transparent; font-weight: 600;
}
.btn-outline-green:hover { background: var(--g-50); color: var(--g-700); border-color: transparent; }
/* 注册按钮：样式与登录一致（outline-green 结构），仅填充绿色背景 */
.btn-green-fill {
  background: linear-gradient(135deg, var(--g-600), var(--g-500));
  color: #fff;
}
.btn-green-fill:hover { background: linear-gradient(135deg, var(--g-700), var(--g-600)); color: #fff; border-color: transparent; }

/* ---------- 个人中心 ---------- */
.account-side { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.account-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-500), var(--g-700)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; margin: 0 auto;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-nav .nav-link {
  color: var(--ink-2); border-radius: 10px; padding: .55rem .9rem;
  display: flex; align-items: center; gap: .5rem; font-weight: 600;
}
.account-nav .nav-link .bi { color: var(--g-600); }
.account-nav .nav-link.active { background: var(--g-50); color: var(--g-700); }
.stat-chip {
  background: var(--g-50); border-radius: 12px; padding: .8rem 1rem;
  text-align: center;
}
.stat-chip .num { font-size: 1.4rem; font-weight: 800; color: var(--g-700); }
.stat-chip .lab { font-size: .8rem; color: var(--muted); }

/* ---------- 标签云 ---------- */
/* 播放器"点击播放"遮罩 */
.player-play-tip {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .6rem;
  background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; z-index: 5;
  font-size: 1.1rem;
}
.player-play-tip i { font-size: 3rem; color: #22c55e; }
/* 播放页线路切换栏 */
.line-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.line-label { font-weight: 600; color: var(--g-700); font-size: .95rem; white-space: nowrap; }
.line-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.line-item {
  display: inline-block; padding: .3rem .9rem; border: 1px solid var(--line);
  border-radius: 20px; background: #fff; color: var(--ink-2); font-size: .88rem;
  text-decoration: none; transition: all .15s;
}
.line-item:hover { border-color: var(--g-500); color: var(--g-700); }
.line-item.active { background: var(--g-600); border-color: var(--g-600); color: #fff; font-weight: 600; }
@media (max-width: 575px) {
  .line-item { padding: .28rem .7rem; font-size: .84rem; }
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: .6rem; }
/* 首页热门标签固定一行3个居中 */
.tag-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tag-grid-3 a { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
  .tag-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.tag-cloud a {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: .35rem 1rem; color: var(--ink-2); font-size: .9rem;
  transition: all .15s;
}
.tag-cloud a:hover { background: var(--g-600); color: #fff; border-color: var(--g-600); transform: translateY(-2px); }

/* ---------- 页脚 ---------- */
.cms-footer { background: #062b1a; color: #a7f3d0; margin-top: 2rem; }
.cms-footer .footer-inner { padding: 2rem 0 1.2rem; }
.cms-footer .f-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
.cms-footer .f-links a { color: #86efac; margin: 0 .8rem .4rem 0; display: inline-block; font-size: .9rem; }
.cms-footer .f-links a:hover { color: #fff; }
.cms-footer .f-icp { color: #6ee7a0; opacity: .75; font-size: .8rem; }
.cms-footer .f-text { color: #a7f3d0; opacity: .8; font-size: .85rem; line-height: 1.7; }

/* ---------- 其他 ---------- */
mark.hl { background: #fef08a; padding: 0 .15rem; border-radius: 3px; }
.empty-tip { text-align: center; color: var(--muted); padding: 3rem 0; }
.empty-tip .bi { font-size: 3rem; opacity: .4; }
.page-link { color: var(--g-700); border-color: var(--line); }
.page-link:hover { color: var(--g-700); background: var(--g-50); }
.page-item.active .page-link { background: var(--g-600); border-color: var(--g-600); }
.page-item.disabled .page-link { color: #cbd5e1; }
.poster-sm { width: 46px; height: 64px; object-fit: cover; border-radius: 8px; }
.continue-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem; display: flex; gap: .8rem; align-items: center; }
.continue-card .progress { height: 5px; background: var(--g-100); }
.continue-card .progress-bar { background: var(--g-500); }

/* 文本截断省略号（本地 bootstrap.min.css 缺少 .text-truncate） */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* xl 及以上一行 5 个（Bootstrap 无内置 1/5 列） */
@media (min-width: 1200px) {
  .col-xl-5th { flex: 0 0 20%; max-width: 20%; }
}

/* =========================================================
   整站响应式优化
   ========================================================= */
/* ---------- 平板及以下 (≤991px) ---------- */
@media (max-width: 991.98px) {
  .cms-main { padding-top: 1rem; }
  .detail-title { font-size: 1.4rem; }
  .video-title { font-size: 1.15rem; }
  /* 轮播：宽幅图按比例自适应，不再固定 360px 高（手机 + 平板） */
  .carousel-cms .carousel-item img { height: auto; aspect-ratio: 16 / 6; }
}

/* ---------- 手机 (≤767px) ---------- */
@media (max-width: 767.98px) {
  .hero-banner { border-radius: 14px; }
  .carousel-cms .carousel-caption h5 { font-size: 1.1rem; }

  /* 详情页 */
  .detail-hero { padding: 1rem; gap: 1rem !important; }
  .detail-poster { width: 100%; max-width: 200px; margin: 0 auto; }
  .detail-title { font-size: 1.3rem; }
  .score-big { font-size: 1.9rem; }

  /* 卡片内边距收敛 */
  .video-card .card-body { padding: .45rem .55rem .6rem; }
  .video-card .card-title { font-size: .85rem; }
  .video-card .card-meta { font-size: .72rem; }

  /* 区块标题收敛 */
  .sec-title { font-size: 1.02rem; }
  .sec-head { margin-bottom: .75rem; }

  /* 播放页信息栏 */
  .player-info-bar { gap: .6rem; padding: .6rem .8rem; }

  /* 登录/注册卡片 */
  .auth-card { padding: 1.5rem 1.2rem; }
  .auth-wrap { margin: 1.4rem auto; }

  /* 筛选面板 */
  .filter-panel { padding: .8rem .9rem; }
  .filter-label { width: 44px; font-size: .84rem; }
  .filter-links a { font-size: .82rem; padding: .18rem .6rem; }

  /* 榜单 */
  .rank-list { padding: .4rem .7rem; }

  /* 继续观看卡片：海报与文字紧凑 */
  .continue-card { padding: .6rem; gap: .6rem; }
  .poster-sm { width: 40px; height: 56px; }

  /* 页脚 */
  .cms-footer .footer-inner { padding: 1.4rem 1rem 1.2rem; }
  .cms-footer .row { margin-left: 0; margin-right: 0; }
  .cms-footer .f-text { line-height: 1.8; }
  .cms-footer .f-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
  .cms-footer .f-links a { margin: 0; font-size: .88rem; }
  .cms-footer .f-icp { line-height: 1.7; }
  .cms-footer .bottom-bar { flex-direction: column; align-items: flex-start !important; gap: .6rem !important; }
  .cms-footer .bottom-bar .f-links { padding-left: .4rem; }
  .cms-footer .bottom-bar .f-icp { margin-left: 0 !important; padding-left: .4rem; }

  /* 评论 */
  .comment-content { font-size: .9rem; }

  /* 搜索框（折叠菜单内）宽度 */
  .search-box input { width: 100%; }
}

/* ---------- 超小屏 (≤575px) ---------- */
@media (max-width: 575.98px) {
  .navbar-cms .navbar-brand { font-size: 1.15rem; }
  .navbar-cms .navbar-brand .logo-badge { width: 30px; height: 30px; font-size: 1rem; }
  .detail-poster { max-width: 160px; }
  .sec-more { font-size: .8rem; }
  .player-shell { border-radius: 12px; }
  .cms-footer .f-links a { font-size: .82rem; }
  .card-body { padding: 1rem; }
}
