:root {
  --bg: #0a0c10;
  --surface: #12161f;
  --surface-hover: #1a2030;
  --border: #2a3348;
  --text: #e8ecf4;
  --muted: #8b95a8;
  --accent: #5b8def;
  --accent-hover: #7aa3f5;
  --accent-glow: rgba(91, 141, 239, 0.25);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 141, 239, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(140, 70, 200, 0.08), transparent),
    var(--bg);
}

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.tagline {
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 36rem;
  margin-inline: auto;
}

.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

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

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.video-card:hover {
  border-color: rgba(91, 141, 239, 0.5);
  transform: translateY(-2px);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a2030;
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  color: #b8d4ff;
}

.card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.card-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.setup {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.setup h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.setup ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.setup li {
  margin-bottom: 0.35rem;
}

.setup code {
  font-size: 0.85em;
  background: #0a0c10;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: #b8d4ff;
}

footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
}
