:root {
  --bg: #050816;
  --bg-soft: #020617;
  --card: #0b1220;
  --card-soft: #111827;
  --primary: #e1306c;
  --primary-soft: #f56040;
  --accent: #fdc468;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --max-w: 1100px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: radial-gradient(circle at top, #111827 0, #020617 46%, #020617 100%);
  color: var(--text);
}

.page-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(24, 24, 35, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(22px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.brand-text-main {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text-sub {
  font-size: 12px;
  color: var(--muted);
}

.header-tagline {
  font-size: 12px;
  color: var(--muted);
}

.hero-section {
  margin-top: 26px;
  padding: 26px 20px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(225, 48, 108, 0.2), transparent 55%), radial-gradient(circle at bottom right, rgba(88, 81, 219, 0.2), transparent 60%), linear-gradient(145deg, var(--bg-soft), #020617);
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(12, 10, 24, 0.98));
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 1);
  border-color: rgba(248, 250, 252, 0.12);
}

.video-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.video-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), transparent 55%);
  pointer-events: none;
}

.video-thumb {
  width: 100%;
  display: block;
  background: #020617;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.video-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.video-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-title {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0;
}

.video-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

.username-link {
  color: #e5e7eb;
  text-decoration: none;
}

.username-link:hover {
  text-decoration: underline;
}

.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stats-badge span {
  display: inline-block;
}

.recent-section {
  margin-top: 30px;
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(160deg, #020617, #020617 40%, #020617 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.85);
}

.recent-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.recent-link:hover {
  color: var(--primary-soft);
}

.recent-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.page-footer {
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.video-page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 22px;
  margin-top: 22px;
}

.video-main-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(225, 48, 108, 0.15), transparent 55%), radial-gradient(circle at bottom right, rgba(88, 81, 219, 0.22), transparent 60%), linear-gradient(145deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.video-main-frame {
  background: #020617;
}

.video-main-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: #020617;
}

.video-main-body {
  padding: 14px 16px 16px;
}

.video-main-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}

.video-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.video-stat-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.88);
}

.video-download-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: radial-gradient(circle at left, rgba(248, 113, 113, 0.2), transparent 55%), radial-gradient(circle at right, rgba(59, 130, 246, 0.2), transparent 60%), linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(248, 250, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.download-label {
  color: var(--muted);
}

.download-link {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.download-link:hover {
  filter: brightness(1.05);
}

.video-side-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #020617, #020617 45%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
  padding: 14px 16px 16px;
}

.side-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.side-username {
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 12px;
}

.side-caption {
  font-size: 13px;
  line-height: 1.7;
  color: #e5e7eb;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.side-meta-row {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.badge-soft {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .recent-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .recent-meta {
    white-space: normal;
  }
  .video-main-title {
    font-size: 18px;
  }
}
