:root {
  color-scheme: dark;
  --bg: #090909;
  --bg-elevated: #0e0e0d;
  --panel: #131310;
  --panel-hover: #171712;
  --text: #f4f1e9;
  --muted: #96928a;
  --faint: #66635d;
  --gold: #f2c94c;
  --gold-soft: rgba(242, 201, 76, 0.09);
  --line: #292820;
  --line-strong: #514d37;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -15%, rgba(242, 201, 76, 0.13), transparent 38%),
    linear-gradient(180deg, transparent 45%, rgba(242, 201, 76, 0.018));
}

body.light {
  color-scheme: light;
  --bg: #f5f3ed;
  --bg-elevated: #eeebe3;
  --panel: #fffefa;
  --panel-hover: #ffffff;
  --text: #171711;
  --muted: #68645b;
  --faint: #89847a;
  --gold: #9b7410;
  --gold-soft: rgba(155, 116, 16, 0.09);
  --line: #d9d4c8;
  --line-strong: #b7aa82;
  --shadow: 0 22px 60px rgba(55, 45, 20, 0.1);
}

button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 70px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.logo {
  justify-self: start;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.logo span {
  margin: 0 0.12em;
  color: var(--gold);
  font-size: 1.34em;
}

nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.nav-link {
  min-height: 36px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
}

.nav-link:hover,
.nav-link.selected {
  background: var(--gold-soft);
  color: var(--gold);
}

.theme-button {
  justify-self: end;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--gold);
  font-size: 1.05rem;
}

.theme-button:hover {
  border-color: var(--line-strong);
  transform: rotate(8deg);
}

.hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}

.hero-copy {
  margin: 0;
}

.heading small,
.compact-label,
.active-label {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero h1 i {
  color: var(--gold);
  font-weight: 400;
}

.catalog {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 6.5rem;
  scroll-margin-top: 82px;
}

.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.heading-copy {
  flex: 0 0 auto;
}

.heading h2 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.catalog-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: end;
  gap: 0.65rem;
}

.catalog-filterbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.compact-filter {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  border-right: 1px solid var(--line);
}

.compact-filter:first-child {
  padding-left: 0.15rem;
}

.compact-filter:last-child {
  border-right: 0;
}

.rating-filter {
  padding-right: 0.15rem;
  margin-left: auto;
}

.genre-filter,
.watch-filter {
  position: relative;
}

.genre-picker,
.watch-picker {
  position: relative;
}

.genre-toggle,
.watch-toggle {
  display: flex;
  min-width: 132px;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.genre-toggle:hover,
.genre-toggle[aria-expanded="true"],
.watch-toggle:hover,
.watch-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.genre-toggle.selected,
.watch-toggle.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.genre-chevron,
.watch-chevron {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.genre-toggle[aria-expanded="true"] .genre-chevron,
.watch-toggle[aria-expanded="true"] .watch-chevron {
  transform: rotate(180deg);
}

.genre-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.55rem);
  left: 0;
  display: grid;
  width: 430px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.genre-menu[hidden] {
  display: none;
}

.genre-option {
  min-height: 36px;
  padding: 0 0.65rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 680;
  text-align: left;
}

.genre-option:hover,
.genre-option:focus-visible {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.genre-option.selected {
  border-color: color-mix(in srgb, var(--gold) 44%, transparent);
  background: var(--gold-soft);
  color: var(--gold);
}

.watch-toggle {
  min-width: 132px;
}

.watch-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 390px;
  padding: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.watch-menu[hidden] {
  display: none;
}

.offer-type-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.22rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-elevated);
}

.offer-type {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 740;
}

.offer-type:hover,
.offer-type.selected {
  background: var(--panel);
  color: var(--gold);
  box-shadow: 0 0 0 1px var(--line);
}

.provider-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.provider-option {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.55rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 690;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-option:hover,
.provider-option.selected {
  border-color: var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.provider-option.selected {
  border-color: color-mix(in srgb, var(--gold) 44%, transparent);
  color: var(--gold);
}

.provider-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #252522;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.provider-mark.all { background: var(--gold); color: #171711; font-size: 0.48rem; letter-spacing: 0.03em; }
.provider-mark.netflix { background: #e50914; }
.provider-mark.amazon { background: #00a8e1; color: #111; font-size: 1rem; }
.provider-mark.disney { background: #1233a2; }
.provider-mark.hulu { background: #1ce783; color: #09240f; }
.provider-mark.max { background: #6d3df5; }
.provider-mark.apple { background: #050505; border: 1px solid #3b3b3b; }
.provider-mark.paramount { background: #0064ff; }
.provider-mark.peacock { background: #161616; }
.provider-mark.tubi { background: #fa4bdb; color: #160e1a; }
.provider-mark.roku { background: #662d91; }
.provider-mark.google { background: #4285f4; }
.provider-mark.fandango { background: #f36f21; }

.watch-region {
  margin: 0.6rem 0 0;
  color: var(--faint);
  font-size: 0.62rem;
  text-align: right;
}

.compact-label {
  color: var(--faint);
  font-size: 0.59rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.segmented-control,
.rating-control {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.filter-button {
  min-height: 32px;
  padding: 0 0.72rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.filter-button:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.filter-button.selected {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(242, 201, 76, 0.16);
}

.year-stepper {
  display: grid;
  width: 124px;
  height: 40px;
  grid-template-columns: 32px 58px 32px;
  align-items: center;
  padding: 0 1px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
}

.year-arrow {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1;
}

.year-arrow:hover:not(:disabled) {
  background: var(--gold-soft);
  color: var(--gold);
}

.year-arrow:disabled {
  cursor: default;
  opacity: 0.25;
}

.year-value {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.catalog-search {
  display: flex;
  width: min(430px, 42vw);
  height: 46px;
  align-items: center;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
}

.catalog-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.catalog-search > span {
  margin-right: 0.55rem;
  font-size: 1.3rem;
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.catalog-search input::placeholder {
  color: var(--faint);
}

.catalog-search kbd {
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-size: 0.625rem;
}

.sort-button {
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.sort-button:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.active-filters:empty {
  display: none;
}

.active-label {
  color: var(--faint);
  font-size: 0.59rem;
}

.active-filter {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
}

button.active-filter:hover {
  background: color-mix(in srgb, var(--gold-soft) 70%, var(--gold) 12%);
}

.status {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
}

.title-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 0 0 transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster {
  position: relative;
  display: flex;
  aspect-ratio: 2 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(242, 201, 76, 0.08), transparent 46%),
    var(--bg-elevated);
  color: var(--faint);
  text-decoration: none;
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .poster img {
  transform: scale(1.025);
}

.poster-placeholder {
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.meta {
  padding: 0.9rem;
}

.title {
  display: block;
  margin-bottom: 0.42rem;
  overflow: hidden;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 760;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title:hover {
  color: var(--gold);
}

.sub {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.sub > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating {
  flex: 0 0 auto;
  color: var(--gold);
  font-weight: 780;
}

.genre-tag {
  margin-top: 0.65rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.genre-tag:hover,
.genre-tag.selected {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-soft) 70%, var(--gold) 10%);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.card-actions .genre-tag {
  margin-top: 0;
}

.watch-card-button {
  min-height: 29px;
  padding: 0 0.62rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #171711;
  font-size: 0.62rem;
  font-weight: 820;
  white-space: nowrap;
}

.watch-card-button:hover {
  filter: brightness(1.08);
}

.watch-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(720px, calc(100vh - 40px));
  padding: 1.35rem;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.watch-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.watch-dialog h2 {
  margin: 0.25rem 2rem 1rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.dialog-eyebrow {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 1.25rem;
}

.watch-offer-list {
  display: grid;
  gap: 0.5rem;
}

.watch-offer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-elevated);
}

.offer-provider strong,
.offer-provider span {
  display: block;
}

.offer-provider strong {
  font-size: 0.8rem;
}

.offer-provider span {
  color: var(--muted);
  font-size: 0.66rem;
}

.offer-link {
  padding: 0.48rem 0.68rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.offer-link:hover {
  background: var(--gold-soft);
}

.watch-attribution {
  margin: 0.9rem 0 0;
  color: var(--faint);
  font-size: 0.61rem;
  line-height: 1.45;
}

.skeleton {
  overflow: hidden;
  background: var(--bg-elevated);
}

.skeleton::after {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  animation: shimmer 1.2s infinite;
  transform: translateX(-150%);
}

.skeleton-line {
  width: 82%;
  height: 13px;
  margin: 0.1rem 0 0.65rem;
  border-radius: 4px;
}

.skeleton-line.short {
  width: 54%;
  height: 10px;
}

.error-state {
  grid-column: 1 / -1;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.error-state strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.error-state button {
  min-height: 40px;
  margin-top: 0.45rem;
  padding: 0 1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-number,
.page-arrow {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-number:hover,
.page-arrow:hover:not(:disabled) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.page-number.selected {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.page-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.page-ellipsis {
  width: 22px;
  color: var(--faint);
  text-align: center;
}

.pagination:empty {
  display: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

@keyframes shimmer {
  to {
    transform: translateX(350%);
  }
}

@media (min-width: 681px) {
  .hero h1 {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog-tools {
    width: 100%;
    justify-content: stretch;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-filterbar {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .compact-filter,
  .compact-filter:first-child {
    padding: 0 0.35rem;
    border-right: 0;
  }

  .rating-filter {
    margin-left: 0;
  }

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

@media (max-width: 680px) {
  header {
    grid-template-columns: auto 1fr auto;
    padding: 0 0.8rem;
  }

  nav {
    justify-self: center;
  }

  .nav-link {
    padding: 0 0.55rem;
    font-size: 0.76rem;
  }

  .nav-link:first-child {
    display: none;
  }

  .hero,
  .catalog {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .heading {
    gap: 1rem;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-button {
    align-self: flex-start;
  }

  .catalog-filterbar {
    display: grid;
    gap: 0;
    padding: 0.65rem;
  }

  .compact-filter,
  .compact-filter:first-child {
    width: 100%;
    justify-content: space-between;
    padding: 0 0 0.55rem;
    margin: 0 0 0.55rem;
    border-bottom: 1px solid var(--line);
  }

  .compact-filter:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .genre-picker,
  .watch-picker {
    position: static;
  }

  .genre-toggle,
  .watch-toggle {
    min-width: 152px;
  }

  .genre-menu {
    top: calc(100% + 0.35rem);
    right: 0;
    left: auto;
    width: min(430px, calc(100vw - 48px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watch-menu {
    top: calc(100% + 0.35rem);
    right: 0;
    width: min(390px, calc(100vw - 48px));
  }

  .watch-offer-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .offer-link {
    grid-column: 1 / -1;
    text-align: center;
  }

  .title-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .meta {
    padding: 0.72rem;
  }

  .sub {
    align-items: start;
    flex-direction: column;
    gap: 0.16rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .page-numbers {
    max-width: 100%;
    overflow: hidden;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .logo {
    font-size: 1rem;
  }

  .theme-button {
    width: 36px;
    height: 36px;
  }

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

  .page-number,
  .page-arrow {
    min-width: 35px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
