:root {
  --keke-accent: #f0b429;
  --keke-accent-strong: #d08a00;
  --keke-ink: #18251f;
  --keke-muted: #687d75;
  --keke-bg: #f6faf8;
  --keke-panel: #ffffff;
  --keke-line: #e0ebe5;
  --keke-soft: #eef7f2;
  --keke-dark: #121a18;
  --keke-radius: 8px;
}

html[data-portal-theme="dark"] {
  --keke-ink: #eef8f2;
  --keke-muted: #a7bab2;
  --keke-bg: #0f1715;
  --keke-panel: #151f1c;
  --keke-line: #26372f;
  --keke-soft: #1c2a25;
}

body.tpl-keke {
  margin: 0;
  min-width: 0;
  background: var(--keke-bg);
  color: var(--keke-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.tpl-keke a {
  color: inherit;
}

.keke-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--keke-panel) 94%, transparent);
  border-bottom: 1px solid var(--keke-line);
  backdrop-filter: blur(12px);
}

.keke-brand {
  width: 210px;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.keke-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
}

.keke-brand strong,
.keke-brand small {
  display: block;
  line-height: 1.15;
}

.keke-brand strong {
  font-size: 20px;
  font-weight: 800;
}

.keke-brand small {
  margin-top: 3px;
  color: var(--keke-muted);
  font-size: 12px;
}

.keke-search {
  flex: 1;
  max-width: 620px;
  display: flex;
  min-width: 180px;
}

.keke-search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 16px;
  background: var(--keke-soft);
  color: var(--keke-ink);
  font-size: 15px;
}

.keke-search button,
.keke-pill {
  height: 44px;
  border: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 18px;
  background: var(--keke-accent);
  color: #211907;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.keke-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.keke-pill {
  border-radius: 22px;
  background: #dff6e8;
  color: #15452d;
}

html[data-portal-theme="dark"] .keke-pill {
  background: #213a2d;
  color: #dff6e8;
}

.keke-pill em {
  font-style: normal;
}

body.tpl-keke .keke-actions .language-switcher {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

body.tpl-keke .keke-actions .language-switcher-trigger,
body.tpl-keke .keke-actions .language-switcher-option {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #dff6e8;
  color: #15452d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

html[data-portal-theme="dark"] body.tpl-keke .keke-actions .language-switcher-trigger,
html[data-portal-theme="dark"] body.tpl-keke .keke-actions .language-switcher-option {
  background: #213a2d;
  color: #dff6e8;
}

body.tpl-keke .keke-actions .language-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 70;
  display: none;
  min-width: 112px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--keke-line);
  background: var(--keke-panel);
  box-shadow: 0 12px 30px rgb(0 0 0 / .16);
}

body.tpl-keke .keke-actions .language-switcher.is-open .language-switcher-menu {
  display: grid;
  gap: 5px;
}

body.tpl-keke .keke-actions .language-switcher-option {
  width: 100%;
  justify-content: flex-start;
  border-radius: 9px;
  background: transparent;
  color: var(--keke-muted);
}

body.tpl-keke .keke-actions .language-switcher-option.active,
body.tpl-keke .keke-actions .language-switcher-option:hover {
  background: var(--keke-accent);
  color: #211907;
}

.keke-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--keke-soft);
  color: var(--keke-ink);
  place-items: center;
}

.keke-menu span {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  margin: 3px auto;
}

.keke-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: var(--keke-panel);
  border-right: 1px solid var(--keke-line);
}

.keke-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--keke-muted);
  text-decoration: none;
  font-weight: 700;
}

.keke-sidebar a.current,
.keke-sidebar a:hover {
  background: var(--keke-accent);
  color: #211907;
}

.keke-main {
  margin-left: 210px;
  padding: 28px;
  max-width: 1640px;
}

.keke-main.narrow {
  max-width: 1280px;
}

.keke-breadcrumb {
  margin-bottom: 18px;
  color: var(--keke-muted);
  font-size: 14px;
}

.keke-breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keke-breadcrumb li + li::before {
  content: "›";
  margin-right: 9px;
  color: color-mix(in srgb, var(--keke-muted) 60%, transparent);
}

.keke-hero {
  min-height: 360px;
  border-radius: var(--keke-radius);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 44px;
  background: linear-gradient(120deg, #1e3c39 0%, #36584a 48%, #d19a38 100%);
  color: #fff;
}

.keke-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(0 0 0 / .05));
  pointer-events: none;
}

.keke-hero > * {
  position: relative;
  z-index: 1;
}

.keke-eyebrow {
  margin: 0 0 10px;
  color: var(--keke-accent);
  font-weight: 800;
}

.keke-hero h1,
.keke-page-title h1,
.keke-detail-title,
.keke-player-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

.keke-hero p {
  max-width: 680px;
  color: rgb(255 255 255 / .82);
  font-size: 17px;
  line-height: 1.75;
}

.keke-hero-card {
  align-self: end;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--keke-radius);
  background: rgb(8 20 18 / .62);
  border: 1px solid rgb(255 255 255 / .16);
}

.keke-hero-card img,
.keke-poster img,
.keke-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.keke-hero-card img {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
}

.keke-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keke-btn,
.keke-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 22px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.keke-btn {
  background: var(--keke-accent);
  color: #211907;
}

.keke-btn-secondary {
  background: color-mix(in srgb, var(--keke-panel) 82%, transparent);
  border-color: var(--keke-line);
  color: var(--keke-ink);
}

.keke-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.keke-section,
.keke-panel {
  margin-top: 28px;
}

.keke-section-head,
.keke-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.keke-section-head h2,
.keke-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.keke-section-head a {
  color: var(--keke-muted);
  text-decoration: none;
  font-weight: 700;
}

.keke-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.keke-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.keke-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--keke-radius);
  aspect-ratio: 2 / 3;
  background: var(--keke-soft);
  text-decoration: none;
}

.keke-poster .badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  border-radius: 6px;
  padding: 4px 7px;
  background: #35b66f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.keke-poster .status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 8px;
  background: linear-gradient(180deg, transparent, rgb(0 0 0 / .72));
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.keke-card h3,
.keke-card h2 {
  margin: 9px 0 4px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.keke-card h3 a,
.keke-card h2 a {
  text-decoration: none;
}

.keke-card p {
  margin: 0;
  color: var(--keke-muted);
  font-size: 13px;
  line-height: 1.45;
}

.keke-rank {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

.keke-rank ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.keke-rank li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.keke-rank i {
  font-style: normal;
  color: var(--keke-accent-strong);
  font-weight: 900;
}

.keke-rank a {
  display: block;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.keke-rank small {
  display: block;
  margin-top: 4px;
  color: var(--keke-muted);
}

.keke-filter {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: var(--keke-radius);
  border: 1px solid var(--keke-line);
  background: var(--keke-panel);
}

.keke-filter-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.keke-filter-line strong {
  line-height: 34px;
  color: var(--keke-muted);
}

.keke-filter-line div,
.keke-sortline,
.keke-chip-row,
.keke-lines,
.keke-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keke-filter a,
.keke-sortline a,
.keke-chip,
.keke-lines a,
.keke-episodes a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--keke-soft);
  color: var(--keke-ink);
  text-decoration: none;
  white-space: nowrap;
}

.keke-filter a.active,
.keke-sortline a.active,
.keke-lines a.current,
.keke-episodes a.active {
  background: var(--keke-accent);
  color: #211907;
  font-weight: 800;
}

.keke-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.keke-meta span,
.keke-meta a,
.keke-inline-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--keke-soft);
  color: var(--keke-muted);
  text-decoration: none;
  font-weight: 700;
}

.keke-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.keke-list {
  display: grid;
  gap: 14px;
}

.keke-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

.keke-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--keke-soft);
}

.keke-article {
  padding: 24px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

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

.keke-form-card {
  padding: 18px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

.keke-form-card label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--keke-muted);
}

.keke-form-card input,
.keke-form-card textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  border: 1px solid var(--keke-line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--keke-soft);
  color: var(--keke-ink);
}

.keke-form-card textarea {
  min-height: 90px;
  padding-top: 10px;
}

.keke-player-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.keke-player-tools button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgb(255 255 255 / .18);
}

.keke-detail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border-radius: var(--keke-radius);
  background: linear-gradient(120deg, var(--keke-soft), var(--keke-panel));
  border: 1px solid var(--keke-line);
}

.keke-detail .keke-poster {
  align-self: start;
}

.keke-summary {
  color: var(--keke-muted);
  font-size: 16px;
  line-height: 1.8;
}

.keke-info-card {
  padding: 20px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

.keke-info-card + .keke-info-card {
  margin-top: 18px;
}

.keke-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 360px;
  gap: 20px;
}

.keke-video {
  min-height: 520px;
  border-radius: var(--keke-radius);
  overflow: hidden;
  background: #0a0a0a;
  display: grid;
  place-items: center;
}

.keke-video video,
.keke-video iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.keke-play-side {
  padding: 22px;
  border-radius: var(--keke-radius);
  background: #202220;
  color: #fff;
}

.keke-search-empty,
.keke-empty,
.keke-error {
  padding: 36px;
  border: 1px dashed var(--keke-line);
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  text-align: center;
}

.keke-profile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: var(--keke-radius);
  border: 1px solid var(--keke-line);
  background: var(--keke-panel);
}

.keke-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--keke-accent);
  color: #211907;
  font-size: 30px;
  font-weight: 900;
}

.keke-comment-list,
.keke-link-grid,
.keke-actor-grid {
  display: grid;
  gap: 12px;
}

.keke-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.keke-link-grid a,
.keke-comment-list article,
.keke-actor-grid a {
  padding: 14px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
  text-decoration: none;
}

.keke-link-grid strong,
.keke-actor-grid strong {
  display: block;
  margin-bottom: 5px;
}

.keke-link-grid span,
.keke-actor-grid span {
  color: var(--keke-muted);
  font-size: 13px;
}

body.tpl-keke .keke-news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: end;
  padding: 28px;
  margin-bottom: 22px;
  border-radius: var(--keke-radius);
  border: 1px solid var(--keke-line);
  background:
    radial-gradient(circle at 18% 0%, rgb(240 180 41 / .18), transparent 34%),
    linear-gradient(135deg, var(--keke-panel), var(--keke-soft));
}

body.tpl-keke .keke-news-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

body.tpl-keke .keke-news-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--keke-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.tpl-keke .keke-news-hero aside {
  padding: 18px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

body.tpl-keke .keke-news-hero aside strong,
body.tpl-keke .keke-news-hero aside span {
  display: block;
}

body.tpl-keke .keke-news-hero aside strong {
  font-size: 18px;
}

body.tpl-keke .keke-news-hero aside span {
  margin-top: 6px;
  color: var(--keke-muted);
  font-size: 13px;
}

body.tpl-keke .keke-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

body.tpl-keke .keke-news-feed {
  display: grid;
  gap: 0;
  min-width: 0;
}

body.tpl-keke .keke-news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--keke-line);
}

body.tpl-keke .keke-news-item.no-media {
  grid-template-columns: minmax(0, 1fr);
}

body.tpl-keke .keke-news-date {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px;
}

body.tpl-keke .keke-news-date h2 {
  margin: 0;
  font-size: 18px;
}

body.tpl-keke .keke-news-date a,
body.tpl-keke .keke-news-more {
  color: var(--keke-accent-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.tpl-keke .keke-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
  color: var(--keke-muted);
  font-size: 13px;
}

body.tpl-keke .keke-news-meta span:first-child {
  color: var(--keke-accent-strong);
  font-weight: 800;
}

body.tpl-keke .keke-news-copy h2,
body.tpl-keke .keke-news-copy h2 a {
  margin: 0;
  text-decoration: none;
  font-size: 24px;
  line-height: 1.28;
}

body.tpl-keke .keke-news-summary,
body.tpl-keke .keke-news-dek {
  margin: 12px 0;
  color: var(--keke-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.tpl-keke .keke-news-media {
  align-self: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--keke-radius);
  overflow: hidden;
  background: var(--keke-soft);
}

body.tpl-keke .keke-news-media img,
body.tpl-keke .keke-news-lead img,
body.tpl-keke .keke-news-related-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.tpl-keke .keke-news-side {
  position: sticky;
  top: 92px;
}

body.tpl-keke .keke-news-rank {
  margin: 0;
  padding-left: 20px;
}

body.tpl-keke .keke-news-rank li + li {
  margin-top: 12px;
}

body.tpl-keke .keke-news-rank a {
  display: block;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.45;
}

body.tpl-keke .keke-news-rank time {
  display: block;
  margin-top: 3px;
  color: var(--keke-muted);
  font-size: 12px;
}

body.tpl-keke .keke-news-pager,
body.tpl-keke .keke-news-load {
  margin-top: 22px;
}

body.tpl-keke .keke-news-load {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--keke-radius);
  border: 1px solid var(--keke-line);
  background: var(--keke-panel);
  color: var(--keke-muted);
}

body.tpl-keke .keke-news-load button,
body.tpl-keke .keke-news-actions button,
body.tpl-keke .keke-news-actions a {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--keke-accent);
  color: #211907;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.tpl-keke .keke-news-load button:disabled {
  opacity: .65;
}

body.tpl-keke .keke-news-load p {
  margin: 0;
}

body.tpl-keke .keke-news-article {
  padding: 30px;
  border-radius: var(--keke-radius);
  background: var(--keke-panel);
  border: 1px solid var(--keke-line);
}

body.tpl-keke .keke-news-article-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
}

body.tpl-keke .keke-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.tpl-keke .keke-news-actions a {
  background: var(--keke-soft);
  color: var(--keke-ink);
}

body.tpl-keke .keke-news-lead {
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--keke-radius);
  overflow: hidden;
  background: var(--keke-soft);
}

body.tpl-keke .keke-news-body p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.9;
}

body.tpl-keke .keke-news-note {
  margin-top: 24px;
}

body.tpl-keke .keke-news-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.tpl-keke .keke-news-related-grid article a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border-radius: var(--keke-radius);
  border: 1px solid var(--keke-line);
  background: var(--keke-panel);
  text-decoration: none;
}

body.tpl-keke .keke-news-related-grid img {
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--keke-radius) - 2px);
  background: var(--keke-soft);
}

body.tpl-keke .keke-news-related-grid small {
  color: var(--keke-muted);
  line-height: 1.4;
}

body.tpl-keke .news-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 12px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #101816;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

body.tpl-keke .news-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.keke-dock {
  display: none;
}

@media (max-width: 1180px) {
  .keke-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .keke-layout,
  .keke-video-layout,
  body.tpl-keke .keke-news-layout {
    grid-template-columns: 1fr;
  }
  .keke-rank,
  body.tpl-keke .keke-news-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .keke-topbar {
    height: 60px;
    gap: 10px;
    padding: 0 14px;
  }
  .keke-menu {
    display: grid;
    flex: 0 0 40px;
  }
  .keke-brand {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
  }
  .keke-brand-logo {
    width: 36px;
    height: 36px;
  }
  .keke-brand strong {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }
  .keke-brand small,
  .keke-search button,
  .keke-actions a {
    display: none;
  }
  .keke-search {
    max-width: none;
    min-width: 72px;
    flex: 1;
  }
  .keke-search input {
    height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
  }
  .keke-pill {
    width: 42px;
    min-width: 42px;
    height: 38px;
    padding: 0;
  }
  body.front.portal.tpl-keke .keke-actions .theme-toggle[data-theme-toggle] {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    gap: 0 !important;
    padding: 0 !important;
  }
  body.front.portal.tpl-keke .keke-actions .theme-toggle[data-theme-toggle] .theme-label {
    display: none !important;
  }
  body.tpl-keke .keke-actions .language-switcher-trigger,
  body.tpl-keke .keke-actions .language-switcher-option {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .keke-pill em {
    display: none;
  }
  .keke-search {
    min-width: 0;
  }
  .keke-search input {
    min-width: 0;
  }
  @media (max-width: 600px) {
    .keke-search {
      display: none;
    }
  }
  .keke-sidebar {
    top: 60px;
    width: min(82vw, 300px);
    transform: translateX(-105%);
    transition: transform .18s ease;
    box-shadow: 14px 0 30px rgb(0 0 0 / .2);
  }
  .keke-sidebar.nav-open {
    transform: translateX(0);
  }
  .keke-main {
    margin-left: 0;
    padding: 16px 14px calc(92px + env(safe-area-inset-bottom));
  }
  .keke-hero {
    min-height: 300px;
    display: block;
    padding: 28px 20px;
  }
  .keke-hero h1,
  .keke-page-title h1,
  .keke-detail-title,
  .keke-player-title {
    font-size: 28px;
    line-height: 1.25;
  }
  .keke-hero-card {
    grid-template-columns: 86px minmax(0, 1fr);
    margin-top: 22px;
  }
  .keke-section-head,
  .keke-page-title {
    align-items: start;
    display: block;
  }
  .keke-grid,
  .keke-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .keke-filter {
    padding: 12px;
  }
  .keke-filter-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .keke-filter-line div,
  .keke-sortline {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .keke-filter-line div::-webkit-scrollbar,
  .keke-sortline::-webkit-scrollbar {
    display: none;
  }
  .keke-detail {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  body.tpl-keke .keke-news-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 16px;
  }
  body.tpl-keke .keke-news-hero h1,
  body.tpl-keke .keke-news-article-head h1 {
    font-size: 28px;
    line-height: 1.25;
  }
  body.tpl-keke .keke-news-item {
    grid-template-columns: minmax(0, 1fr) 106px;
    gap: 12px;
    padding: 16px 0;
  }
  body.tpl-keke .keke-news-item.no-media {
    grid-template-columns: 1fr;
  }
  body.tpl-keke .keke-news-copy h2,
  body.tpl-keke .keke-news-copy h2 a {
    font-size: 18px;
    line-height: 1.35;
  }
  body.tpl-keke .keke-news-summary,
  body.tpl-keke .keke-news-dek {
    font-size: 14px;
    line-height: 1.7;
  }
  body.tpl-keke .keke-news-media {
    align-self: start;
  }
  body.tpl-keke .keke-news-article {
    padding: 18px 14px;
  }
  body.tpl-keke .keke-news-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.tpl-keke .keke-news-actions::-webkit-scrollbar {
    display: none;
  }
  body.tpl-keke .keke-news-body p {
    font-size: 17px;
    line-height: 1.75;
  }
  body.tpl-keke .keke-news-related-grid {
    grid-template-columns: 1fr;
  }
  .keke-summary {
    font-size: 14px;
    line-height: 1.65;
  }
  .keke-video,
  .keke-video video,
  .keke-video iframe {
    min-height: 220px;
  }
  .keke-play-side {
    padding: 16px;
  }
  .keke-link-grid {
    grid-template-columns: 1fr;
  }
  .keke-list article {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 10px;
  }
  .keke-form-grid {
    grid-template-columns: 1fr;
  }
  .keke-profile {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 16px;
  }
  .keke-avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
  .keke-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--keke-panel) 96%, transparent);
    border: 1px solid var(--keke-line);
    box-shadow: 0 10px 28px rgb(0 0 0 / .18);
    overflow-x: auto;
    white-space: nowrap;
  }
  .keke-dock a {
    flex: 1 0 66px;
    min-width: 66px;
    display: grid;
    gap: 2px;
    justify-items: center;
    border-radius: 10px;
    padding: 7px 5px;
    color: var(--keke-muted);
    text-decoration: none;
    font-size: 12px;
  }
  .keke-dock a.current {
    background: #dff6e8;
    color: #15452d;
  }
  html[data-portal-theme="dark"] .keke-dock a.current {
    background: #213a2d;
    color: #dff6e8;
  }
}

/* Template-family visual and interaction sync R1 (2026-08-28).
   These rules carry reusable OLETV fixes into the shared Keke template while
   retaining each site's own logo, copy, metadata and existing accent token. */
body.front.portal.tpl-keke.keke-template {
  --keke-pill-text: var(--keke-accent-strong);
  --keke-pill-muted: color-mix(in srgb, var(--keke-accent-strong) 82%, var(--keke-ink));
  --keke-pill-line: color-mix(in srgb, var(--keke-accent) 56%, var(--keke-line));
  --keke-pill-line-strong: color-mix(in srgb, var(--keke-accent) 76%, var(--keke-accent-strong));
  --keke-pill-soft: color-mix(in srgb, var(--keke-accent) 9%, transparent);
  --keke-pill-ring: color-mix(in srgb, var(--keke-accent) 25%, transparent);
}

html[data-portal-theme="dark"] body.front.tpl-keke.keke-template,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.front.tpl-keke.keke-template,
html:not([data-portal-theme]) body.front.tpl-keke.keke-template.theme-dark {
  --keke-pill-text: color-mix(in srgb, var(--keke-accent) 68%, white);
  --keke-pill-muted: color-mix(in srgb, var(--keke-accent) 46%, white);
  --keke-pill-line: color-mix(in srgb, var(--keke-accent) 52%, var(--keke-line));
  --keke-pill-line-strong: color-mix(in srgb, var(--keke-accent) 68%, white);
  --keke-pill-soft: color-mix(in srgb, var(--keke-accent) 10%, transparent);
  --keke-pill-ring: color-mix(in srgb, var(--keke-accent) 26%, transparent);
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta span,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary,
  .keke-player-tools button,
  .keke-news-load button,
  .keke-news-actions button
) {
  border: 1px solid var(--keke-pill-line) !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--keke-pill-muted) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta span,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary,
  .keke-player-tools button,
  .keke-news-load button,
  .keke-news-actions button
):is(:hover, :focus-visible) {
  border-color: var(--keke-pill-line-strong) !important;
  background-color: var(--keke-pill-soft) !important;
  color: var(--keke-pill-text) !important;
  outline: 2px solid var(--keke-pill-ring);
  outline-offset: 2px;
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-filter a.active,
  .keke-filter a.current,
  .keke-filter a[aria-current="page"],
  .keke-sortline a.active,
  .keke-sortline a.current,
  .keke-sortline a[aria-current="page"],
  .keke-lines a.current,
  .keke-episodes a.active,
  .keke-btn
) {
  border-color: var(--keke-pill-line-strong) !important;
  background-color: var(--keke-pill-soft) !important;
  color: var(--keke-pill-text) !important;
  font-weight: 800 !important;
  box-shadow: 0 0 0 1px var(--keke-pill-ring) !important;
}

body.front.portal.tpl-keke.keke-template .keke-actions :is(.keke-pill, .language-switcher-trigger) {
  border-color: var(--keke-pill-line-strong) !important;
  color: var(--keke-pill-text) !important;
}

body.front.portal.tpl-keke.keke-template .keke-dock a.current {
  background: transparent !important;
  color: var(--keke-pill-text) !important;
}

/* Keep search surfaces continuous with the dark header on every Keke route. */
html[data-portal-theme="dark"] body.front.tpl-keke.keke-template .keke-search input,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.front.tpl-keke.keke-template .keke-search input,
html:not([data-portal-theme]) body.front.tpl-keke.keke-template.theme-dark .keke-search input {
  border: 1px solid color-mix(in srgb, var(--keke-accent) 24%, var(--keke-line)) !important;
  border-right: 0 !important;
  background: color-mix(in srgb, var(--keke-panel) 90%, black) !important;
  color: var(--keke-ink) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .035) !important;
}

html[data-portal-theme="dark"] body.front.tpl-keke.keke-template .keke-search input::placeholder,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.front.tpl-keke.keke-template .keke-search input::placeholder,
html:not([data-portal-theme]) body.front.tpl-keke.keke-template.theme-dark .keke-search input::placeholder {
  color: var(--keke-muted) !important;
  opacity: 1 !important;
}

/* Stable multi-tone ranking cards: varied, readable and deterministic. */
body.tpl-keke.category-page #keke-category-rank .keke-info-card {
  --keke-rank-hue: 38;
  --keke-rank-accent: hsl(var(--keke-rank-hue) 54% 38%);
  --keke-rank-text: hsl(var(--keke-rank-hue) 22% 20%);
  --keke-rank-row: rgb(255 255 255 / .68);
  position: relative;
  overflow: hidden;
  border-color: hsl(var(--keke-rank-hue) 34% 80%);
  border-top: 3px solid var(--keke-rank-accent);
  background: linear-gradient(145deg, hsl(var(--keke-rank-hue) 48% 97%), hsl(var(--keke-rank-hue) 35% 91%));
  box-shadow: 0 10px 24px hsl(var(--keke-rank-hue) 28% 26% / .10);
  color: var(--keke-rank-text);
}

body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 1) { --keke-rank-hue: 38; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 2) { --keke-rank-hue: 338; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 3) { --keke-rank-hue: 20; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 4) { --keke-rank-hue: 258; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 5) { --keke-rank-hue: 190; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 6) { --keke-rank-hue: 282; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 7) { --keke-rank-hue: 140; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 8) { --keke-rank-hue: 2; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 9) { --keke-rank-hue: 224; }
body.tpl-keke.category-page #keke-category-rank .keke-info-card:nth-child(10n + 10) { --keke-rank-hue: 168; }

body.tpl-keke.category-page #keke-category-rank .keke-info-card :is(h3, span) {
  color: var(--keke-rank-accent);
}

body.tpl-keke.category-page #keke-category-rank .keke-info-card li {
  background: var(--keke-rank-row);
  color: var(--keke-rank-text);
}

body.tpl-keke.category-page #keke-category-rank .keke-info-card a {
  color: var(--keke-rank-text);
}

html[data-portal-theme="dark"] body.tpl-keke.category-page #keke-category-rank .keke-info-card,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.tpl-keke.category-page #keke-category-rank .keke-info-card,
html:not([data-portal-theme]) body.tpl-keke.category-page.theme-dark #keke-category-rank .keke-info-card {
  --keke-rank-accent: hsl(var(--keke-rank-hue) 58% 70%);
  --keke-rank-text: hsl(var(--keke-rank-hue) 18% 90%);
  --keke-rank-row: rgb(255 255 255 / .065);
  border-color: hsl(var(--keke-rank-hue) 30% 31%);
  border-top-color: var(--keke-rank-accent);
  background: linear-gradient(145deg, hsl(var(--keke-rank-hue) 24% 18%), hsl(var(--keke-rank-hue) 18% 10%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .045), 0 12px 26px rgb(0 0 0 / .20);
}

/* Detail gradient and a local, accessible plot expander. */
body.tpl-keke.detail-page .keke-detail {
  grid-template-columns: clamp(180px, 18vw, 220px) minmax(0, 1fr);
  background:
    radial-gradient(circle at 9% 10%, color-mix(in srgb, var(--keke-accent) 18%, transparent), transparent 34%),
    radial-gradient(circle at 92% 100%, rgb(76 145 224 / .10), transparent 40%),
    linear-gradient(135deg, var(--keke-panel), var(--keke-soft));
}

body.tpl-keke.detail-page .keke-detail > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.tpl-keke.detail-page .keke-detail-title {
  font-size: clamp(28px, 3vw, 40px);
  overflow-wrap: anywhere;
}

body.tpl-keke.detail-page .keke-detail .keke-toolbar {
  margin-top: auto;
  padding-top: 16px;
}

body.tpl-keke.detail-page .keke-article[aria-labelledby="keke-summary-title"] .keke-summary {
  display: none;
}

body.tpl-keke.detail-page .keke-article[aria-labelledby="keke-summary-title"] .keke-summary:first-of-type {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.tpl-keke.detail-page .keke-article[aria-labelledby="keke-summary-title"][data-expanded] .keke-summary {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* Compact desktop player; the loading stage cannot remain in normal flow. */
body.tpl-keke.player-page .keke-video {
  position: relative;
  height: clamp(360px, 42vw, 540px);
  min-height: 0;
}

body.tpl-keke.player-page .keke-video :is(video, iframe) {
  height: 100%;
  min-height: 0;
}

body.tpl-keke.player-page .keke-video > .player-loading-stage {
  position: absolute !important;
  inset: 0 !important;
  z-index: 7 !important;
  box-sizing: border-box !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 24px !important;
  overflow: hidden !important;
  background: rgba(5, 7, 11, .96) !important;
  pointer-events: none !important;
}

body.tpl-keke.player-page .keke-video > .player-loading-stage.is-hidden {
  display: none !important;
}

body.tpl-keke .keke-card :is(h2, h3) {
  text-align: center;
}

@media (max-width: 900px) {
  body.tpl-keke.detail-page .keke-detail {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  body.tpl-keke.detail-page .keke-detail-title {
    font-size: clamp(21px, 6.6vw, 28px);
  }

  body.tpl-keke.detail-page .keke-detail .keke-toolbar {
    margin-top: 8px;
    padding-top: 0;
  }

  body.tpl-keke.detail-page .keke-article[aria-labelledby="keke-summary-title"] .keke-summary:first-of-type {
    -webkit-line-clamp: 3;
  }

  body.tpl-keke.player-page .keke-video {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body.tpl-keke.player-page .keke-video > .player-loading-stage {
    padding: 16px !important;
  }
}

/* OLETV-family visual sync R2 (2026-08-29).
   Shared Keke sites keep their own amber/jade brand tokens.  This layer only
   carries the accepted layout, capsule, ranking, hero and ad geometry. */
body.front.portal.tpl-keke.keke-template {
  --keke-ui-accent: var(--accent, var(--keke-accent));
  --keke-ui-accent-2: var(--accent-2, #46b0d9);
  --keke-ui-text: color-mix(in srgb, var(--keke-ui-accent) 76%, var(--keke-ink));
  --keke-ui-muted: color-mix(in srgb, var(--keke-ui-accent) 42%, var(--keke-muted));
  --keke-ui-line: color-mix(in srgb, var(--keke-ui-accent) 34%, var(--keke-line));
  --keke-ui-line-strong: color-mix(in srgb, var(--keke-ui-accent) 70%, var(--keke-line));
  --keke-ui-soft: color-mix(in srgb, var(--keke-ui-accent) 7%, transparent);
  --keke-ui-soft-active: color-mix(in srgb, var(--keke-ui-accent) 13%, transparent);
  --keke-ui-focus: color-mix(in srgb, var(--keke-ui-accent) 30%, transparent);
  --keke-family-page: var(--keke-bg);
  --keke-family-hero-a: color-mix(in srgb, var(--keke-ui-accent) 7%, var(--keke-bg));
  --keke-family-hero-b: color-mix(in srgb, var(--keke-ui-accent) 17%, var(--keke-bg));
  --keke-family-hero-c: color-mix(in srgb, var(--keke-ui-accent-2) 9%, var(--keke-bg));
}

html[data-portal-theme="dark"] body.front.portal.tpl-keke.keke-template,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.front.portal.tpl-keke.keke-template,
html:not([data-portal-theme]) body.front.portal.tpl-keke.keke-template.theme-dark {
  --keke-ui-text: color-mix(in srgb, var(--keke-ui-accent) 64%, white);
  --keke-ui-muted: color-mix(in srgb, var(--keke-ui-accent) 30%, var(--keke-ink));
  --keke-ui-line: color-mix(in srgb, var(--keke-ui-accent) 30%, var(--keke-line));
  --keke-ui-line-strong: color-mix(in srgb, var(--keke-ui-accent) 60%, white);
  --keke-ui-soft: color-mix(in srgb, var(--keke-ui-accent) 6%, transparent);
  --keke-ui-soft-active: color-mix(in srgb, var(--keke-ui-accent) 12%, transparent);
  --keke-ui-focus: color-mix(in srgb, var(--keke-ui-accent) 28%, transparent);
}

/* One capsule = one boundary.  Wrapper rings and hover outlines stay gone. */
body.front.portal.tpl-keke.keke-template :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-chip-row a,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta span,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary,
  .keke-player-tools button,
  .keke-news-load button,
  .keke-news-actions button,
  .keke-news-actions a,
  .pager a,
  .pager span,
  .keke-actor-work-pager > a,
  .keke-actor-work-pager > span,
  .keke-actor-work-pager > strong
) {
  box-sizing: border-box !important;
  border: 1px solid var(--keke-ui-line) !important;
  border-radius: 999px !important;
  background-color: var(--keke-ui-soft) !important;
  background-image: none !important;
  color: var(--keke-ui-muted) !important;
  box-shadow: none !important;
  outline: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease !important;
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-chip-row a,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary,
  .keke-player-tools button,
  .keke-news-load button,
  .keke-news-actions button,
  .keke-news-actions a,
  .pager a,
  .keke-actor-work-pager > a
):hover {
  border-color: var(--keke-ui-line-strong) !important;
  background-color: var(--keke-ui-soft-active) !important;
  color: var(--keke-ui-text) !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-chip-row a,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary,
  .keke-player-tools button,
  .keke-news-load button,
  .keke-news-actions button,
  .keke-news-actions a,
  .pager a,
  .keke-actor-work-pager > a
):focus-visible {
  border-color: var(--keke-ui-line-strong) !important;
  outline: 2px solid var(--keke-ui-focus) !important;
  outline-offset: 2px !important;
}

body.front.portal.tpl-keke.keke-template :is(
  .keke-filter a.active,
  .keke-filter a.current,
  .keke-filter a[aria-current="page"],
  .keke-sortline a.active,
  .keke-sortline a.current,
  .keke-sortline a[aria-current="page"],
  .keke-chip-row a.active,
  .keke-lines a.current,
  .keke-episodes a.active,
  .keke-btn,
  .pager span,
  .keke-actor-work-pager > strong
) {
  border-color: var(--keke-ui-line-strong) !important;
  background-color: transparent !important;
  background-image: linear-gradient(135deg, var(--keke-ui-soft-active), color-mix(in srgb, var(--keke-ui-accent-2) 8%, transparent)) !important;
  color: var(--keke-ui-text) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Compact, centred header actions without clipping a longer account label. */
@media (min-width: 901px) {
  body.front.portal.tpl-keke.keke-template .keke-actions {
    gap: 7px !important;
    align-items: center !important;
  }

  body.front.portal.tpl-keke.keke-template .keke-actions > .keke-pill,
  body.front.portal.tpl-keke.keke-template .keke-actions .language-switcher-trigger {
    display: inline-flex !important;
    width: auto !important;
    min-width: 72px !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 13px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}

body.front.portal.tpl-keke.keke-template .keke-actions :is(.keke-pill, .language-switcher-trigger) > :is(span, em) {
  display: inline-flex !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body.front.portal.tpl-keke.keke-template .keke-actions :is(.keke-pill, .language-switcher-trigger):focus:not(:focus-visible),
body.front.portal.tpl-keke.keke-template .keke-actions :is(.keke-pill, .language-switcher-trigger):hover:not(:focus-visible) {
  outline: 0 !important;
  box-shadow: none !important;
}

/* Selected navigation hugs its icon and text instead of becoming a long block. */
body.front.portal.tpl-keke.keke-template .keke-sidebar a.current {
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-inline: 14px 17px !important;
  border: 1px solid var(--keke-ui-line-strong) !important;
  background: var(--keke-ui-soft-active) !important;
  color: var(--keke-ui-text) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template .keke-sidebar a.current::before {
  content: none !important;
  display: none !important;
}

/* Search is a single calm surface; the submit control is no longer a yellow slab. */
body.front.portal.tpl-keke.keke-template .keke-search input {
  height: 42px !important;
  border: 1px solid var(--keke-ui-line) !important;
  border-right: 0 !important;
  border-radius: 999px 0 0 999px !important;
  background: color-mix(in srgb, var(--keke-panel) 78%, var(--keke-soft)) !important;
  color: var(--keke-ink) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template .keke-search input::placeholder {
  color: var(--keke-muted) !important;
  opacity: .86 !important;
}

body.front.portal.tpl-keke.keke-template .keke-search button {
  min-width: 72px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border: 1px solid var(--keke-ui-line-strong) !important;
  border-radius: 0 999px 999px 0 !important;
  background: var(--keke-ui-soft) !important;
  color: var(--keke-ui-text) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template .keke-search button:is(:hover, :focus-visible) {
  background: var(--keke-ui-soft-active) !important;
}

body.front.portal.tpl-keke.keke-template .keke-search button:focus-visible {
  outline: 2px solid var(--keke-ui-focus) !important;
  outline-offset: 2px !important;
}

html[data-portal-theme="dark"] body.front.portal.tpl-keke.keke-template .keke-search input,
html[data-theme="dark"]:not([data-portal-theme="light"]) body.front.portal.tpl-keke.keke-template .keke-search input,
html:not([data-portal-theme]) body.front.portal.tpl-keke.keke-template.theme-dark .keke-search input {
  border-color: var(--keke-ui-line) !important;
  background: color-mix(in srgb, var(--keke-panel) 90%, black) !important;
  color: var(--keke-ink) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .035) !important;
}

/* Filters keep rhythm but lose the bulky outer panel. */
body.front.portal.tpl-keke.keke-template.category-page .keke-filter {
  gap: 8px !important;
  margin: 12px 0 !important;
  padding: 9px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template.category-page :is(.keke-filter a, .keke-sortline a) {
  min-height: 30px !important;
  padding: 0 11px !important;
}

/* Deterministic ten-colour rankings with equal cards and transparent rows. */
body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank > .keke-grid {
  grid-template-columns: repeat(5, minmax(190px, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card,
body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card + .keke-info-card {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  align-self: stretch !important;
  flex-direction: column !important;
  transform: none !important;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card ol {
  counter-reset: keke-rank-item;
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card li {
  counter-increment: keke-rank-item;
  display: grid !important;
  grid-template-columns: 2ch minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 5px 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--keke-rank-accent) 18%, transparent) !important;
  background: transparent !important;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card li:last-child {
  border-bottom: 0 !important;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card li::before {
  content: counter(keke-rank-item) ".";
  color: var(--keke-rank-accent);
  font-weight: 800;
  text-align: right;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card li > a {
  min-width: 0;
  overflow: hidden;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card li > span {
  justify-self: end;
  white-space: nowrap;
}

/* Poster geometry and captions remain stable across home/category/detail/player. */
body.front.portal.tpl-keke.keke-template .keke-poster {
  aspect-ratio: 2 / 3 !important;
}

body.front.portal.tpl-keke.keke-template .keke-poster img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.front.portal.tpl-keke.keke-template .keke-card :is(h2, h3) {
  min-height: 2.7em;
  text-align: center !important;
}

body.front.portal.tpl-keke.keke-template .keke-card :is(h2, h3) a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* New shared film hero: real poster only, direct feather mask, no divider/dots. */
body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-carousel],
body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  min-height: 360px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, var(--keke-family-page) 0%, transparent 14%, transparent 86%, var(--keke-family-page) 100%),
    radial-gradient(ellipse 44% 120% at 48% 52%, color-mix(in srgb, var(--keke-ui-accent) 10%, transparent), transparent 72%),
    linear-gradient(90deg, var(--keke-family-page) 0%, var(--keke-family-hero-a) 12%, var(--keke-family-hero-b) 48%, var(--keke-family-hero-c) 76%, var(--keke-family-page) 100%) !important;
  box-shadow: none !important;
  color: var(--keke-ink) !important;
}

body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-carousel]::before,
body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-carousel]::after,
body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero::before,
body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-slide,
body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-slide] {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: clamp(220px, 27%, 340px) minmax(0, 1fr);
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-slide.active,
body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-slide].active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: keke-family-hero-in .28s ease-out both;
}

@keyframes keke-family-hero-in {
  from { opacity: .34; }
  to { opacity: 1; }
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-poster {
  position: relative;
  display: grid;
  min-width: 0;
  height: 100%;
  padding: 12px 0;
  place-items: center start;
  overflow: visible;
  background: transparent !important;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-poster :is(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-poster img {
  max-width: 94%;
  margin: 0 auto 0 0;
  border-radius: 12px;
  object-fit: contain;
  object-position: left center;
  filter: saturate(.98) contrast(1.02);
  -webkit-mask-image: radial-gradient(ellipse 78% 98% at 40% 50%, #000 56%, rgb(0 0 0 / .92) 70%, rgb(0 0 0 / .54) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 98% at 40% 50%, #000 56%, rgb(0 0 0 / .92) 70%, rgb(0 0 0 / .54) 86%, transparent 100%);
}

body.front.portal.tpl-keke.keke-template.keke-home :is(.keke-family-hero-backdrop, .keke-family-hero-dots) {
  display: none !important;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(26px, 3.4vw, 46px) clamp(18px, 3vw, 46px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy :is(h1, h2) {
  margin: 4px 0 14px;
  max-width: 100%;
  color: var(--keke-ui-text);
  background: linear-gradient(105deg, var(--keke-ui-accent), var(--keke-ui-accent-2) 58%, color-mix(in srgb, var(--keke-ui-accent) 58%, var(--keke-ink)));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: transparent;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy .keke-eyebrow {
  margin-bottom: 5px;
  color: var(--keke-muted);
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credits {
  display: grid;
  gap: 7px;
  max-width: min(760px, 100%);
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: var(--keke-ink);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.45;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit > :first-child {
  color: var(--keke-muted);
  font-weight: 800;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit > :last-child,
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits > p > :last-child {
  min-width: 0;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit a,
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits a {
  color: inherit;
  text-decoration: none;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit a + a,
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits a + a {
  margin-left: 9px;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-empty {
  display: grid;
  min-height: 360px;
  padding: 24px;
  place-content: center;
  text-align: center;
}

body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero :is(.keke-btn-row, [data-keke-family-hero-dots]) {
  display: none !important;
}

/* Detail content aligns its action row with the poster and keeps credits tight. */
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail {
  grid-template-columns: clamp(180px, 18vw, 220px) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail > div > :is(.keke-meta, .keke-summary) {
  display: none !important;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-title {
  color: var(--keke-ui-text);
  background: linear-gradient(105deg, var(--keke-ui-accent), var(--keke-ui-accent-2) 58%, color-mix(in srgb, var(--keke-ui-accent) 58%, var(--keke-ink)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credit,
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits > p {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  color: var(--keke-muted);
  font-size: 15px;
  line-height: 1.5;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credit > :first-child,
body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits > p > :first-child {
  color: var(--keke-ink);
  font-weight: 800;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail .keke-toolbar {
  margin-top: auto !important;
  padding-top: 14px !important;
  align-items: center;
}

body.front.portal.tpl-keke.keke-template.detail-page .keke-detail .keke-toolbar form {
  display: flex;
  margin: 0;
}

/* Portrait-led actor directory and detail profile. */
body.front.portal.tpl-keke.keke-template.actor-page .keke-actor-grid {
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 16px;
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-card, .oletv-actor-card) {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--keke-line);
  border-radius: 12px;
  background: var(--keke-panel);
  box-shadow: 0 10px 24px rgb(0 0 0 / .06);
  text-decoration: none;
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-portrait, .keke-actor-card-portrait, .oletv-actor-card-portrait) {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--keke-soft);
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-portrait, .keke-actor-card-portrait, .oletv-actor-card-portrait) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-copy, .keke-actor-card-copy, .oletv-actor-card-copy) {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-copy, .keke-actor-card-copy, .oletv-actor-card-copy) :is(strong, span) {
  margin: 0;
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-profile, .oletv-actor-profile) {
  display: grid;
  grid-template-columns: clamp(150px, 20vw, 230px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--keke-panel), var(--keke-soft));
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-profile-portrait, .oletv-actor-profile-portrait) {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: var(--keke-soft);
}

body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-profile-portrait, .oletv-actor-profile-portrait) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Advertising occupies exactly its visible media box. */
body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav {
  box-sizing: border-box !important;
  display: grid !important;
  width: min(1440px, 100%) !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-card,
body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-code-frame {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-card :is(picture, img) {
  width: 100% !important;
  height: 100% !important;
}

body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-card img {
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank > .keke-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.front.portal.tpl-keke.keke-template .keke-actions > .theme-toggle,
  body.front.portal.tpl-keke.keke-template .keke-actions .language-switcher-trigger {
    display: inline-flex !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template .keke-sidebar a.current {
    max-width: calc(100% - 12px) !important;
  }

  body.front.portal.tpl-keke.keke-template.category-page .keke-filter {
    gap: 6px !important;
    margin: 7px 0 9px !important;
    padding: 4px 0 !important;
  }

  body.front.portal.tpl-keke.keke-template.category-page :is(.keke-filter a, .keke-sortline a) {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank > .keke-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.front.portal.tpl-keke.keke-template.category-page #keke-category-rank .keke-info-card {
    min-height: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-carousel],
  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero {
    min-height: 286px !important;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-slide,
  body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-slide] {
    grid-template-columns: minmax(126px, 42%) minmax(0, 1fr);
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-poster {
    padding: 8px 0;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-poster img {
    max-width: 100%;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy {
    padding: 14px 10px 14px 14px;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy :is(h1, h2) {
    margin-bottom: 9px;
    font-size: clamp(22px, 7vw, 30px);
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-copy .keke-eyebrow {
    margin-bottom: 3px;
    font-size: 12px;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credits {
    gap: 4px;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px;
    font-size: 12px;
    line-height: 1.35;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit > :last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-credit a + a,
  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits a + a {
    margin-left: 5px;
  }

  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-empty {
    min-height: 286px;
  }

  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail {
    grid-template-columns: 116px minmax(0, 1fr) !important;
    gap: 13px !important;
    padding: 13px !important;
  }

  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits {
    gap: 4px;
    margin-top: 8px;
  }

  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credit,
  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail-credits > p {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 5px;
    font-size: 12px;
    line-height: 1.35;
  }

  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail .keke-toolbar {
    gap: 6px;
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template.detail-page .keke-detail .keke-toolbar :is(.keke-btn, .keke-btn-secondary) {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 12px;
  }

  body.front.portal.tpl-keke.keke-template.actor-page .keke-actor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.front.portal.tpl-keke.keke-template.actor-page :is(.keke-actor-profile, .oletv-actor-profile) {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav {
    width: min(728px, 100%) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 90px !important;
    margin: 0 auto 10px !important;
    aspect-ratio: 728 / 90 !important;
  }

  body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-card,
  body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-code-frame {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 90px !important;
    aspect-ratio: 728 / 90 !important;
  }

  body.front.portal.tpl-keke.keke-template .site-ad-after-primary-nav > .site-ad-card img {
    object-fit: contain !important;
  }
}

/* Shared Keke player: the stage owns both the video and its information rail.
   Keep the desktop viewport compact, make the light rail genuinely light, and
   reserve the fixed mobile dock without changing the dark theme contract. */
body.front.portal.tpl-keke.keke-template.player-page .keke-video-layout {
  display: block !important;
  min-width: 0;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 28%, 386px);
  width: 100%;
  height: clamp(340px, 30vw, 460px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--keke-line);
  border-radius: 12px;
  background: #070908;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-stage .keke-video {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-stage .keke-video :is(video, iframe) {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

body.front.portal.tpl-keke.keke-template.player-page .keke-player-tools {
  top: 12px;
  right: 12px;
  bottom: auto;
  z-index: 9;
}

body.front.portal.tpl-keke.keke-template.player-page .keke-player-tools button {
  border-color: rgb(255 255 255 / .38) !important;
  background: rgb(4 8 7 / .62) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--keke-line);
  background: var(--keke-panel);
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-tabs {
  display: flex;
  min-height: 46px;
  gap: 20px;
  align-items: stretch;
  padding: 0 16px;
  border-bottom: 1px solid var(--keke-line);
  background: color-mix(in srgb, var(--keke-panel) 92%, var(--keke-soft));
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-tabs a {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  color: var(--keke-muted);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-tabs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

body.front.portal.tpl-keke.keke-template.player-page:not([data-oletv-player-tab="comments"]):not(:has(#keke-player-comments:target)) .oletv-player-tabs a[href="#keke-player-info"],
body.front.portal.tpl-keke.keke-template.player-page:has(#keke-player-comments:target) .oletv-player-tabs a[href="#keke-player-comments"],
body.front.portal.tpl-keke.keke-template.player-page[data-oletv-player-tab="comments"] .oletv-player-tabs a[href="#keke-player-comments"] {
  color: var(--keke-ui-text);
}

body.front.portal.tpl-keke.keke-template.player-page:not([data-oletv-player-tab="comments"]):not(:has(#keke-player-comments:target)) .oletv-player-tabs a[href="#keke-player-info"]::after,
body.front.portal.tpl-keke.keke-template.player-page:has(#keke-player-comments:target) .oletv-player-tabs a[href="#keke-player-comments"]::after,
body.front.portal.tpl-keke.keke-template.player-page[data-oletv-player-tab="comments"] .oletv-player-tabs a[href="#keke-player-comments"]::after {
  background: var(--keke-ui-accent);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-tabs a:focus-visible {
  outline: 2px solid var(--keke-ui-focus);
  outline-offset: -2px;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-panels {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-play-side {
  margin: 0;
  padding: 14px 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side :is(.keke-player-title, h2, .oletv-comment-title h2, .comment-item strong) {
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-player-title {
  margin: 0 0 8px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-eyebrow {
  margin: 0 0 6px;
  color: var(--keke-ui-text);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-play-side > p:not(.keke-eyebrow),
body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side :is(.oletv-comment-title span, .comment-item small, .empty-state) {
  color: var(--keke-muted);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side h2 {
  margin: 14px 0 8px;
  font-size: 16px;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-meta {
  gap: 6px;
  margin: 9px 0 12px;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-meta span {
  color: var(--keke-ink) !important;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-toolbar {
  gap: 7px;
  margin-top: 12px;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-comments {
  display: none;
  margin: 0;
  padding: 14px 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-comments:target,
body.front.portal.tpl-keke.keke-template.player-page[data-oletv-player-tab="comments"] .oletv-player-comments {
  display: block;
}

body.front.portal.tpl-keke.keke-template.player-page:has(#keke-player-comments:target) .oletv-player-side .keke-play-side,
body.front.portal.tpl-keke.keke-template.player-page[data-oletv-player-tab="comments"] .oletv-player-side .keke-play-side {
  display: none;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .oletv-comment-form textarea,
body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .rating-select {
  border-color: var(--keke-line);
  background: var(--keke-soft);
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .oletv-comment-form textarea::placeholder {
  color: var(--keke-muted);
  opacity: .9;
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .comment-item p {
  color: var(--keke-ink);
}

body.front.portal.tpl-keke.keke-template.player-page .oletv-player-related {
  margin-top: 18px;
}

@media (max-width: 900px) {
  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-stage {
    display: block;
    height: auto;
    overflow: visible;
    border-radius: 10px;
    background: transparent;
  }

  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-stage .keke-video {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
  }

  body.front.portal.tpl-keke.keke-template.player-page .keke-player-tools {
    display: none !important;
  }

  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side {
    overflow: visible;
    border-top: 1px solid var(--keke-line);
    border-left: 0;
    border-radius: 0 0 9px 9px;
  }

  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-panels {
    overflow: visible;
  }

  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-play-side,
  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-comments {
    padding: 12px 13px 14px;
  }

  body.front.portal.tpl-keke.keke-template.player-page .oletv-player-side .keke-player-title {
    font-size: clamp(20px, 6vw, 25px);
  }

  body.front.portal.tpl-keke.keke-template .site-footer {
    box-sizing: border-box;
    margin-bottom: 0 !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.front.portal.tpl-keke.keke-template.keke-home .keke-family-hero-slide.active,
  body.front.portal.tpl-keke.keke-template.keke-home [data-keke-family-hero-slide].active {
    animation: none !important;
  }

  body.front.portal.tpl-keke.keke-template .keke-sidebar {
    transition: none !important;
  }
}


/* OULE-RESPONSIVE-LAYOUT-R1-20260830T160647CST
 * Full responsive refinement: www.oule.xin + www.oletv.xin only.
 * Top-ad geometry refinement: the two shared hosts + isolated www.oletv.xyz.
 * Site logo, TDK, theme tokens, data, ad identity and JavaScript stay unchanged.
 */

/* Compact single-layer capsules on the two shared Keke sites. */
body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) :is(
  .keke-actions .keke-pill,
  .keke-actions .language-switcher-trigger,
  .keke-filter a,
  .keke-sortline a,
  .keke-chip,
  .keke-lines a,
  .keke-episodes a,
  .keke-meta span,
  .keke-meta a,
  .keke-inline-action,
  .keke-btn,
  .keke-btn-secondary
) {
  min-height: 36px !important;
  height: auto;
  border-radius: 999px !important;
  padding: 0 14px !important;
  line-height: 1.15;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-actions > :is(
  .theme-toggle,
  .keke-pill,
  .language-switcher
) {
  flex: 0 0 auto;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-actions :is(
  .theme-toggle,
  .language-switcher-trigger
) {
  height: 38px !important;
  min-height: 38px !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-sidebar a.current {
  width: max-content;
  max-width: 100% !important;
  padding-inline: 12px;
}

/* The category shell is not another capsule: remove its redundant outer box. */
body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Desktop hero: a real 360px row, 220x330 poster, vertically centred copy. */
@media (min-width: 901px) {
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-family-hero-slide,
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home [data-keke-family-hero-slide] {
    grid-template-columns: 240px minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-family-hero-poster {
    box-sizing: border-box;
    min-height: 0 !important;
    height: 100% !important;
    padding: 15px 0 !important;
    place-items: center start !important;
    overflow: hidden !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-family-hero-poster picture {
    display: grid !important;
    width: 220px !important;
    max-width: 100% !important;
    height: 330px !important;
    max-height: 100% !important;
    place-items: center start;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-family-hero-poster img {
    width: 220px !important;
    max-width: 100% !important;
    height: 330px !important;
    max-height: 100% !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-family-hero-copy {
    box-sizing: border-box;
    min-height: 0 !important;
    height: 100% !important;
    padding: 28px clamp(24px, 3vw, 44px) !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-main.narrow {
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).player-page .oletv-player-related > .keke-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
}

/* Sixteen real channel posters divide exactly without fake cards or extra queries. */
@media (min-width: 1600px) {
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-section[aria-labelledby^="keke-channel-"] > .keke-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 901px) and (max-width: 1599px) {
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).keke-home .keke-section[aria-labelledby^="keke-channel-"] > .keke-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Detail facts keep label and value in one readable row on PC and H5. */
body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-facts-list {
  display: grid !important;
  gap: 7px !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-fact-row {
  display: flex !important;
  min-width: 0;
  align-items: baseline !important;
  gap: 4px !important;
  margin: 0 !important;
  line-height: 1.55;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-fact-row > strong {
  flex: 0 0 auto;
  margin: 0 !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-fact-row > div {
  display: flex !important;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 2px 8px;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-fact-row :is(a, span) {
  display: inline;
  min-width: 0;
}

/* The base sibling margin pushed every ranking card except the first down. */
body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page #keke-category-rank > .keke-grid {
  align-items: start !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page #keke-category-rank .keke-info-card + .keke-info-card {
  margin-top: 0 !important;
}

/* One centred native-ratio desktop slot; compact, proportional H5 slot. */
body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .keke-main:has(> .site-ad-after-primary-nav) {
  padding-top: 18px !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .site-ad-after-primary-nav {
  box-sizing: border-box !important;
  display: grid !important;
  position: relative !important;
  width: min(970.6667px, 100%) !important;
  height: 120px !important;
  min-height: 120px !important;
  max-height: 120px !important;
  margin: 0 auto 8px !important;
  padding: 0 !important;
  place-items: center !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .site-ad-after-primary-nav > :is(.site-ad-card, .site-ad-code-frame) {
  position: absolute !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 728px !important;
  min-width: 728px !important;
  max-width: 728px !important;
  height: 90px !important;
  min-height: 90px !important;
  max-height: 90px !important;
  margin: 0 !important;
  border: 0 !important;
  transform: translate(-50%, -50%) scale(1.3333333) !important;
  transform-origin: center !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  /* Compact header controls; brand retains its own logo and name. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-topbar {
    box-sizing: border-box;
    height: 56px !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-menu {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 10px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-menu span {
    width: 16px !important;
    height: 2px !important;
    margin: 2px auto !important;
    border-radius: 999px;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-brand {
    min-width: 0;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-brand-logo {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-brand strong {
    max-width: 118px !important;
    font-size: 16px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-actions {
    flex: 0 0 auto;
    gap: 6px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-actions > .theme-toggle,
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-actions .language-switcher-trigger {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-sidebar {
    top: 56px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-main {
    padding: 12px 14px calc(80px + env(safe-area-inset-bottom)) !important;
  }

  /* Three actions always share one compact row beside the poster. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-detail .keke-detail-toolbar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 5px !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-detail .keke-detail-toolbar > * {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-detail .keke-detail-toolbar :is(.keke-btn, .keke-btn-secondary) {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 3px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* Title and expand action remain on the same line. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-article[aria-labelledby="keke-summary-title"] .keke-section-head {
    display: flex !important;
    min-width: 0;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-article[aria-labelledby="keke-summary-title"] .keke-section-head h2 {
    min-width: 0;
    font-size: clamp(18px, 5.4vw, 22px) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-article[aria-labelledby="keke-summary-title"] [data-keke-summary-toggle] {
    flex: 0 0 auto;
    min-height: 32px !important;
    padding-inline: 10px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .keke-info-card {
    padding: 16px 14px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-facts-list {
    gap: 5px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).detail-page .oletv-fact-row {
    align-items: flex-start !important;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Mobile filters keep the label and the horizontal options on one row. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter {
    gap: 4px !important;
    margin: 6px 0 8px !important;
    padding: 0 !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter-line {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    min-width: 0;
    align-items: center !important;
    gap: 7px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter-line strong {
    margin: 0 !important;
    line-height: 28px !important;
    font-size: 13px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter-line > div {
    min-width: 0;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-filter-line > div::-webkit-scrollbar {
    display: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page :is(.keke-filter a, .keke-sortline a) {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-sortline {
    gap: 6px !important;
    margin-block: 6px 8px;
    scrollbar-width: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).category-page .keke-sortline::-webkit-scrollbar {
    display: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin).player-page .oletv-player-related > .keke-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Full-width dock: five equal visible entries, clean horizontal continuation. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-dock {
    box-sizing: border-box;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    gap: 0 !important;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom)) !important;
    border-width: 1px 0 0 !important;
    border-radius: 14px 14px 0 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-dock::-webkit-scrollbar {
    display: none;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-dock a {
    box-sizing: border-box;
    flex: 0 0 20% !important;
    min-width: 20% !important;
    gap: 2px !important;
    padding: 5px 2px !important;
    border-radius: 9px !important;
    font-style: normal !important;
    font-family: inherit !important;
    font-size: 11px !important;
    line-height: 1.15;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-dock :is(span, em) {
    margin: 0;
    font-style: normal !important;
    font-family: inherit;
    line-height: 1.1;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .keke-dock span {
    font-size: 17px;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin) .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  /* Mobile ad uses one 85px slot; the native 728:90 creative stays complete. */
  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .keke-main:has(> .site-ad-after-primary-nav) {
    padding-top: 10px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .site-ad-after-primary-nav {
    container-type: inline-size;
    width: min(728px, 100%) !important;
    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;
    margin: 0 auto 6px !important;
    aspect-ratio: auto !important;
  }

  body.front.portal.tpl-keke.keke-template:is(.site-www-oule-xin, .site-www-oletv-xin, .site-oletv-xyz.site-oletv) .site-ad-after-primary-nav > :is(.site-ad-card, .site-ad-code-frame) {
    top: 50% !important;
    left: 50% !important;
    width: 728px !important;
    min-width: 728px !important;
    max-width: 728px !important;
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
    aspect-ratio: auto !important;
    transform: translate(-50%, -50%) scale(calc(100cqw / 728px)) !important;
    transform-origin: center !important;
  }
}



/* OULE-TEMPLATE-VISUAL-SYSTEM-R2-20260831T145629CST
   Shared UI increment for www.oule.xin and www.oletv.xin only. */

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ) {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Noto Sans CJK SC",
    "Microsoft YaHei",
    sans-serif !important;
  font-style: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  :is(button, input, select, textarea) {
  font: inherit;
}

/* Current navigation is a compact, theme-owned capsule, never a full-width slab. */
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  :is(.keke-sidebar, .ole-h5-channel)
  a.current {
  box-sizing: border-box !important;
  display: inline-flex !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 12px) !important;
  min-height: 36px !important;
  padding: 0 11px !important;
  align-self: flex-start !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  border: 1px solid var(--keke-ui-line-strong) !important;
  border-radius: 999px !important;
  background: var(--keke-ui-soft-active) !important;
  color: var(--keke-ui-text) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  :is(.keke-sidebar, .ole-h5-channel)
  a.current::before,
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  :is(.keke-sidebar, .ole-h5-channel)
  a.current::after {
  content: none !important;
  display: none !important;
}

/* Poster cards share one geometry and expose only title + the real score as stars. */
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  .keke-poster {
  aspect-ratio: 2 / 3 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--keke-soft) !important;
  box-shadow: none !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  .keke-poster
  :is(picture, img) {
  width: 100% !important;
  height: 100% !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  .keke-poster
  img {
  display: block;
  object-fit: cover !important;
  object-position: center !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  :is(h2, h3) {
  min-height: 0 !important;
  margin: 8px 0 2px !important;
  color: var(--keke-ink) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  :is(h2, h3)
  a {
  display: block !important;
  overflow: hidden !important;
  color: inherit !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card
  > p {
  display: none !important;
}

/* Keep poster geometry visually stable while the grid grows 4 -> 8 columns. */
@media (min-width: 901px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-grid:not(.keke-ranking-grid)
    > .keke-card {
    width: 100%;
    max-width: 150px;
    justify-self: center;
  }
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .keke-card.oule-rating-ready
  .keke-poster
  > .badge {
  display: none !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .oule-card-rating {
  display: flex;
  min-height: 18px;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--keke-muted);
  font-size: 12px;
  line-height: 1;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .oule-star-meter {
  position: relative;
  display: inline-block;
  width: 6.15em;
  overflow: hidden;
  color: color-mix(in srgb, var(--keke-muted) 24%, transparent);
  font-size: 13px;
  letter-spacing: 0.23em;
  white-space: nowrap;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .oule-star-meter::before,
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .oule-star-meter::after {
  content: "★★★★★";
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  )
  .oule-star-meter::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--oule-rating-fill, 0%);
  overflow: hidden;
  color: var(--keke-ui-accent);
}

/* Hero: smaller real poster, closer copy and direct theme-aware edge feathering. */
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  :is([data-keke-family-hero-carousel], .keke-family-hero) {
  min-height: 324px !important;
  background:
    linear-gradient(
      180deg,
      var(--keke-family-page) 0%,
      transparent 12%,
      transparent 88%,
      var(--keke-family-page) 100%
    ),
    radial-gradient(
      ellipse 42% 112% at 47% 50%,
      color-mix(in srgb, var(--keke-ui-accent) 9%, transparent),
      transparent 74%
    ),
    linear-gradient(
      90deg,
      var(--keke-family-page) 0%,
      var(--keke-family-hero-a) 16%,
      var(--keke-family-hero-b) 48%,
      var(--keke-family-hero-c) 78%,
      var(--keke-family-page) 100%
    ) !important;
}

@media (min-width: 901px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.keke-family-hero-slide, [data-keke-family-hero-slide]) {
    grid-template-columns: 214px minmax(0, 1fr) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster {
    padding: 15px 0 !important;
    place-items: center start !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster
    picture,
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster
    img {
    width: 196px !important;
    max-width: 196px !important;
    height: 294px !important;
    max-height: 294px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-copy {
    padding: 24px clamp(18px, 2.2vw, 34px) !important;
  }
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .keke-family-hero-poster
  img {
  margin: 0 !important;
  border-radius: 10px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: saturate(0.98) contrast(1.015);
  -webkit-mask-image: radial-gradient(
    ellipse 62% 70% at 50% 50%,
    #000 54%,
    rgb(0 0 0 / 0.86) 70%,
    rgb(0 0 0 / 0.34) 86%,
    transparent 100%
  ) !important;
  mask-image: radial-gradient(
    ellipse 62% 70% at 50% 50%,
    #000 54%,
    rgb(0 0 0 / 0.86) 70%,
    rgb(0 0 0 / 0.34) 86%,
    transparent 100%
  ) !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .keke-family-hero-copy {
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .keke-family-hero-copy
  :is(h1, h2) {
  font-size: clamp(29px, 3.2vw, 46px) !important;
}

/* Latest uses the existing Movie/TV grids; the control owns no outer ring. */
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-section
  > .keke-section-head {
  display: flex !important;
  min-width: 0;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-section
  > .keke-section-head
  h2 {
  min-width: 0;
  color: color-mix(in srgb, #12a879 78%, var(--keke-ink));
  white-space: nowrap;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab {
  box-sizing: border-box;
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--keke-ui-line);
  border-radius: 999px;
  background: var(--keke-ui-soft);
  color: var(--keke-ui-muted);
  box-shadow: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab[aria-selected="true"] {
  border-color: var(--keke-ui-line-strong);
  background: var(--keke-ui-soft-active);
  color: var(--keke-ui-text);
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab[data-oule-latest-kind="movie"] {
  --oule-tab-accent: #11a574;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab[data-oule-latest-kind="drama"] {
  --oule-tab-accent: #e34d78;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab[aria-selected="true"] {
  border-color: color-mix(
    in srgb,
    var(--oule-tab-accent) 62%,
    var(--keke-ui-line)
  ) !important;
  background: color-mix(
    in srgb,
    var(--oule-tab-accent) 11%,
    transparent
  ) !important;
  color: color-mix(
    in srgb,
    var(--oule-tab-accent) 78%,
    var(--keke-ink)
  ) !important;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-tab:focus-visible {
  outline: 2px solid var(--keke-ui-focus);
  outline-offset: 2px;
}

body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  .oule-latest-panel[hidden],
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [data-oule-original-latest][hidden] {
  display: none !important;
}

/* Distinct category accents remain legible in both themes. */
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-movie"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #11a574 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-drama"]
  .keke-section-head
  h2,
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-tv"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #e34d78 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-variety"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #8b5cf6 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-anime"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #1597e5 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-short"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #ed6395 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-documentary"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #d98c13 78%, var(--keke-ink));
}
body.front.portal.tpl-keke.keke-template:is(
    .site-www-oule-xin,
    .site-www-oletv-xin
  ).keke-home
  [aria-labelledby="keke-channel-movie-commentary"]
  .keke-section-head
  h2 {
  color: color-mix(in srgb, #0fa59b 78%, var(--keke-ink));
}

@media (min-width: 1800px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).category-page
    .keke-grid:not(.keke-ranking-grid),
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).detail-page
    .keke-grid,
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).player-page
    .keke-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }

  /* Complete visible rows: category 56, detail/player recommendations 16. */
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).category-page
    .keke-grid:not(.keke-ranking-grid)
    > .keke-card:nth-child(n + 57),
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.detail-page, .player-page)
    .keke-grid
    > .keke-card:nth-child(n + 17) {
    display: none !important;
  }
}

@media (min-width: 1600px) and (max-width: 1799px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.category-page, .detail-page, .player-page)
    .keke-grid:not(.keke-ranking-grid) {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid
    > .keke-card:nth-child(n + 15),
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).category-page
    .keke-grid:not(.keke-ranking-grid)
    > .keke-card:nth-child(n + 57),
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.detail-page, .player-page)
    .keke-grid
    > .keke-card:nth-child(n + 15) {
    display: none !important;
  }
}

@media (min-width: 1440px) and (max-width: 1599px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.category-page, .detail-page, .player-page)
    .keke-grid:not(.keke-ranking-grid) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid
    > .keke-card:nth-child(n + 13) {
    display: none !important;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.category-page, .detail-page, .player-page)
    .keke-grid:not(.keke-ranking-grid) {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid
    > .keke-card:nth-child(n + 16),
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.detail-page, .player-page)
    .keke-grid
    > .keke-card:nth-child(n + 16) {
    display: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.oule-latest-panel, .keke-section[aria-labelledby^="keke-channel-"])
    > .keke-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.category-page, .detail-page, .player-page)
    .keke-grid:not(.keke-ranking-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ):is(.detail-page, .player-page)
    .keke-grid
    > .keke-card:nth-child(n + 17) {
    display: none !important;
  }
}

@media (max-width: 900px) {
  /* Balanced header: refined menu, compact magnifier and existing theme controls. */
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-topbar {
    position: sticky;
    height: 56px !important;
    gap: 7px !important;
    padding: 0 10px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu {
    display: flex !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--keke-ui-line) !important;
    border-radius: 11px !important;
    background: var(--keke-ui-soft) !important;
    color: var(--keke-ui-text) !important;
    box-shadow: none !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu
    span {
    width: 17px !important;
    height: 2px !important;
    margin: 0 !important;
    border-radius: 999px;
    background: currentColor !important;
    transition:
      opacity 0.16s ease,
      transform 0.16s ease,
      width 0.16s ease;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu
    span:nth-child(2) {
    width: 12px !important;
    transform: translateX(-2.5px);
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu[aria-expanded="true"]
    span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu[aria-expanded="true"]
    span:nth-child(2) {
    width: 17px !important;
    opacity: 0;
    transform: none;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu[aria-expanded="true"]
    span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-brand {
    min-width: 0;
    flex: 1 1 auto !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-brand
    strong {
    max-width: clamp(82px, 30vw, 126px) !important;
  }

  /*
   * Progressive-enhancement fallback: the family baseline hides the entire
   * search form below 600px. Keep the real SSR form usable when JavaScript is
   * unavailable; only the enhanced root may collapse it to the icon control.
   */
  html:not(.oule-search-enhanced)
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-topbar {
    height: auto !important;
    min-height: 60px;
    flex-wrap: wrap;
    padding-block: 10px !important;
  }

  html:not(.oule-search-enhanced)
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search {
    order: 20;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 38px !important;
    flex: 1 0 100% !important;
    overflow: visible !important;
  }

  html:not(.oule-search-enhanced)
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    input {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    flex: 1 1 auto !important;
    border-radius: 999px 0 0 999px !important;
  }

  html:not(.oule-search-enhanced)
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    button {
    display: inline-grid !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    place-items: center;
    border-radius: 0 999px 999px 0 !important;
    font-size: 13px !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search {
    position: relative;
    display: flex !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    align-items: center;
    overflow: visible !important;
  }

  /*
   * The enhanced search expands as a second header row in normal flow. This
   * grows the sticky header and pushes the ad/content down instead of placing
   * a fixed input over the first ad slot.
   */
  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-topbar.is-search-open {
    height: auto !important;
    min-height: 56px !important;
    flex-wrap: wrap !important;
    row-gap: 7px !important;
    padding-block: 10px !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-topbar.is-search-open
    + .keke-sidebar {
    top: 103px !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search.is-open {
    order: 20;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    flex: 1 0 100% !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    input {
    position: static !important;
    z-index: auto !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid var(--keke-ui-line-strong) !important;
    border-right: 0 !important;
    border-radius: 12px 0 0 12px !important;
    background: var(--keke-panel) !important;
    box-shadow: none !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search.is-open
    input {
    display: block !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    button {
    position: relative;
    display: grid !important;
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid var(--keke-ui-line) !important;
    border-radius: 999px !important;
    background: var(--keke-ui-soft) !important;
    color: var(--keke-ui-text) !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    button::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35m2.35-5.65a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m21 21-4.35-4.35m2.35-5.65a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search
    button::after {
    content: none !important;
    display: none !important;
  }

  html.oule-search-enhanced
    body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-search.is-open
    button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 0 12px 12px 0 !important;
    border-color: var(--keke-ui-line-strong) !important;
    background: var(--keke-ui-soft-active) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is([data-keke-family-hero-carousel], .keke-family-hero) {
    min-height: 258px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    :is(.keke-family-hero-slide, [data-keke-family-hero-slide]) {
    grid-template-columns: minmax(112px, 42%) minmax(0, 1fr) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster {
    padding: 9px 0 !important;
    place-items: center !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster
    picture,
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-poster
    img {
    width: min(100%, 142px) !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-copy {
    padding: 13px 8px 13px 11px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-copy
    :is(h1, h2) {
    margin: 3px 0 8px !important;
    font-size: clamp(21px, 6.7vw, 28px) !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-copy
    .keke-eyebrow {
    font-size: 11px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-credit {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 4px !important;
    font-size: 11px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-family-hero-credit
    > :last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-section-head
    :is(h2, a) {
    white-space: nowrap !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .keke-section-head
    h2 {
    font-size: 20px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .oule-latest-tab {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  /* Poster density is a layout rule, not a three-item content limit. */
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-grid:not(.keke-ranking-grid):has(> .keke-card) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-card
    :is(h2, h3) {
    font-size: 13px !important;
  }
}

@media (max-width: 340px) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-topbar {
    gap: 5px !important;
    padding-inline: 8px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-brand
    strong {
    max-width: 82px !important;
    font-size: 15px !important;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .oule-latest-tabs {
    gap: 4px;
  }

  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    ).keke-home
    .oule-latest-tab {
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.front.portal.tpl-keke.keke-template:is(
      .site-www-oule-xin,
      .site-www-oletv-xin
    )
    .keke-menu
    span {
    transition: none;
  }
}

