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

:root {
  --bg: #2a2a2a;
  --bg-dark: #1a1a1a;
  --bg-panel: #333;
  --bg-card: #3a3a3a;
  --border: #4a4a4a;
  --text: #fff;
  --text-dim: #bbb;
  --text-muted: #888;
  --green: #6ac045;
  --green-hover: #5dad3a;
  --green-dark: #4a9630;
  --yellow: #f5c518;
  --radius: 3px;
  --font: "Open Sans", Arial, sans-serif;
  --container: 1170px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: #8fd66a;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Header ── */
.site-header {
  flex-shrink: 0;
  background: var(--bg-dark);
  border-bottom: 4px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.site-header__top {
  background: #222;
  border-bottom: 1px solid #444;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 12px 15px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.brand__logo-img {
  display: block;
  max-height: 42px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand__logo-img[hidden],
.brand__logo[hidden] {
  display: none !important;
}

.brand__tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-search {
  flex: 1;
  display: flex;
  min-width: 220px;
  max-width: 480px;
  margin: 0 auto;
}

.header-search input {
  flex: 1;
  border: 1px solid #555;
  border-right: none;
  background: #444;
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}

.header-search input:focus {
  border-color: var(--green);
  background: #4a4a4a;
}

.header-search input::placeholder {
  color: #999;
}

.header-search button {
  border: none;
  background: var(--green);
  color: #fff;
  padding: 0 20px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header-search button:hover {
  background: var(--green-hover);
}

.header-nav {
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav a:hover {
  color: var(--green);
  text-decoration: none;
}

/* Filter bar */
.site-header__filters {
  background: var(--bg-panel);
  border-bottom: 1px solid #444;
}

.site-header__filters.is-hidden {
  display: none;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 10px 15px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
}

.filter-item select {
  background: #444;
  border: 1px solid #555;
  color: #fff;
  padding: 5px 8px;
  font: inherit;
  font-size: 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 100px;
}

.filter-item select:hover,
.filter-item select:focus {
  border-color: var(--green);
  outline: none;
}

.btn-browse {
  margin-left: auto;
  background: var(--green);
  border: none;
  color: #fff;
  padding: 7px 22px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-browse:hover {
  background: var(--green-hover);
}

/* ── Main ── */
.main {
  flex: 1 0 auto;
  padding: 0 0 3rem;
}

.loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #555;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-box {
  max-width: 600px;
  margin: 2rem auto;
  background: rgba(200, 50, 50, 0.15);
  border: 1px solid #c44;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

/* ── Home hero ── */
.home-hero {
  background: linear-gradient(180deg, #333 0%, var(--bg) 100%);
  border-bottom: 1px solid #444;
  padding: 2rem 0 1.75rem;
  margin-bottom: 1.5rem;
}

.home-hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.home-hero p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 900px;
}

.home-hero strong {
  color: #fff;
}

/* ── Sections ── */
.section-block {
  padding: 0 15px;
  max-width: var(--container);
  margin: 0 auto 2.25rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--green);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

.section-head h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.section-head a {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
}

.section-head a:hover {
  text-decoration: underline;
}

/* ── Movie grid (YTS style) ── */
.movies-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.movies-row--featured {
  grid-template-columns: repeat(4, 1fr);
}

.movies-row--upcoming .movie-box {
  opacity: 0.92;
}

.movie-box {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s;
}

.movie-box:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.movie-box:hover .movie-box__img img {
  opacity: 0.85;
}

.movie-box__img {
  position: relative;
  background: #222;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.movie-box__img img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.movie-box__rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.82);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 2px;
  line-height: 1;
}

.movie-box__rating span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.72rem;
}

.movie-box__year {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(106, 192, 69, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
}

.badge-new {
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-new--card {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.badge-dup {
  display: inline-block;
  background: #c45c5c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-left: 4px;
}

.admin-movies__row--dup {
  background: rgba(196, 92, 92, 0.08);
}

.admin-movies__dup-hint {
  color: #c45c5c;
  font-size: 0.72rem;
  font-weight: 600;
}

.movie-box__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-box__genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.movie-box__genre {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.movie-box__genre::after {
  content: " · ";
  color: #666;
  font-weight: 400;
}

.movie-box__genre:last-child::after {
  content: "";
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  grid-column: 1 / -1;
}

/* Browse page title */
.page-title {
  max-width: var(--container);
  margin: 1.5rem auto 1.25rem;
  padding: 0 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  border-left: 4px solid var(--green);
  padding-left: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination button {
  background: #444;
  border: 1px solid #555;
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.pagination button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination__info {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* ── Movie page (YTS style) ── */
.movie-page {
  position: relative;
}

.movie-banner {
  height: 280px;
  background-size: cover;
  background-position: center top;
  position: relative;
}

.movie-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, var(--bg) 100%);
}

.movie-page__inner {
  position: relative;
  margin-top: -120px;
  padding-bottom: 2rem;
}

.movie-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.movie-sidebar {
  position: sticky;
  top: 140px;
}

.movie-sidebar__poster {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 1rem;
  display: block;
}

.imdb-box {
  background: #222;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.imdb-box__score {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.imdb-box__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.movie-specs {
  list-style: none;
  background: #333;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.movie-specs li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid #444;
}

.movie-specs li:last-child {
  border-bottom: none;
}

.movie-specs span {
  color: var(--text-muted);
}

.movie-specs strong {
  color: #fff;
  font-weight: 600;
}

.movie-main__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.movie-main__year {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.movie-main__genres {
  margin-bottom: 1.5rem;
}

.movie-section {
  margin-bottom: 1.75rem;
}

.movie-section__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

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

.dl-box {
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: border-color 0.15s;
}

.dl-box:hover {
  border-color: var(--green);
}

.dl-box__quality {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.dl-box__size {
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.dl-box__peers {
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.dl-box__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dl-box__actions .btn-dl {
  display: block;
  text-align: center;
  margin: 0;
}

.movie-synopsis {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
}

.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cast-name {
  background: #444;
  color: #ddd;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.movie-similar {
  margin-top: 2rem;
  padding: 0;
  max-width: 100%;
}

/* Legacy detail (unused) */
.movie-detail {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 15px 0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.movie-detail__hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #222;
}

.movie-detail__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(3px);
  transform: scale(1.04);
  opacity: 0.3;
}

.movie-detail__hero-inner {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  flex-wrap: wrap;
}

.movie-detail__poster {
  width: 220px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.movie-detail__info {
  flex: 1;
  min-width: 260px;
}

.movie-detail__title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.movie-detail__year {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.movie-detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.movie-detail__stats span {
  background: #444;
  padding: 4px 10px;
  border-radius: var(--radius);
}

.movie-detail__stats .rating {
  color: var(--yellow);
  font-weight: 700;
}

.genre-tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  margin: 0 4px 4px 0;
  text-decoration: none;
  text-transform: uppercase;
}

.movie-detail__desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
}

.btn-trailer {
  display: inline-flex;
  margin-top: 1rem;
  background: transparent;
  border: 1px solid #666;
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-trailer:hover {
  border-color: var(--green);
  color: var(--green);
}

.movie-trailer {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #444;
}

.movie-trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.movie-screenshot {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #444;
  background: #222;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.movie-screenshot:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.movie-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.subtitle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.subtitle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.3rem 0.5rem;
  background: #2e2e2e;
  border: 1px solid #555;
  border-radius: 2px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subtitle-note {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.torrents {
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.torrents__title {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #2a2a2a;
  border-bottom: 1px solid #444;
  color: var(--green);
}

.torrents table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.torrents th,
.torrents td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #444;
}

.torrents th {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  background: #2e2e2e;
}

.torrents tr:hover td {
  background: #3e3e3e;
}

.btn-dl {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: var(--radius);
  text-decoration: none !important;
  text-transform: uppercase;
  margin-right: 4px;
}

.btn-dl:hover {
  background: var(--green-hover);
}

.btn-magnet {
  background: #555;
}

.btn-magnet:hover {
  background: #666;
}

.seeds { color: var(--green); font-weight: 700; }
.peers { color: var(--text-muted); }

/* ── Admin panel ── */
.admin-wrap {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 15px 3rem;
}

.admin-card {
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.admin-card h1,
.admin-panel h1 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.admin-sub,
.admin-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.admin-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 9px 12px;
  background: #444;
  border: 1px solid #555;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
}

.admin-form input:focus {
  border-color: var(--green);
  outline: none;
}

.admin-form button {
  width: 100%;
  margin-top: 0.5rem;
}

.admin-error {
  color: #f88;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.admin-panel {
  background: #333;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 720px;
}

.admin-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}

.btn-admin-outline {
  background: transparent;
  border: 1px solid #666;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-admin-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.admin-tabs__btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-tabs__btn:hover {
  color: var(--text);
  border-color: #666;
}

.admin-tabs__btn--active {
  background: rgba(106, 192, 69, 0.15);
  border-color: var(--green);
  color: var(--green);
}

.admin-tabs__panels {
  min-height: 200px;
}

.admin-tab[hidden] {
  display: none !important;
}

.admin-tab__subtitle {
  margin-top: 2rem;
}

.admin-stat {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.admin-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.admin-stat strong {
  font-size: 1.1rem;
  color: var(--green);
  word-break: break-all;
}

.admin-section h2 {
  font-size: 0.95rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.admin-scrape {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 1rem 0;
}

.admin-scrape label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-scrape input {
  display: block;
  margin-top: 0.35rem;
  width: 120px;
  padding: 8px 10px;
  background: #444;
  border: 1px solid #555;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
}

.admin-scrape select {
  display: block;
  margin-top: 0.35rem;
  min-width: 90px;
  padding: 8px 10px;
  background: #444;
  border: 1px solid #555;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
}

.admin-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.4rem;
}

.admin-check input {
  display: inline-block;
  width: auto;
  margin-top: 0;
}

.admin-auto-status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.5;
}

.admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.admin-list-toolbar label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-list-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.admin-pagination span {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 4rem;
  text-align: center;
}

.admin-bulk-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(196, 92, 92, 0.1);
  border: 1px solid #633;
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.admin-movies__check {
  width: 2rem;
  text-align: center;
}

.admin-movies__check input {
  cursor: pointer;
}

.admin-files-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.admin-files-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-files-create h3,
.admin-file-editor h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.admin-file-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-file-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.admin-file-form input,
.admin-file-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
}

.admin-file-form input[type="file"] {
  padding: 0.35rem 0;
  border: none;
  background: transparent;
}

.admin-files-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-files {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-files th,
.admin-files td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-files__path a {
  color: var(--accent);
  text-decoration: none;
}

.admin-files__path a:hover {
  text-decoration: underline;
}

.admin-file-editor {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-file-editor textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem;
  resize: vertical;
}

.admin-file-editor__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.admin-branding {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.admin-branding label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.admin-branding input[type="text"] {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
}

.admin-branding__preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1rem;
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-branding__logo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.admin-branding__logo label {
  flex: 1;
  min-width: 200px;
}

.admin-log {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.78rem;
  color: #aaa;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
}

.admin-movies-wrap {
  overflow-x: auto;
  border: 1px solid #444;
  border-radius: var(--radius);
}

.admin-movies {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-movies th,
.admin-movies td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.admin-movies th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1e1e1e;
}

.admin-movies tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-movies__row--new {
  background: rgba(255, 204, 0, 0.06);
}

.admin-movies__title {
  font-weight: 600;
  color: #fff;
}

.admin-movies__slug {
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.admin-movies__link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.admin-movies__link:hover {
  text-decoration: underline;
}

.admin-movies__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-admin-delete {
  background: transparent;
  border: 1px solid #a44;
  color: #e88;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}

.btn-admin-delete:hover:not(:disabled) {
  background: rgba(196, 92, 92, 0.15);
  color: #faa;
}

.btn-admin-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-movies-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem !important;
}

.seo-prerender {
  max-width: var(--container);
  margin: 2rem auto;
  padding: 0 15px;
  color: var(--text);
}

.seo-prerender h1 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.seo-prerender img {
  max-width: 220px;
  border-radius: var(--radius);
  margin: 0 0 1rem;
  display: block;
}

.seo-prerender p {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background: var(--bg-dark);
  border-top: 1px solid #444;
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .movies-row,
  .movies-row--featured {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .movie-layout {
    grid-template-columns: 1fr;
  }

  .movie-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    align-items: start;
  }

  .movie-sidebar__poster {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .imdb-box {
    margin-bottom: 0;
  }

  .movie-specs {
    grid-column: 1 / -1;
  }

  .movie-screenshots {
    grid-template-columns: 1fr;
  }

  .header-row {
    gap: 0.75rem;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .btn-browse {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .movies-row,
  .movies-row--featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .brand__logo {
    font-size: 1.6rem;
  }

  .movies-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-detail__poster {
    width: 140px;
  }

  .torrents {
    overflow-x: auto;
  }

  .torrents table {
    min-width: 500px;
  }
}
