/* Bagian Sosial Media (konten dari CMS): tab platform + kartu tersemat dalam carousel. Memakai token warna tema-modern.css; hanya berlaku di dalam .sosial-media */
.sosial-media { padding: 90px 0 70px; background: var(--tm-bg, #f5f9fa); }
.sosial-media.sm-penuh { padding-top: 50px; }
.sosial-media .section-heading p { color: var(--tm-muted, #5a6a7e); }
.sm-svg { flex: none; display: inline-block; vertical-align: middle; }

/* tab model pil */
.sm-tab-bungkus { display: flex; justify-content: center; margin: 0 0 34px; }
.sm-tab { display: inline-flex; gap: 6px; padding: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: #e6eef3; box-shadow: inset 0 2px 6px rgba(23, 48, 79, .08); }
.sm-tab::-webkit-scrollbar { display: none; }
.sm-tab button { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 11px 24px; border: 0; border-radius: 999px; background: transparent;
  color: var(--tm-muted, #5a6a7e); font: 800 14px/1.2 var(--tm-font, inherit); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.sm-tab button:hover { color: var(--tm-navy, var(--ui-navy, #234974)); }
.sm-tab button.aktif { background: #fff; color: var(--tm-navy, var(--ui-navy, #234974)); box-shadow: 0 4px 14px rgba(23, 48, 79, .14); }
.sm-tab button:focus { outline: 0; }
.sm-tab button:focus:not(.aktif) { box-shadow: none; }
.sm-tab button:focus-visible { outline: 3px solid var(--tm-teal, var(--ui-teal, #47a88e)); outline-offset: 2px; }

/* carousel */
.sm-panggung { position: relative; }
.sm-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 18px; -webkit-overflow-scrolling: touch; }
.sm-track::-webkit-scrollbar { display: none; }
.sm-track:focus-visible { outline: 3px solid var(--tm-teal, var(--ui-teal, #47a88e)); outline-offset: 4px; border-radius: 18px; }
.sm-track.sm-tunggal { justify-content: center; }
.sm-grid .sm-track { flex-wrap: wrap; justify-content: center; overflow: visible; scroll-snap-type: none; }
.sm-nav { position: absolute; top: 46%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid var(--tm-line, #dde8ec); background: #fff; color: var(--tm-navy, var(--ui-navy, #234974)); box-shadow: 0 8px 22px rgba(23, 48, 79, .16); cursor: pointer; transition: transform .2s, opacity .2s; }
.sm-nav:hover { transform: scale(1.08); }
.sm-nav:disabled { opacity: .35; cursor: default; transform: none; }
.sm-nav[hidden] { display: none; }
.sm-nav:focus-visible { outline: 3px solid var(--tm-teal, var(--ui-teal, #47a88e)); outline-offset: 2px; }
.sm-prev { left: -18px; }
.sm-next { right: -18px; }

/* kartu */
.sm-kartu { flex: 0 0 340px; max-width: 86vw; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--tm-line, #dde8ec); border-radius: 18px; box-shadow: var(--tm-shadow, 0 10px 30px -12px rgba(23, 48, 79, .22)); }
.sm-kepala { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--tm-line, #dde8ec); font-size: 15px; color: var(--tm-navy-d, var(--ui-navy-d, #17304f)); }
.sm-kepala strong { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-kepala time { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--tm-muted, #5a6a7e); }
.sm-instagram .sm-kepala .sm-svg { color: #d6249f; }
.sm-tiktok .sm-kepala .sm-svg { color: #111; }
.sm-youtube .sm-kepala .sm-svg { color: #e53935; }
.sm-embed { flex: 1; background: #fafafa; }
.sm-embed iframe { display: block; width: 100%; border: 0; background: #fff; }
.sm-instagram .sm-embed iframe { height: 600px; }
.sm-tiktok .sm-embed iframe { height: 740px; }
.sm-profil { flex-basis: 400px; }
.sm-profil.sm-instagram .sm-embed iframe { height: 440px; }
.sm-profil .tiktok-embed { margin: 0 !important; }
.sm-bawah { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding: 13px 16px; border-top: 1px solid var(--tm-line, #dde8ec); font-size: 14px; color: var(--tm-muted, #5a6a7e); }
.sm-bawah a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--tm-navy, var(--ui-navy, #234974)); }
.sm-bawah a:hover { color: var(--tm-teal-d, var(--ui-teal-d, #368a73)); }

/* TikTok: sampul video, klik membuka video di TikTok */
.sm-tt-sampul { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 560px; overflow: hidden; background: linear-gradient(160deg, #111 0%, #25131d 55%, #0d2a2e 100%); color: #fff; }
.sm-tt-sampul img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sm-tt-sampul:hover img { transform: scale(1.04); }
.sm-tt-sampul::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .72) 100%); pointer-events: none; }
.sm-tt-putar { position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .85); transition: transform .2s, background .2s; }
.sm-tt-putar::after { content: ""; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.sm-tt-sampul:hover .sm-tt-putar { transform: scale(1.08); background: rgba(254, 44, 85, .85); }
.sm-tt-judul { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-size: 14px; font-weight: 700; line-height: 1.4; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.sm-tt-logo { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); color: #fff; opacity: .9; }
.sm-tt-sampul:focus-visible { outline: 3px solid var(--tm-teal, var(--ui-teal, #47a88e)); outline-offset: -3px; }

/* YouTube: gambar mini, video dimuat saat diklik */
.sm-putar { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden; }
.sm-putar img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .35s; }
.sm-putar:hover img { transform: scale(1.04); opacity: .88; }
.sm-ikon-putar { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 12px; background: #e53935; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.sm-ikon-putar::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.sm-putar:focus-visible { outline: 3px solid var(--tm-teal, var(--ui-teal, #47a88e)); outline-offset: -3px; }
.sm-youtube iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.sm-judul { padding: 14px 16px 16px; }
.sm-judul h3 { margin: 0; font-size: 15px; line-height: 1.45; color: var(--tm-navy-d, var(--ui-navy-d, #17304f)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }

.sm-kosong { text-align: center; padding: 46px 20px; background: #fff; border-radius: var(--tm-radius, 16px); border: 1.5px dashed var(--tm-line, #dde8ec); }
.sm-kosong-ikon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 50%; background: var(--tm-teal-l, var(--ui-teal-l, #e7f4f0)); color: var(--tm-navy, var(--ui-navy, #234974)); }
.sm-kosong p { margin: 0; color: var(--tm-muted, #5a6a7e); }
.sm-aksi { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 640px) {
  .sosial-media { padding: 60px 0 50px; }
  .sm-tab-bungkus { margin-bottom: 26px; }
  .sm-tab { gap: 2px; padding: 5px; }
  .sm-tab button { gap: 6px; padding: 9px 13px; font-size: 12px; letter-spacing: .03em; }
  .sm-nav { display: none !important; }   /* di HP cukup digeser dengan jari */
  .sm-kartu { flex-basis: 300px; }
}
@media (prefers-reduced-motion: reduce) { .sm-track { scroll-behavior: auto; } }
