:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-soft: #fcfbf8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --line: rgba(30, 34, 40, 0.1);
  --text: #1a1f26;
  --muted: #68707a;
  --accent: #6c7cff;
  --accent-soft: rgba(108, 124, 255, 0.14);
  --success: #2f9e73;
  --warning: #da8f35;
  --shadow: 0 18px 48px rgba(25, 29, 36, 0.08);
  --shadow-soft: 0 10px 30px rgba(25, 29, 36, 0.05);
  --radius: 8px;
  --radius-lg: 8px;
  --space: 16px;
  --sidebar: 288px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-soft: #11161d;
  --surface: rgba(18, 23, 31, 0.88);
  --surface-strong: #151b22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #a4afbc;
  --accent: #8b95ff;
  --accent-soft: rgba(139, 149, 255, 0.16);
  --success: #54c392;
  --warning: #efb15c;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(108, 124, 255, 0.04), transparent 18%),
    linear-gradient(135deg, rgba(47, 158, 115, 0.03), transparent 35%),
    var(--bg);
  color: var(--text);
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(108, 124, 255, 0.06), transparent 20%),
    linear-gradient(135deg, rgba(47, 158, 115, 0.05), transparent 38%),
    var(--bg);
}

.login-card {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.login-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.login-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.05rem;
}

.login-card .form-grid {
  grid-template-columns: 1fr;
}

.login-card input {
  width: 100%;
}

.login-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.login-message.error {
  color: #c84d4d;
}

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

.login-actions .ghost-button,
.login-actions .primary-button {
  min-width: 140px;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.65), rgba(13, 17, 23, 0.25));
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #8dc2ff);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  text-align: left;
}

.brand-name:hover {
  color: var(--accent);
}

.brand-subtitle,
.panel-label,
.eyebrow,
.section-kicker {
  color: var(--muted);
  font-size: 0.82rem;
}

.primary-action,
.ghost-action,
.ghost-button,
.primary-button,
.nav-item,
.bottom-item {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-action,
.ghost-action,
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-action,
.primary-button {
  background: linear-gradient(145deg, var(--accent), #7fc4ff);
  border-color: transparent;
  color: white;
  box-shadow: 0 12px 26px rgba(108, 124, 255, 0.22);
}

.brand-action {
  width: 42px;
  padding: 0;
  flex: 0 0 auto;
}

.primary-action:hover,
.primary-button:hover,
.ghost-action:hover,
.ghost-button:hover,
.nav-item:hover,
.bottom-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}

.nav-item.active,
.bottom-item.active {
  background: var(--accent-soft);
  border-color: rgba(108, 124, 255, 0.2);
}

.sidebar-panel {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

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

.sidebar-stats strong {
  display: block;
  font-size: 1.05rem;
}

.sidebar-stats span {
  color: var(--muted);
  font-size: 0.76rem;
}

.main {
  min-width: 0;
  padding: 20px 22px 32px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h1,
.section-header h2,
.surface-panel h3,
.modal-header h2 {
  margin: 0;
  line-height: 1.1;
}

.topbar h1 {
  font-size: clamp(1.75rem, 2vw, 2.35rem);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.searchbox {
  width: min(360px, 44vw);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 auto;
}

.content {
  display: grid;
  gap: 20px;
  animation: fadeUp 0.34s ease both;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.38)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .hero-copy {
  background:
    linear-gradient(180deg, rgba(21, 27, 34, 0.75), rgba(18, 23, 31, 0.58)),
    var(--surface);
}

.hero-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  max-width: 18ch;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cover-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.cover-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
}

.cover-tile .tile-label {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(18, 23, 31, 0.68);
  color: white;
  font-size: 0.73rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.stat-card,
.surface-panel,
.anime-card,
.ranking-item,
.result-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 16px;
}

.stat-card .value {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.stat-card .hint {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.dashboard-grid,
.discover-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.surface-panel {
  padding: 18px;
}

.panel-header,
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h3,
.section-header h2 {
  font-size: 1.28rem;
}

.stack-list,
.recommendation-list,
.search-results {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(30, 34, 40, 0.06);
}

[data-theme="dark"] .mini-item {
  background: rgba(255, 255, 255, 0.04);
}

.mini-item strong,
.anime-card h3,
.ranking-title,
.result-title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.mini-item span,
.anime-meta,
.ranking-meta,
.result-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.thumb,
.poster {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(30, 34, 40, 0.08);
  background: #d9dde6;
}

.thumb {
  width: 44px;
  height: 44px;
}

.thumb img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.anime-card {
  overflow: hidden;
  display: grid;
  cursor: pointer;
}

.poster {
  position: relative;
  aspect-ratio: 0.68;
}

.poster .badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(22, 28, 34, 0.74);
}

.favorite-fab {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 23, 31, 0.62);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.favorite-fab.active {
  color: #ff7f9f;
}

.anime-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--warning);
  font-weight: 800;
  font-size: 0.84rem;
}

.progress {
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(110, 118, 136, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7ad3ff);
}

.progress label,
.anime-actions,
.ranking-actions,
.modal-actions,
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.anime-actions button,
.ranking-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.tiny-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
}

.section-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 36px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  align-items: center;
  cursor: pointer;
}

.ranking-thumb {
  width: 44px;
  height: 60px;
}

.rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.ranking-copy {
  min-width: 0;
}

.ranking-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.ranking-tracked {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(108, 124, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
}

.sortbar label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.sortbar select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  outline: none;
}

.sortbar select:focus,
.searchbox:focus-within,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(108, 124, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(108, 124, 255, 0.1);
}

.chip-row {
  justify-content: flex-end;
}

.ranking-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.chip.active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(108, 124, 255, 0.2);
}

.result-item {
  padding: 10px;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.result-item .result-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-item .result-cover {
  pointer-events: none;
}

.result-side {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.result-rank {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.result-item .result-cover {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.result-item .thumb {
  width: 44px;
  height: 44px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 8px;
  padding: 10px 10px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  z-index: 20;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(13, 17, 23, 0.85);
}

.bottom-item {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 6px;
  font-size: 0.74rem;
  font-weight: 800;
}

.mobile-only {
  display: none;
}

.hidden {
  display: none;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(720px, calc(100vw - 24px));
}

.modal[open] {
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: auto;
}

.modal::backdrop {
  background: rgba(9, 12, 16, 0.42);
  backdrop-filter: blur(4px);
}

.modal-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 18px;
}

.details-modal {
  width: min(900px, calc(100vw - 24px));
}

#animeDetailsModal[open] {
  display: block;
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(820px, calc(100vw - 32px));
  padding: 0;
  margin: 0;
  z-index: 25;
}

#animeDetailsModal .details-modal {
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.details-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.details-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.details-poster {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 0.72;
}

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

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

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

.details-grid div {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.details-grid span,
.details-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.details-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.details-synopsis {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.details-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.details-meta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.details-services,
.watch-provider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.details-services {
  margin-top: -2px;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.provider-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.watch-provider-row.compact .provider-label,
.watch-provider-row.compact .provider-badge {
  font-size: 0.64rem;
}

.details-editor {
  display: grid;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.details-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.title-field {
  position: relative;
}

.form-grid input[readonly] {
  opacity: 0.9;
  cursor: default;
}

.title-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.title-suggestion {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

[data-theme="dark"] .title-suggestion {
  background: rgba(255, 255, 255, 0.04);
}

.title-suggestion strong {
  display: block;
}

.title-suggestion .suggestion-copy {
  min-width: 0;
}

.suggestion-thumb {
  width: 40px;
  height: 54px;
}

.title-suggestion .suggestion-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.toggle-row {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero-strip,
  .dashboard-grid,
  .discover-layout,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  .main {
    padding-bottom: 96px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .searchbox {
    width: min(280px, 44vw);
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .searchbox {
    width: 100%;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

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

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

  .ranking-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .ranking-thumb {
    grid-column: 1;
    grid-row: 1;
  }

  .rank-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .ranking-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ranking-side {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-items: start;
  }

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

  .mini-item {
    grid-template-columns: 1fr;
  }
}
