:root {
  --bg: #0b0c10;
  --bg-2: #12141b;
  --bg-3: #191c25;
  --card: #151821;
  --line: #242836;
  --txt: #eceef4;
  --txt-2: #a3a9bb;
  --txt-3: #6d7488;
  --brand: #ff4d6d;
  --brand-2: #ff7a5c;
  --gold: #f5c451;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }
body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }
::selection { background: rgba(255, 77, 109, .35); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f3e; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4054; }

#app { display: flex; flex-direction: column; min-height: 100vh; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 32px;
  height: 66px;
  background: rgba(11, 12, 16, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s var(--ease);
}
.topbar.solid { background: rgba(11, 12, 16, .97); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 18px -8px rgba(255, 77, 109, .9);
}
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand-name em { font-style: normal; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: 14.5px;
  color: var(--txt-2);
  border-radius: 9px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--txt); background: rgba(255, 255, 255, .05); }
.nav a.on { color: #fff; font-weight: 600; }
.nav a.on::after {
  content: "";
  position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.search {
  position: relative;
  display: flex; align-items: center;
  width: 268px; flex: none;
  min-width: 0;
  height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px 0 34px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(255, 77, 109, .6); box-shadow: 0 0 0 3px rgba(255, 77, 109, .12); background: #1b1f2a; }
.search-ico { position: absolute; left: 11px; color: var(--txt-3); }
.search input {
  width: 100%; height: 100%;
  background: none; border: 0; outline: 0;
  color: var(--txt); font-size: 14px;
}
.search input::placeholder { color: var(--txt-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.kbd {
  position: absolute; right: 8px;
  font-size: 11px; color: var(--txt-3);
  border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 5px;
  background: rgba(255, 255, 255, .03);
}

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--txt-2);
  transition: color .2s, background .2s, border-color .2s;
}
.icon-btn:hover { color: #fff; background: #232838; border-color: #333a4d; }
.icon-btn.ghost { background: none; border-color: transparent; }
#btnMenu { display: none; }

/* ============ 视图 ============ */
.view { flex: 1; padding: 30px 32px 60px; max-width: 1680px; width: 100%; margin: 0 auto; }

/* 骨架 */
.sk-row { margin-bottom: 34px; }
.sk-title { width: 130px; height: 20px; border-radius: 6px; margin-bottom: 16px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.sk-card { aspect-ratio: 2 / 3; border-radius: var(--radius); }
.sk-title, .sk-card {
  background: linear-gradient(100deg, #14161e 30%, #1d212c 50%, #14161e 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hero */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 26px;
  min-height: 340px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(11, 12, 16, .97) 26%, rgba(11, 12, 16, .7) 52%, rgba(11, 12, 16, .1) 100%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 22%;
  filter: blur(1px) saturate(1.1);
  transform: scale(1.04);
  opacity: .55;
}
.hero-in {
  position: relative; z-index: 2;
  padding: 44px 46px;
  max-width: 660px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: 2px;
  color: var(--brand); font-weight: 700; margin-bottom: 14px;
}
.hero-kicker::before { content: ""; width: 22px; height: 2px; background: var(--brand); }
.hero-h1 { font-size: 34px; line-height: 1.22; margin: 0 0 14px; font-weight: 800; letter-spacing: -.4px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--txt-2); font-size: 13.5px; margin-bottom: 16px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); }
.hero-desc {
  color: var(--txt-2); font-size: 14px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: 11px; border: 0;
  font-size: 14.5px; font-weight: 600;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px -14px rgba(255, 77, 109, .95);
}
.btn-primary:hover { box-shadow: 0 18px 32px -14px rgba(255, 77, 109, 1); }
.btn-ghost { color: var(--txt); background: rgba(255, 255, 255, .09); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

/* 区块 */
.sec { margin-bottom: 38px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sec-title { font-size: 19.5px; font-weight: 700; margin: 0; letter-spacing: -.2px; }
.sec-title::before {
  content: ""; display: inline-block;
  width: 4px; height: 17px; margin-right: 10px;
  border-radius: 3px; vertical-align: -2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.sec-more { margin-left: auto; font-size: 13px; color: var(--txt-3); display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.sec-more:hover { color: var(--brand); }

/* 网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 18px; }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .045);
  transition: transform .28s var(--ease), border-color .25s, box-shadow .28s;
  will-change: transform;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 77, 109, .35); box-shadow: var(--shadow); }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #10131a;
  overflow: hidden;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .35s; opacity: 0; }
.poster img.loaded { opacity: 1; }
.card:hover .poster img { transform: scale(1.06); }
.poster::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, #12151d 30%, #1a1e28 50%, #12151d 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  z-index: 0;
}
.poster img { position: relative; z-index: 1; }
.poster-ph {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  color: #2c3242; font-size: 30px; font-weight: 800;
}

.badge {
  position: absolute; z-index: 3;
  font-size: 11px; line-height: 1;
  padding: 5px 7px; border-radius: 6px;
  background: rgba(8, 9, 12, .78);
  backdrop-filter: blur(6px);
  color: #fff;
}
.badge.tl { top: 8px; left: 8px; color: var(--gold); font-weight: 700; }
.badge.tr { top: 8px; right: 8px; color: #fff; }
.badge.br {
  bottom: 8px; right: 8px;
  background: linear-gradient(135deg, rgba(255, 77, 109, .92), rgba(255, 122, 92, .92));
  font-weight: 600;
}
.play-mask {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(6, 7, 10, .1), rgba(6, 7, 10, .68));
  opacity: 0; transition: opacity .28s;
}
.card:hover .play-mask { opacity: 1; }
.play-mask i {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  transform: scale(.86); transition: transform .3s var(--ease);
}
.card:hover .play-mask i { transform: scale(1); }

.card-body { padding: 10px 11px 12px; }
.card-name {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sub { display: flex; gap: 8px; font-size: 12px; color: var(--txt-3); }
.card-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub .sep { color: #333a4a; }

/* 筛选条 */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { color: var(--txt-3); font-size: 13px; width: 44px; flex: none; }
.chip {
  padding: 7px 15px;
  font-size: 13.5px;
  color: var(--txt-2);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.chip:hover { color: #fff; border-color: #3a4155; }
.chip.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 77, 109, .9), rgba(255, 122, 92, .9));
  border-color: transparent;
}

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--txt-2); font-size: 14px;
  transition: all .2s;
}
.pager button:hover:not(:disabled) { color: #fff; border-color: var(--brand); }
.pager button:disabled { opacity: .32; cursor: not-allowed; }
.pager button.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; font-weight: 600; }
.pager .pinfo { color: var(--txt-3); font-size: 13px; padding: 0 8px; }

/* 空态 */
.empty { display: grid; place-items: center; padding: 80px 20px; text-align: center; color: var(--txt-3); }
.empty svg { opacity: .35; margin-bottom: 18px; }
.empty h3 { font-size: 17px; color: var(--txt-2); margin: 0 0 8px; font-weight: 600; }
.empty p { font-size: 13.5px; margin: 0; }

/* ============ 详情页 ============ */
.detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 38px;
  padding: 30px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 32px;
}
.detail-head::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  filter: blur(28px) saturate(1.4);
  opacity: .3; transform: scale(1.2);
}
.detail-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 27, .55), rgba(18, 20, 27, .96));
}
.detail-head > * { position: relative; z-index: 2; }

.detail-poster {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0e1016;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .95);
  border: 1px solid rgba(255, 255, 255, .07);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }

.detail-h1 { font-size: 28px; font-weight: 800; margin: 4px 0 12px; line-height: 1.25; letter-spacing: -.4px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  font-size: 12.5px; padding: 5px 11px; border-radius: 7px;
  background: rgba(255, 255, 255, .07); color: var(--txt-2);
}
.tag.hot { background: rgba(255, 77, 109, .16); color: #ff8fa3; font-weight: 600; }
.detail-line { display: flex; gap: 9px; font-size: 13.5px; color: var(--txt-2); margin-bottom: 7px; line-height: 1.6; }
.detail-line b { color: var(--txt-3); font-weight: 500; flex: none; width: 46px; }
.detail-desc {
  font-size: 13.5px; line-height: 1.85; color: var(--txt-2);
  margin: 16px 0 22px; max-width: 900px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.detail-desc.open { -webkit-line-clamp: unset; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* 线路 + 剧集 */
.lines-sec { margin-bottom: 34px; }
.line-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.line-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line);
  color: var(--txt-2); font-size: 13.5px;
  transition: all .2s;
}
.line-btn:hover { color: #fff; border-color: #3b4256; }
.line-btn.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 77, 109, .92), rgba(255, 122, 92, .92));
  border-color: transparent;
  box-shadow: 0 10px 22px -12px rgba(255, 77, 109, .9);
}
.line-btn .ln { font-size: 11px; opacity: .72; }

.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; max-height: 280px; overflow-y: auto; padding-right: 6px; }
.ep-seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ep-seg .seg {
  padding: 5px 12px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--txt-2);
  transition: all .18s;
}
.ep-seg .seg:hover { color: #fff; border-color: #3b4256; }
.ep-seg .seg.on { background: rgba(255, 77, 109, .18); color: #ff8fa3; border-color: rgba(255, 77, 109, .5); font-weight: 600; }

/* 最近更新状态条 */
.live-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 11px 16px;
  font-size: 13px; color: var(--txt-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
}
.live-bar b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-hint { color: var(--txt-3); }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
  70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.ep-grid.tall { max-height: none; }
.ep {
  height: 42px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--txt-2);
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .18s;
}
.ep:hover { color: #fff; border-color: var(--brand); background: #221a20; }
.ep.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; font-weight: 600; }

/* ============ 播放器 ============ */
.player-layer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 6, 9, .96);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  animation: fadeIn .22s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.player-shell {
  max-width: 1360px; margin: 0 auto;
  padding: 16px 24px 60px;
  min-height: 100%;
}
.player-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.player-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-tags { display: flex; gap: 8px; color: var(--txt-3); font-size: 12.5px; flex: 1; overflow: hidden; }
.player-head .icon-btn:last-child { margin-left: auto; }

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05060a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage video { width: 100%; height: 100%; display: block; background: #05060a; }
.stage-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: none;
}
.stage-cover.show { display: block; }
.stage-cover::after { content: ""; position: absolute; inset: 0; background: rgba(5, 6, 10, .55); backdrop-filter: blur(3px); }
.stage-msg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 4; text-align: center;
  color: var(--txt-2); font-size: 14px;
  padding: 14px 22px; border-radius: 12px;
  background: rgba(10, 11, 16, .86);
  border: 1px solid var(--line);
  max-width: 84%;
  line-height: 1.6;
  display: none;
}
.stage-msg.show { display: block; }
.stage-msg b { color: var(--brand); }
.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 5;
  width: 76px; height: 76px; border-radius: 50%;
  border: 0; color: #fff;
  background: linear-gradient(135deg, rgba(255, 77, 109, .96), rgba(255, 122, 92, .96));
  display: grid; place-items: center;
  box-shadow: 0 20px 44px -16px rgba(255, 77, 109, .9);
  transition: transform .2s var(--ease);
}
.big-play:hover { transform: translate(-50%, -50%) scale(1.07); }
.big-play[hidden] { display: none; }

.player-panel { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 20px; }
.panel-left { min-width: 0; }
.line-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.ep-nav { display: flex; gap: 9px; margin-bottom: 12px; }
.nav-ep {
  padding: 7px 15px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg-3);
  color: var(--txt-2); font-size: 13px;
  transition: all .18s;
}
.nav-ep:hover:not(:disabled) { color: #fff; border-color: var(--brand); }
.nav-ep:disabled { opacity: .32; cursor: not-allowed; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; max-height: 300px; overflow-y: auto; padding-right: 6px; }
.panel-right { border-left: 1px solid var(--line); padding-left: 22px; }
.side-h { font-size: 13px; color: var(--txt-3); margin-bottom: 12px; letter-spacing: .5px; }
.side-item { display: flex; gap: 11px; margin-bottom: 14px; align-items: center; }
.side-item .sp { width: 44px; height: 62px; border-radius: 7px; overflow: hidden; background: #10131a; flex: none; }
.side-item .sp img { width: 100%; height: 100%; object-fit: cover; }
.side-item .sn { font-size: 13px; line-height: 1.45; color: var(--txt-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item:hover .sn { color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%);
  z-index: 300;
  padding: 11px 20px; border-radius: 10px;
  background: rgba(20, 22, 30, .96);
  border: 1px solid var(--line);
  color: var(--txt); font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toastIn .24s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: auto; }
.footer-in { max-width: 1680px; margin: 0 auto; padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.foot-brand { font-size: 14px; font-weight: 700; }
.foot-brand span { color: var(--brand); margin: 0 4px; }
.foot-note, .foot-src { font-size: 12.5px; color: var(--txt-3); line-height: 1.7; }
.foot-src { color: #4a5164; }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .search { width: 210px; }
  .player-panel { grid-template-columns: 1fr; }
  .panel-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
@media (max-width: 900px) {
  .topbar { padding: 0 16px; gap: 12px; height: 60px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; background: #0e1015; border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .nav a.on::after { display: none; }
  #btnMenu { display: grid; }
  .search { width: auto; flex: 1; }
  .view { padding: 20px 16px 46px; }
  .hero-in { padding: 28px 22px; }
  .hero-h1 { font-size: 24px; }
  .hero { min-height: 300px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 11px; }
  .card-name { font-size: 13px; }
  .card-sub { font-size: 11px; }
  .detail-head { grid-template-columns: 130px 1fr; gap: 18px; padding: 18px; }
  .detail-h1 { font-size: 20px; }
  .detail-desc { -webkit-line-clamp: 3; }
  .player-shell { padding: 10px 12px 40px; }
  .ep-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .footer-in { padding: 22px 16px; }
  .sec-title { font-size: 17px; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .kbd { display: none; }
  .hero-meta { font-size: 12.5px; }
  .btn { height: 40px; padding: 0 18px; font-size: 13.5px; }
  .pager button { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
}
