/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e0c070;
  --bg: #f5f0e8;
  --bg-dark: #0e0e0e;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --surface: #ffffff;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
  --navbar-h: 68px;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

body.dark {
  --bg: #0e0e0e;
  --text: rgba(255,255,255,0.9);
  --text-muted: rgba(255,255,255,0.45);
  --surface: rgba(255,255,255,0.08);
  --card-bg: #111111;
  --border: rgba(255,255,255,0.1);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--navbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: transparent; 
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

body.dark .navbar {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(245,240,232,0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

body.dark .navbar.scrolled {
  background: rgba(14,14,14,0.9);
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo svg { display: block; }
.nav-title { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--text); }
.nav-subtitle { font-family: 'Lato', sans-serif; font-size: 9px; letter-spacing: 3px; color: var(--gold); }

/* --- PERBAIKAN NAV LINKS & MENU --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px; 
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  padding: 7px 14px; border-radius: 20px; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface); }

.btn-admin-mobile {
  padding: 8px 18px;
  background: var(--gold);
  color: #fff !important;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-admin-mobile:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* --- STYLING HAMBURGER --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s;
  border-radius: 2px;
}

.navbar:not(.scrolled) .hamburger span {
  background: #fff;
}

/* --- RESPONSIVE MODE (Mobile < 768px) --- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-h);
    right: 20px;
    width: 220px;
    background: var(--surface);
    flex-direction: column;
    padding: 15px;
    gap: 5px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-menu .nav-link {
    display: block !important;
    width: 100%;
    padding: 12px 15px;
    color: var(--text) !important;
  }

  .btn-admin-mobile {
    display: block;
    margin-top: 10px;
    padding: 12px;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), #a07830);
    color: #fff !important;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- THEME TOGGLE --- */
.btn-theme {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-theme .icon-dark { display: none; }
.btn-theme .icon-light { display: block; }

body.dark .btn-theme .icon-light { display: none; }
body.dark .btn-theme .icon-dark { display: block; }
.btn-theme:hover { border-color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

#hero-panorama {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
#hero-panorama .pnlm-container {
  width: 100% !important; height: 100% !important;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  max-width: 800px; padding: 0 24px;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.6);
  color: rgba(255,255,255,0.85);
  font-size: 11px; letter-spacing: 2px;
  padding: 8px 20px; border-radius: 20px;
  background: rgba(201,168,76,0.12);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title-gold { color: var(--gold); display: block; }

.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.75);
  line-height: 1.7; max-width: 540px; margin: 0 auto 36px;
}

.hero-actions {
  display: flex; gap: 14px; justify-content: center;
  pointer-events: auto;
}

.btn-primary {
  padding: 15px 32px; border-radius: 30px;
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: #fff; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.5); }

.btn-secondary {
  padding: 15px 32px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff; font-size: 15px;
  text-decoration: none; backdrop-filter: blur(8px);
  transition: all 0.2s; background: rgba(255,255,255,0.1);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.5); font-size: 12px;
  display: flex; align-items: center; gap: 6px;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(12px, 4vw, 40px); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-badge {
  display: inline-block;
  color: var(--gold); font-size: 11px; letter-spacing: 3px;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 14px; background: rgba(201,168,76,0.06);
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: 36px;
  color: var(--text);
}

/* Profil grid */
.profil-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 48px;
}

.profil-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 22px;
  text-align: center; transition: all 0.25s;
}
.profil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.3);
}
.profil-icon { font-size: 32px; margin-bottom: 14px; }
.profil-card h3 {
  font-family: 'Playfair Display', serif; font-size: 16px;
  color: var(--text); margin-bottom: 8px;
}
.profil-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.cta-center { text-align: center; }

/* Footer */
.footer {
  padding: 28px 40px; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
}

/* ===== FINAL RESPONSIVE CLEANUP ===== */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .profil-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* Container Utama Oval */
.nav-prayer-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5); /* Gelap Transparan */
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

/* Bagian Atas (Jam & Tanggal) */
.clock-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#realtimeClock {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.date-text {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 400;
}

/* Bagian Bawah (Grid Jadwal) */
.prayer-grid {
  display: flex;
  gap: 18px;
  padding-top: 6px;
}

.prayer-item {
  text-align: center;
}

.p-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.p-time {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

/* Responsif: Sembunyikan jika layar terlalu sempit */
@media (max-width: 1200px) {
  .nav-prayer-card {
    display: none;
  }
}

.no-photo-message {
    color: #ff0000;
    font-size: 1.2rem;
    border: 2px dashed #ccc;
    margin: 20px;
}

/* ===== EVENTS SECTION ===== */
.event-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(12px, 2.5vw, 30px);
  margin-top: clamp(16px, 3.5vw, 40px);
}
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  animation: cardPageSlide 0.35s ease;
}
.event-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.15);
}
.event-media {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  background: #000;
  overflow: hidden;
}
.event-media img, .event-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-media img {
  transform: scale(1.05);
}
.event-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(201, 168, 76, 0.92);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.event-media-badge.done {
  background: rgba(255, 255, 255, 0.82);
  color: rgba(0, 0, 0, 0.72);
}
.event-media-badge.upcoming,.event-media-badge.today {
  background: rgba(201, 168, 76, 0.94);
  color: #111;
}
.event-content {
  padding: clamp(12px, 2.5vw, 22px);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 120px;
}
.event-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-desc {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1 1 auto;
  white-space: pre-line;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.event-countdown {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.event-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}
.event-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  width: 100%;
  grid-column: 1 / -1;
}
.event-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.event-detail-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: clamp(10px, 3vw, 24px);
  z-index: 1200;
}
body.dark .event-detail-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.event-detail-overlay.open {
  display: flex;
}
.event-detail-card {
  width: min(96vw, 920px);
  max-width: 920px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 26px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}
.event-detail-close {
  position: fixed;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}
.event-detail-close:hover {
  background: var(--gold);
  color: #111;
  transform: translateY(-1px);
}
.event-detail-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
  flex: 0 0 auto;
  max-height: 55vh;
}
.event-detail-media img,
.event-detail-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-detail-body {
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 3vw, 30px) clamp(12px, 3.2vw, 32px);
  overflow-y: auto;
  overflow-x: hidden; /* prevent horizontal scrolling */
  flex: 1 1 auto;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.event-detail-body h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.1;
}
.event-detail-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.event-detail-body #eventDetailDate {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--gold);
}
.event-detail-countdown {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.25px;
}

.event-detail-body p,
#eventDetailDescription,
.event-desc {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}
.pagination-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pagination-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.24);
  background: rgba(201, 168, 76, 0.1);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  transform: translateY(-2px);
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-status {
  min-width: 54px;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}
.pagination-status span {
  color: var(--text-muted);
  margin: 0 4px;
}
.article-section {
  padding: 80px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: 40px;
}
.article-empty,
.event-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
}
.article-empty-icon,
.event-empty-icon {
  font-size: 42px;
  margin-bottom: 16px;
}
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

@keyframes cardPageSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.12);
}
.article-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.article-media img,
.article-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.article-carousel-btn.prev { left: 12px; }
.article-carousel-btn.next { right: 12px; }
.article-carousel-index {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.article-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-snippet {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  gap: 14px;
  flex-wrap: wrap;
}
.article-meta .article-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
}
.article-detail-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: clamp(10px, 3vw, 24px);
  z-index: 1300;
}
body.dark .article-detail-overlay {
  background: rgba(0, 0, 0, 0.45);
}
.article-detail-overlay.open {
  display: flex;
}
.article-detail-card {
  width: min(96vw, 1080px);
  max-width: 1080px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: clamp(12px, 1.6vw, 18px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}
.event-detail-card {
  width: min(96vw, 1080px);
  max-width: 1080px;
  border-radius: clamp(12px, 1.6vw, 18px);
}
.event-detail-media.article-detail-media {
  flex: initial;
  max-height: none;
}
.article-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
  min-height: min(560px, calc(100vh - 56px));
  padding: 14px;
  overflow: hidden;
}
.article-detail-left,
.article-detail-right {
  width: 100%;
}
.article-detail-left {
  display: flex;
  flex-direction: column;
}
.article-detail-right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 0;
}
.article-detail-media {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.28;
  background: #0b0b0b;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 320px;
  position: relative;
}
.article-detail-media img,
.article-detail-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.article-detail-media .article-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.article-detail-body {
  padding: clamp(16px, 2vw, 26px);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.article-detail-body h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.1;
}
.article-detail-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.8;
}
.article-detail-timestamp {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--gold);
}
.article-detail-title-box {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.article-detail-title-box h3 {
  margin: 0;
}
.article-detail-description {
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.article-detail-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.article-detail-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.28);
}
.article-detail-dot.active {
  background: #fff;
}
@media (max-width: 860px) {
  .article-detail-grid {
    grid-template-columns: 1fr;
    padding: clamp(16px, 3vw, 22px);
  }
  .article-detail-media {
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 560px) {
  .article-detail-grid {
    gap: 14px;
  }
  .article-detail-thumbs {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
}
