:root {
    color-scheme: dark;
    --brand: #CE1126;
    --brand-hover: #A50E1F;
    --accent-gold: #D4AF37;
    --bg-main: #101112;
    --bg-surface: #191b1e;
    --bg-card: #202327;
    --bg-elevated: #292d32;
    --border: rgba(255, 255, 255, 0.1);
    --text: #f5f5f2;
    --text-muted: #a7abb1;
    --positive: #38c982;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --radius: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, #17191b 0, var(--bg-main) 32rem);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - 2.5rem, 78rem);
    margin-inline: auto;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

main {
    padding-block: clamp(2rem, 5vw, 4rem);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.ticker-bar {
    min-height: 2.5rem;
    background-color: #141619;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 0.72rem;
    white-space: nowrap;
}

.ticker-badge {
    background-color: var(--brand);
    color: #ffffff;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    letter-spacing: 0.04em;
}

.ticker-title {
    background-color: #202327;
    color: var(--accent-gold);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.ticker-marquee {
    padding: 0.45rem 1rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

body > header {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    background-color: rgba(25, 27, 30, 0.96);
}

.nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.brand h1 {
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.nav-wrapper ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
}

.nav-wrapper a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-wrapper a:hover {
    color: var(--text);
    background-color: var(--bg-elevated);
}

.section-title {
    position: relative;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 3rem;
    height: 2px;
    background-color: var(--brand);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 66ch;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 60rem) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: start;
    }
}

.card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.channel-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.channel-badge.live {
    background-color: var(--brand);
    color: #ffffff;
}

.channel-badge.realtime {
    background-color: var(--accent-gold);
    color: #000000;
}

.channel-badge.market {
    background-color: var(--accent-gold);
    color: #000000;
}

.channel-number {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.channel-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.stream-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background-color: #090a0b;
    aspect-ratio: 16 / 9;
}

.stream-preview {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.stream-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.stream-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45));
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    fill: #ffffff;
    opacity: 0.85;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}

.channel-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.meta-item strong {
    color: var(--text);
}

.market-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

.market-card {
    padding: 1rem;
    background: rgba(10, 12, 14, 0.42);
    box-shadow: none;
}

.market-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.market-eyebrow {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.market-panel-header h4 {
    font-size: 1rem;
}

.market-panel-header h4 span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.market-session {
    color: var(--positive);
    border: 1px solid rgba(56, 201, 130, 0.3);
    border-radius: 4px;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}

.ihsg-chart-frame {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-surface);
}

.market-chart-card .market-value {
    margin-bottom: 0.75rem;
}

.stat-change.naik {
    color: var(--positive);
}

.stat-change.turun {
    color: #f87171;
}

.chart-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.ihsg-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ihsg-grid {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1;
}

.ihsg-label {
    fill: var(--text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.ihsg-line {
    fill: none;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.market-source {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.65rem;
}

.market-value {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-val {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--accent-gold);
    font-variant-numeric: tabular-nums;
}

.stat-change {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.market-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.45rem;
}

.currency-picker {
    position: relative;
    flex: 0 0 auto;
}

.currency-picker-button {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--bg-elevated);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.currency-picker-button:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.currency-picker-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    width: min(19rem, calc(100vw - 3rem));
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: #202327;
    box-shadow: var(--shadow);
}

.currency-picker-menu[hidden] {
    display: none;
}

#currency-search {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.65rem;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: #121416;
}

.currency-options {
    display: grid;
    max-height: 15rem;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.currency-option {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.45rem;
    text-align: left;
    border-radius: 3px;
}

.currency-option:hover,
.currency-option[aria-selected="true"] {
    background-color: var(--bg-elevated);
}

.currency-option-code {
    color: var(--accent-gold);
    font-weight: 700;
}

.currency-option-name {
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-empty {
    padding: 0.7rem 0.45rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.speech-badge {
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand);
    color: #ffffff;
    font-weight: 600;
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: var(--space-1);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background-color: var(--brand-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn[hidden] {
    display: none;
}

.btn-primary {
    background-color: var(--brand);
}

.btn-switch {
    margin-top: 0.6rem;
    background-color: var(--accent-gold);
    color: #000000;
}

.btn-retry {
    background-color: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.8rem;
    margin-top: 0.6rem;
    align-self: flex-start;
}

.btn-retry:hover {
    background-color: var(--bg-card);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.contact-form {
    max-width: 42rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: var(--space-2);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.75rem;
    background-color: #121416;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.error-summary {
    max-width: 42rem;
    background-color: rgba(206, 17, 38, 0.08);
    border: 1px solid rgba(206, 17, 38, 0.35);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.error-summary-title {
    color: #f87171;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.error-summary ul {
    list-style: none;
    padding: 0;
}

.error-summary li {
    font-size: 0.85rem;
    color: #f87171;
    padding: 0.15rem 0;
}

.error-summary li a {
    color: #f87171;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.error-summary li a:hover {
    color: #fca5a5;
}

.field-error {
    display: block;
    min-height: 1.25rem;
    font-size: 0.8rem;
    color: #f87171;
    margin-top: 0.25rem;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.form-group input.field-valid,
.form-group select.field-valid,
.form-group textarea.field-valid {
    border-color: var(--positive);
    box-shadow: 0 0 0 3px rgba(56, 201, 130, 0.12);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.draft-indicator {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.draft-indicator.draft-tersimpan {
    color: var(--positive);
}

body > footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    background-color: #141618;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.footer-links {
    display: flex;
    gap: var(--space-2);
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 48rem) {
    .nav-wrapper {
        justify-content: center;
    }

    .brand {
        width: 100%;
        text-align: center;
    }

    .nav-wrapper ul {
        justify-content: center;
    }

    .market-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ihsg-chart-frame {
        height: 290px;
    }
}

@media (max-width: 32rem) {
    .container {
        width: min(100% - 1.5rem, 78rem);
    }

    .ticker-title {
        display: none;
    }

    .nav-wrapper ul {
        gap: 0.15rem;
    }

    .nav-wrapper a {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }

    .market-grid {
        gap: 0.75rem;
    }

    .market-card {
        padding: 0.8rem;
    }

    .ihsg-chart-frame {
        height: 250px;
    }
}

.nav-wrapper a[aria-current="page"] {
    color: var(--text);
    background-color: var(--bg-elevated);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb [aria-current="page"] {
    color: var(--text);
}

.page-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.sync-status::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--accent-gold);
    flex-shrink: 0;
}

.sync-status[data-keadaan="selesai"]::before {
    background-color: var(--positive);
}

.sync-status[data-keadaan="gagal"]::before {
    background-color: #f87171;
}

.notice {
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.notice[hidden] {
    display: none;
}

.notice-sukses {
    background-color: rgba(56, 201, 130, 0.1);
    border-color: rgba(56, 201, 130, 0.4);
    color: #8ee6b8;
}

.notice-error {
    background-color: rgba(206, 17, 38, 0.1);
    border-color: rgba(206, 17, 38, 0.4);
    color: #fca5a5;
}

.notice-info {
    background-color: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--accent-gold);
}

.kelola-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 64rem) {
    .kelola-grid {
        grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    }
}

.kelola-card-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.label-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group[hidden] {
    display: none;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background-color: var(--bg-elevated);
    color: var(--text);
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.kelola-tabel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.kelola-jumlah {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.kelola-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 11rem);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.kelola-toolbar input,
.kelola-toolbar select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.75rem;
    background-color: #121416;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.tabel-wrapper {
    overflow-x: auto;
}

.tabel-pidato {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.tabel-pidato th {
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.tabel-pidato td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.tabel-pidato td:first-child {
    white-space: nowrap;
    color: var(--text-muted);
}

.tabel-pidato tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.kolom-judul a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.kolom-judul a:hover {
    color: var(--accent-gold);
}

.kolom-aksi {
    white-space: nowrap;
    text-align: right;
}

.tabel-kosong {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0.5rem;
}

.btn-aksi {
    background-color: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    margin-left: 0.35rem;
}

.btn-aksi:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-aksi-hapus:hover {
    border-color: #f87171;
    color: #f87171;
}

.nilai-dampak,
.tabel-pidato .teks-redup {
    white-space: nowrap;
}

.nilai-dampak.naik {
    color: var(--positive);
}

.nilai-dampak.turun {
    color: #f87171;
}

.nilai-dampak.netral,
.teks-redup {
    color: var(--text-muted);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.page-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.75rem;
    background-color: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent-gold);
}

.page-btn[aria-current="page"] {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-gap {
    color: var(--text-muted);
    padding: 0 0.2rem;
}

.dialog-konfirmasi {
    margin: auto;
    width: min(100% - 2rem, 28rem);
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dialog-konfirmasi::backdrop {
    background-color: rgba(0, 0, 0, 0.65);
}

.dialog-konfirmasi h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dialog-teks {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dialog-catatan {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dialog-konfirmasi .form-actions {
    justify-content: flex-end;
}

@media (max-width: 48rem) {
    .kelola-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .tabel-pidato thead {
        display: none;
    }

    .tabel-pidato,
    .tabel-pidato tbody,
    .tabel-pidato tr,
    .tabel-pidato td {
        display: block;
        width: 100%;
    }

    .tabel-pidato tr {
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 0;
    }

    .tabel-pidato td {
        border-bottom: none;
        padding: 0.2rem 0;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .tabel-pidato td[data-label]::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.78rem;
    }

    .tabel-pidato td.kolom-judul {
        display: block;
    }

    .tabel-pidato td.kolom-judul::before {
        display: none;
    }

    .kolom-aksi {
        justify-content: flex-end;
        padding-top: 0.5rem;
    }

    .tabel-kosong {
        justify-content: center;
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.6);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.arsip-hero {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
}

.arsip-hero .section-desc {
    margin-bottom: 1.75rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.stat-angka {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    line-height: 1.1;
}

.stat-angka strong {
    font-size: 2rem;
    font-weight: 700;
}

.stat-angka span {
    color: var(--text-muted);
    font-size: 1rem;
}

.stat-catatan {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.9rem;
}

.unggulan-play-ikon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 1.6rem 0 1.6rem 2.6rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
    transition: transform 0.15s ease;
}

.semua-pidato .section-title {
    margin-bottom: 1.25rem;
}

.arsip-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem) minmax(0, 14rem);
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.kolom-cari,
.pilihan {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3rem;
    background-color: #121416;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kolom-cari:focus-within,
.pilihan:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.ikon-cari {
    position: absolute;
    left: 0.9rem;
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.kolom-cari input {
    width: 100%;
    height: 100%;
    min-height: 3rem;
    padding: 0.6rem 0.9rem 0.6rem 2.6rem;
    background: transparent;
    border: none;
    color: var(--text);
}

.pilihan span {
    padding-left: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pilihan select {
    flex: 1;
    min-width: 0;
    height: 100%;
    min-height: 3rem;
    padding: 0.6rem 0.9rem 0.6rem 0.35rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.pilihan select option {
    background-color: var(--bg-card);
    color: var(--text);
}

.kolom-cari input:focus-visible,
.pilihan select:focus-visible {
    outline: none;
}

.arsip-jumlah {
    text-align: right;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 1.4rem;
}

.arsip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.arsip-grid-beranda {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.arsip-kosong {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.arsip-lihat-semua {
    display: flex;
    justify-content: center;
    margin: 1.75rem 0 3rem;
}

.kartu-pidato {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease;
}

.kartu-pidato:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.kartu-thumb-tautan {
    display: block;
}

.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #24272b;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
}

.thumb img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.thumb-ikon {
    width: 1.8rem;
    height: 1.8rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thumb-durasi {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

.thumb-besar .thumb-durasi {
    font-size: 0.85rem;
    right: 0.75rem;
    bottom: 0.75rem;
}

.kartu-isi {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.kartu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.kartu-tanggal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: auto;
    white-space: nowrap;
}

.kartu-judul {
    font-size: 1.02rem;
    line-height: 1.4;
}

.kartu-judul a {
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kartu-judul a:hover {
    color: var(--accent-gold);
}

.kartu-dampak {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.kartu-dampak-baris {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.kartu-dampak-label {
    color: var(--text-muted);
}

.kartu-memuat .thumb {
    border-color: transparent;
}

.garis-memuat {
    display: block;
    height: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #24272b 0%, #2e3237 50%, #24272b 100%);
    background-size: 200% 100%;
    animation: kilau-memuat 1.4s ease-in-out infinite;
}

.garis-memuat.pendek {
    width: 40%;
}

.kartu-memuat .thumb {
    background: linear-gradient(90deg, #24272b 0%, #2e3237 50%, #24272b 100%);
    background-size: 200% 100%;
    animation: kilau-memuat 1.4s ease-in-out infinite;
}

@keyframes kilau-memuat {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .garis-memuat,
    .kartu-memuat .thumb {
        animation: none;
    }
}

@media (max-width: 64rem) {
    .arsip-grid,
    .arsip-grid-beranda {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 48rem) {
    .stat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.9rem;
    }

    .arsip-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kolom-cari {
        grid-column: 1 / -1;
    }

    .arsip-jumlah {
        text-align: left;
    }

    .arsip-grid,
    .arsip-grid-beranda {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        background: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0 1rem;
        box-shadow: var(--shadow);
    }

    .arsip-grid .arsip-kosong {
        border: none;
    }

    .kartu-pidato {
        display: grid;
        grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
        gap: 0.9rem;
        background: none;
        border: none;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        padding: 1rem 0;
    }

    .kartu-pidato:last-child {
        border-bottom: none;
    }

    .kartu-pidato:hover {
        border-color: var(--border);
    }

    .kartu-pidato .thumb-placeholder .thumb-label {
        display: none;
    }

    .kartu-isi {
        gap: 0.35rem;
    }

    .kartu-meta {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .kartu-tanggal {
        margin-left: 0;
        font-size: 0.78rem;
    }

    .kartu-judul {
        font-size: 0.95rem;
    }

    .kartu-dampak {
        border-top: none;
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 0.4rem;
        row-gap: 0.1rem;
        font-size: 0.82rem;
    }

    .kartu-dampak-baris {
        justify-content: flex-start;
        gap: 0.3rem;
    }

    .kartu-dampak-baris + .kartu-dampak-baris::before {
        content: "·";
        color: var(--text-muted);
        margin-right: 0.1rem;
    }
}

@media (max-width: 32rem) {
    .kartu-pidato {
        grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    }

    .page-btn {
        min-width: 2.25rem;
        padding: 0.35rem 0.6rem;
    }
}

.unggulan {
    margin-bottom: 3rem;
    scroll-margin-top: 1rem;
}

.unggulan .hero-grid {
    margin-bottom: 0;
}

#arsip-video[role="button"] {
    cursor: pointer;
}

#arsip-video[role="button"]:hover .unggulan-play-ikon {
    transform: scale(1.08);
}

.arsip-deskripsi {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.arsip-deskripsi[hidden] {
    display: none;
}

.ihsg-tanda {
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
}

.ihsg-tanda-titik {
    fill: var(--accent-gold);
    stroke: #101112;
    stroke-width: 2;
}

.ihsg-tanda-label {
    fill: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
}

.thumb-putar {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.thumb-putar::before {
    content: "";
    border-style: solid;
    border-width: 0.9rem 0 0.9rem 1.45rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.kartu-pidato:hover .thumb-putar,
.kartu-thumb-tautan:focus-visible .thumb-putar {
    opacity: 1;
}

.thumb-durasi {
    z-index: 3;
}

.login-card {
    max-width: 26rem;
    margin: 2rem auto;
}

.sesi-admin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.kategori-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chip-kategori {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.85rem;
    background-color: #121416;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.chip-kategori:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--text);
}

.chip-kategori:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.chip-kategori[aria-pressed="true"] {
    background-color: rgba(212, 175, 55, 0.14);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.chip-jumlah {
    min-width: 1.6rem;
    padding: 0 0.4rem;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 0.75rem;
    text-align: center;
}

.chip-kategori[aria-pressed="true"] .chip-jumlah {
    background-color: rgba(212, 175, 55, 0.2);
}

@media (max-width: 48rem) {
    .kategori-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
    }

    .chip-kategori {
        flex: 0 0 auto;
    }
}

.tautan-bantu {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tautan-bantu:hover,
.tautan-bantu:focus-visible {
    color: var(--accent-gold);
}
