/* Lumina — tema terang, tampilan orisinal (bukan salinan platform tertentu) */
:root {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --surface: #eef1f8;
  --surface-2: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(99, 102, 241, 0.25);
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --accent-hover: #4338ca;
  --verified: #4f46e5;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 12px 40px rgba(15, 23, 42, 0.1);
  --sidebar-w: 252px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* —— Sidebar —— */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 20px 14px 28px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow-y: auto;
  z-index: 2;
}

.logo {
  padding: 4px 10px 22px;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 45%, #c084fc 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.logo-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #1e1b4b 0%, #4f46e5 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-wrap {
  padding: 0 8px 18px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-ico {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.search input::placeholder {
  color: var(--text-muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--accent);
}

.nav-item:hover .nav-icon {
  color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-color: rgba(79, 70, 229, 0.12);
  box-shadow: var(--shadow-sm);
}

.nav-item.active .nav-icon {
  color: var(--accent);
}

.nav-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: inherit;
}

.nav-label {
  font-weight: 700;
  font-size: 15px;
}

.sidebar-login {
  margin: 18px 8px 0;
}

.btn-login {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.btn-login-ico {
  display: none;
  width: 22px;
  height: 22px;
}

.btn-login:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.sidebar-footer {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sidebar-footer a {
  display: inline;
  margin-right: 10px;
  font-weight: 500;
}

.sidebar-footer a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 10px;
  display: block;
  font-size: 11px;
  opacity: 0.85;
}

/* —— Main —— */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.main-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 92% -15%, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 45% at -5% 25%, rgba(236, 72, 153, 0.09), transparent 45%),
    radial-gradient(ellipse 55% 35% at 100% 70%, rgba(251, 191, 36, 0.07), transparent 40%);
}

.discover-head {
  position: relative;
  z-index: 1;
  padding: 28px 28px 8px;
  max-width: 720px;
}

.discover-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.discover-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
}

.discover-sub {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.55;
}

.top-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px 12px;
  flex-wrap: wrap;
}

.categories {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.cat-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px;
  mask-image: linear-gradient(to right, #000 88%, transparent);
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.cat-pill:hover {
  border-color: rgba(79, 70, 229, 0.25);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

.cat-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cat-arrow:hover {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.3);
  transform: scale(1.05);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.btn-login-sm {
  padding: 10px 22px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  margin-left: 4px;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-login-sm:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* —— Grid —— */
.grid-wrap {
  position: relative;
  z-index: 1;
  padding: 4px 28px 40px;
  flex: 1;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px 16px;
}

@media (max-width: 1600px) {
  .video-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1280px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar {
    width: 76px;
    padding: 14px 8px;
  }

  .logo-brand {
    justify-content: center;
  }

  .logo-word {
    display: none;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .search-wrap,
  .nav-label,
  .sidebar-footer,
  .btn-login-label {
    display: none;
  }

  .btn-login-ico {
    display: block;
  }

  .sidebar-login .btn-login {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    margin: 0 auto;
    border-radius: 14px;
  }

  .nav-item {
    justify-content: center;
    padding: 12px;
  }

  .nav-icon {
    color: var(--text-muted);
  }

  .nav-item.active .nav-icon {
    color: var(--accent);
  }

  .sidebar-login {
    margin: 10px 0 0;
  }

  .discover-head {
    padding: 20px 20px 4px;
  }
}

@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    align-items: center;
    box-shadow: none;
  }

  .logo-word {
    display: inline;
  }

  .nav {
    flex-direction: row;
    flex: 1;
    overflow-x: auto;
    gap: 0;
  }

  .nav-item {
    flex-shrink: 0;
  }

  .btn-login-label {
    display: inline;
  }

  .btn-login-ico {
    display: none;
  }

  .sidebar-login .btn-login {
    width: auto;
    min-width: auto;
    height: auto;
    padding: 10px 18px;
    border-radius: var(--radius);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .top-bar {
    padding: 8px 16px 10px;
  }

  .grid-wrap {
    padding: 4px 16px 32px;
  }

  .discover-head {
    padding: 16px 16px 4px;
  }

  .discover-title {
    font-size: 1.35rem;
  }
}

.card {
  cursor: pointer;
}

.card:focus {
  outline: none;
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.card-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease;
}

.card:hover .card-thumb {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card);
}

.card-thumb .card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-thumb .card-video {
  transform: scale(1.06);
}

.card-stats {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-width: 0;
}

.card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.card-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.card-user .verified {
  flex-shrink: 0;
  color: var(--verified);
}

.badge-paid {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* —— Modal batasan usia —— */
.age-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.age-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.age-modal[hidden] {
  display: none !important;
}

.age-modal__panel {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  text-align: center;
}

.age-modal__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, #6366f1 0%, #7c3aed 100%);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.age-modal__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.age-modal__text {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.age-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-modal__btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.age-modal__btn:active {
  transform: scale(0.99);
}

.age-modal__btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}

.age-modal__btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #6d28d9 100%);
}

.age-modal__btn--ghost {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.age-modal__btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}
