:root {
  --bg: #0d1511;
  --paper: #eef1ea;
  --panel: #fffefa;
  --panel-strong: #ffffff;
  --ink: #131915;
  --muted: #657067;
  --line: rgba(19, 25, 21, 0.12);
  --accent: #27734f;
  --accent-dark: #164a32;
  --gold: #bd8f35;
  --ember: #b85f32;
  --shadow: 0 24px 70px rgba(18, 26, 21, 0.14);
  --shadow-soft: 0 12px 34px rgba(18, 26, 21, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgba(19, 25, 21, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(19, 25, 21, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 88px 100%, 100% 24px;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

main,
.site-header,
footer {
  transition: opacity 140ms ease;
}

.app-loading main,
.app-loading .site-header,
.app-loading footer {
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

button,
.button-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

button:hover,
.button-link:hover {
  border-color: rgba(47, 125, 85, 0.45);
  background: #f7f3e8;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 125, 85, 0.28);
  outline-offset: 2px;
}

button.primary,
.button-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button.is-saved {
  border-color: rgba(47, 125, 85, 0.48);
  background: #e7f1eb;
  color: var(--accent-dark);
}

.app-icon,
.app-icon-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
}

img.app-icon {
  display: block;
  object-fit: cover;
}

.app-icon-fallback {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 23, 19, 0.9);
  color: #fff;
  backdrop-filter: blur(16px);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.site-language {
  min-width: 132px;
  color: rgba(255, 255, 255, 0.62);
}

.site-language select {
  height: 42px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-menu {
  position: relative;
  min-width: 170px;
}

.language-menu summary {
  min-height: 42px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.75;
}

.language-menu summary span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.language-menu summary strong {
  font-size: 13px;
  white-space: nowrap;
}

.language-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, 82vw);
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111a15;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.language-menu-list a {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-radius: 7px;
  padding: 0 10px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.language-menu-list a:hover,
.language-menu-list a.active {
  background: rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-symbol {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: flex;
  align-items: baseline;
  min-width: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong {
  display: inline;
}

.brand-wordmark strong:last-child {
  margin-left: 1px;
  background: linear-gradient(90deg, #ff7a1a, #ffd33d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0f1713;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  padding: 9px 11px;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

main {
  padding: 28px;
}

.hero,
.section-block,
.split-section,
.industry-section,
.seo-static-links,
body > footer {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.view {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: end;
  min-height: 520px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(15, 23, 19, 0.96), rgba(15, 23, 19, 0.74) 54%, rgba(15, 23, 19, 0.42)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 92px),
    linear-gradient(135deg, #0f1713, #24321d 62%, #44331f);
  color: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 32px 0 18px;
}

.seo-static-links {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 30px;
}

.seo-static-links h2 {
  margin: 0;
  font-size: 24px;
}

.seo-static-links h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.seo-static-links ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-static-links a {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-decoration-color: rgba(47, 125, 85, 0.35);
  text-underline-offset: 3px;
}

.seo-static-links a:hover {
  color: var(--accent-dark);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.98;
  color: #fff;
  text-wrap: balance;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  text-wrap: balance;
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 112px;
  gap: 10px;
  max-width: 850px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
}

textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
}

.search-shell button {
  align-self: end;
  height: 48px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.quick-links button {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.featured-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.97);
  color: var(--ink);
  padding: 16px;
  box-shadow: var(--shadow);
}

.featured-poster,
.poster-art {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  min-height: 0;
  border-radius: 6px;
  background:
    linear-gradient(150deg, rgba(15, 23, 19, 0.1), rgba(15, 23, 19, 0.5)),
    var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
  color: #fff;
  padding: 12px;
  font-weight: 900;
}

.featured-poster {
  min-height: 222px;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.featured-poster:hover {
  transform: translateY(-1px);
}

.featured-poster > span:not(.poster-fallback),
.poster-art > span:not(.poster-fallback) {
  position: relative;
  z-index: 4;
  align-self: start;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
}

.featured-poster::after,
.poster-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
  content: "";
  z-index: 1;
}

.featured-poster > img[data-cover-img],
.poster-art > img[data-cover-img] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 19, 0.72);
  object-fit: contain;
  z-index: 3;
}

.poster-frame {
  position: relative;
  overflow: hidden;
}

.poster-frame > img[data-cover-img] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 19, 0.72);
  object-fit: cover;
  z-index: 3;
}

.detail-poster > img[data-cover-img] {
  object-fit: contain;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(15, 23, 19, 0.04), rgba(15, 23, 19, 0.72)),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 34%),
    var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
  color: #fff;
  padding: 12px;
}

.poster-fallback-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.poster-fallback-icon {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-radius: 9px;
  object-fit: cover;
}

.poster-fallback-mark span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 19, 0.72);
  color: #fff;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 950;
}

.poster-fallback-mark .poster-fallback-abbr-only {
  position: static;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 19, 0.1);
  font-size: 13px;
}

.poster-fallback strong,
.poster-fallback small {
  display: block;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.32);
}

.poster-fallback strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.poster-fallback small {
  opacity: 0.82;
  font-size: 11px;
  line-height: 1.25;
}

.poster-fallback-mini,
.poster-fallback-similar,
.poster-fallback-app-card,
.poster-fallback-app-list {
  align-content: center;
  justify-items: center;
  padding: 6px;
  text-align: center;
}

.poster-fallback-mini .poster-fallback-mark,
.poster-fallback-similar .poster-fallback-mark,
.poster-fallback-app-card .poster-fallback-mark,
.poster-fallback-app-list .poster-fallback-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.poster-fallback-mini strong,
.poster-fallback-mini small,
.poster-fallback-similar strong,
.poster-fallback-similar small,
.poster-fallback-app-card strong,
.poster-fallback-app-card small,
.poster-fallback-app-list strong,
.poster-fallback-app-list small {
  display: none;
}

.featured-copy {
  display: grid;
  gap: 12px;
}

.featured-copy .eyebrow {
  color: var(--accent);
}

.featured-copy h2 {
  font-size: 26px;
}

.featured-title-link {
  display: -webkit-box;
  width: fit-content;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-title-link:hover {
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.featured-copy p,
.section-head p,
.industry-section p,
.timeline span {
  color: var(--muted);
  line-height: 1.55;
}

.featured-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#watchMeta {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.score-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.score-row span {
  color: var(--accent-dark);
  font-size: 42px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.watch-apps,
.tag-row,
.language-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-apps span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

.full-width {
  width: 100%;
}

.section-block {
  margin-top: 34px;
}

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

.section-head p {
  max-width: 460px;
}

.section-head .eyebrow {
  color: var(--accent);
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.58);
  padding: 12px;
}

.shelf-tabs,
.app-filter,
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-filter,
.category-filter {
  min-width: 0;
}

.shelf-tabs button,
.app-filter button,
.category-filter button {
  min-height: 36px;
  background: rgba(255, 253, 250, 0.74);
}

.shelf-tabs button.active,
.app-filter button.active,
.category-filter button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.filter-group {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.filter-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.filter-group > span {
  padding-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.filter-control {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.filter-control select {
  height: 38px;
  min-width: 0;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.filter-chips button {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.filter-chips a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.filter-chips a:hover {
  border-color: rgba(47, 125, 85, 0.35);
  background: #f7f3e8;
}

.filter-chips small {
  color: inherit;
  opacity: 0.68;
  font-size: 11px;
  font-weight: 800;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.active-filter-summary strong {
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 6px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 6px 8px;
  font-size: 12px;
}

.active-filter-summary button {
  min-height: 30px;
  margin-left: auto;
  padding: 0 10px;
  font-size: 12px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 14px;
  align-items: start;
}

.poster-grid[data-home-random-grid] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.drama-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 9px;
  cursor: pointer;
  border-radius: 8px;
  padding-bottom: 4px;
}

.drama-card-poster-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.drama-card.selected .poster-art {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.drama-card strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.35em;
  font-size: 14px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drama-card a {
  color: inherit;
  text-decoration: none;
}

.drama-card a:hover,
.drama-card a:focus-visible {
  color: var(--accent);
}

.drama-card p,
.drama-card small,
.review-card p,
.review-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.drama-card small + small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}

.rank-score {
  width: fit-content;
  border-radius: 5px;
  background: #fff3cf;
  color: #7a5a12 !important;
  padding: 3px 6px;
  font-weight: 800;
}

.app-shelves-section {
  display: grid;
  gap: 18px;
}

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

.app-shelf {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.app-shelf-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.app-shelf-head > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.app-shelf h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.app-shelf h3 a {
  color: inherit;
  text-decoration: none;
}

.app-shelf h3 a:hover {
  color: var(--accent);
}

.app-shelf-head p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.app-shelf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.app-shelf-stats span {
  display: grid;
  min-width: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}

.app-shelf-stats strong {
  color: var(--ink);
  font-size: 16px;
}

.shelf-drama-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shelf-drama-card {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  height: auto;
  min-height: 104px;
  border: 1px solid rgba(20, 26, 22, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
  padding: 9px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20, 26, 22, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.shelf-drama-card:hover {
  border-color: rgba(47, 125, 85, 0.3);
  box-shadow: 0 14px 34px rgba(20, 26, 22, 0.09);
  transform: translateY(-1px);
}

.mini-poster {
  width: 66px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--poster-bg);
}

.mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-drama-list a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 88px;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: #fffdf8;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}

.app-drama-list a:hover {
  border-color: rgba(47, 125, 85, 0.24);
  background: #f7f3e8;
}

.app-drama-list a strong,
.app-drama-list a small {
  display: block;
}

.app-drama-list a small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.shelf-drama-card strong,
.shelf-drama-card small {
  display: block;
}

.shelf-drama-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shelf-drama-card small {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(47, 125, 85, 0.16);
  border-radius: 999px;
  background: #e7f1eb;
  padding: 4px 7px;
  color: var(--accent-dark);
  line-height: 1.25;
  font-size: 11px;
  font-weight: 850;
}

.new-drama-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.new-drama-strip > strong {
  color: var(--accent-dark);
}

.new-drama-strip a {
  display: inline-flex;
  min-height: 34px;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(47, 125, 85, 0.24);
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.new-drama-strip span {
  color: var(--muted);
  font-size: 12px;
}

.card-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.rating {
  min-width: 42px;
  border: 1px solid rgba(47, 125, 85, 0.22);
  border-radius: 6px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 4px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rating-panel {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 8px 0 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.rating-panel span {
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.rating-panel small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

.card-meta {
  margin-bottom: 5px;
}

.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 23px;
  margin: 6px 0;
}

.genre-row span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 5px;
  background: #f7f3e8;
  color: var(--muted);
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.drama-detail {
  display: grid;
  gap: 18px;
}

.back-link {
  width: fit-content;
  min-height: 34px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 26px;
  box-shadow: var(--shadow);
}

.detail-poster {
  display: grid;
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(15, 23, 19, 0.1), rgba(15, 23, 19, 0.52)),
    var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
}

.detail-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(15, 23, 19, 0.72);
}

.detail-poster span {
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: start;
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 900;
}

.detail-main {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 100%;
}

.detail-main h1 {
  color: var(--ink);
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.08;
  text-wrap: balance;
}

.detail-main p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

#detailDescription {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.detail-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.detail-score-row div {
  border: 1px solid rgba(47, 125, 85, 0.14);
  border-radius: 8px;
  background: #f7fbf6;
  padding: 10px 12px;
}

.detail-score-row strong,
.detail-score-row span {
  display: block;
}

.detail-score-row strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-score-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.recommendation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 8px;
  background: #f3faf6;
  padding: 12px 14px;
}

.recommendation-panel strong,
.recommendation-panel span {
  display: block;
}

.recommendation-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recommendation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-buttons button {
  min-height: 38px;
}

.recommendation-buttons button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.recommendation-buttons button[data-recommendation="not-recommend"].active {
  border-color: #8f3b3b;
  background: #8f3b3b;
}

.detail-tags,
.detail-app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 6px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collect-feedback,
.review-feedback {
  max-width: 560px;
  margin: 10px 0 0;
  border: 1px solid rgba(47, 125, 85, 0.22);
  border-radius: 8px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
}

.review-feedback {
  max-width: none;
  margin: 0 0 10px;
}

.where-watch {
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(47, 125, 85, 0.16);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.where-watch h3 {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.1;
}

.where-watch > div:first-child {
  align-self: stretch;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.where-watch p:last-child {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.watch-landing {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.watch-landing-hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.watch-landing-poster {
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.watch-landing-copy {
  display: grid;
  gap: 14px;
}

.watch-landing-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
  text-wrap: balance;
}

.watch-landing-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.watch-landing-app {
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 244, 0.88);
  padding: 8px 10px;
}

.watch-landing-app strong,
.watch-landing-app small {
  display: block;
}

.watch-landing-app small {
  color: var(--muted);
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.platform-button {
  display: inline-grid;
  min-width: 150px;
  min-height: 54px;
  align-content: center;
  justify-content: start;
  text-align: left;
}

.platform-button strong,
.platform-button span {
  display: block;
}

.platform-button span {
  color: var(--muted);
  font-size: 12px;
}

.platform-button.selected {
  border-color: rgba(47, 125, 85, 0.52);
  background: #e7f1eb;
}

.watch-landing-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.watch-landing-note {
  font-size: 12px;
}

.watch-landing-player {
  margin-top: 18px;
}

.detail-app-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 66px;
  border-color: rgba(47, 125, 85, 0.35);
  background: #fff;
  padding: 9px 11px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(47, 125, 85, 0.35);
  border-radius: 8px;
}

.detail-app-list a:first-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 125, 85, 0.18);
}

.detail-app-list a:hover {
  transform: translateY(-1px);
}

.detail-app-list a:first-child small {
  color: rgba(255, 255, 255, 0.78);
}

.watch-app-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  object-fit: cover;
}

.detail-app-list strong,
.detail-app-list span,
.detail-app-list small {
  display: block;
}

.detail-app-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.detail-main-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-panel {
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

.detail-review-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.free-player-panel {
  display: grid;
  gap: 12px;
  box-shadow: none;
}

.free-player-panel .section-head {
  margin-bottom: 0;
}

.free-player-panel .section-head > span {
  align-self: start;
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 999px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.free-player-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 8px;
  background: #0f1713;
  padding: 12px;
}

.free-player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #050706;
  max-height: min(68vh, 620px);
  object-fit: contain;
}

.free-player-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  color: #fff;
}

.free-player-meta strong,
.free-player-meta small {
  display: block;
}

.free-player-meta strong {
  font-size: 18px;
  line-height: 1.2;
}

.free-player-meta small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.35;
}

.free-episode-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}

.free-episode-strip a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(20, 26, 22, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: inherit;
  padding: 9px 10px;
  text-decoration: none;
}

.free-episode-strip a.active {
  border-color: rgba(47, 125, 85, 0.42);
  background: #e7f1eb;
}

.free-episode-strip a.continue {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.free-episode-strip a.continue span {
  color: rgba(255, 255, 255, 0.82);
}

.free-episode-strip span,
.free-episode-strip strong {
  display: block;
}

.free-episode-strip span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.free-episode-strip strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-review-card {
  min-height: 0;
}

.detail-review-list .user-review-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.detail-review-list .review-card-head {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
}

.review-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.review-main p {
  margin: 0;
}

.review-side {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.stance-pill {
  border-radius: 999px;
  background: #f7f3e8;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.stance-pill.recommend {
  background: #e7f1eb;
  color: var(--accent-dark);
}

.stance-pill.neutral {
  background: #fff3cf;
  color: #7a5a12;
}

.stance-pill.not-recommend {
  background: #f6e8e5;
  color: #8f3b3b;
}

.user-review-card small {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.detail-review-list .user-review-card small {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
}

.user-review-card small span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.review-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 2px;
}

.detail-review-list .review-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.review-actions button,
.review-reply-composer button {
  border: 1px solid rgba(20, 26, 22, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 34px;
  padding: 0 12px;
  font-weight: 900;
  cursor: pointer;
}

.review-actions button:hover,
.review-reply-composer button:hover {
  border-color: rgba(31, 111, 74, 0.35);
  color: var(--accent-dark);
}

.review-reply-composer {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 26, 22, 0.1);
  padding: 10px;
}

.detail-review-list .review-reply-composer,
.detail-review-list .review-replies {
  grid-column: 1;
}

.review-reply-composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(20, 26, 22, 0.14);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.review-reply-composer > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.review-reply-composer span {
  color: #8f3b3b;
  font-size: 12px;
  font-weight: 800;
}

.review-replies {
  display: grid;
  gap: 8px;
  border-left: 2px solid rgba(20, 26, 22, 0.1);
  margin-top: 2px;
  padding-left: 12px;
}

.detail-review-list .review-replies {
  grid-template-columns: 1fr;
}

.review-reply {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(247, 243, 232, 0.7);
  padding: 10px;
}

.review-reply strong {
  font-size: 13px;
  line-height: 1.2;
}

.review-reply p {
  margin: 0;
  color: var(--ink);
}

.review-reply span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.similar-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.similar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.similar-head h3 {
  margin: 0;
}

.similar-head button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.similar-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: auto;
  min-height: 76px;
  padding: 8px;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.similar-poster {
  display: block;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  background: var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
}

.similar-poster-fallback {
  display: grid;
  width: 48px;
  height: 64px;
  place-items: center;
  border-radius: 6px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.similar-list strong,
.similar-list small {
  display: block;
}

.similar-list small {
  margin-top: 4px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.split-section article,
.reviews-section,
.industry-section {
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.split-section .eyebrow,
.reviews-section .eyebrow,
.industry-section .eyebrow {
  color: var(--accent);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline div {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.timeline strong,
.timeline span {
  display: block;
}

.language-cloud {
  margin-top: 18px;
}

.language-cloud button {
  background: #fffdf8;
}

.language-note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seo-link-row a {
  border: 1px solid rgba(47, 125, 85, 0.24);
  border-radius: 999px;
  color: var(--accent-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.seo-link-row a:hover,
.seo-link-row a:focus-visible {
  border-color: var(--accent);
  background: rgba(47, 125, 85, 0.08);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 22px;
}

.empty-state p {
  margin-top: 6px;
  color: var(--muted);
}

.error-state {
  border-color: rgba(143, 59, 59, 0.34);
  background: #fff7f5;
}

.error-state strong {
  color: #8f3b3b;
}

.error-state button {
  margin-top: 14px;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card .poster-art,
.skeleton-card strong,
.skeleton-card p {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(90deg, #ece8dc, #fffaf0, #ece8dc);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.35s ease-in-out infinite;
}

.skeleton-card strong {
  width: 84%;
  height: 17px;
  min-height: 17px;
}

.skeleton-card p {
  width: 68%;
  height: 13px;
  margin-top: 9px;
}

.skeleton-card p:last-child {
  width: 48%;
}

@keyframes skeleton-pulse {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.review-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px 16px;
}

.review-card strong {
  line-height: 1.25;
}

.review-card > strong,
.review-card > p,
.review-card > small {
  max-width: 920px;
}

.detail-review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-review-list .user-review-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(180px, 0.24fr);
  gap: 12px 14px;
  align-items: start;
  width: 100%;
}

.detail-review-list .review-card-head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  justify-content: start;
  gap: 7px;
}

.detail-review-list .review-main {
  grid-column: 2;
  grid-row: 1;
}

.detail-review-list .review-side {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  justify-content: stretch;
  gap: 8px;
}

.detail-review-list .review-side small {
  display: grid;
  gap: 4px;
  text-align: left;
}

.detail-review-list .review-actions {
  justify-content: flex-start;
}

.detail-review-list .review-replies {
  grid-column: 2 / -1;
  grid-row: 2;
}

.stars {
  color: var(--gold);
  letter-spacing: 0;
}

.industry-section {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.app-ranking-head {
  margin-bottom: 2px;
}

.app-rank-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.ranking-detail-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.62);
  padding: 12px;
}

.ranking-detail-table summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 800;
}

.ranking-detail-table table {
  margin-top: 12px;
}

.app-rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(220px, 0.85fr) minmax(390px, 1.15fr);
  gap: 14px 16px;
  align-items: start;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-rank-card:hover,
.app-rank-card.selected {
  border-color: rgba(47, 125, 85, 0.45);
  box-shadow: 0 18px 54px rgba(23, 28, 24, 0.12);
  transform: translateY(-1px);
}

.app-rank-card a,
.product-name {
  color: inherit;
  text-decoration: none;
}

.app-rank-card a:hover,
.product-name:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-rank-identity {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  padding-top: 4px;
}

.rank-badge {
  position: absolute;
  z-index: 1;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111813;
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 24, 19, 0.18);
}

.app-rank-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 26, 22, 0.10);
}

.app-rank-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-rank-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.app-rank-main h2,
.app-rank-main h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.12;
}

.app-rank-main p,
.app-rank-focus,
.app-rank-preview small {
  color: var(--muted);
  line-height: 1.45;
}

.app-rank-score {
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3e8;
  padding: 8px;
  text-align: center;
}

.app-rank-score strong,
.app-rank-score span {
  display: block;
}

.app-rank-score strong {
  font-size: 21px;
}

.app-rank-score span {
  color: var(--muted);
  font-size: 11px;
}

.app-rank-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 6px;
  align-self: center;
}

.app-rank-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 249, 244, 0.88);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.22;
}

.app-rank-metrics strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.05;
}

.app-featured-dramas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  min-width: 0;
}

.app-featured-dramas > div {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.54);
  padding: 10px;
}

.app-featured-dramas > div:first-child {
  padding-top: 10px;
}

.app-featured-dramas > strong,
.app-featured-dramas > div > strong {
  color: var(--accent-dark);
  font-size: 13px;
}

.app-card-drama-list {
  display: grid;
  gap: 7px;
}

.app-card-drama-list a,
.app-featured-dramas > a,
.app-featured-dramas > div > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  height: auto;
  min-height: 50px;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  padding: 5px;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.app-card-drama-list a:hover,
.app-featured-dramas > a:hover,
.app-featured-dramas > div > a:hover {
  border-color: rgba(47, 125, 85, 0.28);
  background: #fffdf8;
}

.app-card-poster {
  display: block;
  width: 34px;
  height: 46px;
  border-radius: 6px;
  background: var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
  overflow: hidden;
}

.app-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-featured-dramas .mini-poster {
  width: 34px;
  height: 46px;
  border-radius: 6px;
}

.app-card-drama-list b,
.app-card-drama-list small,
.app-featured-dramas > a strong,
.app-featured-dramas > a small,
.app-featured-dramas > div > a strong,
.app-featured-dramas > div > a small {
  display: block;
}

.app-card-drama-list b,
.app-featured-dramas > a strong,
.app-featured-dramas > div > a strong {
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-drama-list small,
.app-featured-dramas > a small,
.app-featured-dramas > div > a small,
.app-drama-placeholder {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.app-drama-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.app-rank-preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.app-rank-preview img,
.app-rank-preview > span {
  width: 48px;
  height: 66px;
  border-radius: 6px;
}

.app-rank-preview img {
  object-fit: cover;
}

.app-rank-preview > span {
  display: grid;
  place-items: center;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-weight: 850;
}

.guides-section {
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.account-section {
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.guides-section .eyebrow {
  color: var(--accent);
}

.account-section .eyebrow {
  color: var(--accent);
}

.guide-tools {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.62);
  padding: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-list-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.guide-list-summary strong {
  color: var(--ink);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 4px;
}

.pagination a,
.pagination strong,
.pagination .disabled {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pagination a:hover {
  border-color: rgba(47, 125, 85, 0.35);
  background: #f7f3e8;
  color: var(--accent-dark);
}

.pagination strong {
  border-color: rgba(47, 125, 85, 0.42);
  background: #0f1713;
  color: #fff;
}

.pagination .disabled {
  color: rgba(88, 95, 87, 0.55);
}

.help-section {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.help-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.help-type-row button,
.help-type-row a {
  min-height: 36px;
  border-radius: 999px;
}

.help-type-row a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 0 13px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.help-type-row a:hover {
  border-color: rgba(47, 125, 85, 0.35);
  background: #f7f3e8;
}

.help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.help-list article {
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.help-list span {
  width: fit-content;
  border-radius: 5px;
  background: #fff3cf;
  color: #7a5a12;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.help-list h4 {
  margin: 0;
  line-height: 1.28;
}

.help-list p {
  color: var(--muted);
  line-height: 1.55;
}

.help-list small {
  color: var(--muted);
}

.guide-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 150px;
  gap: 8px 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 14px;
}

.guide-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  grid-row: 1 / span 4;
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 12px;
  background: linear-gradient(145deg, #f6f0df, #fffdf8);
  box-shadow: 0 10px 22px rgba(20, 26, 22, 0.08);
  color: var(--accent-dark);
  text-decoration: none;
}

.guide-card-icon-topic span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #123823;
  color: #fffdf8;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.guide-card-app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.guide-card-icon .app-icon-fallback {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  font-size: 12px;
}

.guide-card-labels {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 6px;
}

.guide-card-labels span,
.guide-card > span {
  width: fit-content;
  border-radius: 5px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.guide-card-labels span + span {
  background: #fff3cf;
  color: #7a5a12;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.guide-card h2 a,
.guide-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card h2 a:hover,
.guide-card h3 a:hover {
  color: var(--accent-dark);
}

.guide-card p,
.guide-card small {
  color: var(--muted);
  line-height: 1.5;
}

.guide-card small {
  font-size: 12px;
}

.guide-keywords,
.article-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-card .guide-keywords {
  grid-column: 2;
}

.guide-keywords span,
.article-tag-list span {
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 999px;
  background: #f7f3e8;
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
}

.guide-card footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  grid-column: 3;
  grid-row: 1 / span 4;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.account-state-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.account-state-switch button,
.account-state-switch a {
  min-height: 36px;
}

.account-state-switch a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
}

.account-state-switch button.active,
.account-state-switch a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.auth-panel,
.profile-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}

.auth-panel h2 {
  max-width: 680px;
}

.auth-panel > p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.center-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.center-feature-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3e8;
  padding: 12px;
}

.center-feature-grid strong,
.center-feature-grid span {
  display: block;
}

.center-feature-grid span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.oauth-box {
  max-width: 680px;
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.oauth-box h3 {
  margin: 0;
  font-size: 20px;
}

.oauth-box p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.oauth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 14px;
}

.oauth-button {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  font-weight: 800;
}

.oauth-button span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
}

.oauth-button.google {
  border-color: rgba(20, 26, 22, 0.16);
  background: #fff;
}

.oauth-button.facebook {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.oauth-permissions {
  max-width: 640px;
  margin-top: 14px;
}

.auth-message {
  max-width: 520px;
  margin-top: 12px;
  border: 1px solid rgba(47, 125, 85, 0.2);
  border-radius: 8px;
  background: #e7f1eb;
  color: var(--accent-dark);
  padding: 10px 12px;
  line-height: 1.5;
}

.email-login-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.email-login-form label {
  display: grid;
  gap: 6px;
}

.email-login-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
}

.auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inline-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.inline-checkbox input {
  min-height: auto;
}

.signed-in-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.signed-in-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff2e78, #ff6a1a 52%, #ffd33d);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.signed-in-head h2 {
  margin-bottom: 6px;
}

.signed-in-head p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-form h3 {
  margin: 0;
  font-size: 18px;
}

.profile-form label {
  display: grid;
  gap: 8px;
}

.profile-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 12px;
}

.signed-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.profile-head > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.profile-head h3 {
  margin: 0;
  font-size: 22px;
}

.profile-head p {
  margin-top: 4px;
  color: var(--muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.profile-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3e8;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.profile-stats strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

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

.permission-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.permission-list strong,
.permission-list span {
  display: block;
}

.permission-list span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.account-next-steps {
  display: grid;
  gap: 8px;
}

.account-next-steps strong {
  color: var(--accent-dark);
}

.account-next-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3e8;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
}

.account-mode-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 12px;
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 8px;
  background: #eef6f1;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.account-mode-note strong {
  color: var(--accent-dark);
}

.selected-app-panel {
  margin-top: 22px;
  border: 1px solid rgba(47, 125, 85, 0.2);
  border-radius: 8px;
  background: #f9f5ea;
  padding: 16px;
}

.selected-app-panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.selected-app-panel p {
  margin-top: 8px;
}

.app-stats {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}

.app-stats span,
.app-stats a {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.app-stats span {
  color: var(--muted);
}

.app-stats a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.app-detail-intro {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.app-detail-summary {
  margin-bottom: 18px;
}

.app-info-panel {
  box-shadow: none;
}

.app-info-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.app-info-title h3 {
  margin: 0;
}

.app-info-panel .app-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-info-panel .app-stats span,
.app-info-panel .app-stats a {
  border-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 10px;
}

.app-detail-grid {
  display: grid;
}

.app-dramas-panel {
  box-shadow: var(--shadow);
}

.app-dramas-panel .app-drama-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-dramas-panel .app-drama-item {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 118px;
}

.app-dramas-panel .app-drama-poster {
  width: 72px;
  height: 96px;
}

.app-detail-drama-groups {
  display: grid;
  gap: 22px;
}

.app-detail-drama-groups > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.app-detail-drama-groups > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.mini-section-title strong {
  font-size: 18px;
}

.mini-section-title span {
  color: var(--muted);
  font-size: 12px;
}

.app-detail-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-weight: 900;
}

.app-icon-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.industry-actions label {
  min-width: 280px;
}

.industry-table-wrap {
  min-width: 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
}

tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

tbody tr:hover,
tbody tr.selected {
  background: #e7f1eb;
}

.product-name {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.abbr {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  object-fit: cover;
}

.app-drama-block {
  margin-top: 22px;
}

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

.section-head.compact h3 {
  margin: 0;
  font-size: 22px;
}

.app-drama-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-drama-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: auto;
  min-height: 92px;
  border-color: rgba(20, 26, 22, 0.1);
  background: #fffdf8;
  padding: 8px;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.app-drama-item:hover {
  background: #f7f3e8;
}

.app-drama-poster {
  display: block;
  width: 54px;
  height: 76px;
  border-radius: 6px;
  background: var(--poster-bg, linear-gradient(145deg, #19351f, #7a2f3a));
}

.app-drama-item strong {
  display: block;
  line-height: 1.2;
}

.app-drama-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.page-intro {
  margin-bottom: 18px;
}

.page-intro h2 {
  margin-bottom: 8px;
}

.page-intro p:last-child {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}

.workflow-section,
.app-detail,
.guide-detail {
  border-radius: 10px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.guide-detail {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.form-layout,
.account-feature-pages {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
}

.account-feature-pages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-wide-panel {
  grid-column: span 3;
}

.settings-note {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-review-list,
.interaction-feed {
  display: grid;
  gap: 10px;
}

.account-review-item,
.interaction-feed article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.account-review-item strong,
.interaction-feed strong {
  display: block;
  margin: 4px 0 6px;
}

.account-review-item p,
.interaction-feed p {
  color: var(--ink);
  line-height: 1.55;
}

.account-review-item small,
.interaction-feed small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.account-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.interaction-feed article {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.feed-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(20, 26, 22, 0.22);
}

.feed-dot.unread {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(47, 125, 85, 0.12);
}

.review-form,
.workflow-panel,
.article-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  padding: 18px;
}

.review-form {
  display: grid;
  gap: 14px;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.rating-buttons,
.checkbox-grid,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-recommendation-buttons {
  margin-top: 4px;
}

.rating-buttons button {
  width: 46px;
  min-height: 46px;
  padding: 0;
}

.rating-buttons button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.checkbox-grid label {
  display: flex;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
}

.checkbox-grid input {
  width: auto;
  height: auto;
}

.detail-stats {
  margin: 12px 0 16px;
}

.article-shell {
  max-width: 900px;
}

.guide-detail .article-shell {
  max-width: none;
  width: 100%;
  margin-inline: auto;
}

.article-shell h1 {
  max-width: 840px;
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.article-shell h2 {
  margin: 24px 0 10px;
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.28;
}

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

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
}

.article-body {
  display: grid;
  gap: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.guide-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

.article-main-flow {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.guide-app-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f3e8 100%);
  padding: 16px;
  box-shadow: 0 16px 34px rgba(20, 26, 22, 0.08);
}

.guide-app-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 26, 22, 0.12);
  overflow: hidden;
}

.guide-app-icon img,
.guide-app-icon .app-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.guide-app-panel h2 {
  margin: 2px 0 6px;
  font-size: 24px;
  line-height: 1.16;
}

.guide-app-panel h2 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-app-panel h2 a:hover {
  color: var(--accent-dark);
}

.guide-app-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.guide-app-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-app-stats span {
  border: 1px solid rgba(20, 26, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.guide-app-stats span:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.guide-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-app-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(20, 26, 22, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.guide-app-actions a:hover {
  border-color: rgba(47, 125, 85, 0.35);
  color: var(--accent-dark);
}

.article-body h3 {
  margin: 10px 0 2px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
}

.article-body p {
  max-width: 820px;
}

.article-body ul,
.article-body ol {
  margin: 0;
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 7px;
}

.article-body a {
  color: var(--accent-dark);
  font-weight: 700;
}

.mini-table td {
  white-space: normal;
}

.form-row label {
  min-width: 180px;
  flex: 1;
}

/* Whole-site visual polish: static-first pages keep their HTML, this layer upgrades material, rhythm and scanability. */
.site-header {
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 17, 14, 0.9);
  box-shadow: 0 14px 40px rgba(10, 15, 12, 0.16);
}

.nav a,
button,
.button-link,
.filter-chips a,
.new-drama-strip a,
.guide-app-actions a {
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

button.primary,
.button-link.primary {
  box-shadow: 0 10px 24px rgba(39, 115, 79, 0.22);
}

button.primary:hover,
.button-link.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(22, 74, 50, 0.26);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(10, 17, 13, 0.97), rgba(18, 38, 28, 0.88) 56%, rgba(58, 48, 28, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 104px),
    #0d1511;
  box-shadow: 0 28px 88px rgba(9, 14, 11, 0.24);
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
  content: "";
}

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

.hero-copy h1,
.page-intro h1,
.page-intro h2,
.section-head h1,
.section-head h2,
.article-shell h1 {
  letter-spacing: -0.03em;
}

main h1,
main h2 {
  color: var(--ink);
}

.hero h1,
.hero h2 {
  color: #fff;
}

.section-head {
  align-items: flex-start;
  border-bottom: 1px solid rgba(19, 25, 21, 0.08);
  padding-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1;
}

.section-head p,
.page-intro p:last-child,
.article-body p {
  text-wrap: pretty;
}

.library-tools,
.guides-section,
.account-section,
.workflow-section,
.app-detail,
.guide-detail,
.detail-panel,
.review-form,
.workflow-panel,
.article-shell,
.ranking-detail-table {
  border-color: rgba(19, 25, 21, 0.1);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: var(--shadow-soft);
}

.app-shelf,
.app-rank-card,
.guide-card,
.review-card,
.help-list article,
.empty-state,
.selected-app-panel,
.app-info-panel,
.app-dramas-panel {
  border-color: rgba(19, 25, 21, 0.09);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 10px 28px rgba(18, 26, 21, 0.055);
}

.app-shelf:hover,
.guide-card:hover,
.review-card:hover {
  border-color: rgba(39, 115, 79, 0.2);
  box-shadow: 0 18px 46px rgba(18, 26, 21, 0.08);
}

.poster-art,
.featured-poster,
.detail-poster,
.mini-poster,
.app-card-poster,
.app-drama-poster,
.similar-poster {
  box-shadow: 0 14px 28px rgba(11, 17, 14, 0.16);
}

.poster-grid {
  gap: 24px 16px;
}

.drama-card {
  transition: transform 180ms ease;
}

.drama-card:hover {
  transform: translateY(-2px);
}

.drama-card:hover .poster-art,
.shelf-drama-card:hover .mini-poster,
.app-card-drama-list a:hover .app-card-poster,
.app-featured-dramas > a:hover .mini-poster,
.app-featured-dramas > div > a:hover .app-card-poster {
  box-shadow: 0 18px 36px rgba(11, 17, 14, 0.2);
}

.eyebrow {
  letter-spacing: 0.08em;
}

.score-row span,
.rating-panel span,
.app-rank-score strong,
.detail-score-row strong,
.app-shelf-stats strong,
.app-rank-metrics strong {
  font-variant-numeric: tabular-nums;
}

.rank-score,
.genre-row span,
.guide-card-labels span,
.article-tag-list span,
.guide-keywords span,
.watch-apps span,
.tag-row span {
  border-radius: 7px;
}

.app-rank-grid {
  align-items: start;
}

.app-rank-card {
  grid-template-columns: 76px minmax(220px, 0.85fr) minmax(390px, 1.15fr);
  gap: 14px 16px;
}

.app-rank-card .rank-badge {
  top: auto;
  right: auto;
}

.app-rank-identity {
  grid-column: 1;
  grid-row: 1;
}

.app-rank-card > .app-rank-logo {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.app-rank-main {
  grid-column: 2;
  grid-row: 1;
}

.app-rank-metrics {
  grid-column: 3;
  grid-row: 1;
}

.app-featured-dramas {
  grid-column: 1 / -1;
  grid-row: 2;
}

.app-rank-main h2,
.app-rank-main h3 {
  max-width: none;
}

.app-rank-metrics span {
  background: rgba(247, 249, 244, 0.92);
}

.app-featured-dramas {
  border-top: 1px solid rgba(19, 25, 21, 0.08);
  padding-top: 12px;
}

.app-featured-dramas > strong,
.app-featured-dramas > div > strong {
  color: var(--ink);
}

.app-shelf {
  padding: 16px;
}

.shelf-drama-card {
  background: linear-gradient(180deg, #fffefa 0%, #f8faf5 100%);
}

.guide-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover {
  transform: translateY(-1px);
}

.guide-card > .guide-keywords {
  grid-column: 2;
}

.article-shell h1 {
  max-width: 980px;
}

.guide-app-panel {
  background: linear-gradient(180deg, #fffefa 0%, #f4f7f0 100%);
}

input,
select,
textarea {
  background: rgba(255, 254, 250, 0.96);
}

body > footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 24px 0 46px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-links a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.legal-page {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
  color: var(--ink);
}

.legal-page h1 {
  margin: 22px 0 20px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 0.96;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: 20px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-updated {
  margin-top: 36px;
  font-weight: 800;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(20, 26, 22, 0.1);
  margin-top: 34px;
  padding-top: 20px;
}

.legal-nav a {
  border: 1px solid rgba(20, 26, 22, 0.12);
  border-radius: 8px;
  color: var(--ink);
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 900;
}

.legal-nav a:hover {
  border-color: rgba(31, 111, 74, 0.36);
  color: var(--accent-dark);
}

.legal-action {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .site-header,
  .hero,
  .split-section,
  .industry-section,
  .account-layout,
  .form-layout,
  .account-feature-pages,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .seo-static-links ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-wide-panel {
    grid-column: auto;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-header > .primary {
    justify-self: start;
  }

  .header-actions {
    justify-content: start;
  }

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

  .poster-grid[data-home-random-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .review-list {
    grid-template-columns: 1fr;
  }

  .detail-review-list .user-review-card {
    grid-template-columns: 1fr;
  }

  .free-player-shell {
    grid-template-columns: 1fr;
  }

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

  .app-rank-grid {
    grid-template-columns: 1fr;
  }

  .app-rank-card {
    grid-template-columns: 80px minmax(0, 1fr) minmax(240px, 0.8fr);
  }

  .app-rank-main {
    grid-column: 2;
  }

  .app-rank-metrics {
    grid-column: 3;
  }

  .app-featured-dramas {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-featured-dramas > strong {
    grid-column: 1 / -1;
  }

  .app-info-panel .app-stats,
  .app-dramas-panel .app-drama-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .guide-app-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .seo-static-links ul {
    grid-template-columns: 1fr;
  }

  .seo-static-links a {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

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

  .brand small {
    display: none;
  }

  .nav {
    order: 3;
    gap: 4px;
    margin-inline: -12px;
    padding: 0 12px 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    white-space: nowrap;
  }

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

  .site-language {
    min-width: 0;
  }

  #loginEntryButton {
    min-width: 88px;
    padding: 0 10px;
  }

  main {
    padding: 12px;
  }

  .hero {
    min-height: auto;
    gap: 14px;
    padding: 14px;
  }

  .hero-copy {
    padding: 10px 0 2px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .article-shell h1 {
    font-size: 30px;
    line-height: 1.14;
  }

  .article-shell h2 {
    font-size: 20px;
  }

  h2 {
    font-size: 26px;
  }

  .search-shell {
    margin-top: 16px;
    padding: 8px;
  }

  .quick-links,
  .shelf-tabs,
  .help-type-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .quick-links::-webkit-scrollbar,
  .shelf-tabs::-webkit-scrollbar,
  .help-type-row::-webkit-scrollbar {
    display: none;
  }

  .quick-links button,
  .shelf-tabs button,
  .help-type-row button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .filter-chips {
    display: none;
  }

  .search-shell,
  .app-shelf-head,
  .recommendation-panel,
  .industry-actions,
  .guide-detail-layout,
  .guide-tools,
  .guide-grid,
  .help-list,
  .app-rank-grid,
  .app-rank-main,
  .app-rank-metrics,
  .app-detail-intro,
  .app-info-panel .app-stats,
  .guide-app-stats,
  .app-dramas-panel .app-drama-list,
  .profile-stats,
  .oauth-actions,
  .center-feature-grid,
  .account-review-item,
  .interaction-feed article,
  .detail-score-row,
  .detail-review-list,
  .app-drama-list,
  .shelf-drama-row,
  .shelf-drama-card {
    grid-template-columns: 1fr;
  }

  .featured-panel {
    display: none;
  }

  .detail-review-list .user-review-card,
  .detail-review-list .review-replies {
    grid-template-columns: 1fr;
  }

  .detail-review-list .review-card-head,
  .detail-review-list .user-review-card small,
  .review-side {
    justify-items: start;
    text-align: left;
  }

  .detail-review-list .review-reply-composer,
  .detail-review-list .review-replies {
    grid-column: 1;
  }

  .detail-review-list .review-actions {
    justify-content: flex-start;
  }

  .app-shelf-head {
    align-items: start;
    flex-direction: column;
  }

  .app-shelf-stats {
    justify-content: flex-start;
  }

  .app-info-title,
  .mini-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-item-actions {
    justify-content: flex-start;
  }

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

  .poster-art {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    padding: 7px;
  }

  .drama-card strong {
    min-height: auto;
    font-size: 13px;
  }

  .rating-panel {
    margin: 6px 0 5px;
    padding: 5px 0;
    align-items: flex-start;
  }

  .rating-panel span {
    font-size: 20px;
  }

  .rank-score,
  .drama-card p,
  .drama-card small {
    font-size: 11px;
  }

  .rank-score {
    display: none;
  }

  .genre-row {
    gap: 4px;
    margin: 5px 0;
  }

  .genre-row span {
    min-height: 18px;
    padding: 0 5px;
    font-size: 10px;
  }

  .library-tools,
  .guides-section,
  .account-section,
  .workflow-section,
  .app-detail,
  .guide-detail,
  .detail-panel {
    padding: 14px;
  }

  .guide-app-panel {
    padding: 14px;
  }

  .section-block {
    margin-top: 24px;
  }

  .app-shelf {
    padding: 12px;
  }

  .app-shelf h3,
  .selected-app-panel h3 {
    font-size: 20px;
  }

  .app-shelf-stats span {
    min-width: 0;
  }

  .shelf-drama-card {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 82px;
  }

  .mini-poster {
    width: 52px;
  }

  .new-drama-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .new-drama-strip > strong,
  .new-drama-strip a {
    flex: 0 0 auto;
  }

  .app-rank-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    min-height: auto;
    padding: 12px;
  }

  .app-rank-identity {
    gap: 6px;
  }

  .app-rank-logo {
    width: 46px;
    height: 46px;
  }

  .app-rank-main {
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-rank-main h3 {
    font-size: 18px;
  }

  .app-rank-score {
    min-width: 66px;
  }

  .app-rank-score strong {
    font-size: 20px;
  }

  .app-rank-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-featured-dramas {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .app-rank-metrics span {
    padding: 7px 6px;
  }

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

  .app-card-drama-list a {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 58px;
  }

  .app-card-poster {
    width: 38px;
    height: 50px;
  }

  .ranking-detail-table {
    overflow-x: auto;
  }

  .ranking-detail-table table {
    min-width: 720px;
  }

  .detail-hero {
    padding: 14px;
  }

  .detail-poster {
    width: min(190px, 100%);
  }

  .detail-main h1 {
    font-size: 28px;
  }

  .detail-main p {
    line-height: 1.55;
  }

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

  .where-watch {
    grid-template-columns: 1fr;
  }

  .where-watch > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 8px;
  }

  .detail-score-row div {
    padding: 10px 8px;
  }

  .detail-score-row strong {
    font-size: 22px;
  }

  .recommendation-buttons,
  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-app-list a {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 62px;
    padding: 8px;
  }

  .watch-app-icon {
    width: 38px;
    height: 38px;
  }

  .app-detail-intro {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .app-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .app-info-panel .app-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-dramas-panel .app-drama-list {
    grid-template-columns: 1fr;
  }

  .app-dramas-panel .app-drama-list a {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 96px;
  }

  .app-dramas-panel .app-drama-list a > span:last-child {
    min-width: 0;
  }

  .app-dramas-panel .app-drama-list a strong {
    overflow-wrap: anywhere;
    line-height: 1.22;
  }

  .app-dramas-panel .app-drama-list .mini-poster {
    width: 58px;
    height: 78px;
  }

  .app-dramas-panel .app-drama-item,
  .app-drama-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 96px;
  }

  .app-dramas-panel .app-drama-poster,
  .app-drama-poster {
    width: 58px;
    height: 78px;
  }

  .section-head,
  .filter-group,
  .filter-control,
  body > footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .active-filter-summary button {
    margin-left: 0;
  }

  .guide-tools {
    gap: 10px;
  }

  .guide-card,
  .help-list article,
  .review-card {
    padding: 13px;
  }

  .guide-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .guide-card-icon {
    width: 42px;
    height: 42px;
    grid-row: 1 / span 2;
  }

  .guide-card-icon-topic span,
  .guide-card-app-icon,
  .guide-card-icon .app-icon-fallback {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 15px;
  }

  .guide-card h2,
  .guide-card h3,
  .guide-card p,
  .guide-card small,
  .guide-card .guide-keywords {
    grid-column: 1 / -1;
  }

  .guide-card-labels,
  .guide-card footer {
    grid-column: 2;
    grid-row: auto;
  }

  .guide-card-labels span,
  .guide-card > span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .guide-card footer {
    grid-column: 1 / -1;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    text-align: left;
  }

  .account-review-item,
  .interaction-feed article {
    align-items: start;
  }

  .interaction-feed article {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .account-item-actions {
    width: 100%;
  }

  .account-item-actions button {
    flex: 1;
  }

  body > footer {
    gap: 8px;
    padding: 18px 0 34px;
    text-align: left;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-header .brand {
    min-width: 0;
  }

  .header-actions {
    display: contents;
  }

  .site-language {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-language summary,
  .site-language select {
    width: 100%;
  }

  #loginEntryButton {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    padding: 0 14px;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 3px;
    scroll-padding-inline: 12px;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav a[data-view="account"],
  .nav a[href*="/account/"] {
    display: none;
  }

  .app-rank-card {
    grid-template-columns: 50px minmax(0, 1fr) 78px;
    align-items: center;
    padding: 14px;
  }

  .app-rank-identity {
    grid-column: 1;
    grid-row: 1;
  }

  .app-rank-main {
    display: contents;
  }

  .app-rank-main > div:first-child {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }

  .app-rank-main h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 21px;
    line-height: 1.15;
  }

  .app-rank-main h2 a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }

  .app-rank-main p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .app-rank-score {
    grid-column: 3;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 7px 5px;
  }

  .app-rank-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .app-rank-metrics span {
    min-height: 48px;
    padding: 7px 6px;
    font-size: 10px;
  }

  .app-featured-dramas {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 12px;
  }

  .app-featured-dramas > div {
    gap: 7px;
  }

  .app-featured-dramas > div > a {
    min-height: 64px;
    padding: 7px;
  }

  .app-featured-dramas .mini-poster {
    width: 40px;
    height: 52px;
  }

  .app-featured-dramas > div > a strong {
    -webkit-line-clamp: 1;
  }

  .app-featured-dramas > div > a:nth-of-type(n + 2) {
    display: none;
  }

  .app-featured-dramas .app-drama-placeholder {
    min-height: 0;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.35;
  }

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

  .detail-score-row div {
    min-height: 76px;
  }

  .detail-score-row div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .detail-score-row strong {
    overflow-wrap: anywhere;
    font-size: 21px;
    line-height: 1.05;
  }

  .guide-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
  }

  .guide-card-icon {
    width: 38px;
    height: 38px;
  }

  .guide-card h2,
  .guide-card h3 {
    font-size: 17px;
  }

  .guide-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .guide-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .guide-card .guide-keywords {
    display: none;
  }

  .guide-card > small {
    display: none;
  }
}

@media (max-width: 420px) {
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-grid[data-home-random-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .app-rank-card {
    grid-template-columns: 48px minmax(0, 1fr) 70px;
    gap: 9px;
  }

  .app-rank-main h2 {
    font-size: 19px;
  }

  .app-rank-main p {
    font-size: 13px;
  }

  .app-rank-score strong {
    font-size: 18px;
  }

  .app-rank-score span {
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  .watch-landing {
    width: min(100% - 24px, 680px);
    padding: 28px 0 36px;
  }

  .watch-landing-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 14px;
  }

  .watch-landing-poster {
    width: min(220px, 72vw);
    min-height: 0;
    justify-self: center;
  }

  .watch-landing-copy h1 {
    font-size: 34px;
  }

  .platform-actions,
  .watch-landing-secondary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-actions .button-link,
  .watch-landing-secondary .button-link {
    width: 100%;
  }
}

.review-summary-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 164px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(20, 26, 22, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(39, 115, 79, 0.09), transparent 42%),
    #fffdf8;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(20, 26, 22, 0.07);
}

.review-summary-score {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 106px;
  border-radius: 8px;
  background: #0f1713;
  color: #fff;
  padding: 12px;
}

.review-summary-score strong {
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.review-summary-score .stars {
  color: #f2c35f;
  font-size: 13px;
}

.review-summary-score small,
.review-summary-copy p,
.review-summary-meter span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-summary-score small {
  color: rgba(255, 255, 255, 0.72);
}

.review-summary-copy {
  display: grid;
  gap: 5px;
}

.review-summary-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

.review-summary-copy p {
  max-width: 58ch;
  margin: 0;
}

.review-summary-meter {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.review-summary-meter strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.review-summary-meter div {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 26, 22, 0.09);
}

.review-summary-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7c9f4b);
}

.detail-review-list {
  gap: 14px;
  margin-top: 14px;
}

.detail-review-list .user-review-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border-color: rgba(20, 26, 22, 0.09);
  background: #fffdf8;
  padding: 15px;
  box-shadow: 0 10px 26px rgba(20, 26, 22, 0.055);
}

.detail-review-list .review-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-column: auto;
  grid-row: auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 900;
}

.review-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-identity strong,
.review-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-identity strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.review-identity small {
  color: var(--muted);
  font-size: 12px;
}

.review-rating {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.review-rating .stars {
  font-size: 13px;
  white-space: nowrap;
}

.detail-review-list .review-main {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
}

.detail-review-list .review-main strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.detail-review-list .review-main p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.detail-review-list .review-side {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  justify-content: flex-end;
  min-width: 0;
  border-top: 1px solid rgba(20, 26, 22, 0.08);
  padding-top: 10px;
}

.detail-review-list .review-replies,
.detail-review-list .review-reply-composer {
  grid-column: auto;
  grid-row: auto;
}

.detail-review-list .review-replies {
  display: grid;
  gap: 8px;
  border-left: 2px solid rgba(39, 115, 79, 0.16);
  margin-left: 52px;
  padding-left: 12px;
}

.detail-review-list .review-reply {
  border-color: rgba(20, 26, 22, 0.08);
  background: #f7f3e8;
}

@media (max-width: 720px) {
  .review-summary-panel {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .review-summary-score {
    min-height: 88px;
    padding: 10px;
  }

  .review-summary-score strong {
    font-size: 28px;
  }

  .review-summary-copy strong {
    font-size: 15px;
  }

  .review-summary-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .review-summary-meter {
    grid-column: 1 / -1;
    grid-template-columns: auto auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
  }

  .review-summary-meter div {
    min-width: 0;
  }

  .detail-review-list .user-review-card {
    gap: 10px;
    padding: 12px;
  }

  .detail-review-list .review-card-head {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 15px;
  }

  .review-rating {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(20, 26, 22, 0.08);
    padding-top: 8px;
  }

  .detail-review-list .review-main strong {
    font-size: 15px;
  }

  .detail-review-list .review-main p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .detail-review-list .review-side {
    justify-content: flex-start;
  }

  .detail-review-list .review-replies {
    margin-left: 0;
    padding-left: 10px;
  }
}

@media (max-width: 720px) {
  .detail-panel:has(.detail-review-list) {
    padding: 14px;
  }

  .detail-panel:has(.detail-review-list) .section-head.compact {
    align-items: flex-start;
    gap: 10px;
  }

  .detail-panel:has(.detail-review-list) .section-head.compact button {
    width: 100%;
  }

  .detail-review-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .detail-review-list .review-feedback {
    width: 100%;
  }

  .detail-review-list .user-review-card {
    display: grid;
    grid-template-areas:
      "head main"
      "head side"
      "replies replies"
      "composer composer";
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
    border-color: rgba(20, 26, 22, 0.1);
    background: linear-gradient(180deg, #fffefa 0%, #fff9ef 100%);
    padding: 12px;
    box-shadow: 0 10px 24px rgba(20, 26, 22, 0.06);
  }

  .detail-review-list .review-card-head {
    grid-area: head;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    gap: 7px;
    align-content: start;
    justify-items: start;
    min-width: 0;
    border-right: 1px solid rgba(20, 26, 22, 0.08);
    padding-right: 10px;
  }

  .detail-review-list .stars {
    max-width: 100%;
    overflow: hidden;
    color: var(--gold);
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .detail-review-list .stance-pill {
    max-width: 100%;
    border-radius: 6px;
    padding: 5px 7px;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
  }

  .detail-review-list .review-main {
    grid-area: main;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
  }

  .detail-review-list .review-main strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .detail-review-list .review-main p {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .detail-review-list .review-side {
    grid-area: side;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    gap: 8px;
    justify-items: start;
    min-width: 0;
  }

  .detail-review-list .review-side small {
    display: grid;
    gap: 3px;
    min-width: 0;
    text-align: left;
  }

  .detail-review-list .review-side small span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-review-list .review-side small span:first-child {
    color: var(--ink);
    font-weight: 900;
  }

  .detail-review-list .review-actions {
    justify-content: flex-start;
  }

  .detail-review-list .review-actions .button-link,
  .detail-review-list .review-actions button {
    min-height: 32px;
    width: auto;
    max-width: 100%;
    padding: 0 10px;
    font-size: 12px;
  }

  .detail-review-list .review-replies {
    grid-area: replies;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    gap: 8px;
    max-height: none;
    overflow: visible;
    border-left: 2px solid rgba(39, 115, 79, 0.16);
    margin-left: 78px;
    padding-left: 10px;
  }

  .detail-review-list .review-reply {
    padding: 9px 10px;
  }

  .detail-review-list .review-reply p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .detail-review-list .review-reply-composer {
    grid-area: composer;
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 380px) {
  .detail-review-list .user-review-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 11px;
  }

  .detail-review-list .review-card-head {
    padding-right: 8px;
  }

  .detail-review-list .review-replies {
    margin-left: 68px;
  }
}

@media (max-width: 720px) {
  .detail-panel:has(.detail-review-list) {
    padding: 14px;
  }

  .detail-review-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 12px 0 0;
    overflow: visible;
    padding: 0;
  }

  .detail-review-list .user-review-card {
    display: grid;
    grid-template-areas:
      "head"
      "main"
      "side"
      "replies"
      "composer";
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    padding: 12px;
  }

  .detail-review-list .review-card-head {
    grid-area: head;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 26, 22, 0.08);
    padding: 0 0 9px;
  }

  .detail-review-list .review-rating {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(20, 26, 22, 0.08);
    padding-top: 8px;
  }

  .detail-review-list .review-main {
    grid-area: main;
    grid-column: auto;
    grid-row: auto;
  }

  .detail-review-list .review-side {
    grid-area: side;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid rgba(20, 26, 22, 0.08);
    padding-top: 9px;
  }

  .detail-review-list .review-replies {
    grid-area: replies;
    grid-column: auto;
    grid-row: auto;
    margin-left: 0;
    padding-left: 10px;
  }

  .detail-review-list .review-reply-composer {
    grid-area: composer;
    grid-column: auto;
    grid-row: auto;
  }
}
