/* MediaLink UI — responsive modern, database/schema tidak diubah */
:root{
  --green:#087f5b;
  --green-dark:#05603f;
  --green-deep:#043f2f;
  --green-soft:#e9f7f1;
  --text:#263238;
  --muted:#78909c;
  --line:#e7efeb;
  --surface:#fff;
  --bg:#f5f8f7;
}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.5;
}
a{transition:.2s ease}
.navbar-custom{
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  min-height:68px;
  box-shadow:0 5px 20px rgba(0,0,0,.08);
}
.navbar-brand{font-size:19px;letter-spacing:.1px}
.brand-mark{
  width:40px;height:40px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  margin-right:9px;background:rgba(255,255,255,.14);
}
.brand-light{font-weight:400;opacity:.88}
.btn-admin{
  border:0;border-radius:24px;padding:8px 16px;font-weight:700;
  box-shadow:0 5px 14px rgba(0,0,0,.08);
}
.hero-modern{
  position:relative;overflow:hidden;min-height:360px;
  border-radius:26px;display:flex;align-items:center;justify-content:center;
  padding:48px 25px;color:#fff;
  background:linear-gradient(135deg,#0a8b62 0%,#087f5b 45%,#04513b 100%);
  box-shadow:0 18px 45px rgba(5,96,63,.18);
}
.hero-content{position:relative;z-index:3;max-width:820px;text-align:center}
.hero-logo{height:125px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.hero-logo img{width:190px;height:125px;object-fit:contain;filter:drop-shadow(0 8px 15px rgba(0,0,0,.16))}
.hero-kicker,.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px}
.hero-kicker{opacity:.92;margin-bottom:8px}
.hero-modern h1{font-size:clamp(25px,4vw,38px);font-weight:800;margin:0 0 10px}
.hero-modern p{max-width:650px;margin:auto;color:rgba(255,255,255,.9);font-size:15px}
.hero-pattern{position:absolute;inset:0;opacity:.12;background-image:radial-gradient(circle at 20% 20%,#fff 1px,transparent 1px);background-size:26px 26px}
.hero-orb{position:absolute;border-radius:50%;background:rgba(255,255,255,.06)}
.hero-orb-1{width:280px;height:280px;left:-120px;top:-140px}
.hero-orb-2{width:330px;height:330px;right:-150px;bottom:-180px}
.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.stat-card{
  display:flex;align-items:center;gap:14px;background:var(--surface);
  border:1px solid var(--line);border-radius:18px;padding:19px;
  box-shadow:0 8px 26px rgba(0,0,0,.045);transition:.22s;
}
.stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(0,0,0,.08)}
.stat-icon{
  width:50px;height:50px;flex:0 0 50px;border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  background:var(--green-soft);color:var(--green);font-size:20px;
}
.stat-number{font-size:22px;font-weight:800;line-height:1.1}
.stat-label{font-size:12px;color:var(--muted);margin-top:3px}
.selector-card,.reader-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:22px;box-shadow:0 10px 35px rgba(0,0,0,.06);overflow:hidden;
}
.selector-header{padding:22px 25px;border-bottom:1px solid var(--line)}
.selector-title{font-size:21px;font-weight:800;margin:3px 0 3px}
.selector-subtitle{font-size:13px;color:var(--muted)}
.selector-body{padding:25px}
.form-label{font-size:13px;font-weight:700;color:#455a64}
.modern-select,.form-control{
  min-height:47px;border:1px solid #dce7e2;border-radius:12px;
}
.modern-select{height:47px;padding-left:14px}
.modern-select:focus,.form-control:focus{
  border-color:var(--green);box-shadow:0 0 0 .16rem rgba(8,127,91,.12)
}
.btn-play{
  min-height:48px;border:0;border-radius:12px;font-weight:800;letter-spacing:.2px;
  background:linear-gradient(135deg,#198754,#157347);
  box-shadow:0 8px 18px rgba(8,127,91,.2);transition:.2s;
}
.btn-play:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 12px 25px rgba(8,127,91,.28)}
.btn-play:disabled{cursor:not-allowed;opacity:.58}
.reader-header{
  padding:20px 24px;display:flex;align-items:center;justify-content:space-between;
  gap:18px;border-bottom:1px solid var(--line)
}
.reader-heading{min-width:0}
.reader-title{font-size:20px;font-weight:800;line-height:1.35;margin:3px 0 4px;word-break:break-word}
.reader-media{font-size:13px;color:var(--muted)}
.reader-frame-wrap{position:relative;min-height:620px;background:#f3f6f5}
#newsFrame{width:100%;height:720px;border:0;display:none;background:#fff}
.reader-empty,.reader-loading{
  min-height:620px;display:flex;align-items:center;justify-content:center;
  flex-direction:column;text-align:center;padding:30px
}
.reader-loading{position:absolute;inset:0;z-index:5;background:rgba(255,255,255,.92);min-height:0}
.empty-icon{
  width:82px;height:82px;border-radius:24px;background:var(--green-soft);
  color:#8bcab3;display:flex;align-items:center;justify-content:center;
  font-size:35px;margin-bottom:16px
}
.reader-empty h3{font-size:18px;font-weight:800;color:#607d8b}
.reader-empty p{font-size:13px;color:#90a4ae}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px}
.section-title{font-size:22px;font-weight:800;margin:3px 0 0}
.section-count{
  padding:5px 10px;border-radius:20px;background:var(--green-soft);
  color:var(--green);font-size:11px;font-weight:800;white-space:nowrap
}
.news-card{
  border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;
  box-shadow:0 7px 25px rgba(0,0,0,.045);transition:.22s
}
.news-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px rgba(0,0,0,.09)}
.news-cover{
  height:126px;position:relative;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#198754,#064e3b);color:rgba(255,255,255,.9)
}
.news-cover i{font-size:42px;opacity:.9}
.news-badge{
  position:absolute;left:12px;top:12px;right:12px;width:max-content;max-width:calc(100% - 24px);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  padding:5px 9px;border-radius:20px;background:rgba(255,255,255,.94);
  color:var(--green);font-size:10px;font-weight:800
}
.news-body{padding:17px}
.news-title{
  font-size:15px;line-height:1.48;font-weight:800;margin:0 0 11px;
  min-height:45px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden
}
.news-meta{display:flex;flex-direction:column;gap:4px;color:#78909c;font-size:11px}
.btn-card-open{border-radius:20px;font-weight:700;padding:6px 12px}
.empty-state{
  padding:45px 20px;background:#fff;border:1px dashed #cfe0d9;border-radius:18px;
  text-align:center;color:#90a4ae
}
.empty-state i{font-size:35px;margin-bottom:10px;color:#9bcdbb}
.empty-state h5{font-weight:800;color:#607d8b}
.footer{margin-top:15px;padding:24px 0;background:var(--green-deep);color:rgba(255,255,255,.72);font-size:12px}
.footer-inner{display:flex;justify-content:space-between;gap:15px;align-items:center}
.footer strong{color:#fff;letter-spacing:.7px}.footer-dot{margin:0 7px;color:#68b89c}
@media(max-width:767px){
  .navbar-custom{min-height:60px}.navbar-brand{font-size:17px}.brand-mark{width:36px;height:36px}
  .hero-modern{min-height:325px;padding:36px 18px;border-radius:20px}
  .hero-logo{height:100px}.hero-logo img{width:160px;height:105px}
  .hero-modern p{font-size:13px}.selector-header,.selector-body{padding:18px}
  .reader-header{align-items:flex-start;flex-direction:column;padding:18px}
  .reader-frame-wrap{min-height:500px}#newsFrame{height:600px}.reader-empty{min-height:500px}
  .section-title{font-size:19px}.news-title{font-size:14px}
  .footer-inner{flex-direction:column;text-align:center}
}
@media(max-width:480px){
  .stats-grid{grid-template-columns:1fr}.hero-modern{min-height:305px}
  .hero-kicker{font-size:9px;letter-spacing:1px}.hero-modern h1{font-size:25px}
  .hero-logo img{width:145px}.section-heading{align-items:center}
  .section-count{font-size:10px}
}

/* Fallback ketika situs berita melarang iframe */
.reader-fallback{
  min-height:620px;
  padding:45px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  background:linear-gradient(180deg,#fff,#f7faf8);
}
.fallback-icon{
  width:82px;height:82px;border-radius:24px;
  display:flex;align-items:center;justify-content:center;
  background:var(--green-soft);color:var(--green);
  font-size:30px;margin-bottom:16px;
}
.reader-fallback h3{font-size:19px;font-weight:800;color:#455a64;margin-bottom:8px}
.reader-fallback p{max-width:620px;font-size:13px;color:#78909c;margin-bottom:20px}
.reader-fallback .btn{border-radius:22px;font-weight:700;padding:9px 18px}
@media(max-width:767px){.reader-fallback{min-height:500px}}
