/* ===========================================================
   草莓视频 Strawberry Video - 站点样式
   深色主题 + 草莓红主色
   =========================================================== */

:root {
  --bg: #0b0d12;
  --bg-soft: #10131b;
  --card: #151926;
  --card-hi: #1c2130;
  --line: #242a3a;
  --text: #e9edf6;
  --muted: #8992a6;
  --brand: #ff3f60;
  --brand-2: #ff7a45;
  --gold: #ffb020;
  --green: #22c55e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --nav-h: 62px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .3px; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3142; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a4152; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(11, 13, 18, .88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(255, 63, 96, .35);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 8px;
  color: #c9d0e0;
  font-size: 14.5px;
  transition: .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: #1b2030; }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, rgba(255,63,96,.22), rgba(255,122,69,.18)); box-shadow: inset 0 0 0 1px rgba(255,63,96,.35); }

.search {
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  position: relative;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #141824;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: .2s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,63,96,.14); }
.search .ico, .search button {
  position: absolute; top: 50%; transform: translateY(-50%);
}
.search .ico { left: 13px; width: 16px; height: 16px; color: var(--muted); }
.search button {
  right: 5px; height: 30px; padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13px; font-weight: 600;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: #c9d0e0; font-size: 13.5px;
  transition: .18s;
}
.btn-ghost:hover { border-color: var(--brand); color: #fff; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  place-items: center;
}

/* ---------------- Hero 轮播 ---------------- */
.hero { position: relative; margin: 18px 0 6px; }
.hero-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 340px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex; align-items: flex-end;
}
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,8,12,.94) 0%, rgba(6,8,12,.62) 45%, rgba(6,8,12,.15) 100%),
              linear-gradient(0deg, rgba(6,8,12,.92), rgba(6,8,12,0) 62%);
}
.slide-body { position: relative; padding: 32px 34px; max-width: 640px; }
.hero-tag {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.slide-body h2 { font-size: 34px; line-height: 1.25; margin-bottom: 10px; }
.slide-meta { display: flex; align-items: center; gap: 10px; color: #b8c0d2; font-size: 13px; margin-bottom: 12px; flex-wrap: wrap; }
.slide-desc { color: #a7b0c3; font-size: 14px; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 10px 26px rgba(255, 63, 96, .3);
  transition: transform .18s, box-shadow .18s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 63, 96, .42); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 14px;
}
.btn-line:hover { background: rgba(255,255,255,.08); }
.hero-dots { position: absolute; right: 22px; bottom: 20px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); transition: .25s; }
.hero-dots button.active { width: 42px; background: var(--brand); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10,12,18,.55); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; z-index: 3; opacity: 0; transition: .2s;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-arrow svg { width: 18px; height: 18px; }

/* ---------------- 分类条 ---------------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  color: #bcc4d6; font-size: 13.5px; white-space: nowrap; transition: .18s;
}
.chip:hover { border-color: var(--brand); color: #fff; }
.chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------------- 区块标题 ---------------- */
.section { margin-top: 30px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-size: 20px; }
.sec-head .bar {
  width: 4px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.sec-head .sub { color: var(--muted); font-size: 13px; }
.sec-head .more { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.sec-head .more:hover { color: var(--brand); }

/* ---------------- 视频网格 / 卡片 ---------------- */
.grid { display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid.list-view { grid-template-columns: 1fr; gap: 14px; }

.card { position: relative; }
.card .cover {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--card-hi);
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card .cover.wide-ratio { aspect-ratio: 16 / 10; }
.card .cover::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%);
}
.cover-title {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 12px 12px;
  display: flex; align-items: center; gap: 6px;
}
.cover-word {
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255,255,255,.92); text-shadow: 0 4px 14px rgba(0,0,0,.5);
  writing-mode: vertical-rl; line-height: 1.05;
  max-height: 62%;
}
.play-float {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255,63,96,.9);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.7);
  transition: .22s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.card:hover .play-float { opacity: 1; transform: scale(1); }
.card:hover .cover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.55); }
.play-float svg { width: 18px; height: 18px; margin-left: 2px; }

.badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  font-size: 11.5px; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}
.badge.right { left: auto; right: 8px; }
.badge.gold { background: linear-gradient(135deg, rgba(255,176,32,.9), rgba(255,122,69,.9)); border: 0; }
.badge.green { background: linear-gradient(135deg, rgba(34,197,94,.9), rgba(20,160,110,.9)); border: 0; }

.card .title {
  margin-top: 9px; font-size: 14.5px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .title { color: var(--brand); }
.card .meta { margin-top: 4px; color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 1; overflow: hidden; }

/* 排行榜 */
.rank-item { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  flex: 0 0 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: #232838; color: #aab2c6;
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.rank-item:nth-child(2) .rank-no { background: linear-gradient(135deg, #ff8a3d, #ffb020); color: #fff; }
.rank-item:nth-child(3) .rank-no { background: linear-gradient(135deg, #4a90e2, #7ac2ff); color: #fff; }
.rank-body { min-width: 0; }
.rank-body .t { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-body .m { font-size: 12px; color: var(--muted); }
.rank-body a:hover .t { color: var(--brand); }

/* ---------------- 两栏布局 ---------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.side-card h3 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.side-card h3 .bar { width: 3px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }

/* ---------------- 播放页 ---------------- */
.crumbs { color: var(--muted); font-size: 13px; padding: 16px 0 12px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 6px; opacity: .6; }

.player-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
}
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #05070c; box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.player::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 45%, rgba(0,0,0,.15), rgba(0,0,0,.72));
}
.player-mid {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; gap: 12px; align-content: center; text-align: center;
}
.player-btn {
  width: 74px; height: 74px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 14px 34px rgba(255,63,96,.42);
  animation: pulse 2.4s infinite;
}
.player-btn svg { width: 28px; height: 28px; margin-left: 3px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,63,96,.45); }
  70% { box-shadow: 0 0 0 22px rgba(255,63,96,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,63,96,0); }
}
.player-tip { position: relative; z-index: 2; color: #cfd6e6; font-size: 13.5px; }
.player-bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,0));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.player-bar .progress { flex: 1; min-width: 140px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); position: relative; }
.player-bar .progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 32%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.player-bar .txt { font-size: 12.5px; color: #c5ccdd; }
.player-hd {
  position: absolute; z-index: 3; top: 12px; left: 14px;
  display: flex; gap: 8px; align-items: center;
}

.ep-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; max-height: 100%;
}
.ep-head { padding: 13px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.ep-head h3 { font-size: 15px; }
.ep-head .cnt { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.ep-list { padding: 10px; overflow-y: auto; max-height: 420px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.ep-list button {
  padding: 8px 4px; border-radius: 8px; background: #1b2030; border: 1px solid var(--line);
  font-size: 13px; color: #c6cddd; transition: .16s;
}
.ep-list button:hover { border-color: var(--brand); color: #fff; }
.ep-list button.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; font-weight: 600; }

.detail-head { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
.poster {
  flex: 0 0 150px; aspect-ratio: 3 / 4.2; border-radius: var(--radius);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { font-size: 25px; line-height: 1.3; margin-bottom: 8px; }
.detail-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.score { display: inline-flex; align-items: baseline; gap: 4px; color: var(--gold); font-size: 22px; font-weight: 800; }
.score small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.info-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; margin: 14px 0; }
.info-rows div { font-size: 13.5px; color: #aeb6c8; }
.info-rows b { color: #dfe4ee; font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  padding: 4px 11px; border-radius: 8px; background: #1c2130; border: 1px solid var(--line);
  font-size: 12.5px; color: #b6bed1; transition: .16s;
}
.tag:hover { border-color: var(--brand); color: #fff; }
.intro { color: #a9b2c6; font-size: 14px; line-height: 1.85; margin-bottom: 16px; }
.intro.collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-soft {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  background: var(--card-hi); border: 1px solid var(--line); font-size: 13.5px; color: #d3d9e6;
}
.btn-soft:hover { border-color: var(--brand); color: #fff; }
.btn-soft.on { border-color: var(--brand); color: var(--brand); }
.btn-soft svg { width: 15px; height: 15px; }

/* ---------------- 筛选条 ---------------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.f-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.f-row:last-child { border-bottom: 0; }
.f-row > span { flex: 0 0 54px; color: var(--muted); font-size: 13px; }
.f-row .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.f-row .opts a, .f-row .opts button {
  padding: 3px 12px; border-radius: 7px; font-size: 13px; color: #b9c1d3;
}
.f-row .opts a:hover, .f-row .opts button:hover { color: #fff; background: #1f2534; }
.f-row .opts a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; }

.count-bar { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.count-bar b { color: var(--text); }

.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 30px 0 10px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13.5px;
  background: var(--card); border: 1px solid var(--line); color: #c0c7d8;
}
.pager a:hover { border-color: var(--brand); color: #fff; }
.pager .now { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------------- 搜索结果 ---------------- */
.search-summary { padding: 18px 0 6px; }
.search-summary h2 { font-size: 19px; margin-bottom: 6px; }
.search-summary p { color: var(--muted); font-size: 13.5px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 60px; font-weight: 800; color: #2c3346; letter-spacing: 4px; }

/* ---------------- 404 ---------------- */
.err-wrap {
  min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 50px 18px 70px;
  position: relative; overflow: hidden;
}
.err-wrap::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,63,96,.16), rgba(255,63,96,0) 65%);
  top: -180px; left: 50%; transform: translateX(-50%);
}
.err-inner { position: relative; z-index: 2; max-width: 640px; }
.err-graphic { width: 190px; margin: 0 auto 18px; position: relative; }
.err-code {
  font-size: clamp(72px, 15vw, 132px); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 4px;
}
.err-inner h2 { font-size: 22px; margin: 6px 0 10px; }
.err-inner p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.err-search { display: flex; gap: 10px; max-width: 420px; margin: 0 auto 22px; }
.err-search input {
  flex: 1; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #141824; color: var(--text); outline: none; font-size: 14px;
}
.err-search input:focus { border-color: var(--brand); }
.err-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.err-rec { margin-top: 44px; text-align: left; }
.err-rec .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---------------- 页脚 ---------------- */
.footer { margin-top: 46px; border-top: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { font-size: 14.5px; margin-bottom: 12px; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--muted); font-size: 13.5px; }
.foot-grid a:hover { color: var(--brand); }
.foot-about p { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.8; }
.copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: #6d7789; font-size: 12.5px; text-align: center; }

/* 返回顶部 */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 70;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(28,33,48,.9); border: 1px solid var(--line);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .22s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* 提示气泡 */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: rgba(28,33,48,.96); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .player-wrap { grid-template-columns: 1fr; }
  .ep-list { max-height: 260px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 12px; }
  .grid.wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-viewport { height: 300px; border-radius: 16px; }
  .slide-body { padding: 22px 20px; }
  .slide-body h2 { font-size: 24px; }
  .poster { flex-basis: 116px; }
  .search { max-width: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-viewport { height: 260px; }
  .slide-body h2 { font-size: 21px; }
  .slide-desc { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
  .grid.wide { grid-template-columns: repeat(2, 1fr); }
  .copyright { font-size: 12px; }
  .f-row > span { flex-basis: 100%; }
}
