:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --text: #221b16;
  --muted: #74685f;
  --line: #e4d9cd;
  --primary: #fc5904;
  --primary-dark: #d44600;
  --teal: #167c80;
  --gold: #c78b2d;
  --shadow: 0 18px 55px rgba(65, 39, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fc5904;
  color: white;
}

.intro-splash.is-hidden {
  display: none;
}

.intro-inner {
  display: grid;
  justify-items: center;
  width: min(320px, 100%);
  text-align: center;
}

.intro-inner img {
  width: 208px;
  height: 208px;
  object-fit: contain;
}

.intro-inner h1 {
  margin: 12px 0 0;
  color: white;
  font-size: 42px;
  line-height: 48px;
}

.intro-inner button {
  min-width: 128px;
  min-height: 40px;
  margin-top: 40px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #fc5904;
  font-size: 14px;
  font-weight: 900;
}

.intro-inner p {
  max-width: 256px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(34, 27, 22, 0.08);
  background: rgba(247, 243, 237, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.avatar img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand small,
.eyebrow,
.profile-card p,
.stats-grid span,
.empty-state {
  color: var(--muted);
}

.brand strong {
  display: block;
  line-height: 1;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.nav-tab,
.ghost-action,
.text-button,
.language-switch select,
.settings-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
}

.nav-tab {
  min-width: 68px;
  padding: 8px 11px;
}

.nav-tab.is-active,
.primary-action,
.chip.is-active,
.format-button.is-active,
.episode-button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.language-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.language-switch select {
  height: 36px;
  padding: 0 9px;
}

main {
  padding: 0 clamp(16px, 4vw, 44px) 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: clamp(20px, 5vw, 58px);
  align-items: center;
  min-height: 430px;
  padding: clamp(28px, 6vw, 70px) 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.98;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.player-actions,
.format-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.ghost-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
}

.app-island {
  width: min(330px, 100%);
  margin-top: 24px;
  filter: drop-shadow(0 24px 42px rgba(65, 39, 24, 0.18));
}

.phone-shell {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(34, 27, 22, 0.14);
  border-radius: 30px;
  background: linear-gradient(145deg, #2a241f, #0d0b09);
}

.phone-sensor {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 74px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #070605;
}

.phone-screen {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  height: 560px;
  border-radius: 23px;
  background: #fffaf3;
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 89, 4, 0.45) transparent;
  overscroll-behavior: contain;
}

.phone-screen::-webkit-scrollbar {
  width: 5px;
}

.phone-screen::-webkit-scrollbar-track {
  background: transparent;
}

.phone-screen::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(252, 89, 4, 0.45);
}

.mini-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  color: #4f453e;
  font-size: 11px;
  font-weight: 800;
}

.mini-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px 10px;
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
}

.mini-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

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

.mini-brand strong {
  line-height: 1;
  font-size: 15px;
}

.mini-brand small,
.mini-search,
.mini-grid small {
  color: var(--muted);
  font-size: 10px;
}

.mini-search {
  display: block;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}

.mini-search-field {
  display: flex;
  gap: 7px;
  align-items: center;
  width: calc(100% - 28px);
  margin: 0 14px 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-search-field input {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.mini-active-topic {
  margin: 0 14px 10px;
  padding: 7px 10px;
  border: 1px solid rgba(252, 89, 4, 0.25);
  border-radius: 999px;
  background: rgba(252, 89, 4, 0.1);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.mini-chip-row {
  display: flex;
  gap: 7px;
  padding: 0 14px 12px;
}

.mini-chip-row span,
.mini-chip-row button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.mini-chip-row span:first-child,
.mini-chip-row button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

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

.mini-grid article,
.mini-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  text-align: left;
}

.mini-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.mini-grid strong,
.mini-grid small,
.mini-card strong,
.mini-card small {
  display: block;
  padding: 0 8px;
}

.mini-grid strong,
.mini-card strong {
  min-height: 34px;
  padding-top: 8px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
}

.mini-grid small,
.mini-card small {
  padding-bottom: 10px;
  color: var(--primary);
  font-weight: 900;
}

.mini-tabbar {
  position: sticky;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(65, 39, 24, 0.12);
}

.mini-tabbar span,
.mini-tabbar button {
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-tabbar span:first-child,
.mini-tabbar button.is-active {
  color: var(--primary);
}

.mini-category-main {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}

.mini-category-main button,
.mini-topic-grid button,
.mini-episodes button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-weight: 900;
}

.mini-category-main button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.mini-category-main button.is-active,
.mini-episodes button.is-active {
  border-color: rgba(252, 89, 4, 0.3);
  background: rgba(252, 89, 4, 0.12);
  color: var(--primary-dark);
}

.phone-screen h4,
.mini-section-title {
  margin: 0;
  padding: 0 14px 10px;
  font-size: 18px;
}

.mini-topic-grid,
.mini-episodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 72px;
}

.mini-topic-grid button,
.mini-episodes button {
  min-height: 40px;
  padding: 7px 8px;
  font-size: 11px;
}

.mini-empty {
  margin: 8px 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mini-section-title + .mini-empty {
  margin-bottom: 96px;
}

.mini-back {
  margin: 12px 14px 10px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
}

.mini-detail-cover {
  display: block;
  width: calc(100% - 28px);
  height: 250px;
  margin: 0 14px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-detail-body {
  padding: 12px 14px 78px;
}

.mini-detail-body h4 {
  padding: 0;
  margin-bottom: 6px;
}

.mini-detail-meta {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.mini-detail-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mini-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-format-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.mini-format-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
}

.mini-format-row button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.mini-detail-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-weight: 900;
}

.mini-detail-actions button:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.mini-player {
  min-height: 100%;
  background: #080706;
  color: white;
  padding-bottom: 16px;
}

.mini-player-top {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px;
}

.mini-player-top button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mini-player-top strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-video-surface {
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    radial-gradient(circle at 35% 25%, rgba(252, 89, 4, 0.28), transparent 35%),
    linear-gradient(145deg, #1b1713, #050505);
}

.mini-video-surface button {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 28px;
}

.mini-video-surface span {
  font-size: 12px;
}

.mini-progress {
  height: 4px;
  background: #37302a;
}

.mini-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.mini-player .mini-detail-actions {
  padding: 12px 14px 0;
}

.mini-player .mini-detail-actions button:last-child {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mini-player .mini-episodes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 16px;
}

.mini-profile-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-profile-card strong,
.mini-profile-card small {
  display: block;
}

.mini-profile-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 14px 12px;
}

.mini-stat-grid div {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mini-stat-grid strong,
.mini-stat-grid span {
  display: block;
}

.mini-stat-grid strong {
  font-size: 18px;
}

.mini-stat-grid span {
  color: var(--muted);
  font-size: 10px;
}

.mini-settings {
  display: grid;
  gap: 8px;
  margin: 0 14px 96px;
}

.mini-settings span,
.mini-settings button {
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.mini-settings button {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.hero-poster div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.chip,
.format-button,
.episode-button,
.category-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
}

.chip {
  padding: 10px 13px;
  font-weight: 700;
}

.content-band,
.panel-view,
.category-view {
  margin-top: 18px;
}

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

.section-heading h2,
.category-view h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.text-button {
  padding: 9px 13px;
  font-weight: 800;
}

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

.drama-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 10px 30px rgba(65, 39, 24, 0.06);
}

.drama-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #d8cec2;
}

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

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(22, 124, 128, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.category-view {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
}

.category-view[hidden],
.panel-view[hidden],
.toolbar[hidden],
.hero[hidden],
.content-band[hidden] {
  display: none;
}

#mainCategories {
  display: grid;
  align-content: start;
  gap: 8px;
}

.category-button {
  padding: 14px 12px;
  font-weight: 800;
  text-align: left;
}

.category-button.is-active {
  border-color: rgba(210, 45, 64, 0.3);
  background: rgba(210, 45, 64, 0.1);
  color: var(--primary-dark);
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-layout {
  max-width: 820px;
}

.profile-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.avatar {
  width: 70px;
  height: 70px;
  font-size: 32px;
}

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

.stats-grid div,
.settings-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.stats-grid div {
  padding: 18px;
}

.stats-grid strong {
  display: block;
  font-size: 28px;
}

.settings-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.settings-list label,
.settings-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface-strong);
  text-align: left;
}

.detail-dialog,
.player-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop,
.player-dialog::backdrop {
  background: rgba(34, 27, 22, 0.52);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
}

.detail-cover {
  min-height: 560px;
  background-size: cover;
  background-position: center;
}

.detail-info {
  padding: 28px;
  overflow: auto;
}

.detail-info h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.detail-description {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  line-height: 1.7;
}

.format-row {
  margin: 18px 0;
}

.format-button,
.episode-button {
  padding: 9px 12px;
  font-weight: 800;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.player-dialog {
  background: #090807;
  color: white;
}

.player-top {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.58);
}

.player-top button,
.player-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.fake-video {
  display: grid;
  place-items: center;
  min-height: min(58vh, 520px);
  background:
    radial-gradient(circle at 30% 20%, rgba(210, 45, 64, 0.24), transparent 34%),
    linear-gradient(135deg, #161311, #050505);
}

.play-button {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 34px;
}

.progress {
  height: 5px;
  background: #34302d;
}

.progress span {
  display: block;
  width: 18%;
  height: 100%;
  background: var(--primary);
}

.player-actions {
  padding: 14px 16px 18px;
}

.player-actions button {
  flex: 1;
  padding: 10px 12px;
}

.episode-drawer {
  max-height: 240px;
  overflow: auto;
  padding: 0 16px 18px;
}

.episode-drawer[hidden] {
  display: none;
}

.empty-state {
  padding: 28px 0;
  text-align: center;
}

@media (max-width: 780px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    overflow-x: auto;
  }

  .hero,
  .toolbar,
  .category-view,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-poster {
    justify-self: start;
    width: min(280px, 82vw);
  }

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

  .detail-cover {
    min-height: 360px;
  }

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

@media (max-width: 430px) {
  main {
    padding-inline: 12px;
  }

  .drama-grid {
    gap: 10px;
  }

  .card-body {
    padding: 10px;
  }

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