/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-card: #14141f;
  --bg-panel: #1a1a2e;
  --bg-input: #1e1e30;
  --border: #2a2a3e;
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --accent: #E4B742;
  --accent-hover: #CE943B;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}

html { font-size: 15px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== Header ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 34px; display: block; }

.search-box {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.search-box button:hover { background: var(--accent-hover); }

.header-stats {
  font-size: .8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* User menu */
.user-menu { position: relative; }
.user-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s;
}
.user-btn:hover { border-color: var(--accent); }
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 101;
  overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: .85rem;
  transition: background .15s;
}
.user-dropdown a:hover { background: var(--bg-input); }

/* ===== Filters ===== */
#filters {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filters-inner select {
  padding: 7px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .82rem;
  cursor: pointer;
  outline: none;
  min-width: 90px;
}
.filters-inner select:focus { border-color: var(--accent); }

/* Type toggle */
.type-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.toggle-btn {
  padding: 7px 16px;
  background: var(--bg-input);
  border: none;
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.toggle-btn:not(:last-child) { border-right: 1px solid var(--border); }
.toggle-btn.active { background: var(--accent); color: #fff; }
.toggle-btn:not(.active):hover { color: var(--text); }

.filter-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}
.filter-spacer { flex: 1; }
.filters-left { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters-right { display: flex; gap: 8px; align-items: center; }

/* Autocomplete */
.ac-wrap {
  position: relative;
  min-width: 140px;
}
.ac-input-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 32px;
  transition: border-color .2s;
}
.ac-input-area:focus-within { border-color: var(--accent); }
.ac-input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: .82rem;
  outline: none;
  min-width: 70px;
  flex: 1;
  padding: 2px 0;
}
.ac-input::placeholder { color: var(--text-dim); }
.ac-tags { display: contents; }
.ac-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ac-tag-x {
  cursor: pointer;
  font-size: .82rem;
  line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.ac-tag-x:hover { opacity: 1; }
.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.ac-dropdown.show { display: block; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: .82rem;
  transition: background .1s;
}
.ac-item:hover { background: var(--bg-input); }
.ac-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-input);
}
.ac-item-name { flex: 1; }
.ac-item-count { color: var(--text-dim); font-size: .72rem; }

.btn-reset, .btn-hero-toggle {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-reset:hover { border-color: var(--red); color: var(--red); }
.btn-hero-toggle:hover { border-color: var(--accent); color: var(--accent); }
.btn-hero-toggle.active { border-color: var(--accent); color: var(--accent); }

/* ===== Hero section ===== */
.hero-section {
  margin: -24px -20px 28px;
  padding: 28px 20px 28px;
  background: linear-gradient(135deg, rgba(228,183,66,.08) 0%, rgba(26,26,46,.95) 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-section > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.hero-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.hero-grid .movie-card {
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.hero-grid .movie-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(228,183,66,.2);
  filter: brightness(1.1);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(5, 1fr) !important; }
  .hero-grid .movie-card:nth-child(n+6) { display: none; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 10px; }
  .hero-grid .movie-card:nth-child(n+5) { display: none; }
}
@media (max-width: 480px) {
  .hero-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .hero-grid .movie-card:nth-child(n+4) { display: none; }
}

/* ===== Movie Grid ===== */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}
.grid-spacer {
  visibility: hidden;
  aspect-ratio: 2/3;
}

.movie-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(228, 183, 66,.15);
}

.movie-card .poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  background: var(--bg-panel);
}
.movie-card .no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: .8rem;
}

.movie-card .card-info {
  padding: 10px 12px;
}
.movie-card .card-title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card .card-meta {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-vote {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: .78rem;
}
.badge-vote.high { color: var(--green); }
.badge-vote.mid { color: var(--yellow); }
.badge-vote.low { color: var(--red); }

/* Trailer button & modal */
.btn-trailer {
  padding: 5px 14px;
  background: rgba(239, 68, 68, .15);
  border: 1px solid var(--red);
  border-radius: 20px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-trailer:hover { background: var(--red); color: #fff; }

.trailer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}
.trailer-wrap {
  position: relative;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16/9;
}
.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}
.trailer-wrap .detail-close {
  position: absolute;
  top: -42px;
  right: 0;
}

/* TV badge */
.badge-tv {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  background: rgba(228,183,66,.85);
  color: #fff;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Confidence badge */
.badge-confidence {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-confidence.certain { background: rgba(34,197,94,.2); color: var(--green); }
.badge-confidence.probable { background: rgba(234,179,8,.2); color: var(--yellow); }
.badge-confidence.uncertain { background: rgba(239,68,68,.2); color: var(--red); }

/* ===== Loading ===== */
.loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 30px 0;
  flex-wrap: wrap;
}
.pagination button {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.pagination button:hover { border-color: var(--accent); }
.pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination button:disabled {
  opacity: .4;
  cursor: default;
}

/* ===== Detail overlay ===== */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
}
.detail-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 100%;
  background: var(--bg-panel);
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
  animation: slideIn .25s ease-out;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.detail-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.detail-close:hover { border-color: var(--red); color: var(--red); }

/* Detail content */
.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, var(--bg-panel) 100%);
}

.detail-body { padding: 0 24px 40px; }

.detail-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.detail-subtitle {
  font-size: .9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.tag {
  padding: 4px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text-dim);
}

.detail-overview {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.detail-section {
  margin-bottom: 20px;
}
.detail-section h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
}

/* Cast list */
.cast-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.cast-card {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}
.cast-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-input);
}
.cast-card .cast-name {
  font-size: .72rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.2;
}
.cast-card .cast-role {
  font-size: .66rem;
  color: var(--text-dim);
}

/* Torrent table */
.torrent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.torrent-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.torrent-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.torrent-table tr:hover td { background: rgba(228,183,66,.05); }

.torrent-table .seed { color: var(--green); font-weight: 600; }
.torrent-table .leech { color: var(--red); }

.btn-magnet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-magnet:hover { background: var(--accent-hover); color: #fff; }

/* Live stat refresh */
.stat-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-left: 2px;
}
.refreshed {
  animation: flashGreen .6s ease-out;
}
@keyframes flashGreen {
  0% { color: var(--green); text-shadow: 0 0 6px rgba(34,197,94,.5); }
  100% { color: inherit; text-shadow: none; }
}

/* Season tabs */
.season-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.season-tab {
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.season-tab:hover { border-color: var(--accent); color: var(--text); }
.season-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* Pack / episodes sections */
.pack-section {
  margin-bottom: 20px;
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 8px;
  padding: 12px;
  background: rgba(34,197,94,.04);
}
.pack-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .85rem;
  color: var(--text-dim);
}
.badge-pack {
  padding: 3px 10px;
  background: rgba(34,197,94,.15);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.episodes-label {
  font-size: .85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-weight: 500;
}

/* TV info section */
.tv-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tv-meta span {
  font-size: .88rem;
  color: var(--text);
}
.ep-col {
  color: var(--accent);
  white-space: nowrap;
}

/* ruTorrent button */
.torrent-actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.btn-rt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-rt:hover { background: var(--green); color: #fff; }
.btn-rt:disabled { opacity: .7; cursor: wait; }
.btn-rt.rt-success { background: var(--green); color: #fff; border-color: var(--green); }
.btn-rt.rt-error { background: rgba(239,68,68,.15); border-color: var(--red); color: var(--red); }
.rt-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(34,197,94,.3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}

/* Profile / Admin forms */
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: .82rem; color: var(--text-dim); }
.form-group input {
  padding: 9px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.input-sm {
  padding: 7px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .85rem;
  outline: none;
  flex: 1;
  min-width: 120px;
}
.input-sm:focus { border-color: var(--accent); }
.check-label {
  font-size: .82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.btn-save, .btn-test {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-save { background: var(--accent); color: #fff; }
.btn-save:hover { background: var(--accent-hover); }
.btn-test { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); }
.btn-test:hover { border-color: var(--accent); }
.btn-del {
  background: transparent;
  border: 1px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  padding: 4px 10px;
  font-size: .75rem;
  cursor: pointer;
}
.btn-del:hover { background: var(--red); color: #fff; }
.profile-msg { font-size: .85rem; min-height: 20px; margin-top: 4px; }
.profile-msg.success { color: var(--green); }
.profile-msg.error { color: var(--red); }

/* Bootstrap dashboard */
.badge-running { background: var(--green); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .7rem; margin-left: 6px; }
.badge-idle { background: var(--text-dim); color: var(--bg); padding: 2px 8px; border-radius: 4px; font-size: .7rem; margin-left: 6px; }
.bs-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bs-bar { flex: 1; height: 10px; background: var(--bg-input); border-radius: 5px; overflow: hidden; }
.bs-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 5px; transition: width .5s; }
.bs-pct { font-size: .85rem; font-weight: 700; color: var(--accent); min-width: 45px; }
.bs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.bs-stat { background: var(--bg-input); border-radius: 8px; padding: 12px; text-align: center; }
.bs-val { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.bs-label { font-size: .72rem; color: var(--text-dim); margin-top: 2px; }
.bs-detail { font-size: .78rem; color: var(--text-dim); }
.btn-toggle { padding: 4px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--bg-input); color: var(--text-dim); transition: all .2s; }
.btn-toggle.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
  .header-stats { display: none; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .detail-panel { max-width: 100%; }
  .filters-inner { gap: 6px; }
  .filters-inner select { min-width: 75px; font-size: .78rem; }
  .filter-sep { display: none; }
  .filter-spacer { flex-basis: 100%; height: 0; }
  .filters-left { flex-basis: 100%; }
  .filters-right { flex-basis: 100%; justify-content: flex-end; }
  .ac-wrap { min-width: 120px; flex: 1; }
  .torrent-table { font-size: .75rem; }
  .torrent-table th, .torrent-table td { padding: 6px; }
}

@media (max-width: 480px) {
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .movie-card .card-info { padding: 6px 8px; }
  .movie-card .card-title { font-size: .8rem; }
  .detail-title { font-size: 1.3rem; }
}
