/* ==========================================================================
   NusaTube — assets/css/nusatube.css
   Tema: teal + biru muda, hangat dan ramah. Mendukung data-theme="light|dark".
   Prefix class: nt-
   ========================================================================== */

/* ── Token warna ───────────────────────────────────────────── */
:root,
:root[data-theme="light"] {
  --bg:          #F1F9F8;
  --bg-glow:     #D6EFFB;
  --surface:     #FFFFFF;
  --surface-2:   #E4F3F2;
  --surface-3:   #D3EBF9;
  --line:        #CDE5E3;
  --text:        #12353A;
  --muted:       #5A7B80;

  --brand:       #0B857E;   /* tombol utama */
  --brand-hover: #096F69;
  --brand-ink:   #0A7A74;   /* teks/ikon teal di atas terang */
  --on-brand:    #FFFFFF;
  --sky:         #38B6F0;
  --sky-soft:    #DDF1FC;
  --tint:        #D9F1EE;   /* latar item aktif */
  --warm:        #F2706B;
  --amber:       #FFC15E;
  --on-amber:    #4A2C00;

  --header-bg:   rgba(241, 249, 248, .86);
  --hero-from:   #BFEBE5;
  --hero-to:     #CBE9FB;
  --hero-text:   #0E3A3F;
  --shadow:      0 8px 28px rgba(11, 90, 98, .12);
  --shadow-sm:   0 2px 8px rgba(11, 90, 98, .08);
  --scrim:       rgba(8, 40, 46, .45);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:          #0A2227;
  --bg-glow:     #0E3550;
  --surface:     #0F2F35;
  --surface-2:   #153A41;
  --surface-3:   #1A4A58;
  --line:        #1F4A52;
  --text:        #E8F7F6;
  --muted:       #8FB5B8;

  --brand:       #2DD4BF;
  --brand-hover: #5EE3D2;
  --brand-ink:   #5EE3D2;
  --on-brand:    #052A2B;
  --sky:         #7DD3FC;
  --sky-soft:    #123F57;
  --tint:        #14464B;
  --warm:        #FF8A80;
  --amber:       #FFC15E;
  --on-amber:    #3D2400;

  --header-bg:   rgba(10, 34, 39, .86);
  --hero-from:   #0F5058;
  --hero-to:     #124E6E;
  --hero-text:   #EAFBF9;
  --shadow:      0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, .25);
  --scrim:       rgba(2, 14, 17, .65);
  color-scheme: dark;
}

/* ── Reset ringan ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.nt-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(900px 380px at 12% -80px, var(--bg-glow), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
::selection { background: var(--sky); color: #06232A; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 10px; }

/* scrollbar tipis */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ── Ikon ──────────────────────────────────────────────────── */
.nt-icon { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; display: inline-block; }

/* ── Header ────────────────────────────────────────────────── */
.nt-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nt-header__inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  height: 66px; padding: 0 20px;
}

.nt-logo {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700; font-size: 24px; letter-spacing: -.02em;
  color: var(--text); flex-shrink: 0; line-height: 1;
}
.nt-logo span {
  background: linear-gradient(120deg, #14B8A6 0%, #38BDF8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* pencarian desktop */
.nt-search {
  flex: 1; max-width: 560px; margin: 0 auto 0 8px;
  display: flex; align-items: center;
  height: 44px; padding: 0 5px 0 18px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.nt-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--tint); }
.nt-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 14.5px;
}
.nt-search input::placeholder { color: var(--muted); }
.nt-search input::-webkit-search-cancel-button { display: none; }
.nt-search button {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand);
  transition: background .2s;
}
.nt-search button:hover { background: var(--brand-hover); }

.nt-actions { display: flex; align-items: center; gap: 6px; }

/* tombol */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.nt-btn--ghost { color: var(--text); }
.nt-btn--ghost:hover { background: var(--surface-2); }
.nt-btn--ghost.is-active { background: var(--tint); color: var(--brand-ink); }
.nt-btn--icon { width: 40px; padding: 0; color: var(--text); }
.nt-btn--icon:hover { background: var(--surface-2); }
.nt-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.nt-btn--primary:hover { background: var(--brand-hover); }
.nt-btn--primary:active { transform: scale(.97); }
.nt-btn.is-disabled { opacity: .5; pointer-events: none; }

/* dropdown desktop */
.nt-dropdown { position: relative; }
.nt-dropdown__panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 240px; max-height: 70vh; overflow-y: auto;
  padding: 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nt-dropdown__panel.is-open { opacity: 1; visibility: visible; transform: none; }
.nt-dropdown__panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: 14px;
}
.nt-dropdown__panel a .nt-icon { color: var(--muted); }
.nt-dropdown__panel a:hover { background: var(--surface-2); }
.nt-dropdown__panel a.is-active { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.nt-dropdown__panel a.is-active .nt-icon { color: var(--brand-ink); }

/* bar mobile */
.nt-mobile-bar { display: none; align-items: center; gap: 2px; margin-left: auto; }

/* chip kategori */
.nt-chips {
  max-width: 1440px; margin: 0 auto;
  display: flex; gap: 8px; padding: 2px 20px 12px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 20px;
}
.nt-chips::-webkit-scrollbar { display: none; }
.nt-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; scroll-snap-align: start;
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.nt-chip .nt-icon { width: 16px; height: 16px; color: var(--brand-ink); }
.nt-chip:hover { border-color: var(--brand); background: var(--tint); }
.nt-chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.nt-chip.is-active .nt-icon { color: var(--on-brand); }

/* tombol "Lainnya" hanya muncul di mobile */
.nt-chip--more { display: none; cursor: pointer; border-style: dashed; border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.nt-chip--more:hover { background: var(--tint); }

/* ── Main ──────────────────────────────────────────────────── */
.nt-main { max-width: 1440px; margin: 0 auto; padding: 24px 20px 56px; }

/* hero */
.nt-hero {
  position: relative; overflow: hidden;
  padding: 40px 36px; margin-bottom: 32px;
  border-radius: 28px;
  background: linear-gradient(125deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: var(--hero-text);
}
.nt-hero::before, .nt-hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.nt-hero::before {
  width: 360px; height: 360px; right: -90px; top: -140px;
  background: radial-gradient(circle, rgba(125, 211, 252, .55), transparent 68%);
}
.nt-hero::after {
  width: 300px; height: 300px; right: 140px; bottom: -190px;
  background: radial-gradient(circle, rgba(45, 212, 191, .45), transparent 68%);
}
.nt-hero > * { position: relative; z-index: 1; }
.nt-hero__title {
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em;
  max-width: 28ch; margin-bottom: 12px;
}
.nt-hero__text { max-width: 56ch; font-size: 16px; margin-bottom: 22px; opacity: .92; }
/* eyebrow + aksi hero */
.nt-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink);
}
.nt-hero__eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
}
.nt-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nt-btn--lg { height: 46px; padding: 0 24px; font-size: 15px; }
.nt-hero .nt-btn { height: 46px; padding: 0 24px; font-size: 15px; }

/* tombol outline (mis. "Jelajahi Video") */
.nt-btn--outline {
  color: var(--hero-text, var(--text));
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid var(--line);
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.nt-btn--outline:hover {
  background: rgba(255, 255, 255, .18);
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
.nt-btn--outline:active { transform: scale(.97); }
.nt-btn--outline:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.nt-btn--outline .nt-icon { width: 18px; height: 18px; transition: transform .25s ease; }
.nt-btn--outline .nt-icon--trail { width: 16px; height: 16px; margin-left: -2px; opacity: .75; }
.nt-btn--outline:hover .nt-icon--trail { transform: translateY(3px); opacity: 1; }

/* anchor "Jelajahi Video": sisakan ruang untuk header sticky */
#ntVideos { scroll-margin-top: 150px; }

/* breadcrumb */
.nt-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 16px; font-size: 13.5px; color: var(--muted);
}
.nt-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 500; }
.nt-breadcrumb a:hover { text-decoration: underline; }
.nt-breadcrumb .nt-icon { width: 15px; height: 15px; }
.nt-breadcrumb__sep { opacity: .5; }

/* kepala seksi */
.nt-section-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.nt-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -.01em;
}
.nt-section-title .nt-icon {
  width: 36px; height: 36px; padding: 8px; border-radius: 12px;
  background: var(--tint); color: var(--brand-ink);
}

.nt-tabs {
  display: flex; gap: 4px; padding: 4px; max-width: 100%;
  background: var(--surface-2); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.nt-tabs::-webkit-scrollbar { display: none; }
.nt-tab {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background .2s, color .2s;
}
.nt-tab .nt-icon { width: 15px; height: 15px; }
.nt-tab:hover { color: var(--text); }
.nt-tab.is-active { background: var(--surface); color: var(--brand-ink); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ── Grid & kartu video ────────────────────────────────────── */
.nt-grid {
  display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.nt-related { margin-top: 48px; padding-top: 32px; border-top: 1px dashed var(--line); }
.nt-related .nt-section-title { margin-bottom: 18px; }

.nt-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.nt-card:hover { border-color: var(--sky); box-shadow: var(--shadow); }

.nt-card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.nt-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.nt-card:hover .nt-card__img { transform: scale(1.05); }
.nt-card__img--broken { opacity: 0; }

.nt-card__play {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(.8);
  transition: opacity .2s, transform .2s;
}
.nt-card__play .nt-icon { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.nt-card:hover .nt-card__play, .nt-card:focus-visible .nt-card__play { opacity: 1; transform: scale(1); }

.nt-badge {
  position: absolute; display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.nt-badge--duration { right: 8px; bottom: 8px; background: rgba(6, 30, 34, .78); color: #fff; font-variant-numeric: tabular-nums; }
.nt-badge--hd       { left: 8px; top: 8px; background: var(--sky); color: #06303F; }
.nt-badge--hot      { right: 8px; top: 8px; background: var(--amber); color: var(--on-amber); }
.nt-badge--hd + .nt-badge--hot { right: 8px; }

.nt-card__body { display: flex; flex-direction: column; gap: 9px; padding: 13px 14px 15px; }
.nt-card__title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.nt-card:hover .nt-card__title { color: var(--brand-ink); }

.nt-card__cat {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 3px 10px; border-radius: 999px;
  background: var(--sky-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nt-card__cat .nt-icon { width: 13px; height: 13px; }

.nt-card__stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.nt-card__stats span { display: inline-flex; align-items: center; gap: 5px; }
.nt-card__stats .nt-icon { width: 14px; height: 14px; }
.nt-card__stats span:nth-child(2) .nt-icon { color: var(--warm); }

/* kosong */
.nt-empty {
  text-align: center; padding: 72px 20px; margin: 8px 0;
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: 24px;
}
.nt-empty__icon { width: 56px; height: 56px; color: var(--sky); margin: 0 auto 14px; display: block; stroke-width: 1.5; }
.nt-empty h3 { font-family: 'Sora', 'Inter', sans-serif; font-size: 19px; margin-bottom: 6px; }
.nt-empty p { color: var(--muted); }

/* paginasi */
.nt-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.nt-page {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums;
  transition: background .2s, border-color .2s, color .2s;
}
a.nt-page:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--tint); }
.nt-page.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.nt-page.is-disabled { opacity: .4; pointer-events: none; }
.nt-page.is-gap { background: transparent; border-color: transparent; min-width: 24px; padding: 0; color: var(--muted); }

/* ── Overlay, pencarian mobile, sheet, drawer ──────────────── */
.nt-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--scrim);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.nt-overlay.is-open { opacity: 1; visibility: visible; }

.nt-mobsearch {
  position: fixed; left: 0; right: 0; top: 0; z-index: 110;
  padding: 12px; background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); transform: translateY(-105%); transition: transform .28s ease;
}
.nt-mobsearch.is-open { transform: none; }
.nt-mobsearch form { display: flex; align-items: center; gap: 8px; }
.nt-mobsearch input {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface-2); outline: 0; font-size: 16px;
}
.nt-mobsearch input:focus { border-color: var(--brand); background: var(--surface); }
.nt-mobsearch button {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--text);
}
.nt-mobsearch button[type="submit"] { background: var(--brand); color: var(--on-brand); }

.nt-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  max-height: 82vh; overflow-y: auto;
  padding: 18px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow);
  transform: translateY(105%); transition: transform .3s ease;
}
.nt-sheet.is-open { transform: none; }
.nt-sheet::before {
  content: ""; display: block; width: 40px; height: 4px; border-radius: 4px;
  background: var(--line); margin: -8px auto 12px;
}
.nt-sheet__title { font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 17px; padding: 0 10px 10px; }
.nt-sheet__item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: 14px; font-weight: 500;
}
.nt-sheet__item span { flex: 1; }
.nt-sheet__item .nt-icon { color: var(--muted); }
.nt-sheet__item:active { background: var(--surface-2); }
.nt-sheet__item.is-active { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.nt-sheet__item.is-active .nt-icon { color: var(--brand-ink); }

.nt-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(86vw, 340px); display: flex; flex-direction: column;
  background: var(--surface); box-shadow: var(--shadow);
  transform: translateX(105%); transition: transform .3s ease;
}
.nt-drawer.is-open { transform: none; }
.nt-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 12px 0 20px; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Sora', 'Inter', sans-serif; font-weight: 600; font-size: 17px;
}
.nt-drawer__head button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.nt-drawer__head button:hover { background: var(--surface-2); }
.nt-drawer__body { flex: 1; overflow-y: auto; padding: 10px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
.nt-drawer__label { padding: 18px 10px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nt-drawer__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px; font-weight: 500;
}
.nt-drawer__item .nt-icon { color: var(--brand-ink); }
.nt-drawer__item:hover { background: var(--surface-2); }
.nt-drawer__item.is-active { background: var(--tint); color: var(--brand-ink); font-weight: 600; }
.nt-drawer__item--muted { font-size: 14px; color: var(--muted); font-weight: 400; }
.nt-drawer__theme { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 4px; }
.nt-drawer__theme button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 14px; font-weight: 600; font-size: 14px;
  background: var(--surface-2); border: 1.5px solid transparent;
}
.nt-drawer__theme button.is-active { background: var(--tint); border-color: var(--brand); color: var(--brand-ink); }

/* sheet kategori: chip dibungkus ke beberapa baris */
.nt-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 8px; }
.nt-sheet__chips .nt-chip { height: 38px; padding: 0 15px; font-size: 14px; scroll-snap-align: none; }

/* ── Footer ────────────────────────────────────────────────── */
.nt-footer { margin-top: 24px; background: var(--surface-2); border-top: 1px solid var(--line); }
.nt-footer__inner {
  max-width: 1440px; margin: 0 auto; padding: 36px 20px 28px;
  display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.nt-footer__about p { margin-top: 12px; max-width: 52ch; color: var(--muted); font-size: 14px; }
.nt-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.nt-footer__links a { color: var(--text); width: fit-content; }
.nt-footer__links a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.nt-footer__copy {
  grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* ── Scroll to top ─────────────────────────────────────────── */
.nt-scrolltop {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.nt-scrolltop:hover { background: var(--brand-hover); }
.nt-scrolltop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ── Responsif ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nt-actions .nt-btn--ghost span { display: none; }
  .nt-actions .nt-btn--ghost { padding: 0 12px; }
}

@media (max-width: 900px) {
  .nt-desktop-only { display: none !important; }
  .nt-mobile-bar { display: flex; }
  .nt-header__inner { height: 58px; padding: 0 12px 0 16px; }
  .nt-logo { font-size: 22px; }
  .nt-chips { padding: 0 16px 10px; gap: 6px; scroll-padding-inline: 16px; }
  .nt-chip { height: 34px; padding: 0 13px; font-size: 13px; }
  .nt-chip--extra { display: none; }          /* kategori lain pindah ke sheet */
  .nt-chip--more { display: inline-flex; }
  .nt-main { padding: 18px 16px 48px; }
  .nt-tabs { display: none; }   /* urutan lewat sheet di mobile */
  .nt-hero { padding: 28px 22px; border-radius: 22px; margin-bottom: 24px; }
  .nt-hero__actions .nt-btn { flex: 1 1 100%; }
  .nt-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .nt-card { border-radius: 14px; }
  .nt-card__body { padding: 10px 11px 12px; gap: 7px; }
  .nt-card__title { font-size: 13.5px; }
  .nt-card__stats { font-size: 11.5px; gap: 3px 9px; }
  .nt-card__play { display: none; }
  .nt-badge { font-size: 11px; padding: 0 6px; }
}

@media (max-width: 420px) {
  .nt-chips .nt-chip:not(.nt-chip--more) .nt-icon { display: none; }
}

@media (max-width: 380px) {
  .nt-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .nt-card:hover .nt-card__img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ==========================================================================
   Penyempurnaan ikon mobile (additive — tidak mengubah layout, hanya tampilan)
   ========================================================================== */
@media (max-width: 900px) {

  /* Bar ikon header: ukuran seragam, jarak aman, tidak saling menimpa */
  .nt-mobile-bar { gap: 6px; flex-shrink: 0; }
  .nt-mobile-bar .nt-btn--icon {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(18, 53, 58, .06);
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  }
  .nt-mobile-bar .nt-btn--icon:hover { background: var(--surface-2); }
  .nt-mobile-bar .nt-btn--icon:active { transform: scale(.94); box-shadow: none; }
  .nt-mobile-bar .nt-icon { width: 20px; height: 20px; stroke-width: 1.8; }

  /* Tombol Upload sebagai aksi utama */
  .nt-mobile-bar .nt-btn--accent {
    background: var(--brand); border-color: var(--brand); color: var(--on-brand);
    box-shadow: 0 2px 6px rgba(11, 133, 126, .28);
  }
  .nt-mobile-bar .nt-btn--accent:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

  /* Logo tidak boleh terdorong / menimpa ikon */
  .nt-logo { min-width: 0; overflow: hidden; text-overflow: clip; }
  .nt-header__inner { gap: 10px; }

  /* Chip kategori: ikon dalam "bubble" kecil, rapi dan sejajar teks */
  .nt-chip { gap: 6px; padding: 0 14px 0 8px; }
  .nt-chip:not(.nt-chip--more) .nt-icon {
    width: 22px; height: 22px; padding: 4px; border-radius: 50%;
    background: var(--tint); color: var(--brand-ink); stroke-width: 2;
  }
  .nt-chip.is-active .nt-icon { background: rgba(255, 255, 255, .22); color: var(--on-brand); }
  .nt-chip--more .nt-icon { width: 16px; height: 16px; stroke-width: 2; }
  .nt-chip:first-child:not(.nt-chip--more) { padding-left: 14px; } /* "Semua" tanpa ikon */

  /* Section title: ikon lebih halus */
  .nt-section-title .nt-icon { width: 34px; height: 34px; padding: 8px; border-radius: 11px; stroke-width: 1.8; }

  /* Sheet & drawer: ikon di dalam kotak konsisten, teks tidak tertimpa */
  .nt-sheet__item .nt-icon,
  .nt-drawer__item .nt-icon {
    width: 36px; height: 36px; padding: 8px; border-radius: 11px;
    background: var(--surface-2); stroke-width: 1.8;
  }
  .nt-sheet__item, .nt-drawer__item { gap: 12px; min-height: 52px; }
  .nt-sheet__item.is-active .nt-icon,
  .nt-drawer__item.is-active .nt-icon { background: var(--surface); }
  .nt-sheet__item span { min-width: 0; }
  /* ikon centang di kanan: kembali ke ukuran kecil tanpa kotak */
  .nt-sheet__item span + .nt-icon { width: 20px; height: 20px; padding: 0; background: none; color: var(--brand-ink); }

  .nt-drawer__head button, .nt-mobsearch button { border-radius: 12px; }

  /* Ikon statistik kartu video */
  .nt-card__stats .nt-icon { width: 13px; height: 13px; stroke-width: 2.2; }

  /* Tombol scroll-ke-atas */
  .nt-scrolltop { border-radius: 14px; }
}

@media (max-width: 360px) {
  .nt-mobile-bar { gap: 4px; }
  .nt-mobile-bar .nt-btn--icon { width: 38px; height: 38px; flex-basis: 38px; }
  .nt-logo { font-size: 20px; }
}

/* Chip: pada layar kecil ikon tetap disembunyikan seperti sebelumnya (hemat ruang) */
@media (max-width: 420px) {
  .nt-chip:not(.nt-chip--more) { padding: 0 13px; }
}