/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
select, input { font: inherit; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:         #111827;
  --surface:    #1f2937;
  --surface2:   #374151;
  --border:     #374151;
  --text:       #f9fafb;
  --text-muted: #9ca3af;
  --accent:     #6366f1;
  --accent-dim: rgba(99,102,241,.18);
  --accent-ring:rgba(99,102,241,.35);
  --star:       #f59e0b;
  --danger:     #ef4444;
  --sh-sm:  0 1px 3px rgba(0,0,0,.45);
  --sh-md:  0 4px 14px rgba(0,0,0,.55);
  --sh-lg:  0 12px 40px rgba(0,0,0,.7);
  --radius: 10px;
  --hdr:    60px;
  --nav:    52px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

[data-theme="light"] {
  --bg:         #f3f4f6;
  --surface:    #ffffff;
  --surface2:   #f9fafb;
  --border:     #e5e7eb;
  --text:       #111827;
  --text-muted: #6b7280;
  --accent:     #4f46e5;
  --accent-dim: rgba(79,70,229,.12);
  --accent-ring:rgba(79,70,229,.3);
  --sh-sm:  0 1px 3px rgba(0,0,0,.1);
  --sh-md:  0 4px 14px rgba(0,0,0,.12);
  --sh-lg:  0 12px 40px rgba(0,0,0,.18);
}

body { min-height: 100vh; background: var(--bg); color: var(--text); transition: background .2s, color .2s; }

/* ── Header ──────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hdr);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto; padding: 0 1.5rem; height: 100%;
}
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; user-select: none; }
.logo-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface2); color: var(--text-muted);
  transition: color .15s, border-color .15s; flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ── Tab navigation ──────────────────────────────────────────────────────── */
.tab-nav {
  position: sticky; top: var(--hdr); z-index: 90;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.tab-nav-inner {
  display: flex; max-width: 1600px; margin: 0 auto; padding: 0 1.5rem;
  overflow-x: auto; scrollbar-width: none;
}
.tab-nav-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex; align-items: center; gap: .4rem;
  padding: 0 1rem; height: var(--nav);
  border: none; border-bottom: 2px solid transparent;
  background: none; color: var(--text-muted);
  font-size: .875rem; font-weight: 500; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-count {
  font-size: .7rem; font-weight: 600;
  background: var(--surface2); color: var(--text-muted);
  padding: .1rem .4rem; border-radius: 100px;
  min-width: 1.6rem; text-align: center;
}
.tab-btn.active .tab-count { background: var(--accent-dim); color: var(--accent); }

/* ── Main + Toolbar ──────────────────────────────────────────────────────── */
main { max-width: 1600px; margin: 0 auto; padding: 1.5rem; }

.toolbar {
  display: flex; gap: .75rem; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-wrap { flex: 1; min-width: 200px; position: relative; }
.search-icon {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: .6rem .8rem .6rem 2.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .875rem; outline: none; transition: border-color .15s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input::-webkit-search-cancel-button { display: none; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filters select {
  padding: .6rem .75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .85rem; outline: none; transition: border-color .15s; min-width: 130px;
}
.filters select:focus { border-color: var(--accent); }

/* View toggle */
.view-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-muted);
  transition: color .15s, border-color .15s;
}
.view-toggle:hover { color: var(--text); border-color: var(--accent); }
.view-toggle svg { width: 16px; height: 16px; }

/* ── Recently added strip ────────────────────────────────────────────────── */
.recent-strip { margin-bottom: 1.75rem; }
.section-label {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted); margin-bottom: .65rem;
}
.recent-scroll {
  display: flex; gap: .75rem;
  overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: thin; scrollbar-color: var(--surface2) transparent;
}
.recent-scroll::-webkit-scrollbar { height: 4px; }
.recent-scroll::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.recent-card {
  flex-shrink: 0; width: 100px; cursor: pointer;
  transition: transform .2s;
}
.recent-card:hover { transform: translateY(-3px); }
.recent-card .card-poster { border-radius: 8px; margin-bottom: .35rem; box-shadow: var(--sh-sm); }
.recent-card .card-title { font-size: .72rem; font-weight: 600; line-height: 1.3; margin-bottom: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-card .card-subtitle { font-size: .65rem; color: var(--accent); font-weight: 500; }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 1rem;
}
@media (min-width: 480px)  { .media-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 1.1rem; } }
@media (min-width: 768px)  { .media-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 1.25rem; } }
@media (min-width: 1280px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1.5rem; } }

/* ── Card ────────────────────────────────────────────────────────────────── */
.media-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--sh-sm);
  cursor: pointer; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--sh-md); z-index: 2; }
.media-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-poster {
  position: relative; aspect-ratio: 2/3;
  overflow: hidden; background: var(--surface2);
}
.card-poster.square { aspect-ratio: 1; }

.card-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.media-card:hover .card-poster img { transform: scale(1.06); }

.poster-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface2), var(--border));
  font-size: 2rem; font-weight: 800; color: var(--text-muted);
  letter-spacing: -.04em; opacity: .6; user-select: none;
}

.card-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  opacity: 0; transition: opacity .2s ease;
  display: flex; align-items: flex-end; padding: .65rem;
}
.media-card:hover .card-overlay { opacity: 1; }
.overlay-text {
  font-size: .72rem; color: #fff; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* Resolution badges — always visible over poster */
.card-badges {
  position: absolute; bottom: .4rem; left: .4rem;
  display: flex; gap: .25rem; z-index: 1; flex-wrap: wrap;
}
.res-badge {
  font-size: .58rem; font-weight: 700; letter-spacing: .03em;
  padding: .1rem .3rem; border-radius: 3px;
  background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
}
.res-badge.k4  { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-ring); }
.res-badge.hdr { background: rgba(245,158,11,.2); color: #f59e0b; border-color: rgba(245,158,11,.4); }

.card-body { padding: .55rem .7rem .7rem; }
.card-title {
  font-size: .82rem; font-weight: 600; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .15rem;
}
.card-subtitle { font-size: .73rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: .2rem; }
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .73rem; color: var(--text-muted); margin-bottom: .3rem; }
.card-rating { color: var(--star); font-weight: 700; }
.dot { opacity: .4; }
.card-genres { display: flex; flex-wrap: wrap; gap: .2rem; }
.genre-tag {
  font-size: .63rem; padding: .1rem .38rem; border-radius: 100px;
  background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap;
}

/* ── List view ───────────────────────────────────────────────────────────── */
.media-list { display: flex; flex-direction: column; gap: .35rem; }

.list-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto auto;
  align-items: center; gap: 1rem;
  padding: .55rem .9rem;
  background: var(--surface); border-radius: var(--radius);
  cursor: pointer; transition: background .15s;
  box-shadow: var(--sh-sm);
}
.list-item:hover { background: var(--surface2); }

.list-thumb {
  width: 44px; height: 60px; border-radius: 5px;
  overflow: hidden; background: var(--surface2); flex-shrink: 0;
}
.list-thumb.square { height: 44px; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: var(--text-muted); opacity: .5;
}

.list-title-wrap { min-width: 0; }
.list-title { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub   { font-size: .75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.list-year   { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.list-genres { display: flex; gap: .25rem; }
.list-rating { font-size: .8rem; color: var(--star); font-weight: 700; white-space: nowrap; }

/* ── Skeleton cards ──────────────────────────────────────────────────────── */
.skeleton-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.skeleton-poster {
  aspect-ratio: 2/3; background: var(--surface2); position: relative; overflow: hidden;
}
.skeleton-poster.square { aspect-ratio: 1; }
.skeleton-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.06) 50%, transparent 100%);
  animation: shimmer 1.6s infinite;
}
[data-theme="light"] .skeleton-poster::after {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.05) 50%, transparent 100%);
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-body { padding: .55rem .7rem .7rem; }
.skeleton-line {
  height: .7rem; border-radius: 4px; background: var(--surface2); margin-bottom: .4rem;
  animation: shimmer-fade 1.6s infinite;
}
.skeleton-line.full   { width: 100%; }
.skeleton-line.medium { width: 75%; }
.skeleton-line.short  { width: 50%; }
@keyframes shimmer-fade { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* ── State panels ────────────────────────────────────────────────────────── */
.state-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 5rem 2rem; color: var(--text-muted); text-align: center; font-size: .9rem;
}
.state-panel svg { width: 40px; height: 40px; opacity: .4; }
.state-panel code { font-size: .85em; background: var(--surface2); padding: .1em .35em; border-radius: 4px; }
.state-error svg { color: var(--danger); opacity: .7; }
.spinner {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--surface); border-radius: 16px; box-shadow: var(--sh-lg);
  max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; border: 1px solid var(--border);
}
.modal-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 10;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface2); color: var(--text-muted);
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal-close svg { width: 15px; height: 15px; }

/* Backdrop banner */
.modal-backdrop-img {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: 15px 15px 0 0; display: block;
}

.modal-inner {
  display: flex; gap: 1.5rem; padding: 1.5rem;
}
@media (max-width: 520px) { .modal-inner { flex-direction: column; } }

.modal-poster {
  flex-shrink: 0; width: 130px; border-radius: 8px;
  overflow: hidden; align-self: flex-start;
  box-shadow: var(--sh-md); background: var(--surface2);
}
.modal-poster.square { aspect-ratio: 1; }
.modal-poster img { width: 100%; display: block; }

.modal-details { flex: 1; min-width: 0; }

.modal-title {
  font-size: 1.2rem; font-weight: 700; line-height: 1.25;
  margin-bottom: .15rem; padding-right: 2.5rem;
}
.modal-tagline {
  font-size: .85rem; color: var(--text-muted); font-style: italic;
  margin-bottom: .5rem; line-height: 1.4;
}
.modal-subtitle { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }

.modal-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }
.modal-tag {
  font-size: .75rem; padding: .18rem .55rem; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-ring);
}

.modal-overview { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

.modal-stats {
  display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .65rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.modal-stat { display: flex; flex-direction: column; gap: .1rem; }
.stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.stat-value { font-size: .9rem; font-weight: 600; color: var(--text); }
.stat-value.star { color: var(--star); }

/* External links + trailer */
.modal-links {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.modal-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500;
  padding: .35rem .75rem; border-radius: 7px;
  background: var(--surface2); color: var(--text-muted);
  border: 1px solid var(--border); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.modal-link:hover { color: var(--accent); border-color: var(--accent); }
.modal-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.modal-link.trailer { background: rgba(239,68,68,.15); color: #ef4444; border-color: rgba(239,68,68,.35); }
.modal-link.trailer:hover { background: rgba(239,68,68,.25); }

/* Cast section */
.cast-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.cast-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin-bottom: .6rem; }
.cast-scroll {
  display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .35rem;
  scrollbar-width: thin; scrollbar-color: var(--surface2) transparent;
}
.cast-member { flex-shrink: 0; width: 62px; text-align: center; }
.cast-photo {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; background: var(--surface2); margin: 0 auto .3rem;
  border: 2px solid var(--border);
}
.cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.cast-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--text-muted); background: var(--surface2);
}
.cast-name { font-size: .65rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cast-role { font-size: .6rem; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cast-loading { font-size: .8rem; color: var(--text-muted); padding: .5rem 0; }

/* ── Alphabet bar ────────────────────────────────────────────────────────── */
.alpha-bar {
  position: fixed; right: .6rem; top: 50%; transform: translateY(-50%);
  z-index: 80; display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .3rem .15rem;
  box-shadow: var(--sh-sm);
}
.alpha-btn {
  width: 22px; height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; border: none; background: none;
  color: var(--text-muted); border-radius: 4px; transition: color .1s, background .1s;
}
.alpha-btn:hover:not(:disabled), .alpha-btn.present { color: var(--accent); }
.alpha-btn:disabled { opacity: .2; cursor: default; }

/* ── Stats tab ───────────────────────────────────────────────────────────── */
#statsContent { padding-top: .5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; margin-bottom: 1.75rem;
}
.stats-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem; border: 1px solid var(--border);
}
.stats-card-header {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
}
.stats-card-icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.stats-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.stats-big { font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: .2rem; }
.stats-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; }
.stats-rows { display: flex; flex-direction: column; gap: .45rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.stats-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.stats-row .label { color: var(--text-muted); }
.stats-row .value { font-weight: 600; }
.stats-row .value.star { color: var(--star); }

.stats-genres { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.stats-genres-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin-bottom: .6rem; }
.genre-bar-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; font-size: .75rem; }
.genre-bar-name { width: 90px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.genre-bar-track { flex: 1; height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.genre-bar-fill  { height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s ease; }
.genre-bar-count { color: var(--text-muted); min-width: 28px; text-align: right; flex-shrink: 0; }

.stats-loading { font-size: .9rem; color: var(--text-muted); text-align: center; padding: 2rem; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* ── Mobile: bottom nav bar ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tab-nav {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    border-top: 1px solid var(--border); border-bottom: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,.2);
  }
  .tab-nav-inner { justify-content: space-around; padding: 0; }
  .tab-btn {
    flex: 1; flex-direction: column; justify-content: center;
    height: 58px; padding: .3rem .2rem; gap: .2rem;
    font-size: 0;           /* hides plain text node */
    border-bottom: none; border-top: 2px solid transparent;
  }
  .tab-btn.active { border-top-color: var(--accent); border-bottom-color: transparent; }
  .tab-btn svg { width: 22px; height: 22px; }
  .tab-count { font-size: .6rem; } /* rem units unaffected by parent font-size:0 */
  main { padding: 1rem 1rem calc(58px + 1.25rem); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters { flex-wrap: wrap; }
  .filters select { flex: 1; }
  .alpha-bar { display: none; }
  .list-item { grid-template-columns: 44px 1fr auto; }
  .list-year, .list-genres { display: none; }
}

@media (min-width: 601px) and (max-width: 900px) {
  .list-genres { display: none; }
}
