* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #fff;
}

a {
  text-decoration: none;
}

.center-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 240px;
  background: #020617;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar a {
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 10px;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.content {
  flex: 1;
  padding: 28px;
}

.card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.hero-card {
  max-width: 800px;
  text-align: center;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #111827;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-card strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.video-card {
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.video-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.video-card-body {
  padding: 16px;
}

.form-card {
  max-width: 760px;
}

.form-card label {
  display: block;
  margin: 14px 0 6px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
}

.form-card textarea {
  min-height: 140px;
}

.notice {
  background: #14532d;
  color: #dcfce7;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.notice.danger {
  background: #7f1d1d;
  color: #fee2e2;
}

.list-cards {
  display: grid;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 12px 16px;
  background: #22c55e;
  color: #fff;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  opacity: .95;
}

.btn.small {
  padding: 8px 12px;
  font-size: 14px;
}

.btn.tiktok {
  background: #111;
}

.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(2, 6, 23, 0.92);
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer,
.site-footer a,
.site-footer span {
  color: #94a3b8;
  font-size: 13px;
}

.site-footer a:hover {
  color: #fff;
}

.legal-page-wrap {
  min-height: calc(100vh - 60px);
  padding: 40px 20px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.legal-card h1 {
  margin-top: 0;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-card p {
  color: #d1d5db;
  line-height: 1.6;
}

.legal-date {
  color: #94a3b8;
}

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

  .sidebar {
    width: 100%;
  }

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