:root {
  --bg: #0f1713;
  --paper: #f2f2ec;
  --panel: #fffdfa;
  --ink: #141a16;
  --muted: #66716a;
  --line: rgba(20, 26, 22, 0.14);
  --accent: #2f7d55;
  --accent-dark: #195437;
  --gold: #d3a94f;
  --shadow: 0 24px 80px rgba(23, 28, 24, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    linear-gradient(rgba(20, 26, 22, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 22px;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  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 {
  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 {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.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;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--bg);
  font-size: 12px;
  font-weight: 850;
}

.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,
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;
}

.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;
}

.featured-poster span,
.poster-art span {
  position: relative;
  z-index: 2;
  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,
.poster-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 19, 0.72);
  object-fit: contain;
}

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

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

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

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

.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 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;
}

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

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

.drama-card strong {
  display: block;
  min-height: 2.35em;
  font-size: 14px;
  line-height: 1.2;
}

.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;
}

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

.algorithm-note span {
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  padding: 4px 7px;
  font-weight: 800;
}

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

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

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

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

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

.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: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
}

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

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

.shelf-drama-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  height: auto;
  min-height: 104px;
  padding: 8px;
  text-align: left;
}

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

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

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

.shelf-drama-card strong {
  line-height: 1.2;
}

.shelf-drama-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.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 button {
  display: inline-flex;
  min-height: 34px;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
}

.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: 220px minmax(0, 1fr) 300px;
  gap: 20px;
  border: 1px solid rgba(20, 26, 22, 0.08);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  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: 14px;
}

.detail-main h1 {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 58px);
}

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

.detail-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.detail-score-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3e8;
  padding: 12px;
}

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

.detail-score-row strong {
  color: var(--accent-dark);
  font-size: 30px;
  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;
  max-width: 760px;
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 8px;
  background: #eef6f1;
  padding: 12px;
}

.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;
}

.where-watch {
  display: grid;
  align-content: start;
  gap: 12px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.where-watch p:last-child {
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.detail-app-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 70px;
  padding: 10px;
  text-align: left;
}

.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-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: repeat(3, minmax(0, 1fr));
}

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

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

.similar-list img {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.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;
}

.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);
}

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

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

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

.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: repeat(3, minmax(0, 1fr));
  gap: 14px;
  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;
  gap: 12px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
  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);
}

.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: #111813;
  color: #fff;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

.app-rank-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #e7f1eb;
  color: var(--accent-dark);
  font-weight: 900;
  overflow: hidden;
}

.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: start;
}

.app-rank-main h3 {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.05;
}

.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: 24px;
}

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

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

.app-rank-metrics.secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}

.app-rank-metrics span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
}

.app-rank-metrics strong {
  color: var(--ink);
  font-size: 20px;
}

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

.app-featured-dramas > div {
  display: grid;
  gap: 8px;
}

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

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

.app-card-drama-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  height: auto;
  min-height: 64px;
  padding: 6px;
  text-align: left;
}

.app-card-drama-list img {
  width: 42px;
  height: 56px;
  border-radius: 5px;
  object-fit: cover;
}

.app-card-drama-list b,
.app-card-drama-list small {
  display: block;
}

.app-card-drama-list b {
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card-drama-list 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: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.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 {
  min-height: 36px;
  border-radius: 999px;
}

.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;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.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 h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

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

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

.guide-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.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-note {
  display: grid;
  gap: 6px;
  max-width: 640px;
  margin-top: 14px;
  border: 1px solid rgba(47, 125, 85, 0.18);
  border-radius: 8px;
  background: #e7f1eb;
  padding: 12px;
}

.oauth-note span {
  color: var(--accent-dark);
  line-height: 1.5;
  font-size: 13px;
}

.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;
}

.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;
}

.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-item img {
  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;
}

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

.app-drama-item img {
  width: 54px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}

.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);
}

.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;
}

.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;
}

.article-shell h2 {
  margin-bottom: 10px;
}

.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: 12px;
  color: var(--ink);
  line-height: 1.7;
}

.article-body h3 {
  margin: 0;
}

.article-body ol {
  margin: 0;
  padding-left: 20px;
}

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

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

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

@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;
  }

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

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

  .where-watch {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    padding-left: 0;
  }

  .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));
  }

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

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

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

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

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px 8px;
  }

  .brand {
    gap: 9px;
  }

  .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: 12px 0 4px;
  }

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

  h2 {
    font-size: 26px;
  }

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

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

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

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

  .search-shell,
  .app-shelf-head,
  .recommendation-panel,
  .industry-actions,
  .guide-tools,
  .guide-grid,
  .help-list,
  .app-rank-grid,
  .app-rank-main,
  .app-rank-metrics,
  .app-detail-intro,
  .app-info-panel .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 {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .featured-poster {
    min-height: 138px;
    padding: 8px;
  }

  .featured-copy {
    gap: 8px;
  }

  .featured-copy h2 {
    font-size: 20px;
    line-height: 1.08;
  }

  .featured-copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .score-row span {
    font-size: 30px;
  }

  .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: 16px 10px;
  }

  .poster-art {
    border-radius: 8px;
    padding: 8px;
  }

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

  .rating-panel {
    align-items: flex-start;
  }

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

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

  .library-tools,
  .guides-section,
  .account-section,
  .workflow-section,
  .app-detail,
  .guide-detail,
  .detail-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 button {
    flex: 0 0 auto;
  }

  .app-rank-card {
    min-height: auto;
    padding: 12px;
  }

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

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

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

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

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

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

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

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

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

  .app-card-drama-list img {
    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: 30px;
  }

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

  .detail-score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 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 button {
    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,
  .app-dramas-panel .app-drama-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .app-dramas-panel .app-drama-item img,
  .app-drama-item img {
    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;
  }

  .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;
  }
}

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