/* Admin area: roomier layout, larger text, clearer tables and status badges. Loaded after the main parts. */
.admin-layout {
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  padding: 32px 16px;
}
.sidebar small {
  margin: 0 14px 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sidebar a {
  min-height: 46px;
  padding: 11px 16px;
  margin-bottom: 4px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar a:hover {
  background: rgba(127, 127, 127, 0.1);
}
.sidebar a.active {
  border-left-color: var(--accent);
  font-weight: 800;
}
.admin-main {
  padding: 36px clamp(20px, 3vw, 44px) 60px;
}
.admin-main h1 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.15;
}
.admin-main .muted,
.admin-main > p {
  font-size: 17px;
}
.stats {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.stat {
  position: relative;
  padding: 22px 24px 22px 26px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}
.stat small {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.stat strong {
  margin-top: 10px;
  font-size: 42px;
  line-height: 1.1;
}
.notice {
  font-size: 16px;
  line-height: 1.6;
}
.table-wrap {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
table {
  font-size: 16px;
}
th {
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td {
  padding: 18px;
}
tbody tr:nth-child(even) td {
  background: rgba(127, 127, 127, 0.06);
}
tbody tr:hover td {
  background: rgba(255, 202, 88, 0.1);
}
td p {
  margin: 6px 0 0;
  font-size: 15px;
}
td small {
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pagination,
.admin-main .pager {
  font-size: 16px;
}
@media (max-width: 700px) {
  .sidebar {
    padding: 10px 10px 4px;
  }
  .sidebar a {
    min-height: 44px;
    margin: 0;
    padding: 9px 14px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
    white-space: nowrap;
  }
  .sidebar a.active {
    border-bottom-color: var(--accent);
  }
  .stat strong {
    font-size: 34px;
  }
}

/* Dashboard: chart, top movies, backups */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 8px 0 28px;
}
.dash-grid .panel {
  padding: 22px 24px;
  border-radius: 16px;
}
.dash-grid h2 {
  margin: 0 0 6px;
  font-size: 21px;
}
.dash-chart {
  grid-column: 1 / -1;
}
.dash-chart .tabs {
  margin: 0;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.chart-bar {
  fill: var(--accent);
}
.chart-bar:hover {
  fill: #842b57;
}
.chart-grid {
  stroke: rgba(127, 127, 127, 0.28);
  stroke-width: 1;
}
.chart-label {
  fill: var(--muted);
  font-size: 13px;
}
.top-list,
.backup-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.top-list li,
.backup-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.top-list li:first-child,
.backup-list li:first-child {
  border-top: 0;
}
.top-list a,
.backup-list a {
  min-width: 0;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-list span,
.backup-list span {
  flex: none;
  color: var(--muted);
  font-size: 15px;
}
