@font-face {
  font-family: DM Sans;
  src: url(brand/dm-sans.ttf) format('truetype');
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(brand/instrument-serif.ttf) format('truetype');
  font-display: swap;
}
:root {
  --bg: #1c1119;
  --rail: #170f16;
  --panel: #271c24;
  --line: #42303c;
  --text: #fff1ee;
  --muted: #c3b1ba;
  --copper: #f4b685;
  --rose: #e08794;
  --green: #a4d8b6;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --rail-width: 224px;
  color-scheme: dark;
  font: 16px/1.4 var(--sans);
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  cursor: pointer;
  background: none;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: middle;
}
i[data-icon] {
  display: inline-flex;
  font-style: normal;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 2.35vw, 2.25rem);
}
h3 {
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.25;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 10;
  background: var(--copper);
  color: var(--bg);
  padding: 10px;
}
.skip:focus {
  top: 8px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-width);
  background: var(--rail);
  border-right: 1px solid #34232e;
  display: flex;
  flex-direction: column;
  padding: 23px 12px 14px;
  z-index: 5;
}
.logo {
  display: block;
  width: 147px;
  margin: 0 0 28px 10px;
}
.logo img,
.mobile-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.rail nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #604956 transparent;
}
.nav-label,
.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.nav-label {
  color: #baa5b2;
  margin: 0 0 7px 10px;
  font-size: .65rem;
}
.rail nav a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 9px;
  margin: 2px 0;
  color: #cebdc7;
  font-size: .9rem;
  line-height: 1.2;
  border-radius: 9px;
}
.rail nav a svg {
  width: 18px;
  height: 18px;
}
.rail nav a[data-route='royxat'] {
  column-gap: 6px;
  padding-inline-end: 6px;
}
.rail a[aria-current='page'] {
  background: #37252c;
  color: var(--copper);
  font-weight: 700;
}
.rail nav a:hover,
.profile:hover,
.menu-list a:hover {
  background: #2d1e28;
}
.rail-rule {
  height: 1px;
  margin: 17px 9px 15px;
  background: #392934;
}
.count {
  min-width: 20px;
  padding: 2px 4px;
  text-align: center;
  font: 600 .72rem/1.1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: #e2c9cf;
  background: #392931;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.rail-foot {
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #392934;
}
.profile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  text-align: left;
  width: 100%;
  padding: 8px 5px;
  border-radius: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #37252f;
  color: var(--rose);
  border: 1px solid #583a48;
  border-radius: 50%;
}
.profile strong,
.profile small {
  display: block;
  white-space: nowrap;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--muted);
}
.profile strong { font-size: .9rem; }
.profile > i {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}
.shell {
  margin-left: var(--rail-width);
}
.top {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #392934;
  padding: 0 clamp(24px, 3vw, 56px);
}
.top-name,
.searchbox,
.hero-meta,
.hero-meta button,
.text-link,
.soft,
.primary,
.hero-secondary,
.button-row,
.title-line,
.hero-label,
.hero-actions,
.identity {
  display: flex;
  align-items: center;
}
.top-name {
  gap: 10px;
  font-weight: 600;
  color: #e5d4db;
  font-size: 0.97rem;
}
.top-name svg {
  color: var(--copper);
  width: 21px;
  height: 21px;
}
.searchbox {
  width: min(330px, 48%);
  background: #261b24;
  border: 1px solid #493642;
  border-radius: 10px;
  height: 41px;
  padding: 0 12px;
  gap: 9px;
  color: var(--muted);
}
.searchbox:focus-within {
  border-color: var(--copper);
}
.searchbox input {
  border: none;
  outline: 0;
  background: none;
  min-width: 0;
  flex: 1;
  font-size: 0.89rem;
}
input::placeholder,
textarea::placeholder {
  color: #b6a3ad;
}
kbd {
  border: 1px solid #57424f;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
  font: 12px/20px var(--sans);
  color: #c1abb8;
}
.mobile-logo,
.mobile-user,
.mobile-nav {
  display: none !important;
}
main {
  max-width: 1660px;
  margin: auto;
  padding: 24px clamp(24px, 3vw, 56px) 56px;
}
main:focus {
  outline: none;
}
.hero {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: 350px;
  display: flex;
  align-items: center;
  background: #211b22;
  border: 1px solid #533d47;
}
.hero-art,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-art {
  left: auto;
  width: 78%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-wash {
  background:
    linear-gradient(
      90deg,
      #21161e 4%,
      rgba(33, 22, 30, 0.97) 24%,
      rgba(33, 22, 30, 0.8) 39%,
      rgba(33, 22, 30, 0.1) 73%
    ),
    linear-gradient(0deg, rgba(22, 14, 21, 0.65), transparent 43%);
}
.hero-content {
  padding: 35px 42px 41px;
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-label {
  color: var(--copper);
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
}
.hero-label svg {
  width: 15px;
  height: 15px;
}
.hero h1 {
  font-size: clamp(3.2rem, 5.6vw, 6.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 17px 0 14px;
  text-wrap: balance;
}
.hero-meta {
  gap: 9px;
  color: #f2e4df;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.hero-meta b,
.card-meta b {
  color: var(--copper);
  font-weight: 400;
}
.hero-meta button {
  gap: 2px;
  font-size: inherit;
  padding: 0;
}
.hero-meta button svg {
  transform: rotate(90deg);
  width: 12px;
}
.hero-content p {
  color: #ebdce0;
  max-width: 47ch;
  margin: 13px 0 23px;
  font-size: 0.98rem;
  line-height: 1.55;
}
.hero-actions,
.button-row {
  gap: 9px;
  flex-wrap: wrap;
}
.primary,
.soft,
.hero-secondary {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 13px;
  min-height: 36px;
  line-height: 1.25;
}
.primary {
  background: var(--copper);
  color: #2b1920;
  border: 1px solid var(--copper);
}
.primary:hover {
  background: #ffcca4;
}
.soft,
.hero-secondary {
  border: 1px solid #5b4452;
  background: #352630;
  color: #f4e6ea;
}
.soft:hover,
.hero-secondary:hover {
  border-color: #a37a86;
}
.hero-secondary {
  background: rgba(38, 27, 34, 0.78);
  border-color: #785c67;
}
.hero-pages,
.frame-step {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: white;
}
.hero-pages em {
  color: #d3c3c9;
  font-style: normal;
}
.hero-pages span,
.frame-step span {
  text-shadow: 0 1px 4px black;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #261b23cc;
  border: 1px solid #856c77;
  color: #fff1ee;
}
.icon-button:hover {
  background: #533948;
}
.icon-button svg {
  width: 16px;
  height: 16px;
}
.shelf,
.premieres {
  margin-top: 30px;
}
.section-head,
.title-line,
.filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-head {
  margin-bottom: 18px;
}
.title-line {
  justify-content: flex-start;
  gap: 17px;
  flex-wrap: wrap;
}
.text-link {
  font-size: 0.88rem;
  color: var(--copper);
  gap: 4px;
  white-space: nowrap;
}
.text-link svg {
  width: 14px;
}
.tabs {
  display: inline-flex;
  border: 1px solid #49333f;
  background: #20151d;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tabs button {
  font-size: 0.82rem;
  padding: 5px 11px;
  border-radius: 5px;
  color: var(--muted);
  line-height: 1.25;
}
.tabs button[aria-pressed='true'] {
  color: var(--copper);
  background: #422c35;
}
.shelf-row,
.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
}
.card {
  min-width: 0;
  position: relative;
}
.cover {
  width: 100%;
  aspect-ratio: 2/2.95;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #30232c;
  box-shadow: inset 0 0 0 1px #55404b;
}
.cover-link,
.cover-link img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}
.cover-link img {
  object-fit: cover;
  transition: transform 0.22s ease;
}
.cover-link:hover img {
  transform: scale(1.035);
}
.cover:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff20;
  pointer-events: none;
}
.save-card,
.card-state {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 33px;
  border-radius: 7px;
  background: #20151ddc;
  border: 1px solid #ffffff55;
  color: #fff3ed;
}
.save-card svg,
.card-state svg {
  width: 16px;
  height: 16px;
}
.save-card:hover,
.save-card.marked {
  background: var(--copper);
  color: #261720;
}
.card-state {
  display: flex;
  padding: 0 6px;
  gap: 3px;
  color: var(--copper);
  font-size: 0.85rem;
}
.card-title {
  font: 600 0.99rem/1.25 var(--sans);
  padding: 0;
  text-align: left;
  margin: 10px 0 3px;
  display: block;
}
.card-title:hover {
  color: var(--copper);
}
.card-meta {
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.no-image,
.fallback-art {
  display: grid;
  place-items: center;
  height: 100%;
  background: linear-gradient(140deg, #49303e, #211720);
  color: var(--rose);
}
.no-image svg,
.fallback-art svg {
  width: 40px;
  height: 40px;
}
.premieres {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
main > .premieres:first-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.feed-toolbar {
  margin-bottom: 20px;
  container-type: inline-size;
}
.platform-options {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 6px;
}
.platform-options button,
.platform-toggle {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
}
.platform-options button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 8px 4px;
  font-size: .82rem;
  font-weight: 600;
}
.platform-options button:hover,
.platform-toggle:hover {
  border-color: #8e6c7c;
  color: var(--text);
}
.platform-options [aria-pressed='true'] {
  border-color: var(--copper);
  background: #3a2930;
  color: var(--copper);
}
.platform-symbol {
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.all-platforms {
  display: inline-grid;
  place-items: center;
  background: #513744;
  color: var(--copper);
}
.all-platforms svg {
  width: 19px;
  height: 19px;
}
.platform-toggle {
  display: none;
}
.feed-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: -4px 0 14px;
  font-variant-numeric: tabular-nums;
}
.feed-info,
.feed-credit {
  font-size: 0.85rem;
  color: var(--muted);
}
.feed-credit {
  margin-top: 16px;
}
.feed-credit a {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feed-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}
.feed-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 10px;
}
.feed-cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2/3;
  width: 100%;
  overflow: hidden;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.feed-cover:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #ffffff24;
  pointer-events: none;
}
.feed-poster, .feed-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feed-backdrop {
  object-fit: cover;
  filter: blur(12px) brightness(.5);
  transform: scale(1.12);
}
.feed-link:is(:hover, :focus-visible) .feed-cover:after {
  box-shadow: inset 0 0 0 1px var(--copper);
}
.feed-link:hover strong,
.feed-link:focus-visible strong {
  color: var(--copper);
}
.feed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #45343e, #271c25 75%);
}
.feed-fallback .platform-symbol {
  width: 44px;
  height: 44px;
}
.feed-open {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #20151de8;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  opacity: 0;
}
.feed-link:is(:hover, :focus-visible) .feed-open {
  opacity: 1;
}
.feed-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.feed-platform .platform-symbol {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.feed-item strong {
  margin-top: 5px;
  font-size: 1rem;
  line-height: 1.3;
}
.feed-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}
.muted,
.form-hint,
.backup p,
.sheet > p,
.empty p,
.genre,
.frame-credit {
  color: var(--muted);
}
.page-title {
  margin: 0 0 18px;
}
.page-title p {
  margin-top: 4px;
  font-size: .94rem;
}
.filter-top {
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.library-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.unmarked-filter[aria-pressed='true'] {
  border-color: var(--copper);
  background: #422c35;
  color: var(--copper);
}
.filter-panel,
.edit-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}
.filter-panel {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  background: var(--panel);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 16px;
}
.active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid #70505b;
  border-radius: 20px;
  background: #35252e;
  color: var(--copper);
  padding: 5px 11px;
  font-size: .85rem;
}
.active-filters svg {
  width: 14px;
}
[hidden] {
  display: none !important;
}
label {
  display: grid;
  gap: 5px;
  font-size: 0.875rem;
  color: #e3d2da;
}
label input,
label select,
label textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  padding: 9px 11px;
  border: 1px solid #604956;
  border-radius: 7px;
  background: #211720;
  font-size: 1rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23dfc9d3' stroke-width='1.5'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: 14px !important;
  background-position: right 10px center !important;
  padding-right: 28px !important;
}
textarea {
  resize: vertical;
}
.library-grid {
  row-gap: 25px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 28px 10px;
  font-variant-numeric: tabular-nums;
}
.pagination a,
.pagination [aria-current='page'] {
  display: grid;
  min-width: 38px;
  min-height: 44px;
  padding-inline: 6px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}
.pagination a:hover,
.pagination [aria-current='page'] {
  border-color: var(--copper);
  background: #422c35;
  color: var(--copper);
}
.pagination .page-gap {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 30px 12px;
}
.empty {
  border: 1px dashed #59414e;
  border-radius: 12px;
}
.empty > svg {
  width: 30px;
  height: 30px;
  color: var(--rose);
  margin-bottom: 8px;
}
.loading {
  display: grid;
  min-height: clamp(240px, 45vh, 400px);
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}
.loading-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--copper);
}
.loading-icon svg { width: 34px; height: 34px; }
.loading-track {
  width: 116px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.loading-track::before {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--copper);
  content: '';
  animation: catalog-loading 1.2s ease-in-out infinite alternate;
}
@keyframes catalog-loading {
  from { transform: translateX(0); }
  to { transform: translateX(122%); }
}
@media (prefers-reduced-motion: reduce) {
  .loading-track::before { animation: none; }
}
.loading-error button { margin-top: 14px; }
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid #604553;
  border-radius: 16px;
  padding: 0;
  width: min(480px, calc(100% - 24px));
  max-height: 90dvh;
  box-shadow: 0 20px 80px #0a060a99;
}
dialog::backdrop {
  background: #0d080ec9;
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
dialog.wide {
  width: min(680px, calc(100% - 24px));
}
.dialog-scroll {
  max-height: 88dvh;
  overflow-y: auto;
}
.sheet,
.detail-content {
  padding: 25px;
}
.sheet .section-head {
  align-items: flex-start;
}
.section-head > .icon-button {
  flex-shrink: 0;
}
.sheet h2,
.detail-content h2 {
  font-size: 2.25rem;
}
.sheet form,
form#editForm {
  display: grid;
  gap: 13px;
  margin: 17px 0;
}
.sheet .tabs {
  margin-bottom: 2px;
}
.sheet form > .primary,
form#editForm > .primary {
  justify-self: start;
}
.form-hint,
.backup p,
.frame-credit {
  font-size: 0.85rem;
}
.backup,
form#editForm {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.backup p {
  margin: 6px 0 12px;
}
.sheet > .section-head + .backup {
  border-top: 0;
  padding-top: 0;
}
.auth-dialog {
  width: min(440px, calc(100% - 32px));
}
.auth-dialog .sheet {
  padding: clamp(20px, 4vw, 32px);
}
.auth-dialog .section-head {
  align-items: center;
  margin-bottom: 20px;
}
.auth-dialog .tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
}
.auth-dialog .tabs button {
  min-height: 42px;
  border-radius: 8px;
  font-size: .92rem;
}
.auth-dialog .sheet > .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-dialog #authForm {
  margin: 0;
}
.auth-dialog #authForm input,
.auth-dialog #authForm .primary {
  min-height: 46px;
}
.auth-dialog #authForm .primary {
  justify-self: stretch;
  margin-top: 3px;
}
.identity {
  gap: 8px;
  color: var(--copper);
}
.sheet > p {
  margin: 9px 0 14px;
}
#authError {
  color: #ffb1bc;
  font-size: 0.9rem;
}
#authError:empty {
  display: none;
}
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 3px;
}
.menu-list {
  margin-bottom: 18px;
}
.menu-list [aria-current='page'] {
  color: var(--copper);
}
.detail-head {
  position: relative;
}
.detail-head > .icon-button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 1;
}
.detail-still {
  position: relative;
  height: clamp(180px, 30vh, 290px);
  background: #120d11;
  text-align: center;
}
.detail-still img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.frame-step {
  right: 12px;
  bottom: 10px;
  padding: 3px;
  background: #170e16aa;
  border-radius: 22px;
}
.frame-credit {
  padding: 5px 20px;
  color: var(--muted);
  background: var(--rail);
}
.frame-credit a {
  text-decoration: underline;
}
.detail-content h2 {
  margin: 6px 0;
}
.detail-content .eyebrow {
  color: var(--copper);
}
.detail-content p {
  margin: 5px 0 10px;
}
.film-scores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
  padding: 14px 0;
  background: #21171f;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
}
.film-scores > div {
  padding: 0 clamp(10px, 2.5vw, 18px);
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
}
.film-scores dt, .film-scores dd { align-self: start; }
.film-scores > div + div { border-inline-start: 1px solid var(--line); }
.film-scores dt, .film-scores dd {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .82rem;
}
.film-scores dt svg { color: var(--rose); }
.film-scores > div + div dt svg { color: var(--copper); }
.film-scores dd { margin: 6px 0 0; flex-wrap: wrap; gap: 3px 10px; }
.film-scores dd strong { color: var(--text); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.film-scores dd small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.film-reviews {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.film-reviews > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.film-reviews > summary::-webkit-details-marker { display: none; }
.film-reviews > summary svg { color: var(--copper); }
.film-reviews > summary small { color: var(--muted); font-variant-numeric: tabular-nums; }
.film-reviews > summary svg:last-child { margin-left: auto; }
.film-reviews[open] > summary svg:last-child { transform: rotate(90deg); }
.film-reviews article { margin-inline: 14px; padding-block: 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.film-reviews article strong { color: var(--copper); font-size: .87rem; }
.film-reviews article p { white-space: pre-wrap; margin: 4px 0 0; }
.review-controls { padding-inline: 14px; }
.review-controls p { color: var(--muted); font-size: .9rem; }
.review-controls p:empty { margin: 0; }
.review-controls button { margin-bottom: 12px; }
.watch-options {
  margin: 18px 0;
  border: 1px solid var(--line);
  background: #21171f;
  border-radius: 12px;
}
.watch-options summary,
.watch-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.watch-options summary {
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
}
.watch-options summary::-webkit-details-marker {
  display: none;
}
.watch-options strong, .watch-options small {
  display: block;
}
.watch-options small {
  color: var(--muted);
  font-size: .8rem;
}
.watch-stack {
  display: flex;
  flex: none;
}
.watch-stack .platform-symbol {
  width: 26px;
  height: 26px;
  background: var(--rail);
  border: 2px solid #21171f;
  border-radius: 8px;
}
.watch-stack .platform-symbol + .platform-symbol {
  margin-left: -8px;
}
.watch-options summary > svg, .watch-links a > svg {
  width: 16px;
  margin-left: auto;
  color: var(--copper);
}
.watch-options[open] summary > svg {
  transform: rotate(90deg);
}
.watch-links a {
  border-top: 1px solid var(--line);
  font-size: .94rem;
}
.watch-links a:hover {
  background: var(--panel);
}
.watch-links .verified-link {
  color: var(--green);
}
#toast {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  background: #f4e4df;
  color: #271923;
  border-radius: 10px;
  padding: 10px 17px;
  box-shadow: 0 4px 20px #160d1580;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  font-size: 0.9rem;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 400px;
  }
}
@media (max-width: 1200px) {
  :root {
    --rail-width: 216px;
  }
  .rail {
    padding-inline: 10px;
  }
  .hero-content {
    padding: 32px;
  }
  .hero {
    min-height: 320px;
  }
  .shelf-row,
  .library-grid {
    gap: 13px;
  }
  .feed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) and (min-width: 901px) {
  .logo {
    width: 145px;
  }
  .rail nav a {
    gap: 7px;
    font-size: 0.88rem;
  }
  .shelf-row,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shelf-row .card:nth-child(n + 5) {
    display: none;
  }
  .hero-content {
    width: 74%;
  }
  .hero-pages {
    right: 12px;
    bottom: 12px;
    gap: 5px;
  }
}
@media (min-width: 901px) and (max-height: 700px) {
  .rail { padding-block: 16px 10px; }
  .logo { width: 135px; margin-bottom: 18px; }
  .rail nav a { min-height: 34px; }
  .rail-rule { margin-block: 12px; }
}
@media (max-width: 900px) {
  .rail,
  .top-name,
  kbd {
    display: none;
  }
  .shell {
    margin: 0;
  }
  .top {
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    height: auto;
    display: grid;
    grid-template-columns: clamp(91px, 25vw, 136px) minmax(0, 1fr) 44px;
    gap: clamp(8px, 3vw, 16px);
  }
  .mobile-user,
  .mobile-logo,
  .mobile-nav {
    display: flex !important;
  }
  .mobile-logo {
    width: 100%;
    min-height: 44px;
    align-items: center;
  }
  .mobile-user {
    width: 44px;
    height: 44px;
  }
  .searchbox {
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 24px;
  }
  .searchbox input {
    font-size: 1rem;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 4;
    justify-content: space-around;
    gap: 4px;
    padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: #1b111bf5;
    border-top: 1px solid #4b3442;
    backdrop-filter: blur(12px);
  }
  .mobile-nav a,
  .mobile-nav button {
    color: var(--muted);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 1px;
    font-size: 0.75rem;
    padding: 2px;
  }
  .mobile-nav [aria-current='page'],
  .mobile-nav .active-section {
    color: var(--copper);
  }
  .mobile-nav i {
    width: 44px;
    height: 25px;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
  }
  .mobile-nav [aria-current='page'] i,
  .mobile-nav .active-section i {
    background: #402b33;
  }
  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }
  main {
    padding: 16px max(18px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  }
  .hero {
    min-height: 350px;
    border-radius: 18px;
    align-items: flex-end;
  }
  .hero-art {
    width: 100%;
    object-position: center 32%;
  }
  .hero-wash {
    background:
      linear-gradient(0deg, #20141d 1%, #20141de0 26%, #20141d33 80%),
      linear-gradient(90deg, #24151dbf, transparent 80%);
  }
  .hero-content {
    padding: 92px clamp(18px, 4vw, 32px) 23px;
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 4.2rem);
    margin: 13px 0 9px;
    max-width: 95%;
  }
  .hero-label {
    font-size: 0.68rem;
  }
  .hero-meta {
    font-size: 0.82rem;
  }
  .hero-content p {
    font-size: 0.9rem;
    max-width: 39ch;
    margin: 9px 0 15px;
  }
  .hero-pages {
    top: 10px;
    right: 10px;
    bottom: auto;
    gap: 2px;
    background: #1d141ce0;
    border: 1px solid #ffffff40;
    border-radius: 24px;
  }
  .icon-button, .save-card {
    min-width: 44px;
    min-height: 44px;
  }
  .hero-pages .icon-button {
    background: transparent;
    border: none;
  }
  .shelf,
  .premieres {
    margin-top: 23px;
  }
  .title-line {
    gap: 9px;
  }
  .shelf .title-line {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head {
    margin-bottom: 13px;
  }
  .shelf .section-head {
    align-items: flex-start;
  }
  .shelf .text-link {
    padding-top: 8px;
  }
  .shelf-row {
    display: grid;
    grid-template-columns: none;
    grid-auto-columns: clamp(136px, 38%, 182px);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #614352 transparent;
    padding: 0 2px 7px;
  }
  .shelf-row .card {
    scroll-snap-align: start;
  }
  .card-title {
    font-size: 0.92rem;
  }
  .card-meta {
    font-size: 0.78rem;
  }
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .page-title {
    align-items: center;
  }
  .soft,
  .primary,
  .hero-secondary,
  .tabs button {
    min-height: 44px;
    font-size: 0.87rem;
  }
  .text-link {
    min-height: 44px;
  }
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sheet,
  .detail-content {
    padding: 20px;
  }
  .edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edit-fields > label:first-child {
    grid-column: 1/-1;
  }
  #toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .detail-still {
    height: 210px;
  }
}
@media (max-width: 440px) {
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 325px;
  }
  .hero-meta {
    gap: 6px;
  }
  .tabs button {
    padding: 5px 9px;
  }
  .page-title .soft {
    padding: 8px 10px;
  }
  main {
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }
  .hero-content {
    padding-inline: 18px;
  }
  .hero-content p {
    max-width: 33ch;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.state-watched {
  color: var(--green);
}
.state-forgotten {
  color: #f0c593;
}
.state-watching {
  color: #b8cbef;
}
.state-skip,
.state-dropped {
  color: #e6adb7;
}
.memory-mark, .memory-key svg {
  background: var(--mark-fill);
  color: #1c211e;
}
.watched { --mark-fill: #9edab3; }
.forgotten { --mark-fill: #f4c577; }
.memory-mark {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #21172088;
  box-shadow: 0 1px 4px #0006;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.memory-mark svg { width: 17px; height: 17px; stroke-width: 2.4; }
.memory-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.memory-key span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }
.memory-key svg { width: 17px; height: 17px; padding: 2px; border-radius: 50%; stroke-width: 2.4; }
.note-excerpt {
  font-size: 0.87rem;
  color: #ead8e0;
  margin-top: 6px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#dialogFeedback {
  padding: 8px 18px;
  background: #412b35;
  color: var(--copper);
  font-size: 0.9rem;
}
.card-title,
.hero h1,
.detail-content h2,
.feed-item strong {
  overflow-wrap: anywhere;
}
@media (max-width: 440px) {
  .filter-top,
  .page-title,
  .premieres .section-head {
    flex-wrap: wrap;
  }
  .hero-label,
  .nav-label {
    font-size: 0.75rem;
  }
}

@container (max-width: 744px) {
  .platform-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
    padding: 8px 12px;
  }
  .platform-toggle small, .platform-toggle strong {
    display: block;
    line-height: 1.35;
  }
  .platform-toggle small {
    font-size: .75rem;
  }
  .platform-toggle strong {
    color: var(--text);
    font-size: .94rem;
  }
  .platform-toggle > svg {
    margin-left: auto;
    transform: rotate(90deg);
  }
  .platform-toggle[aria-expanded='true'] > svg {
    transform: rotate(-90deg);
  }
  .platform-toggle[aria-expanded='false'] + .platform-options {
    display: none;
  }
  .platform-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }
  .platform-options button {
    min-height: 66px;
    gap: 4px;
  }
  .platform-options .platform-symbol {
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 600px) {
  .active-filters button {
    min-height: 44px;
  }
  dialog, dialog.wide, dialog.auth-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top)));
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .dialog-scroll {
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    overscroll-behavior: contain;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  .sheet, .auth-dialog .sheet, .detail-content {
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .list-heading {
    flex-wrap: wrap;
  }
  .list-heading h2, .section-head h1 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-toolbar {
    margin-bottom: 14px;
  }
  .feed-item strong {
    font-size: 0.93rem;
  }
}
.google-signin {
  margin: 18px 0 12px;
  text-align: center;
}
.google-button {
  display: flex;
  justify-content: center;
}
.google-retry {
  min-height: 44px;
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.google-signin .form-hint {
  margin: .5rem 0;
}
.google-signin button[hidden], #renewGoogle[hidden] {
  display: none;
}
.google-button {
  color-scheme: light;
  min-width: 0;
  max-width: 100%;
}
.list-picker {
  max-width: 28rem;
}
.list-heading {
  margin: 1.5rem 0 0.75rem;
}
.list-actions {
  margin-bottom: 1.25rem;
}
.list-matches {
  display: grid;
  margin-top: 1rem;
}
.list-matches button {
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 0.8rem 0.2rem;
}
.list-matches button[aria-pressed="true"] {
  color: var(--copper);
}
.list-matches svg {
  width: 1.1rem;
  flex-shrink: 0;
}
.membership {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0;
}
.membership label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}
.membership input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}
.list-heading h2 {
  overflow-wrap: anywhere;
}
.community-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.community-tools .tabs button {
  min-height: 30px;
  font-weight: 600;
}
.community-tools .icon-button {
  border-color: var(--line);
  color: var(--copper);
}
.community-tools .icon-button[aria-disabled="true"] { opacity: .55; }
.community-heading {
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.community-heading h2 { overflow-wrap: anywhere; }
.community-heading .text-link { gap: 6px; }
.community-empty {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px clamp(14px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.community-empty > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #3b2930;
  color: var(--copper);
  border-radius: 10px;
}
.community-empty svg { width: 22px; height: 22px; }
.community-empty h3 { font-size: 1rem; }
.community-empty p {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}
@media (max-width: 900px), (pointer: coarse) {
  .community-tools .tabs button, .community-tools .icon-button { min-height: 44px; }
  .community-tools .icon-button { min-width: 44px; }
}
.watch-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.watch-post {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: var(--panel);
}
.watch-post img,
.post-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  object-fit: cover;
}
.post-placeholder {
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--copper);
}
.post-placeholder svg {
  width: 1.6rem;
}
.watch-post h3 {
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}
.watch-post p,
.watch-post small {
  color: var(--muted);
}
.watch-post p {
  margin: 0.25rem 0 0.7rem;
}
.author-link {
  border: 0;
  background: transparent;
  color: var(--copper);
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.watch-post .public-review {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  border-inline-start: 2px solid var(--copper);
  padding-inline-start: 10px;
  margin: 10px 0 14px;
}
.watch-post .community-score { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.community-score strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.community-score span, .community-score small { font-size: .8rem; }
@media (max-width: 390px) {
  .community-tools .tabs button { padding-inline: 6px; }
}
.shelf-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.quick-mark {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  color: var(--text);
  background: #20151ddd;
}
.quick-mark.memory-mark {
  color: #1c211e;
  background: var(--mark-fill);
  pointer-events: auto;
}
.quick-mark:hover { border-color: var(--copper); color: var(--copper); }
.quick-mark.memory-mark:hover { color: #1c211e; filter: brightness(1.16); }
.quick-mark:focus-visible, .save-card:focus-visible { outline-offset: -3px; }
.quick-states {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.quick-states legend { margin-bottom: 7px; }
.quick-states label, #shareFilmForm .spoiler-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-states label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 44px;
  cursor: pointer;
}
.quick-states label:has(:checked) { border-color: var(--copper); background: #3b2930; }
.quick-states label svg { color: var(--green); }
.quick-states label + label svg { color: #f4c577; }
.quick-states input, #shareFilmForm .spoiler-check input { flex: none; width: auto; min-height: 0; accent-color: var(--copper); }
.rating-picker {
  min-width: 0;
  padding: 10px 12px 8px;
  background: #21171f;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rating-head, .rating-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}
.rating-head { margin-bottom: 8px; }
.rating-head > span { font-size: 0.88rem; font-weight: 650; }
.rating-head svg { color: var(--copper); margin-inline-end: 6px; }
.rating-value {
  color: var(--muted);
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
}
.rating-value strong { font-weight: 600; }
.rating-value:has([data-rating-scale]:not([hidden])) strong { color: var(--copper); font-size: 1.27rem; }
.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.rating-step {
  position: relative;
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.rating-step > input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.rating-step > span {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--text);
  border-radius: 7px;
  background: #30232b;
  border: 1px solid #644b59;
}
.rating-step:hover > span { border-color: var(--copper); }
.rating-step > input:checked + span {
  border-color: var(--copper);
  color: #2e1a20;
  background: var(--copper);
}
.rating-step > input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 1px; }
.rating-actions { margin-top: 4px; }
.rating-half, .rating-clear {
  min-height: 44px;
  padding: 0 7px;
  font-size: .83rem;
}
.rating-half { color: var(--copper); font-weight: 650; }
.rating-half[aria-pressed="true"] { border-radius: 7px; background: #483036; }
.rating-clear { color: var(--muted); }
.rating-clear svg { margin-inline-end: 4px; }
.rating-actions button:hover:not(:disabled) { color: var(--text); }
@media (min-width: 625px) {
  dialog.wide .rating-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.starter-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--panel);
}
.starter-card:first-child { margin: 0 0 18px; }
.starter-card h2 { font: 650 1.05rem/1.2 var(--sans); }
.starter-card p, .starter-progress { color: var(--muted); font-size: .9rem; margin-top: 5px; }
#starterResults { margin-bottom: 12px; }
.recommendation-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 154px), 1fr));
  gap: 8px 12px;
  align-items: end;
  padding: 12px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.recommendation-filters label { min-width: 0; color: var(--muted); font-size: .82rem; }
.recommendation-filters select { min-width: 0; color: var(--text); font-size: .92rem; }
.recommendation-empty .button-row { margin-top: 10px; }
.hero-pages .hero-secondary { align-items: center; letter-spacing: normal; }
.premiere-filters > .tabs { margin-bottom: 10px; width: fit-content; }
.feed-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.premiere-save {
  display: inline-flex;
  align-items: center;
  text-align: start;
  gap: 6px;
  padding: 4px 0;
  margin-top: 5px;
  min-height: 32px;
  color: var(--copper);
  font-size: .82rem;
  line-height: 1.2;
}
.premiere-save:hover { text-decoration: underline; }
.premiere-save:disabled { color: var(--muted); opacity: 1; cursor: default; }
.premiere-save[aria-pressed="true"] { color: var(--green); }
.community-tools .tabs { max-width: 100%; flex-wrap: wrap; }
.spoiler { margin: 7px 0 10px; }
.spoiler summary { color: var(--copper); cursor: pointer; padding: 5px 0; font-size: .85rem; }
.spoiler summary svg { margin-inline-end: 4px; }
@media (max-width: 600px), (pointer: coarse) {
  .quick-mark, .premiere-save { min-height: 44px; }
  .quick-mark { min-width: 44px; }
}
@media (max-width: 600px) {
  .hero-pages { border: 0; background: transparent; }
  .recommendation-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.shelf-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .9rem;
}
.shelf-shortcuts svg {
  width: 14px;
  color: var(--copper);
}
.empty-catalog {
  margin-top: 12px;
  text-align: center;
}

.admin-entry, .admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.admin-entry {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .75rem 1rem;
  margin: 1rem 0;
}
.admin-entry small { color: var(--copper); }
.admin-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.admin-row { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.admin-row div { min-width: 0; overflow-wrap: anywhere; }
.admin-row small { display: block; color: var(--muted); }
.admin-row .active { color: var(--green); }
.admin-row .paused { color: var(--rose); }
#adminMore[hidden] { display: none; }
.card-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .35rem;
}
.card-platforms a {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card-platforms a:hover {
  border-color: var(--copper);
}
.card-platforms .platform-symbol {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}
.detail-poster img {
  object-fit: contain;
}
