:root {
  color-scheme: light;
  --ink: #1a2234;
  --canvas: #f6f7fa;
  --surface: #fff;
  --field: #bfc8d6;
  --accent: #815008;
  --tag-bg: #fff1ca;
  --action: #202c47;
  --action-hover: #344869;
  --action-text: #fff;
  --success-bg: #ddf5e9;
  --success: #1d664b;
  --alert-bg: #fdecf0;
  --alert: #9f2229;
  --navy: #171f32;
  --muted: #5b6575;
  --gold: #f9c553;
  --line: #dfe2e9;
  --panel: #f4f5f8;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.55 "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0f8;
  --canvas: #111827;
  --surface: #192336;
  --field: #56647b;
  --muted: #b3bfd2;
  --line: #33425c;
  --panel: #222e46;
  --accent: #fbd379;
  --tag-bg: #413421;
  --action: #f9c553;
  --action-hover: #ffda87;
  --action-text: #181f30;
  --success-bg: #1b3c36;
  --success: #9ee0c7;
  --alert-bg: #452938;
  --alert: #ffb4be;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #517bba; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 56px), 1184px); margin-inline: auto; }
.topbar { background: var(--navy); color: #fff; }
.masthead { min-height: 79px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo { display: block; width: 192px; aspect-ratio: 960 / 148; background-color: var(--gold); -webkit-mask: url("/icons/cyber-news-logo.png?v=305ad63025f50ee3") center / contain no-repeat; mask: url("/icons/cyber-news-logo.png?v=305ad63025f50ee3") center / contain no-repeat; }
 .main-nav { display: flex; gap: 25px; align-self: stretch; flex: 1; }
 .main-nav a { display: inline-flex; gap: 7px; align-items: center; position: relative; color: #c3c8d3; font-size: .89rem; font-weight: 600; }
 .main-nav a.active { color: #fff; }
 .main-nav a:is([href="/"], [href^="/?kategori="]) { color: var(--gold); font-size: .95rem; }
 .main-nav a.active::after { content: ""; position: absolute; height: 3px; background: var(--gold); bottom: 0; left: 0; right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; font-size: .9rem; font-weight: 700; border: 1px solid transparent; border-radius: 7px; }
.button.gold { background: var(--gold); color: var(--navy); white-space: nowrap; }
.button.gold:hover { background: #ffd987; }
.button.dark { background: var(--action); color: var(--action-text); }
.button.dark:hover { background: var(--action-hover); }
.button.outline { border-color: var(--line); background: var(--surface); }
.button.outline:hover { background: var(--panel); }
.button:disabled { opacity: .65; cursor: wait; }
.main { min-height: calc(100vh - 154px); padding: 26px 0 64px; }
.feed { margin-top: 8px; }
.feed-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.feed h1, .inner > h1, .inner .feed-heading h1 { font: 700 clamp(2rem, 4.8vw, 3rem)/1.13 var(--serif); letter-spacing: -.04em; }
.search { display: flex; align-items: center; gap: 9px; width: min(300px, 100%); min-height: 44px; border-radius: 7px; border: 1px solid var(--line); padding: 0 12px; color: var(--muted); }
.search:focus-within { border-color: #617da7; }
.search input { width: 100%; border: 0; padding: 8px 0; background: transparent; }
.search input:focus-visible { outline: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 21px; }
.filters button { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; min-height: 38px; font-size: .88rem; font-weight: 650; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--action); color: var(--action-text); border-color: var(--action); }
.notice { min-height: 165px; display: grid; justify-items: center; align-content: center; gap: 9px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 24px; color: var(--muted); text-align: center; }
.notice strong { color: var(--ink); }
.notice a:not(.button) { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.card:hover { border-color: #8490a6; }
.card-media { display: grid; align-content: start; gap: 6px; padding: 8px 8px 0; }
.card-media > img, .card-placeholder { width: 100%; aspect-ratio: 16 / 9; }
.card-media > img { object-fit: contain; background: transparent; }
.card-media .card-placeholder { display: grid; place-items: center; color: var(--muted); background: var(--panel); }
.card-copy { display: grid; gap: 7px; padding: 17px; overflow-wrap: anywhere; }
.category { color: var(--accent); background: var(--tag-bg); border-radius: 4px; padding: 3px 8px; width: fit-content; font-size: .84rem; font-weight: 750; }
.card-media .category { font-size: .78rem; padding: 2px 7px; }
.card h2 { font: 700 1.48rem/1.12 var(--serif); }
.card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); }
.card small, .my-row p { color: var(--muted); font-size: .88rem; }
.inner { padding-top: 14px; }
.editor { background: var(--surface); }
.narrow { width: min(100%, 780px); margin-inline: auto; }
.back { display: flex; align-items: center; gap: 7px; color: var(--muted); width: fit-content; font-weight: 650; margin-bottom: 17px; }
.back:hover { text-decoration: underline; }
.editor { display: grid; gap: 18px; margin-top: 22px; padding: 24px; border: 1px solid var(--line); border-radius: 11px; }
.editor label { display: block; font-weight: 650; }
.editor label small, .photo-label small { font-weight: 400; color: var(--muted); }
.editor input:not([type="file"]), .editor select, .editor textarea { width: 100%; border: 1px solid var(--field); border-radius: 6px; padding: 9px 11px; margin-top: 5px; background: var(--surface); font-weight: 400; }
.password-input { position: relative; display: block; margin-top: 5px; }
.editor .password-input input { display: block; width: 100%; margin-top: 0; padding-right: 48px; }
.password-toggle { position: absolute; top: 4px; right: 4px; bottom: 4px; display: grid; place-items: center; width: 38px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { background: var(--panel); color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid #517bba; outline-offset: -2px; }
.editor textarea { resize: vertical; }
.editor select { appearance: none; background: linear-gradient(45deg, transparent 49%, var(--muted) 50%) right 16px center / 5px 5px no-repeat, linear-gradient(-45deg, transparent 49%, var(--muted) 50%) right 11px center / 5px 5px no-repeat var(--surface); padding-right: 30px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-label { font-weight: 650; }
.editor .upload { margin-top: 6px; position: relative; display: flex; gap: 12px; padding: 13px; align-items: center; border: 1px dashed var(--field); background: var(--panel); border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.upload small { display: block; font-size: .84rem; }
.photo-status:not(:empty) { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload:focus-within { outline: 3px solid #517bba; outline-offset: 3px; }
.photo-preview { display: grid; justify-items: start; gap: 7px; margin: 8px 0; }
.photo-preview img { width: min(100%, 350px); max-height: 240px; object-fit: contain; background: var(--panel); border-radius: 6px; }
.form-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions { justify-content: flex-end; }
.form-error { display: flex; gap: 8px; align-items: center; color: var(--alert); background: var(--alert-bg); border-radius: 6px; padding: 10px; }
.form-error svg { flex: none; }
.my-list { border-top: 1px solid var(--line); }
.my-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 16px 0; overflow-wrap: anywhere; }
.my-row-actions { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
.button.delete { color: var(--alert); border-color: var(--alert); }
.button.delete:hover { background: var(--alert-bg); }
.my-row h2 { font: 700 1.47rem/1.2 var(--serif); margin: 5px 0; }
.my-row h2 a:hover { text-decoration: underline; }
.status { display: inline-block; background: var(--tag-bg); color: var(--accent); padding: 2px 8px; border-radius: 4px; font-size: .83rem; font-weight: 700; }
.status.published { color: var(--success); background: var(--success-bg); }
.reader { width: min(100%, 840px); margin-inline: auto; overflow-wrap: anywhere; }
.reader h1 { font-size: clamp(1.38rem, 3.6vw, 2.4rem); margin: 12px 0; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta strong { color: var(--ink); }
.detail-actions { margin: 17px 0 22px; }
.reader figure img { width: 100%; max-height: 560px; object-fit: contain; background: var(--panel); border-radius: 8px; }
.reader figcaption { color: var(--muted); font-size: .87rem; margin-top: 4px; }
.article-body { display: grid; gap: .65em; font: 1.107rem/1.75 var(--serif); margin-top: 25px; }
.article-body p { white-space: pre-wrap; }
.article-body .rich-block :is(p, div, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table) { margin-block: 0; }
.article-body .rich-block :is(p, div, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table)
  + :is(p, div, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table) { margin-block-start: .65em; }
.article-body figcaption { font-family: system-ui, sans-serif; }
.article-inline-photo { text-align: center; }
.reader .article-inline-photo img {
  width: auto;
  height: auto;
  max-width: min(100%, 300px);
  max-height: 280px;
  margin-inline: auto;
}
.editor .editor-hint { display: block; }
.source { margin-top: 20px; border-left: 3px solid var(--gold); padding-left: 14px; white-space: pre-wrap; }
.footer { border-top: 2px solid var(--gold); background: #162039; color: #dde4ef; }
.footer-content { position: relative; isolation: isolate; display: grid; justify-items: start; gap: 6px; padding-block: 12px; overflow: hidden; font-size: .79rem; line-height: 1.4; }
.footer-brand img { width: 116px; height: auto; }
.footer-watermark { position: absolute; z-index: -1; pointer-events: none; right: 0; top: 50%; transform: translateY(-50%); width: clamp(85px, 19vw, 145px); opacity: .12; mix-blend-mode: lighten; }
.footer-content nav { display: flex; flex-wrap: wrap; gap: 3px 14px; font-weight: 650; }
.footer-content nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-content .footer-social-links { gap: 8px; margin-block: 3px; }
.footer-social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  color: #fff;
}
.footer-social-tiktok { background: #111; }
.footer-social-facebook { background: #0866ff; }
.footer-social-youtube { background: #c00; }
.footer-content .footer-social-link:hover { color: #fff; filter: brightness(1.15); }
.editorial-social-fields {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.editorial-social-fields legend { padding-inline: 4px; font-weight: 700; }
.editorial-social-fields p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-content small { color: #bac5d7; font-size: .72rem; }

@media (max-width: 800px) {
  .masthead { gap: 21px; }
   .main-nav { gap: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .masthead { min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 9px; padding-top: 11px; }
  .brand-logo { width: 166px; }

   .main-nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; height: 38px; }
  .main { padding-top: 16px; }
  .feed { margin-top: 10px; }
  .search { width: 100%; }
  .cards, .field-row { grid-template-columns: minmax(0, 1fr); }
  .dashboard-cards { gap: 8px; }
  .dashboard-cards .card { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 112px; }
  .dashboard-cards .card-media { grid-column: 1; grid-row: 1; width: 92px; min-height: 112px; gap: 3px; padding: 5px 0 5px 5px; }
  .dashboard-cards .card-media .category { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .62rem; padding: 2px 4px; }
  .dashboard-cards .card-media > img, .dashboard-cards .card-media .card-placeholder { width: 100%; height: 76px; min-height: 76px; aspect-ratio: auto; }
  .dashboard-cards .card-copy { grid-column: 2; grid-row: 1; min-width: 0; align-content: start; gap: 3px; padding: 7px 9px; }
  .dashboard-cards .card h2 { font: 700 1.02rem/1.17 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .dashboard-cards .card p { font-size: .78rem; -webkit-line-clamp: 1; }
  .dashboard-cards .card small { font-size: .72rem; }
  .editor { padding: 14px; }
  .form-actions { justify-content: stretch; }
  .form-actions button { flex: 1 1 auto; }
}

.photo-credit { margin-top: 10px; }
.share-link { display: block; margin-block: 12px; font-size: .9rem; font-weight: 650; }
.share-link input { display: block; width: 100%; border: 1px solid var(--field); border-radius: 6px; padding: 8px 10px; margin-top: 4px; background: var(--surface); font-weight: 400; }

.mast-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mast-icon { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 1px solid #4e5a72; border-radius: 7px; background: transparent; color: #f5f7fc; cursor: pointer; }
.mast-icon:hover { background: #2d3953; }
.mast-menu { position: relative; }
.mast-menu summary { list-style: none; }
.mast-menu summary::-webkit-details-marker { display: none; }
.mast-menu[open] > summary { background: #35425c; }
.menu-panel { position: absolute; z-index: 12; top: calc(100% + 8px); right: 0; min-width: 198px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 32px #0004; color: var(--ink); background: var(--surface); }
.menu-panel { width: min(320px, calc(100vw - 28px)); max-height: min(75vh, 560px); overflow-y: auto; }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 5px; min-height: 43px; font-weight: 650; }
.menu-panel a:hover { background: var(--panel); }
.mast-account-toggle {
  box-sizing: border-box; display: grid; place-items: center; width: 43px; height: 43px;
  margin: 2px 5px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  color: var(--ink); background: var(--surface);
}
.mast-account-toggle:hover, .mast-account-menu[open] > summary { background: var(--panel); }
.mast-account-links { margin: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; }
.mast-account-links svg { flex: none; }
.mast-actions { position: relative; }
.release-notices-toggle { position: relative; }
.release-notices-toggle[aria-pressed="true"] { color: var(--gold); }
.release-notices-toggle:disabled { cursor: wait; }
.release-notices-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.release-notices-count {
  position: absolute;
  inset: -4px -3px auto auto;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ca2537;
  color: #fff;
  font: 700 11px/1.45 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
@media (max-width: 560px) { .masthead .brand-logo { max-width: 100%; } }
.menu-divider { height: 1px; background: var(--line); margin: 6px; }
.menu-provinces { padding: 8px 6px 6px; }
.menu-province-heading { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 43px; padding: 0 5px 5px; }
.menu-provinces > .menu-province-heading > strong { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.menu-province-heading .mast-account-menu { display: block; flex: 0 0 43px; width: 43px; margin-left: auto; }
.menu-province-heading .mast-account-toggle { display: grid; flex: 0 0 43px; width: 43px; margin: 0; list-style: none; }
.province-search { display: block; width: 100%; min-height: 39px; margin: 0 0 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--ink); }
.menu-province-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.menu-province-grid button { display: flex; align-items: center; width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font-size: .86rem; font-weight: 650; cursor: pointer; }
.menu-province-grid button:hover { background: var(--panel); }
.menu-province-grid button[aria-pressed="true"] { border-color: var(--action); background: var(--action); color: var(--action-text); }

.edition-date { color: var(--muted); font-size: .91rem; font-weight: 650; margin-bottom: 6px; }
.feed-heading { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.ad-manager-list > h2 { font: 700 1.68rem/1.2 var(--serif); margin-bottom: 13px; }
.load-more { display: flex; justify-content: center; margin-top: 18px; }
.search { background: var(--surface); }

.ad-placement { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 10px; }
.ad-header { margin-top: 15px; }
.ad-footer { margin-bottom: 18px; }
.ad-card { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
a.ad-card:hover { border-color: var(--accent); }
.ad-card img { width: 85px; max-height: 67px; object-fit: contain; border-radius: 4px; }
.ad-card strong { display: block; line-height: 1.25; }
.ad-card p { margin-top: 2px; color: var(--muted); font-size: .84rem; }
.ad-label { display: block; color: var(--accent); font-size: .75rem; font-weight: 750; }
.floating-panel { position: fixed; inset: 0; margin: auto; padding: 0; width: min(330px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); border: 0; background: transparent; overflow: hidden; }
.floating-panel::backdrop { background: transparent; }
.floating-close { position: absolute; z-index: 1; inset: 6px 6px auto auto; margin: 0; }
.floating-close .button { min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #162039e8; }
.floating-close .button:hover { background: #162039; }
.floating-items { display: grid; gap: 6px; max-height: min(75dvh, 520px); overflow: auto; }

.ad-access { margin-top: 16px; }
.ad-access .detail-actions { justify-content: center; margin: 5px 0 0; }
.ad-manager-list { margin-top: 25px; }
.ad-manager-list h3 { font: 700 1.24rem/1.2 var(--serif); margin-top: 4px; }
.editor input.checkbox { width: auto; margin: 0 5px 0 0; accent-color: var(--action); }
.editorial-profile { margin-top: 16px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; justify-items: start; }
.editorial-profile p { white-space: pre-wrap; }
.editorial-structure { display: grid; gap: 12px; margin-top: 20px; }
.editorial-structure > h2 { font: 700 clamp(1.55rem, 3vw, 2rem)/1.2 var(--serif); }
.editorial-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.editorial-role { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.editorial-role h3 { font-size: 1rem; line-height: 1.3; }
.editorial-role p { margin-top: 6px; color: var(--muted); font-size: .94rem; }
.editorial-roster { display: grid; gap: 12px; margin-top: 22px; }
.editorial-roster > h2 { font: 700 clamp(1.55rem, 3vw, 2rem)/1.2 var(--serif); }
.editorial-roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.editorial-roster-card { display: grid; align-content: start; gap: 5px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
.editorial-roster-card h3 { font-size: 1rem; }
.editorial-roster-card p { color: var(--muted); font-size: .9rem; white-space: pre-wrap; }
.editorial-roster-card strong { color: var(--ink); }
.roster-empty { color: var(--muted); font-style: italic; }
.regional-roster-editor { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel); }
.regional-roster-editor > summary { cursor: pointer; font-weight: 700; }
.regional-roster-editor > p { color: var(--muted); font-size: .9rem; }
.regional-roster-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.regional-roster-field { display: grid; gap: 9px; min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px; }
.regional-roster-field legend { padding-inline: 4px; font-weight: 700; }
@media (max-width: 560px) {
  .editorial-role-grid, .editorial-roster-grid, .regional-roster-fields { grid-template-columns: minmax(0, 1fr); }
}
.portal-status { margin-top: 10px; color: var(--success); }
.contributor-approvals { display: grid; gap: 10px; }
.contributor-approvals > p { color: var(--muted); }
@media (max-width: 560px) {
  .mast-actions { gap: 5px; }
  .mast-icon { width: 40px; min-height: 40px; height: 40px; }
  .ad-header { margin-top: 10px; }
}

.article-share { margin: 0 0 8px; }
.article-share-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.article-share-icons { display: flex; flex-wrap: wrap; gap: 7px; }
.article-reader-points { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #e2bd58; border-radius: 999px; background: #fff7dd; color: #5b4300; font-size: .78rem; font-weight: 800; line-height: 1.2; white-space: nowrap; }
@media (max-width: 420px) {
  .article-share-toprow { min-width: 0; gap: clamp(3px, 1vw, 7px); }
  .article-share-icons { flex-wrap: nowrap; min-width: 0; gap: clamp(2px, .8vw, 4px); }
  .article-share-icon { flex: 0 0 auto; width: clamp(20px, 6.5vw, 26px); height: clamp(20px, 6.5vw, 26px); }
  .article-share-icon svg { width: clamp(12px, 4vw, 15.4px); height: clamp(12px, 4vw, 15.4px); }
  .article-reader-points { flex: 0 1 auto; min-width: 0; max-width: 43%; padding: clamp(3px, 1vw, 4px) clamp(4px, 1.4vw, 6px); font-size: clamp(.55rem, 2.2vw, .68rem); overflow: hidden; text-overflow: ellipsis; }
}
.article-share-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
}
.article-share-icon:hover:not(:disabled) { filter: brightness(1.1); }
.article-share-icon:disabled { opacity: .65; cursor: wait; }
.article-share-facebook { background: #0866ff; }
.article-share-x, .article-share-copy { background: #101010; border-color: #707070; }
.article-share-whatsapp { background: #078247; }
.article-share-telegram { background: #007cab; }
.article-share-line { background: #008a42; }
.article-share-line svg text { fill: #00723c; }
.article-share-feedback:not(:empty) { margin-top: 6px; color: var(--ink); font-size: .875rem; }
.article-share-feedback a { color: var(--accent); text-decoration: underline; }
.article-share-url { display: block; width: min(100%, 400px); margin-top: 5px; }

.share-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 12px 0; }
.share-controls .share-link { flex: 1 1 230px; min-width: 0; margin: 0; }

.video-home { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 19px; }
.video-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.video-heading h2 { font: 700 clamp(1.7rem, 4vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.035em; }
.video-platforms { display: grid; gap: 16px; }
.video-platform {
  min-width: 0;
  padding: clamp(9px, 1.6vw, 16px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.video-platform-title {
  margin: 0 0 10px;
  font: 700 clamp(1.13rem, 2.4vw, 1.45rem)/1.2 var(--serif);
  color: var(--ink);
}
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.video-media { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #18253a; }
.video-external-player { display: grid; justify-items: center; gap: 7px; padding: 8px; }
.video-external-media { width: min(100%, 360px); min-height: 0; border-radius: 6px; overflow: hidden; }
.video-external-portrait { width: min(100%, 220px); aspect-ratio: 9 / 16; }
.video-fullscreen { font-size: .82rem; }
.video-external-player:fullscreen, .video-external-expanded {
  box-sizing: border-box;
  width: 100%; height: 100%; height: 100dvh;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  background: #0b1018;
}
.video-external-expanded { position: fixed; inset: 0; z-index: 10000; }
.video-external-player:fullscreen .video-external-media, .video-external-expanded .video-external-media {
  width: min(100%, calc((100vh - 70px) * 16 / 9));
  width: min(100%, calc((100dvh - 70px) * 16 / 9));
}
.video-external-player:fullscreen .video-external-portrait, .video-external-expanded .video-external-portrait {
  width: min(100%, calc((100vh - 70px) * 9 / 16));
  width: min(100%, calc((100dvh - 70px) * 9 / 16));
}
.video-media iframe, .video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: grid; place-items: center; padding: 0; overflow: hidden; background: linear-gradient(145deg, #263755, #131d32); color: white; }
.video-play:focus-visible { outline-offset: -4px; }
.video-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play img[hidden] { display: none; }
.play-icon { display: grid; place-items: center; z-index: 1; width: 62px; height: 52px; border-radius: 14px; background: #ac1d2b; box-shadow: 0 4px 14px #0007; }
.video-play:hover .play-icon, .video-play:focus-visible .play-icon { background: #c52332; }
.video-card-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 7px; padding: 7px 8px 7px 10px; }
.video-card-title { margin: 0; align-self: start; font: 700 1.02rem/1.28 var(--serif); overflow-wrap: anywhere; }
.video-share { min-width: 0; }
.video-share[open] { display: contents; }
.video-share[open]::details-content { display: contents; }
.video-share-toggle { display: grid; place-items: center; width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); list-style: none; cursor: pointer; }
.video-share-toggle::-webkit-details-marker { display: none; }
.video-share-menu { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; justify-content: end; padding-top: 4px; }
.video-share-menu > :is(a, button) { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font: inherit; font-size: .82rem; text-decoration: none; }
.video-share-menu > :is(a, button):hover, .video-share-toggle:hover { background: var(--panel); }
.video-share-menu > :is(p, input) { flex-basis: 100%; margin: 0; font-size: .82rem; }
.video-share-menu > input { min-width: 0; }
.video-detail { max-width: 760px; margin-inline: auto; }
.video-detail .video-card-title { font-size: 1.15rem; }
.video-detail-description, .video-source-link { display: block; margin: 0; padding: 0 10px 10px; }
.video-detail-description { white-space: pre-line; overflow-wrap: anywhere; }
.video-source-link, .video-player-unavailable { font-size: .85rem; }
.video-player-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 10px; color: #fff; text-align: center; }
.video-player-unavailable { margin: 0; padding: 0 10px 6px; color: var(--muted); }
.video-notice { margin-top: 16px; }
.video-pagination { display: grid; justify-items: center; gap: 8px; }
.video-pagination:not(:empty) { margin-top: 14px; }
.video-pagination [role="status"] { color: var(--muted); }
@media (max-width: 840px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-play img { object-fit: contain; }
}
@media (max-width: 560px) { .video-grid { grid-template-columns: minmax(0, 1fr); } }

.video-release-form { gap: 9px; margin-top: 12px; padding: 12px; }
.video-release-form h2 { font-size: 1.16rem; }
.video-cover-settings { display: grid; justify-items: start; gap: 6px; }
.video-cover-settings label { width: 100%; min-width: 0; }
.video-cover-settings img { display: block; max-width: min(100%, 200px); max-height: 130px; object-fit: contain; }
.video-release-list { margin-top: 14px; }
.video-release-list > h2 { margin-bottom: 6px; font: 700 1.33rem/1.2 var(--serif); }
.video-title-search { display: flex; gap: 6px; margin-bottom: 8px; }
.video-title-search input {
  flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); background: var(--surface); font: inherit;
}
.video-release-list ul { margin: 0; padding: 0; list-style: none; }
.video-release-list .my-row {
  display: grid;
  grid-template-columns: 3.3rem minmax(0, 1fr) max-content;
  gap: 8px;
  padding: 5px 0;
}
.video-release-list .status { justify-self: start; padding: 1px 5px; font-size: .74rem; white-space: nowrap; }
.video-release-list h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font: 650 .95rem/1.2 system-ui, sans-serif;
}
.video-release-list .button {
  min-height: 34px;
  gap: 4px;
  padding: 4px 7px;
  font-size: .79rem;
  white-space: nowrap;
}
.video-release-list .button svg { flex: none; }
.video-release-list .my-row > .my-row-actions { gap: 4px; }
@media (max-width: 380px) {
  .video-release-list .my-row { grid-template-columns: 2.8rem minmax(0, 1fr) max-content; gap: 4px; }
  .video-release-list .my-row > .my-row-actions .button { padding-inline: 5px; }
}
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.install-widget { position: fixed; z-index: 9; left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.install-trigger.button {
  min-width: 130px;
  min-height: 40px;
  padding: 6px 12px;
  gap: 8px;
  color: var(--gold);
  background: #111c30;
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 3px 10px #0004;
}
.install-trigger.button:hover { background: #23314b; }
.install-help { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(265px, calc(100vw - 48px)); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); box-shadow: 0 5px 23px #0004; }
.install-help-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.install-help p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.install-close { display: grid; place-items: center; border: 0; background: transparent; border-radius: 5px; padding: 4px; }
.install-close:hover { background: var(--panel); }

@media (max-width: 560px) {
  .contributor-approvals .my-row { flex-wrap: wrap; }
  .contributor-approvals .my-row-actions { max-width: 100%; }
}

.my-articles > .feed-heading { margin-bottom: 6px; padding-bottom: 7px; }
.my-articles-list .my-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  padding-block: 6px;
}
.my-article-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "status meta" "title title";
  align-items: center;
  gap: 3px 6px;
}
.my-article-summary .status { grid-area: status; padding: 1px 5px; font-size: .74rem; }
.my-article-summary h2 { grid-area: title; margin: 0; font-size: 1rem; line-height: 1.2; }
.my-article-summary h2 a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.my-article-summary p {
  grid-area: meta;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
}
.my-articles-list .my-row > .my-row-actions { gap: 4px; }
.my-articles-list .my-row > .my-row-actions .button {
  min-height: 32px;
  padding: 3px 6px;
  gap: 4px;
  font-size: .78rem;
  white-space: nowrap;
}
.my-articles-list .my-row > .my-row-actions .button svg { width: 13px; height: 13px; flex: none; }

.article-footer {
  margin-top: 20px;
  padding-top: 12px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.article-credits {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  color: var(--muted); font-size: .9rem; overflow-wrap: anywhere;
}
.article-credits strong { color: var(--ink); }
.article-footer .detail-actions { margin: 0; }
.article-footer .detail-actions .button { min-height: 38px; font-size: .875rem; }
.article-footer .share-link { margin-top: 0; }

.rich-editor {
  min-height: 13rem;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--field);
  border-radius: 6px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.rich-block { min-width: 0; overflow-x: auto; overflow-wrap: anywhere; }
.rich-editor ul, .rich-editor ol, .rich-block ul, .rich-block ol { padding-inline-start: 1.6em; }
.rich-editor table, .rich-block table { border-collapse: collapse; }
.rich-editor :is(th, td), .rich-block :is(th, td) {
  padding: 6px 9px;
  border: 1px solid var(--field);
  vertical-align: top;
}
.rich-editor th, .rich-block th, .rich-editor blockquote, .rich-block blockquote { background: var(--panel); }
.rich-editor blockquote, .rich-block blockquote { border-inline-start: 3px solid var(--gold); padding: .4em .8em; }

.article-delete-form, .video-delete-form {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  gap: 8px;
  padding: 10px;
}

.article-video-links { margin-top: 10px; }
.article-video-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.article-video-buttons .button {
  min-height: 40px; padding: 4px; font-size: clamp(.72rem, 2.9vw, .88rem);
  text-align: center; justify-content: center; white-space: nowrap;
}
.article-continuation { margin-top: 18px; }
.article-continuation > h2 { margin: 0 0 8px; font-size: 1rem; }
.article-continuation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.article-continuation-card {
  display: grid; align-content: start; min-width: 0; overflow: hidden;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px;
}
.article-continuation-card:focus-visible { outline-offset: -3px; }
.article-continuation-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-continuation-card h3 { margin: 0; padding: 7px 8px; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .article-continuation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-video-buttons .button { white-space: normal; }
}
.article-video-dialog {
  box-sizing: border-box; width: min(840px, calc(100% - 22px)); max-width: none;
  max-height: calc(100dvh - 22px); padding: 12px; overscroll-behavior: contain;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.article-video-dialog::backdrop { background: #080d18b8; }
.article-video-dialog-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.article-video-dialog-header h2 { margin: 0; }
.article-video-dialog .video-gallery { margin: 0; }
.article-comments { display: grid; gap: 8px; margin-top: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; } .article-comments[data-cyber-news-duplicate-comment="true"], .main.live-active .article-comments { display: none !important; }
.article-comments .editor { margin: 0; gap: 6px; padding: 10px; }
.article-comments .editor label { font-size: .9rem; }
.article-comments .editor input[name="name"], .article-comments .editor textarea { display: block; margin-top: 2px; padding: 6px 8px; }
.article-comments .editor .form-error { padding: 6px 8px; }
.article-comments > .button { justify-self: start; }
.comment-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.comment-tools .emoji-options { top: auto; bottom: calc(100% + 5px); max-width: calc(100vw - 48px); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.comment-tools .emoji-button { width: 100%; max-width: 36px; }
.rich-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.emoji-picker { position: relative; display: inline-block; }
.emoji-picker summary { list-style: none; display: inline-flex; align-items: center; min-height: 36px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: .86rem; font-weight: 650; cursor: pointer; }
.emoji-picker summary::-webkit-details-marker { display: none; }
.emoji-picker summary:hover { border-color: var(--action); }
.emoji-options { position: absolute; z-index: 8; top: calc(100% + 5px); left: 0; display: grid; grid-template-columns: repeat(6, 36px); gap: 4px; width: max-content; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px #0003; }
.emoji-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 1.15rem; }
.emoji-button:hover { border-color: var(--action); background: var(--surface); }
.character-count { color: var(--muted); font-size: .82rem; }
.reader-comment { border-bottom: 1px solid var(--line); padding: 5px 0; overflow-wrap: anywhere; }
.reader-comment time { color: var(--muted); font-size: .82rem; margin-inline-start: .4em; }
.reader-comment p { white-space: pre-wrap; margin-top: 2px; }

.main-nav { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.main-nav a { flex: 0 0 auto; white-space: nowrap; }
.main-nav a:focus-visible { outline-offset: -3px; }

.press-entry, .press-queue { margin-top: 20px; }
.press-entry, .press-info { display: grid; gap: 6px; }
.press-entry { padding-block: 12px; border-bottom: 1px solid var(--line); }
.press-info { overflow-wrap: anywhere; }
.press-info span { color: var(--muted); }
.press-review > img { object-fit: cover; border-radius: 6px; }
.press-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.press-crop { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.press-crop-frame { display: block; width: min(100%, 168px); height: auto; margin-inline: auto;
  border-radius: 10%; touch-action: none; cursor: grab; background: var(--panel); }
.press-crop-frame:active { cursor: grabbing; }
.editor .press-crop input[type="range"] { padding: 0; accent-color: var(--action); }
.press-adjust-photo { justify-self: start; }
.press-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 10px; margin-top: 8px; }
.press-preview canvas { height: auto; width: 100%; border-radius: 9px; }

.press-review.editor {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
}
.press-review > img { width: 56px; height: 70px; }
.press-review-details { display: grid; min-width: 0; gap: 6px; }
.press-review-details .press-info { gap: 2px; font-size: .875rem; }
.press-review-details .button { min-height: 36px; padding: 5px 10px; }

.rich-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rich-tools .button { padding: 4px 8px; min-height: 32px; font-size: .78rem; }
.rich-align-left { text-align: left; }
.rich-align-center { text-align: center; }
.rich-align-right { text-align: right; }
.rich-align-justify { text-align: justify; }

.coverage-docs { display: grid; gap: 14px; margin-top: 14px; }
.coverage-docs fieldset { margin: 0; min-width: 0; }
.coverage-tools label.button { position: relative; display: inline-flex; cursor: pointer; }
.coverage-tools input[type="file"] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.coverage-tools label:focus-within { outline: 3px solid #517bba; outline-offset: 2px; }
.coverage-sheet { display: grid; gap: 9px; background: #fff; color: #162039; padding: clamp(12px, 3vw, 24px); border-radius: 8px; overflow-wrap: anywhere; }
.coverage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.coverage-slot { display: grid; align-content: start; gap: 6px; }
.coverage-photo { display: grid; place-items: center; aspect-ratio: 1.45; border-radius: 6px; overflow: hidden; background: #f1f4f8; border: 1px solid #dce3ee; }
.coverage-photo img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.coverage-slot input { color-scheme: light; color: #162039; background: #fff; display: block; width: 100%; padding: 6px; border: 1px solid #aebacc; border-radius: 5px; }
.coverage-slot .button { justify-self: start; min-height: 32px; padding: 4px 8px; }
.coverage-sheet > small { justify-self: end; }

.coverage-photo-menu { position: relative; }
.coverage-photo-options:not([hidden]) {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  inset-inline-start: 0;
  display: grid;
  gap: 5px;
  min-width: max-content;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 4px 16px #0003;
}
.coverage-photo-options .button { justify-content: flex-start; }

.menu-panel .menu-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  text-align: start;
  cursor: default;
}
.menu-locked svg { flex: none; }
.menu-locked small { margin-inline-start: auto; text-align: end; }

.feed-ad { grid-column: 1 / -1; min-width: 0; display: grid; gap: 3px; }
.feed-ad .ad-label { color: var(--muted); }
.ad-placement { grid-template-columns: minmax(0, 1fr); }
.ad-card.ad-with-art { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ad-art { width: 100%; aspect-ratio: 8 / 1; overflow: hidden; border-radius: 5px; background: var(--panel); }
.ad-art-floating { aspect-ratio: 1; }
.ad-art img, .ad-card .ad-art img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.ad-art.ad-fit-cover img, .ad-card .ad-art.ad-fit-cover img { object-fit: cover; }
.ad-art-preview { margin-top: 6px; }
.ad-art-preview.ad-art-floating { max-width: 260px; }

.ad-article_inline, .ad-article_end, .ad-placement[class*="ad-article_paragraph_"] { margin-block: 12px; font: normal .875rem/1.4 system-ui, sans-serif; }
.ad-desktop_left, .ad-desktop_right { display: none; }
.ad-art-desktop_left, .ad-art-desktop_right { aspect-ratio: 1 / 3; }
.ad-art-preview:is(.ad-art-desktop_left, .ad-art-desktop_right) { max-width: 160px; }
@media (min-width: 1440px) {
  .ad-placement:is(.ad-desktop_left, .ad-desktop_right) {
    display: grid;
    position: fixed;
    top: 105px;
    width: clamp(104px, calc((100vw - 1184px) / 2 - 24px), 160px);
    max-height: calc(100dvh - 190px);
    overflow: auto;
    align-content: start;
  }
  .ad-desktop_left { left: 12px; }
  .ad-desktop_right { right: 12px; }
  :is(.ad-desktop_left, .ad-desktop_right) .ad-card { padding: 6px; font-size: .8rem; }
}

.ad-placement > .ad-art, .floating-items > .ad-art {
  display: block;
  border-radius: 0;
  background: transparent;
}
.ad-list-thumb { width: 140px; max-height: 85px; object-fit: contain; object-position: left; }

.ad-header + .main:has(> .feed) { padding-top: 10px; }
.ad-header + .main > .feed { margin-top: 0; }
/* Header HP: kategori tetap satu baris dan dapat digeser dengan sentuhan. */
@media (max-width: 560px) {
  .topbar .masthead > .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: thin;
    scroll-behavior: smooth;
  }
  .topbar .masthead > .main-nav > a {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .menu-province-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .menu-province-heading .mast-account-menu {
    flex: 0 0 43px;
    width: 43px;
    margin-inline-start: auto;
  }
}

/* Live header, channel menu, player and Redaksi channel setup. */
.topbar { position: relative; }
.live-nav-toggle { border: 1px solid rgba(249,197,83,.55); border-radius: 8px; background: transparent; color: #f9c553; font: inherit; font-weight: 700; padding: .42rem .72rem; cursor: pointer; flex: 0 0 auto; }
.live-nav-toggle:hover,.live-nav-toggle[aria-expanded="true"] { background: rgba(249,197,83,.14); }
.live-dropdown-panel { position: absolute; z-index: 120; top: calc(100% - 2px); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: .55rem; padding: .85rem 1rem; border: 1px solid rgba(249,197,83,.35); border-radius: 0 0 12px 12px; background: #172137; box-shadow: 0 12px 24px rgba(0,0,0,.24); }
.live-dropdown-panel button { border: 1px solid rgba(249,197,83,.45); border-radius: 999px; padding: .5rem .8rem; background: #222f48; color: #f9c553; font: inherit; cursor: pointer; }
.live-dropdown-panel p { margin: .2rem 0; color: #fff; }
.live-player-card { margin: 1rem auto; padding: 1rem; max-width: 900px; border: 1px solid rgba(249,197,83,.48); border-radius: 14px; background: var(--surface,#fff); color: var(--ink,#1a2234); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.live-player-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.live-player-heading h2 { margin:.15rem 0 0; font-size:1.15rem; }
.live-badge { display:inline-block; border-radius:4px; padding:.15rem .45rem; background:#bb1f2b; color:white; font-size:.75rem; font-weight:800; letter-spacing:.06em; }
.live-player-frame { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:10px; background:#05070c; }
.live-player-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.live-channel-settings { margin:1rem 0; padding:1rem; border:1px solid var(--field,#bfc8d6); border-radius:10px; }
.live-channel-settings legend { padding:0 .4rem; font-weight:700; }
.live-channel-row { display:grid; grid-template-columns:minmax(150px,1fr) minmax(220px,2fr) auto; gap:.75rem; align-items:end; margin:.75rem 0; }
.live-channel-row label { display:grid; gap:.35rem; font-weight:600; }
.live-channel-row input { min-width:0; width:100%; box-sizing:border-box; }
@media(max-width:600px) { .live-dropdown-panel { width:calc(100vw - 1.25rem); box-sizing:border-box; left:50%; max-height:55vh; overflow:auto; } .live-channel-row { grid-template-columns:1fr; } .live-channel-row button { justify-self:start; } .live-player-card { padding:.75rem; } }

/* Account options open as one readable dropdown, separate from the province selector. */
.menu-province-heading { display: grid; grid-template-columns: minmax(0, 1fr) 43px; align-items: center; gap: 8px; width: 100%; }
.menu-province-heading .mast-account-menu { position: static; display: block; flex: 0 0 43px; width: 43px; height: 43px; }
.menu-province-heading .mast-account-menu[open] { display: contents; }
.menu-province-heading .mast-account-toggle { grid-column: 2; justify-self: end; }
.mast-account-links {
  position: static; grid-column: 1 / -1;
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px;
  width: 100%; margin: 4px 0 7px; padding: 7px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); box-shadow: 0 12px 30px #0003;
}
.mast-account-links > a, .mast-account-links > button {
  box-sizing: border-box; display: flex; align-items: center; gap: 10px;
  width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--panel);
  color: var(--ink); font: inherit; font-weight: 650; line-height: 1.3;
  text-align: left; text-decoration: none; white-space: normal; overflow-wrap: anywhere;
  cursor: pointer;
}
.mast-account-links > a:hover, .mast-account-links > button:hover:not(:disabled) { border-color: var(--line); background: var(--panel); }
.mast-account-links > button:disabled { opacity: .68; cursor: default; }
.mast-account-links > button small { margin-left: auto; color: var(--muted); font-size: .72rem; }
@media (max-width: 560px) {
  .menu-province-heading .mast-account-menu { flex: 0 0 43px; width: 43px; }
  .menu-province-heading { grid-template-columns: minmax(0, 1fr) 43px; }
  .mast-account-links { width: 100%; }
}

/* Live controls styled to match the horizontal category navigation. */
.live-nav-toggle {
  display: inline-flex; align-items: center; align-self: stretch; position: relative;
  flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #f9c553; font: inherit; font-size: .95rem;
  font-weight: 600; line-height: inherit; white-space: nowrap; cursor: pointer;
}
.live-nav-toggle:hover, .live-nav-toggle[aria-expanded="true"] { background: transparent; }
.live-nav-toggle:focus-visible { outline: 2px solid #f9c553; outline-offset: -3px; }
.live-nav-toggle[aria-expanded="true"]::after {
  content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: 0;
  background: var(--gold, #f9c553);
}
.live-dropdown-panel {
  top: 100%; gap: .2rem; padding: .32rem .6rem; border: 0;
  border-top: 1px solid rgba(249,197,83,.22); border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.live-dropdown-panel button {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: .3rem .55rem; border: 0; border-radius: 0;
  background: transparent; color: #f9c553; font: inherit;
  font-size: .89rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.live-dropdown-panel button:hover, .live-dropdown-panel button:focus-visible {
  background: rgba(249,197,83,.12); text-decoration: underline;
}
.live-dropdown-panel p { margin: .1rem .25rem; font-size: .86rem; line-height: 1.25; }
/* Reduce empty space around the dedicated player card while preserving 16:9 video. */
.live-player-card { margin: .6rem auto; padding: .65rem; border-radius: 10px; }
.live-player-heading { gap: .6rem; margin-bottom: .45rem; }
.live-player-heading h2 { font-size: 1rem; }
.live-player-heading .button { min-height: 34px; padding: .35rem .6rem; }
.live-player-frame { border-radius: 8px; }
@media(max-width:600px) {
  .live-dropdown-panel { padding: .25rem .45rem; gap: .1rem; }
  .live-dropdown-panel button { min-height: 32px; padding: .25rem .45rem; font-size: .86rem; }
  .live-player-card { margin: .45rem auto; padding: .55rem; }
}

/* Keep the header controls tappable above an open menu card. */
@media(max-width:600px) { .topbar .masthead > .main-nav { position:relative; z-index:20; } }

/* Keep the hamburger card below the complete mobile navigation row. */
@media (max-width: 560px) {
  .topbar .masthead > .main-nav { position: static; z-index: auto; }
  .mast-menu .menu-panel { top: calc(100% + 52px); }
}
