:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #11151d;
  --panel-2: #171c26;
  --panel-3: #202635;
  --text: #f6f8fb;
  --muted: #bac3d0;
  --subtle: #7f8997;
  --line: rgba(214, 224, 236, .13);
  --line-strong: rgba(214, 224, 236, .22);
  --accent: #ef3348;
  --accent-2: #18c7b8;
  --blue: #4d8cff;
  --gold: #ffd36b;
  --shadow: 0 26px 80px rgba(0, 0, 0, .48);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f1f4f9;
  --panel-3: #e8edf5;
  --text: #18202c;
  --muted: #495568;
  --subtle: #768294;
  --line: rgba(23, 32, 46, .12);
  --line-strong: rgba(23, 32, 46, .20);
  --shadow: 0 22px 70px rgba(42, 56, 86, .16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #0e1118 0%, #080a0f 46%, #050609 100%),
    radial-gradient(circle at 18% 0%, rgba(77, 140, 255, .14), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(239, 51, 72, .12), transparent 32%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

html[data-theme="light"] body {
  background:
    linear-gradient(180deg, #f8fbff 0%, #f2f5fb 48%, #eef2f8 100%),
    radial-gradient(circle at 18% 0%, rgba(77, 140, 255, .12), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(239, 51, 72, .09), transparent 32%);
}

button,
input,
a,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.app-frame {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto minmax(300px, 500px);
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 17, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, #f04455 0%, #b70f24 58%, #ffd36b 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(239, 51, 72, .28);
}

.brand h1,
.brand p,
.page-title h2,
.page-title p,
.player-head h2,
.player-head p {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.15;
}

.brand p {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

.top-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-cats::-webkit-scrollbar {
  display: none;
}

.top-cats button,
.category-toggle,
.sort-tabs button,
.ghost,
.search button,
.episode,
.source-tab,
.primary,
.secondary,
.category-group-list button,
.category-group-head {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.top-cats button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 700;
}

.top-cats button:hover,
.top-cats button.active,
.category-toggle.active {
  color: #fff;
  background: rgba(24, 199, 184, .13);
  border-color: rgba(24, 199, 184, .44);
}

.category-toggle {
  min-height: 38px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .045);
  border-color: var(--line);
  color: var(--muted);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-jump,
.history-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(77, 140, 255, .42);
  border-radius: 8px;
  color: #fff;
  background: rgba(77, 140, 255, .16);
  cursor: pointer;
  white-space: nowrap;
}

.history-button {
  border-color: rgba(255, 211, 107, .36);
  background: rgba(255, 211, 107, .10);
}

.rank-jump:hover,
.history-button:hover {
  border-color: rgba(255, 211, 107, .55);
}

.search {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 28, 38, .92);
  overflow: hidden;
}

.search-icon {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 21px;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search input::placeholder {
  color: #7f8997;
}

.search button {
  align-self: stretch;
  padding: 0 22px;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(135deg, #ff4658, var(--accent));
  font-weight: 900;
}

.content {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 52px;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title h2 {
  margin-top: 5px;
  font-size: 32px;
  line-height: 1.05;
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sort-tabs button,
.ghost,
.secondary {
  min-height: 38px;
  padding: 8px 13px;
  background: rgba(23, 28, 38, .86);
  border-color: var(--line);
  text-decoration: none;
}

.sort-tabs button.active {
  color: #fff;
  background: rgba(77, 140, 255, .16);
  border-color: rgba(77, 140, 255, .48);
}

.category-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 29, .82);
  box-shadow: var(--shadow);
}

.category-panel.collapsed {
  display: none;
}

.category-group {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
}

.category-group-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 20px 0 0;
  color: var(--text);
  text-align: left;
}

.category-group-head span {
  font-size: 17px;
  font-weight: 900;
}

.category-group-head small {
  grid-column: 1 / -1;
  color: var(--subtle);
  font-size: 12px;
}

.category-group-head b {
  position: absolute;
  top: 2px;
  right: 0;
  color: var(--subtle);
  font-size: 15px;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.category-group.folded .category-group-head b {
  transform: rotate(-90deg);
}

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

.category-group.folded .category-group-list {
  display: none;
}

.category-group-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .07);
}

.category-group-list button:hover,
.category-group-list button.active {
  color: #fff;
  background: rgba(24, 199, 184, .14);
  border-color: rgba(24, 199, 184, .44);
}

.count {
  color: var(--subtle);
  font-size: 12px;
}

.ranking-section {
  margin: 0 0 32px;
}

.feature {
  display: none !important;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.rank-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .026));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

.rank-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rank-card h3 {
  margin: 0;
  font-size: 22px;
}

.rank-card-head span {
  color: var(--subtle);
  font-size: 12px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  text-align: left;
}

.rank-item:hover {
  border-color: rgba(255, 211, 107, .40);
  background: rgba(255, 255, 255, .065);
}

.rank-number {
  color: var(--subtle);
  font-size: 21px;
  font-weight: 900;
  text-align: center;
}

.rank-item:nth-child(1) .rank-number {
  color: #ff4b55;
}

.rank-item:nth-child(2) .rank-number {
  color: #18c7b8;
}

.rank-item:nth-child(3) .rank-number {
  color: #ffd36b;
}

.rank-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel-2);
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-copy strong {
  font-size: 14px;
}

.rank-copy small {
  color: var(--subtle);
  font-size: 12px;
}

.rank-heat {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.feature {
  min-height: 326px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1017;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 198px;
  gap: 34px;
  min-height: 326px;
  padding: clamp(24px, 4vw, 44px);
}

.feature-backdrop {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-size: cover;
  background-position: center 24%;
  filter: saturate(1.02) contrast(1.04);
  transform: scale(1.02);
}

.feature-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .98), rgba(7, 9, 13, .80) 52%, rgba(7, 9, 13, .40)),
    linear-gradient(180deg, rgba(77, 140, 255, .12), rgba(239, 51, 72, .08) 56%, rgba(0, 0, 0, .22));
}

.feature-copy,
.feature-poster {
  position: relative;
}

.feature h2 {
  margin: 10px 0 0;
  max-width: 850px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.feature p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.66;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(214, 224, 236, .14);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  text-decoration: none;
}

.primary {
  background: linear-gradient(135deg, #ff4658, var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(239, 51, 72, .25);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 4px 0 0;
  font-size: 25px;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 22px;
}

.movie-card {
  min-width: 0;
}

.poster-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
  cursor: pointer;
}

.poster-wrap::before {
  content: "哪吒影视";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  color: rgba(255, 211, 107, .80);
  background:
    radial-gradient(circle at 50% 38%, rgba(239, 51, 72, .22), transparent 34%),
    linear-gradient(145deg, rgba(24, 29, 40, .96), rgba(8, 10, 15, .98));
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 2px;
  text-align: center;
}

.poster-wrap img,
.poster {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.poster-wrap img.image-missing,
.detail-poster.image-missing,
.history-item img.image-missing,
.rank-item img.image-missing {
  opacity: 0;
}

.poster-wrap:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.poster-wrap:hover {
  border-color: rgba(255, 211, 107, .44);
}

.poster-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 40px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .84));
}

.badge {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(239, 51, 72, .94);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #17120a;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 12px 0 5px;
  font-size: 15px;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.movie-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 34px;
  color: var(--muted);
}

.pager button {
  min-width: 92px;
}

.site-footer {
  margin: 46px 0 0;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer p {
  max-width: 940px;
  margin: 8px auto 0;
  line-height: 1.65;
}

.quick-tools {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 18;
  display: grid;
  gap: 8px;
}

.quick-tools button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(23, 28, 38, .92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .30);
  cursor: pointer;
  font-weight: 900;
}

.quick-tools button:hover {
  border-color: rgba(24, 199, 184, .50);
}

.empty,
.loading {
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  border-radius: 8px;
  text-align: center;
}

.compact-empty {
  min-height: 92px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 6, 9, .82);
  backdrop-filter: blur(14px);
}

.hidden {
  display: none !important;
}

.detail-panel,
.player-panel,
.history-panel {
  position: relative;
  width: min(1160px, 100%);
  max-height: min(880px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 28, 38, .98), rgba(10, 12, 17, .98));
  box-shadow: var(--shadow);
}

.history-panel {
  width: min(940px, 100%);
  padding: 28px;
  border-radius: 20px;
}

.history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 52px 20px 0;
}

.history-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.history-head p {
  margin: 0;
  color: var(--muted);
}

.history-body {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 118px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .030)),
    rgba(255, 255, 255, .030);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.history-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 107, .30);
  background:
    linear-gradient(135deg, rgba(255, 211, 107, .10), rgba(239, 51, 72, .055)),
    rgba(255, 255, 255, .040);
}

.history-poster {
  position: relative;
  width: 78px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 36%, rgba(239, 51, 72, .20), transparent 38%),
    linear-gradient(145deg, rgba(24, 29, 40, .96), rgba(8, 10, 15, .98));
  cursor: pointer;
}

.history-poster::before {
  content: "哪吒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 211, 107, .80);
  font-size: 16px;
  font-weight: 1000;
}

.history-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-poster span {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 25px;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 51, 72, .94);
  font-size: 12px;
  font-weight: 950;
}

.history-copy {
  min-width: 0;
}

.history-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
}

.history-topline span {
  color: var(--gold);
}

.history-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-copy p,
.history-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.history-copy small {
  color: var(--subtle);
}

.history-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-actions .primary {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  white-space: nowrap;
}

.history-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}

.history-remove:hover {
  color: #fff;
  border-color: rgba(239, 51, 72, .42);
  background: rgba(239, 51, 72, .18);
}

#watchParserToggle {
  display: none !important;
}

.detail-body {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 30px;
  padding: 30px;
}

.detail-poster-wrap {
  position: relative;
  align-self: start;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(239, 51, 72, .22), transparent 36%),
    linear-gradient(145deg, rgba(24, 29, 40, .96), rgba(8, 10, 15, .98));
}

.detail-poster-wrap::before,
.movie-poster-block::before {
  content: "哪吒影视";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  color: rgba(255, 211, 107, .80);
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 2px;
  text-align: center;
}

.detail-poster {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .46);
}

.detail-copy h2 {
  margin: 6px 48px 8px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.storyline,
.detail-copy p {
  color: var(--muted);
  line-height: 1.68;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 18px 0 20px;
}

.field {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.field strong {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.field span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.play-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .038);
}

.play-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.play-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.source-tab {
  min-height: 36px;
  padding: 7px 12px;
  background: #0d1017;
  border-color: var(--line);
}

.source-tab.active {
  border-color: rgba(24, 199, 184, .62);
  color: #fff;
  background: rgba(24, 199, 184, .16);
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 9px;
}

.episode-pager,
.episode-ranges {
  grid-column: 1 / -1;
}

.episode-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

.episode-pager-actions,
.episode-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.episode-pager button,
.episode-ranges button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(13, 16, 23, .92);
  cursor: pointer;
}

.episode-ranges {
  padding: 2px 0 4px;
}

.episode-ranges button.active,
.episode-ranges button:hover,
.episode-pager button:hover {
  color: #15100a;
  border-color: rgba(255, 211, 107, .72);
  background: linear-gradient(135deg, #ffd36b, #ff9d48);
}

.episode {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px 10px;
  background: #0d1017;
  border-color: var(--line);
  text-align: center;
}

.episode.single {
  grid-column: span 2;
  min-width: 140px;
  background: linear-gradient(135deg, #ff4658, var(--accent));
  border-color: rgba(255, 255, 255, .12);
  font-weight: 900;
}

.episode strong {
  max-width: 100%;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode:hover,
.episode.active,
.source-tab:hover,
.ghost:hover,
.secondary:hover {
  border-color: rgba(255, 211, 107, .45);
}

.episode.active {
  color: #fff;
  background: rgba(239, 51, 72, .20);
  border-color: rgba(255, 211, 107, .48);
}

.episode.single.active {
  background: linear-gradient(135deg, #ff4658, var(--accent));
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 28px;
  line-height: 1;
  background: #0d1017;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.player-panel {
  width: min(1220px, 100%);
  height: min(780px, calc(100vh - 44px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #050505;
}

.player-panel:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(17, 21, 29, .98), rgba(8, 10, 15, .96));
}

.player-head h2 {
  margin-top: 4px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.player-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.player-stage {
  position: relative;
  min-height: 0;
  background: #000;
}

#videoPlayer,
#playerFrame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

#videoPlayer {
  object-fit: contain;
}

.player-notice {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: min(560px, calc(100% - 28px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 10, 15, .82);
  font-size: 13px;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(8, 10, 15, .98);
}

.player-bar button {
  min-width: 88px;
}

.speed-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}

.speed-control select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.speed-control option {
  color: #111;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #151a24, #263044, #151a24);
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-card .line {
  height: 14px;
  margin-top: 10px;
  border-radius: 8px;
}

.skeleton-card .line.short {
  width: 62%;
}

@keyframes shimmer {
  from {
    background-position: 220% 0;
  }
  to {
    background-position: -220% 0;
  }
}

html[data-theme="light"] .site-header,
html[data-theme="light"] .player-head,
html[data-theme="light"] .player-bar {
  background: rgba(255, 255, 255, .90);
}

html[data-theme="light"] .search,
html[data-theme="light"] .sort-tabs button,
html[data-theme="light"] .ghost,
html[data-theme="light"] .secondary,
html[data-theme="light"] .category-toggle,
html[data-theme="light"] .category-panel,
html[data-theme="light"] .rank-card,
html[data-theme="light"] .detail-panel,
html[data-theme="light"] .history-panel,
html[data-theme="light"] .play-section,
html[data-theme="light"] .quick-tools button {
  background: rgba(255, 255, 255, .88);
}

html[data-theme="light"] .category-group,
html[data-theme="light"] .rank-item,
html[data-theme="light"] .source-tab,
html[data-theme="light"] .episode,
html[data-theme="light"] .episode-pager,
html[data-theme="light"] .episode-pager button,
html[data-theme="light"] .episode-ranges button,
html[data-theme="light"] .speed-control,
html[data-theme="light"] .history-item {
  background: rgba(24, 34, 50, .045);
}

html[data-theme="light"] .history-item:hover {
  background:
    linear-gradient(135deg, rgba(255, 211, 107, .18), rgba(239, 51, 72, .070)),
    rgba(255, 255, 255, .86);
}

html[data-theme="light"] .top-cats button:hover,
html[data-theme="light"] .top-cats button.active,
html[data-theme="light"] .category-toggle.active,
html[data-theme="light"] .category-group-list button:hover,
html[data-theme="light"] .category-group-list button.active {
  color: #102034;
}

html[data-theme="light"] .rank-jump {
  color: #102034;
  background: rgba(77, 140, 255, .14);
}

html[data-theme="light"] .history-button {
  color: #102034;
  background: rgba(255, 211, 107, .20);
}

html[data-theme="light"] .feature {
  background: #141b29;
}

html[data-theme="light"] .feature-copy,
html[data-theme="light"] .feature-copy .eyebrow,
html[data-theme="light"] .feature-copy h2,
html[data-theme="light"] .feature-copy p {
  color: #fff;
}

html[data-theme="light"] .feature .chip {
  color: #e8edf7;
  background: rgba(0, 0, 0, .22);
}

html[data-theme="light"] .movie-card h3,
html[data-theme="light"] .rank-copy strong,
html[data-theme="light"] .detail-copy h2,
html[data-theme="light"] .player-head h2 {
  color: var(--text);
}

html[data-theme="light"] .poster-wrap,
html[data-theme="light"] .empty,
html[data-theme="light"] .loading {
  background: #fff;
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-actions {
    grid-column: 3;
  }

  .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .top-cats {
    grid-column: 1 / -1;
    order: 3;
  }

  .category-toggle {
    justify-self: end;
  }

  .header-actions {
    justify-self: end;
  }

  .search {
    grid-column: 1 / -1;
    order: 4;
  }

  .content {
    width: min(100% - 28px, 1540px);
    padding-top: 16px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sort-tabs {
    justify-content: start;
  }

  .category-group {
    grid-template-columns: 1fr;
  }

  .category-group-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feature-inner {
    grid-template-columns: 1fr 124px;
    gap: 18px;
    padding: 20px;
  }

  .feature h2 {
    font-size: 34px;
  }

  .detail-body {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand h1 {
    font-size: 18px;
  }

  .search {
    grid-template-columns: 34px minmax(0, 1fr) 68px;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .header-actions button {
    flex: 1;
  }

  .search button {
    padding: 0 12px;
  }

  .feature-inner {
    grid-template-columns: 1fr;
  }

  .feature-poster {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 26px 44px minmax(0, 1fr) auto;
  }

  .section-head,
  .play-head {
    align-items: start;
    flex-direction: column;
  }

  .detail-body {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(210px, 70vw);
  }

  .episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .episode.single {
    grid-column: 1 / -1;
  }

  .episode-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .episode-pager-actions button,
  .episode-ranges button {
    flex: 1 1 86px;
  }

  .history-panel {
    padding: 20px;
  }

  .history-head {
    align-items: start;
    flex-direction: column;
    margin-right: 44px;
  }

  .history-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .history-item img {
    width: 58px;
  }

  .history-actions {
    grid-column: 1 / -1;
  }

  .history-actions button {
    flex: 1;
  }

  .overlay {
    padding: 10px;
  }

  .player-panel {
    height: calc(100vh - 20px);
  }

  .player-head,
  .player-bar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .player-head > div:first-child {
    min-width: 0;
  }

  .player-actions {
    width: 100%;
    justify-content: space-between;
  }

  .player-bar button {
    flex: 1 1 92px;
  }

  .speed-control {
    flex: 1 1 120px;
    justify-content: space-between;
  }
}

/* 2026-06-19 UI rebuild */
body {
  background: linear-gradient(180deg, #07080b 0%, #0d0f14 42%, #101218 100%);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2f7 100%);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  min-height: 82px;
  padding: 13px clamp(18px, 3vw, 42px);
  background: rgba(8, 9, 12, .94);
}

.brand {
  flex: 0 0 auto;
  min-width: 220px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 72px;
  height: 46px;
  border-color: rgba(255, 202, 94, .42);
  background:
    linear-gradient(135deg, #22070a 0%, #7f1018 46%, #f0b85d 100%);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: auto -14px -18px -10px;
  height: 32px;
  background: linear-gradient(90deg, transparent, rgba(255, 51, 61, .78), rgba(255, 182, 72, .86), transparent);
  transform: rotate(-8deg);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #fff7cd 0%, #ffc75f 42%, #f05d28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
  font-weight: 1000;
  text-shadow: 0 0 18px rgba(255, 79, 31, .35);
}

.brand h1 {
  font-size: 21px;
  font-weight: 1000;
}

.brand p {
  color: #9ba4b2;
}

.top-cats {
  flex: 1 1 460px;
  justify-content: center;
  gap: 4px;
}

.top-cats button {
  min-height: 40px;
  padding: 9px 14px;
  border-color: transparent;
  border-radius: 8px;
  color: #c9d0dc;
}

.top-cats button:hover,
.top-cats button.active {
  color: #fff;
  background: rgba(239, 51, 72, .14);
  border-color: rgba(255, 202, 94, .34);
}

.header-actions {
  order: 2;
}

.category-toggle,
.rank-jump,
.history-button {
  min-height: 40px;
  border-radius: 8px;
}

.category-toggle {
  color: #d7dde7;
}

.rank-jump.active,
.rank-jump:hover,
.history-button:hover {
  color: #15100a;
  background: linear-gradient(135deg, #ffd36b, #ff8f3d);
  border-color: rgba(255, 211, 107, .75);
}

.search {
  flex: 1 1 420px;
  max-width: 620px;
  min-height: 44px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(20, 24, 32, .96);
}

.content {
  width: min(1480px, calc(100% - 42px));
  padding-top: 30px;
}

.dashboard {
  align-items: center;
  margin: 10px 0 20px;
}

.page-title h2 {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 1000;
}

.sort-tabs button,
.ghost,
.secondary {
  border-radius: 8px;
  background: rgba(22, 25, 33, .86);
}

.channel-filters {
  scroll-margin-top: 118px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 18, 24, .82);
}

.channel-filter-head {
  display: grid;
  gap: 3px;
  min-width: 94px;
}

.channel-filter-head strong {
  font-size: 18px;
  font-weight: 1000;
}

.channel-filter-head span {
  color: var(--subtle);
  font-size: 12px;
}

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

.channel-filter-list button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}

.channel-filter-list button:hover,
.channel-filter-list button.active {
  color: #fff;
  border-color: rgba(255, 202, 94, .52);
  background: rgba(239, 51, 72, .18);
}

.channel-filter-list .filter-more {
  color: #15100a;
  background: linear-gradient(135deg, #ffd36b, #ff9d48);
  border-color: transparent;
  font-weight: 900;
}

.category-panel {
  scroll-margin-top: 118px;
  background: rgba(12, 15, 21, .94);
}

.results-head {
  scroll-margin-top: 118px;
}

.category-group {
  background: rgba(255, 255, 255, .035);
}

.feature {
  min-height: 430px;
  margin-bottom: 34px;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #090a0d;
}

.feature-inner {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
}

.feature-backdrop {
  opacity: .34;
  filter: saturate(1.1) contrast(1.04);
}

.feature-shade {
  background:
    linear-gradient(90deg, rgba(6, 7, 10, .98), rgba(8, 9, 13, .84) 56%, rgba(8, 9, 13, .44)),
    linear-gradient(180deg, rgba(239, 51, 72, .13), rgba(255, 211, 107, .07) 54%, rgba(0, 0, 0, .32));
}

.feature h2 {
  max-width: 780px;
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 1000;
}

.feature p {
  max-width: 720px;
  font-size: 16px;
}

.feature-poster {
  align-self: center;
  transform: rotate(1.2deg);
}

.primary {
  border-radius: 8px;
  background: linear-gradient(135deg, #ff334d, #d71932);
}

.section-head {
  margin-top: 12px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 1000;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
  gap: 26px 20px;
}

.poster-wrap {
  border-color: rgba(255, 255, 255, .10);
  background: #141821;
}

.movie-card h3 {
  font-weight: 900;
}

.movie-card p {
  color: #93a0b1;
}

.ranking-section {
  margin-top: 4px;
}

body[data-view="rankings"] .ranking-section {
  display: block;
}

body[data-view="rankings"] .dashboard {
  display: none;
}

body[data-view="rankings"] .ranking-section .section-head {
  min-height: 150px;
  align-items: center;
  padding: 28px 30px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .22), rgba(255, 211, 107, .12)),
    #10131a;
}

body[data-view="rankings"] .ranking-section .section-head h2 {
  font-size: clamp(36px, 5vw, 62px);
}

body[data-view="rankings"] .ranking-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.rank-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
}

.rank-item {
  min-height: 72px;
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
}

.rank-number {
  font-size: 24px;
}

.quick-tools button {
  border-radius: 50%;
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .94);
}

html[data-theme="light"] .brand h1,
html[data-theme="light"] .top-cats button {
  color: #171c26;
}

html[data-theme="light"] .search,
html[data-theme="light"] .channel-filters,
html[data-theme="light"] .category-panel,
html[data-theme="light"] .rank-card {
  background: rgba(255, 255, 255, .92);
}

html[data-theme="light"] .channel-filter-list button {
  color: #384356;
  background: rgba(24, 34, 50, .05);
}

html[data-theme="light"] .channel-filter-list button.active,
html[data-theme="light"] .channel-filter-list button:hover {
  color: #111720;
}

html[data-theme="light"] .feature {
  background: #121722;
}

html[data-theme="light"] body[data-view="rankings"] .ranking-section .section-head {
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .13), rgba(255, 211, 107, .18)),
    #ffffff;
}

html[data-theme="light"] body[data-view="rankings"] .ranking-section .section-head h2,
html[data-theme="light"] body[data-view="rankings"] .ranking-section .section-head p {
  color: #171c26;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
  }

  .top-cats,
  .search,
  .header-actions {
    grid-column: 1 / -1;
    max-width: none;
  }

  .top-cats {
    justify-content: flex-start;
  }

  .header-actions {
    order: 0;
  }

  .channel-filters {
    grid-template-columns: 1fr;
  }

  .feature-inner {
    grid-template-columns: minmax(0, 1fr) 150px;
  }
}

@media (max-width: 640px) {
  .content {
    width: min(100% - 24px, 1480px);
  }

  .brand-mark {
    width: 60px;
  }

  .brand-mark span {
    font-size: 16px;
  }

  .feature {
    min-height: 0;
  }

  .feature-inner {
    min-height: 360px;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .feature h2 {
    font-size: 34px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  body[data-view="rankings"] .ranking-grid {
    grid-template-columns: 1fr;
  }
}

/* Movie detail and watch pages */
body[data-view="detail"] .content,
body[data-view="watch"] .content {
  width: min(1720px, calc(100% - 32px));
}

.movie-page,
.watch-page {
  display: block;
}

.movie-hero-page {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  gap: 32px;
  min-height: 430px;
  margin: 6px 0 26px;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .22), rgba(255, 211, 107, .10)),
    #12151d;
}

.movie-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: .25;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.05);
}

.movie-hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 17, .96), rgba(10, 12, 17, .78) 55%, rgba(10, 12, 17, .90)),
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .30));
}

.movie-poster-block,
.movie-detail-copy,
.movie-score-card {
  position: relative;
  z-index: 1;
}

.movie-poster-block {
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(239, 51, 72, .22), transparent 36%),
    linear-gradient(145deg, rgba(24, 29, 40, .96), rgba(8, 10, 15, .98));
}

.movie-poster-block .detail-poster {
  box-shadow: 0 28px 70px rgba(0, 0, 0, .58);
}

.movie-detail-copy {
  align-self: center;
  max-width: 880px;
}

.movie-detail-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 5.8vw, 74px);
  line-height: 1.02;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.movie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.play-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff3651, #d71932);
  box-shadow: 0 16px 38px rgba(239, 51, 72, .34);
  font-weight: 1000;
  cursor: pointer;
}

.play-hero-button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #d71932;
  background: #fff;
  font-size: 12px;
}

.movie-score-card {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .24);
}

.movie-score-card strong {
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
}

.star-row {
  color: rgba(255, 211, 107, .82);
  letter-spacing: 2px;
}

.movie-story-block,
.movie-resource-block,
.movie-related-block {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.movie-story-block p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.78;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(77, 140, 255, .18);
  font-weight: 900;
}

.pill.active {
  background: linear-gradient(135deg, #20c4ff, #4d8cff);
}

.section-head.compact {
  margin: 0 0 14px;
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 18px;
}

.related-card h3 {
  font-size: 14px;
}

.watch-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  min-height: calc(100vh - 112px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
  box-shadow: var(--shadow);
}

.watch-main {
  min-width: 0;
  background: #202020;
}

.watch-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: #000;
}

#watchVideoPlayer,
#watchPlayerFrame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

#watchVideoPlayer {
  object-fit: contain;
}

.danmaku-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.danmaku-item {
  position: absolute;
  right: -40%;
  display: inline-flex;
  max-width: 60%;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .22);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  white-space: nowrap;
  animation: danmaku-fly 9s linear forwards;
}

@keyframes danmaku-fly {
  to {
    transform: translateX(-160vw);
  }
}

.watch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: #111;
}

.danmaku-box,
.watch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.danmaku-box {
  flex: 1 1 420px;
  min-width: 280px;
}

.danmaku-box input {
  flex: 1;
  min-width: 120px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  padding: 0 14px;
  outline: 0;
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.danmaku-box button,
.watch-actions button {
  min-height: 38px;
  border-radius: 8px;
}

.danmaku-toggle.active {
  color: #10131a;
  background: linear-gradient(135deg, #18c7b8, #ffd36b);
}

.watch-related {
  padding: 22px;
}

.watch-sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, .10);
  background: #171b23;
}

.sidebar-toggle {
  position: absolute;
  left: -19px;
  top: 42%;
  z-index: 5;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #fff;
  background: rgba(31, 36, 46, .96);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.watch-info {
  padding: 22px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.watch-info h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.watch-info p {
  margin: 0;
  color: var(--muted);
}

.watch-source-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

.watch-source-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}

.watch-source-tabs button.active {
  color: #11cfff;
  border-color: rgba(17, 207, 255, .5);
  background: rgba(17, 207, 255, .10);
}

.watch-episode-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 0 14px 16px;
  overflow: auto;
}

.watch-episode-list button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.watch-episode-list button:hover,
.watch-episode-list button.active {
  color: #11cfff;
  border-color: rgba(17, 207, 255, .42);
  background: rgba(17, 207, 255, .10);
}

.watch-page.sidebar-collapsed .watch-layout {
  grid-template-columns: minmax(0, 1fr) 0;
}

.watch-page.sidebar-collapsed .watch-sidebar {
  border-left: 0;
}

.watch-page.sidebar-collapsed .watch-sidebar > :not(.sidebar-toggle) {
  display: none;
}

.watch-page.sidebar-collapsed .sidebar-toggle {
  left: -38px;
  transform: rotate(180deg);
}

.watch-page.no-sidebar .watch-layout {
  grid-template-columns: minmax(0, 1fr);
}

.watch-page.no-sidebar .watch-sidebar {
  display: none;
}

html[data-theme="light"] .movie-story-block,
html[data-theme="light"] .movie-resource-block,
html[data-theme="light"] .movie-related-block,
html[data-theme="light"] .watch-sidebar {
  background: rgba(255, 255, 255, .90);
}

html[data-theme="light"] .watch-main {
  background: #f1f4f9;
}

html[data-theme="light"] .watch-bar {
  background: #ffffff;
}

html[data-theme="light"] .danmaku-box input {
  color: #18202c;
  background: rgba(24, 34, 50, .06);
}

@media (max-width: 1080px) {
  .movie-hero-page {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .movie-score-card {
    grid-column: 1 / -1;
  }

  .watch-layout,
  .watch-page.sidebar-collapsed .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-sidebar {
    min-height: 360px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
  }

  .sidebar-toggle {
    display: none;
  }

  .watch-page.sidebar-collapsed .watch-sidebar > :not(.sidebar-toggle) {
    display: grid;
  }
}

@media (max-width: 720px) {
  body[data-view="detail"] .content,
  body[data-view="watch"] .content {
    width: min(100% - 20px, 1720px);
  }

  .movie-hero-page {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .movie-poster-block .detail-poster {
    width: min(220px, 70vw);
  }

  .movie-detail-copy h1 {
    font-size: 36px;
  }

  .watch-stage {
    min-height: 260px;
  }

  .watch-bar,
  .danmaku-box,
  .watch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .danmaku-box,
  .watch-actions {
    width: 100%;
  }

  .watch-actions button,
  .danmaku-box button {
    width: 100%;
  }

  .watch-episode-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-19 premium polish and mobile app shell */
.content {
  width: min(1480px, calc(100% - 48px));
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 32px 22px;
}

.movie-card {
  transition: transform .2s ease, filter .2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

.poster-wrap {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.poster-overlay {
  padding: 58px 12px 12px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .32) 42%, rgba(0, 0, 0, .88) 100%);
}

.badge {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3750, #ef3348);
  box-shadow: 0 10px 24px rgba(239, 51, 72, .34);
}

.score-badge {
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(255, 211, 107, .24);
}

.movie-card h3 {
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.35;
}

.pager {
  margin: 42px 0 8px;
}

.mobile-load-more {
  display: none;
}

.pager-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(16, 20, 28, .78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.pager-arrow {
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .055);
  cursor: pointer;
}

.pager-arrow.primary-next {
  color: #17120a;
  border-color: transparent;
  background: linear-gradient(135deg, #ffd36b, #ff9f43);
  font-weight: 1000;
}

.pager-arrow:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 107, .50);
}

.pager-arrow:disabled {
  transform: none;
  opacity: .42;
}

.pager-status {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  min-width: 150px;
  padding: 0 10px;
  text-align: center;
}

.pager-status strong {
  justify-self: end;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}

.pager-status span {
  color: var(--muted);
  font-weight: 900;
}

.pager-status small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
}

.quick-tools {
  right: 20px;
  bottom: 24px;
  display: flex;
  gap: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(13, 16, 23, .74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .30);
  backdrop-filter: blur(18px);
}

.quick-tools button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 1000;
}

.quick-tools button:hover {
  color: #17120a;
  background: linear-gradient(135deg, #ffd36b, #ff9f43);
}

.mobile-tabbar {
  display: none;
}

html[data-theme="light"] .pager-shell,
html[data-theme="light"] .quick-tools {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 48px rgba(38, 52, 78, .16);
}

html[data-theme="light"] .pager-arrow {
  color: #1a2230;
  background: rgba(24, 34, 50, .06);
}

@media (min-width: 1120px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 82px;
    background:
      linear-gradient(180deg, #080a0f 0%, #0c1018 52%, #080a0f 100%),
      radial-gradient(circle at 50% -10%, rgba(239, 51, 72, .18), transparent 34%);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 10, 15, .92);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy h1 {
    font-size: 18px;
  }

  .brand-copy p {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .top-cats {
    order: 3;
    grid-column: 1;
    gap: 7px;
    margin: 0 -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
  }

  .top-cats button {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
  }

  .top-cats button.active {
    color: #17120a;
    background: linear-gradient(135deg, #ffd36b, #ff9f43);
    border-color: transparent;
  }

  .search {
    order: 2;
    grid-column: 1;
    max-width: none;
    min-height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
  }

  .search button {
    width: 58px;
    padding: 0;
    border-radius: 999px;
    margin: 4px;
  }

  .content,
  body[data-view="detail"] .content,
  body[data-view="watch"] .content {
    width: min(100% - 18px, 760px);
    padding-top: 12px;
  }

  .dashboard {
    margin: 4px 0 12px;
  }

  .page-title h2 {
    font-size: 25px;
  }

  .sort-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .sort-tabs button {
    min-height: 34px;
    padding: 7px 6px;
    border-radius: 999px;
    font-size: 13px;
  }

  .channel-filters {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .channel-filter-head {
    display: none;
  }

  .channel-filter-list {
    flex-wrap: nowrap;
    margin: 0 -12px;
    padding: 0 12px;
    overflow-x: auto;
  }

  .channel-filter-list button {
    flex: 0 0 auto;
    border-radius: 999px;
  }

  .channel-filters {
    position: sticky;
    top: 143px;
    z-index: 11;
    margin: -4px -10px 12px;
    padding: 8px 10px 0;
    background:
      linear-gradient(180deg, rgba(8, 10, 15, .96), rgba(8, 10, 15, .82));
    backdrop-filter: blur(18px);
  }

  .channel-filter-list {
    padding-bottom: 8px;
  }

  .channel-filter-list button {
    min-height: 34px;
    padding: 7px 12px;
  }

  .feature {
    min-height: 245px;
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .feature-inner {
    min-height: 245px;
    padding: 20px;
  }

  .feature h2 {
    font-size: 32px;
  }

  .feature p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
  }

  .feature-actions {
    gap: 8px;
  }

  .feature-actions button {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 22px;
  }

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

  .poster-wrap {
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .30);
  }

  .movie-card h3 {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
    overflow: hidden;
  }

  .movie-card p {
    font-size: 11px;
  }

  .score-badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .badge {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .pager {
    display: grid;
    gap: 10px;
    margin: 28px 0 6px;
  }

  .mobile-load-more {
    display: grid;
    place-items: center;
    gap: 3px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 18px;
    color: #17120a;
    background: linear-gradient(135deg, #ffd36b, #ff9f43);
    box-shadow: 0 16px 34px rgba(255, 159, 67, .24);
    font-weight: 1000;
    cursor: pointer;
  }

  .mobile-load-more span {
    color: rgba(23, 18, 10, .68);
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-load-more:disabled {
    color: #98a3b5;
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
    cursor: default;
  }

  .pager-shell {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    border-radius: 18px;
    padding: 6px;
  }

  .pager-arrow {
    min-width: 0;
    flex: 1;
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }

  .pager-status {
    min-width: 88px;
    padding: 0 4px;
  }

  .pager-status strong {
    font-size: 20px;
  }

  .pager-status small {
    display: none;
  }

  .quick-tools {
    right: 10px;
    bottom: 92px;
    padding: 4px;
  }

  .quick-tools button {
    width: 38px;
    height: 38px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(12, 15, 21, .88);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .38);
    backdrop-filter: blur(20px);
  }

  .mobile-tabbar button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    color: #8f9aaa;
    background: transparent;
  }

  .mobile-tabbar span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-tabbar b {
    font-size: 11px;
    line-height: 1;
  }

  .mobile-tabbar button.active {
    color: #17120a;
    background: linear-gradient(135deg, #ffd36b, #ff9f43);
  }

  .site-footer {
    margin: 34px 0 88px;
    padding: 18px 8px 8px;
  }

  .footer-links {
    gap: 18px;
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 15px;
  }

  .site-footer p {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.75;
  }

  .site-footer p + p {
    font-size: 12px;
    opacity: .72;
  }

  body[data-view="watch"] {
    padding-bottom: 76px;
    background: #050609;
  }

  body[data-view="watch"] .site-header {
    display: none;
  }

  body[data-view="watch"] .content {
    width: 100%;
    padding: 0 0 16px;
  }

  body[data-view="watch"] .site-footer,
  body[data-view="watch"] .quick-tools {
    display: none;
  }

  .watch-layout,
  .watch-page.sidebar-collapsed .watch-layout {
    display: flex;
    flex-direction: column;
    min-height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #050609;
  }

  .watch-main {
    display: contents;
    background: #050609;
  }

  .watch-stage {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 18;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: #000;
  }

  .danmaku-layer,
  .danmaku-box {
    display: none !important;
  }

  .watch-bar {
    order: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px 12px;
    border-top: 0;
    background:
      linear-gradient(180deg, rgba(14, 18, 27, .98), rgba(7, 9, 14, .98));
  }

  .watch-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .watch-actions.single-mobile-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-actions .speed-control,
  #watchFullscreenPlayer {
    display: none !important;
  }

  .watch-bar.mobile-empty {
    display: none;
  }

  .watch-actions button {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .watch-actions .primary {
    box-shadow: 0 12px 26px rgba(239, 51, 72, .25);
  }

  .speed-control {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
  }

  .speed-control select {
    width: 100%;
    min-height: 34px;
    border-radius: 10px;
  }

  .watch-sidebar {
    order: 3;
    min-height: auto;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #0b0e15;
  }

  .watch-info {
    padding: 16px 14px 10px;
  }

  .watch-info h2 {
    margin: 4px 0 6px;
    font-size: 20px;
  }

  .watch-info p {
    font-size: 13px;
  }

  .watch-source-tabs {
    padding: 8px 12px 10px;
  }

  .watch-source-tabs button {
    min-height: 32px;
    padding: 5px 10px;
  }

  .watch-episode-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 0 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .watch-episode-list .episode-pager,
  .watch-episode-list .episode-ranges {
    flex: 0 0 100%;
  }

  .watch-episode-list .episode-pager {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
  }

  .watch-episode-list .episode-pager-actions {
    flex-wrap: nowrap;
  }

  .watch-episode-list .episode-pager-actions button {
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
  }

  .watch-episode-list .episode-ranges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
  }

  .watch-episode-list .episode-ranges button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
  }

  .watch-episode-list button[data-watch-episode-index] {
    flex: 0 0 78px;
    min-height: 42px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .watch-episode-list button[data-watch-episode-index] strong {
    font-size: 13px;
  }

  .watch-related {
    order: 4;
    padding: 14px 10px 0;
  }

  body[data-view="watch"] .related-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }
}

@media (max-width: 380px) {
  .grid {
    gap: 16px 8px;
  }

  .movie-card h3 {
    font-size: 11px;
  }
}

/* 2026-06-19 category polish */
.category-toggle {
  border-radius: 8px;
}

.category-toggle.active,
.category-toggle:hover {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .24), rgba(255, 211, 107, .16)),
    rgba(255, 255, 255, .06);
  border-color: rgba(255, 211, 107, .42);
}

.channel-filters {
  scroll-margin-top: 118px;
  display: block;
  margin: -4px 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.channel-filter-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.channel-filter-list::-webkit-scrollbar {
  height: 6px;
}

.channel-filter-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}

.channel-filter-list button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: #cfd7e7;
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.channel-filter-list button:hover,
.channel-filter-list button.active {
  color: #fff;
  border-color: rgba(255, 211, 107, .50);
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .32), rgba(255, 211, 107, .18)),
    rgba(255, 255, 255, .055);
}

.channel-filter-list .filter-more {
  display: none;
}

.category-panel {
  scroll-margin-top: 118px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
  margin: -4px 0 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(239, 51, 72, .10), transparent 30%),
    linear-gradient(180deg, rgba(18, 22, 31, .97), rgba(8, 10, 15, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .26);
}

.category-group {
  display: block;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
}

.category-group-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  text-align: left;
}

.category-group-head span {
  font-size: 16px;
  font-weight: 900;
}

.category-group-head small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #8792a7;
  font-size: 12px;
}

.category-group-head b {
  position: static;
  align-self: center;
  color: #8792a7;
  font-size: 14px;
}

.category-group-list {
  gap: 7px;
}

.category-group-list button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #cbd4e6;
  background: rgba(255, 255, 255, .038);
  border-color: rgba(255, 255, 255, .075);
}

.category-group-list button:hover,
.category-group-list button.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .28), rgba(255, 211, 107, .16)),
    rgba(255, 255, 255, .055);
  border-color: rgba(255, 211, 107, .42);
}

.category-group-list .count {
  color: #8d98ad;
  font-size: 11px;
}

html[data-theme="light"] .channel-filter-list button,
html[data-theme="light"] .category-group-list button {
  color: #364153;
  background: rgba(20, 28, 42, .045);
  border-color: rgba(20, 28, 42, .10);
}

html[data-theme="light"] .channel-filter-list button:hover,
html[data-theme="light"] .channel-filter-list button.active,
html[data-theme="light"] .category-group-list button:hover,
html[data-theme="light"] .category-group-list button.active {
  color: #141923;
  background:
    linear-gradient(135deg, rgba(239, 51, 72, .13), rgba(255, 211, 107, .20)),
    rgba(255, 255, 255, .86);
  border-color: rgba(202, 126, 48, .34);
}

html[data-theme="light"] .category-panel {
  background:
    radial-gradient(circle at top left, rgba(239, 51, 72, .09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(244, 247, 251, .95));
  border-color: rgba(20, 28, 42, .10);
  box-shadow: 0 16px 42px rgba(24, 34, 50, .10);
}

html[data-theme="light"] .category-group {
  background: rgba(255, 255, 255, .58);
  border-color: rgba(20, 28, 42, .08);
}

html[data-theme="light"] .category-group-head {
  border-bottom-color: rgba(20, 28, 42, .08);
}

@media (max-width: 760px) {
  .channel-filters {
    margin: -2px 0 14px;
  }

  .channel-filter-list {
    margin: 0 -9px;
    padding: 2px 9px 10px;
  }

  .category-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 220px);
    margin-bottom: 16px;
    padding: 12px;
    overflow: auto;
  }

  .category-group {
    padding: 12px;
  }
}

/* 2026-06-19 mobile app polish */
@media (max-width: 760px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .site-header {
    gap: 8px;
    padding: 8px 10px 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-mark span {
    font-size: 12px;
  }

  .brand-copy h1 {
    font-size: 16px;
  }

  .search {
    min-height: 38px;
    grid-template-columns: 36px minmax(0, 1fr) 58px;
  }

  .search-icon {
    font-size: 17px;
  }

  .search input {
    font-size: 14px;
  }

  .search button {
    width: 50px;
    min-height: 30px;
    font-size: 13px;
  }

  .top-cats {
    gap: 6px;
    padding-bottom: 0;
  }

  .top-cats button {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 14px;
  }

  .content,
  body[data-view="detail"] .content {
    width: min(100% - 20px, 760px);
    padding-top: 10px;
  }

  .dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0 0 10px;
  }

  .page-title .eyebrow {
    font-size: 10px;
  }

  .page-title h2 {
    margin-top: 2px;
    font-size: 24px;
  }

  .sort-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .sort-tabs button {
    flex: 1 0 104px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 13px;
  }

  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin: 0 0 10px;
  }

  .section-head .eyebrow {
    font-size: 10px;
  }

  .section-head h2 {
    margin-top: 2px;
    font-size: 24px;
  }

  .section-head p {
    font-size: 13px;
  }

  .section-head .ghost {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .grid {
    gap: 16px 9px;
  }

  .poster-wrap {
    border-radius: 10px;
  }

  .badge {
    max-width: calc(100% - 16px);
    white-space: nowrap;
  }

  .quick-tools {
    top: 10px;
    right: 10px;
    bottom: auto;
    padding: 4px;
    border-radius: 999px;
    background: rgba(12, 15, 21, .68);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
    opacity: .94;
  }

  .quick-tools button {
    width: 35px;
    height: 32px;
    font-size: 13px;
    font-weight: 950;
  }

  .overlay {
    padding: 10px;
  }

  .history-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 16px 12px 12px;
    border-radius: 22px;
  }

  .history-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0 44px 14px 0;
  }

  .history-head h2 {
    font-size: 28px;
  }

  .history-head p {
    font-size: 13px;
  }

  .history-head .secondary {
    width: max-content;
    min-height: 34px;
    border-radius: 999px;
    font-size: 13px;
  }

  .history-body {
    gap: 9px;
  }

  .history-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 11px;
    min-height: 100px;
    padding: 9px;
    border-radius: 18px;
  }

  .history-poster {
    width: 64px;
    border-radius: 12px;
  }

  .history-poster span {
    left: 7px;
    right: 7px;
    bottom: 7px;
    min-height: 22px;
    font-size: 11px;
  }

  .history-topline {
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
  }

  .history-copy h3 {
    font-size: 15px;
  }

  .history-copy p,
  .history-copy small {
    font-size: 12px;
  }

  .history-actions {
    grid-column: 2;
    justify-content: space-between;
    margin-top: 2px;
  }

  .history-actions .primary {
    flex: 1;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
  }

  .history-actions .history-remove {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  .mobile-tabbar {
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding: 7px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(19, 23, 32, .94), rgba(9, 12, 18, .94));
    box-shadow:
      0 18px 56px rgba(0, 0, 0, .46),
      inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .mobile-tabbar button {
    min-height: 48px;
    border-radius: 20px;
  }

  .mobile-tabbar span {
    display: none;
  }

  .mobile-tabbar b {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mobile-tabbar button.active {
    box-shadow:
      0 12px 26px rgba(255, 159, 67, .28),
      inset 0 1px 0 rgba(255, 255, 255, .28);
  }

  body[data-view="detail"] .site-header {
    position: sticky;
  }

  .movie-hero-page {
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-height: 0;
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .movie-hero-page::after {
    background:
      linear-gradient(90deg, rgba(10, 12, 17, .96), rgba(10, 12, 17, .88)),
      linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .30));
  }

  .movie-poster-block {
    grid-row: span 2;
    border-radius: 12px;
  }

  .movie-poster-block .detail-poster {
    width: 118px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
  }

  .movie-detail-copy {
    align-self: start;
    min-width: 0;
  }

  .movie-detail-copy .eyebrow {
    display: none;
  }

  .movie-detail-copy h1 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.08;
  }

  .movie-detail-copy .meta-row {
    gap: 5px;
    max-height: 73px;
    overflow: hidden;
  }

  .movie-detail-copy .chip {
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
  }

  .movie-detail-copy .storyline {
    display: -webkit-box;
    margin: 8px 0 0;
    color: #b8c3d4;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .movie-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
  }

  .play-hero-button {
    min-height: 44px;
    justify-content: center;
    border-radius: 14px;
    white-space: nowrap;
    font-size: 15px;
  }

  .play-hero-button span {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
  }

  .movie-actions .secondary {
    min-width: 72px;
    min-height: 44px;
    border-radius: 14px;
    font-size: 15px;
  }

  .movie-score-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 14px;
  }

  .movie-score-card strong {
    font-size: 24px;
  }

  .movie-score-card .star-row {
    display: none;
  }

  .movie-story-block,
  .movie-resource-block,
  .movie-related-block {
    margin-top: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .movie-story-block p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.68;
  }

  .movie-resource-block .section-head,
  .movie-related-block .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .movie-episodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .movie-episodes .episode-pager {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
    border-radius: 14px;
  }

  .movie-episodes .episode-pager span {
    font-size: 12px;
  }

  .movie-episodes .episode-pager-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-episodes .episode-ranges {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .movie-episodes .episode-ranges button {
    flex: 0 0 auto;
    min-height: 30px;
    border-radius: 999px;
    font-size: 12px;
  }

  .movie-episodes .episode {
    min-height: 38px;
    border-radius: 12px;
    font-size: 13px;
  }

  .related-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .related-card h3 {
    font-size: 12px;
  }

  body[data-view="watch"] {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body[data-view="watch"] .content {
    width: 100%;
    padding: 0 0 18px;
  }

  .watch-layout,
  .watch-page.sidebar-collapsed .watch-layout {
    display: flex;
    flex-direction: column;
  }

  .watch-main {
    display: contents;
  }

  .watch-stage {
    order: 1;
  }

  .watch-bar {
    order: 2;
  }

  .watch-sidebar {
    order: 3;
  }

  .watch-related {
    order: 4;
  }

  .watch-info {
    position: sticky;
    left: 0;
    padding: 14px 14px 9px;
    background:
      linear-gradient(180deg, rgba(10, 13, 20, .98), rgba(10, 13, 20, .92));
  }

  .watch-info h2 {
    font-size: 22px;
  }

  .watch-source-tabs {
    padding-top: 10px;
  }

  .watch-episode-list {
    padding-bottom: 16px;
  }

  .watch-episode-list .episode-pager {
    flex-basis: 92%;
  }

  .watch-episode-list .episode-ranges {
    flex-basis: 92%;
  }

  .watch-episode-list button[data-watch-episode-index] {
    flex-basis: 82px;
  }

  body[data-view="watch"] .related-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-view="rankings"] .ranking-section .section-head {
    min-height: 112px;
    padding: 20px;
    border-radius: 16px;
  }

  body[data-view="rankings"] .ranking-section .section-head h2 {
    font-size: 36px;
  }

  body[data-view="rankings"] .ranking-grid {
    gap: 12px;
  }

  .rank-card {
    padding: 12px;
    border-radius: 16px;
  }

  .rank-card h3 {
    font-size: 24px;
  }

  .rank-item {
    grid-template-columns: 28px 56px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 78px;
    padding: 9px;
    border-radius: 14px;
  }

  .rank-item img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .rank-copy strong {
    font-size: 14px;
  }

  .rank-copy small {
    font-size: 12px;
  }

  .rank-heat strong {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .movie-detail-copy h1 {
    font-size: 24px;
  }

  .movie-poster-block .detail-poster {
    width: 112px;
  }

  .movie-hero-page {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .movie-episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-19 mobile browse refinement */
@media (max-width: 760px) {
  .pager {
    margin: 24px 0 4px;
  }

  .mobile-load-more,
  .pager-shell {
    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
  }

  .mobile-load-more {
    min-height: 54px;
    border-radius: 999px;
  }

  .pager-shell {
    border-radius: 24px;
  }

  .pager-arrow {
    border-radius: 18px;
    font-weight: 950;
  }

  .pager-status {
    min-width: 70px;
  }

  .pager-status span {
    font-size: 14px;
  }
}
