:root {
  /* Theme colors – mengikuti desain sebelumnya */
  --bg: #0b1020;
  --ink: #e6edf3;
  --muted: #9fb0c4;
  --panel: #0f162e;
  --line: #1f2a44;
  --accent: #22d3ee;

  --article-bg-card: #111827;
  --article-text-light: #e0e0e0;
  --article-text-muted: #aaaaaa;
  --article-code-bg: #1f2937;
}

/* Reset dasar */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--ink);
}

/* ========== HEADER ========== */

header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

header h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
}

header .muted {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Tombol kembali */
.back-home {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.2s, transform 0.2s;
}

.back-home:hover {
  background: rgba(34, 211, 238, 0.16);
  transform: translateY(-1px);
}

/* ========== LAYOUT UTAMA ========== */

.shell {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 0 20px 40px;
}

.content {
  background: var(--article-bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 22px 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  color: var(--article-text-light);
}

.content h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

.content p {
  color: var(--article-text-light);
  line-height: 1.7;
}

/* ========== VIDEO UTAMA ========== */

.video-main-section {
  margin-bottom: 28px;
}

.video-main-wrapper {
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.video-main {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
}

/* ========== VIDEO LAINNYA ========== */

.video-thumbs-section {
  margin-top: 10px;
  margin-bottom: 30px;
}

.thumbs-note {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--article-text-muted);
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

/* kartu thumb */
.thumb-card {
  border: none;
  padding: 0;
  background: #020617;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, background-color 0.18s ease;
}

.thumb-card:hover,
.thumb-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.9);
  border-color: rgba(34, 211, 238, 0.7);
  background: radial-gradient(circle at top, #0f172a 0, #020617 42%, #000 100%);
}

.thumb-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* label di bawah thumb */
.thumb-label {
  display: block;
  padding: 8px 10px 10px;
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ========== KETERANGAN ========== */

.desc-section {
  margin-top: 10px;
}

.desc-section h2 {
  margin-top: 0;
}

.desc-section p {
  margin-top: 4px;
  font-size: 0.96rem;
}

/* ========== FOOTER ========== */

footer {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 24px 16px 32px;
}

/* ========== RESPONSIVE ========== */

@media (min-width: 720px) {
  .content {
    padding: 32px 26px 36px;
  }

  .video-main-section {
    margin-bottom: 32px;
  }

  .thumb-label {
    font-size: 0.9rem;
  }
}