/*
Theme Name: Gila
Theme URI: https://sunsuron.com
Description: Sunsuron WP Template — one-page Radio, Komik, 4D and Gereja.
Author: Charles Langkung
Author URI: https://olumis.com
Version: 2.0
Text Domain: gila
*/

/* Design tokens */

:root {
    --bg: #0E1018;
    --surface-1: #191C29;
    --surface-2: #242838;
    --border: #3A4058;
    --border-strong: #4A5170;
    --highlight: rgba(255, 255, 255, 0.04);
    --text: #F4F1EA;
    --text-muted: #A9AEBF;
    --on-accent: #0E1018;

    /* Coral is both the brand and the Radio colour: Radio is the station's identity.
       Section hues mark identity (eyebrows, nav dots, tints); --brand marks interaction. */
    --brand: #FF6B5E;
    --radio: #FF6B5E;
    --radio-glow: #FFA94D;
    --komik: #F7B731;
    --fourd: #34D3BC;
    --gereja: #A594FF;

    --radio-tint: rgba(255, 107, 94, 0.12);
    --komik-tint: rgba(247, 183, 49, 0.14);
    --fourd-tint: rgba(52, 211, 188, 0.14);
    --gereja-tint: rgba(165, 148, 255, 0.16);
    --idle-bar: #2E3346;

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;

    --container: 1200px;
    --header-h: 72px;
    --admin-bar-h: 0px;
}

.admin-bar {
    --admin-bar-h: 32px;
}

@media (max-width: 782px) {
    .admin-bar {
        --admin-bar-h: 46px;
    }
}

/* Reset */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--admin-bar-h) + 8px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.container-narrow {
    max-width: 800px;
}

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

.skip-link:focus {
    position: fixed;
    top: calc(var(--admin-bar-h) + 8px);
    left: 8px;
    z-index: 100;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    clip: auto;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--on-accent);
    font-weight: 700;
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

/* Type scale */

.display {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.h2 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.body-lg {
    font-size: 18px;
    color: var(--text-muted);
}

.caption {
    font-size: 13px;
    color: var(--text-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.eyebrow-radio { color: var(--radio); }
.eyebrow-komik { color: var(--komik); }
.eyebrow-fourd { color: var(--fourd); }
.eyebrow-gereja { color: var(--gereja); }

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 var(--space-3);
    border: none;
    border-radius: var(--radius-pill);
    font: 700 15px/1 var(--font-sans);
    white-space: nowrap;
    cursor: pointer;
    color: var(--on-accent);
    background: var(--brand);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    filter: brightness(1.08);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--border-strong);
    filter: none;
}

/* Section links: neutral ghost buttons whose icon carries the section hue. */
.btn-ghost.btn-komik .icon { color: var(--komik); }
.btn-ghost.btn-gereja .icon { color: var(--gereja); }

/* Tags */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--surface-2);
    color: var(--text-muted);
}

.tag-live {
    background: var(--radio-tint);
    color: var(--radio);
}

.tag-live .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--radio);
    box-shadow: 0 0 0 4px rgba(255, 107, 94, 0.25);
}

.radio-player.is-playing .tag-live .dot {
    animation: gila-pulse 1.6s ease-in-out infinite;
}

@keyframes gila-pulse {
    50% {
        box-shadow: 0 0 0 7px rgba(255, 107, 94, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .radio-player.is-playing .tag-live .dot {
        animation: none;
    }
}

/* Header */

.site-header {
    position: sticky;
    top: var(--admin-bar-h);
    z-index: 50;
    background: rgba(14, 16, 24, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand);
    color: var(--on-accent);
    font-weight: 800;
}

.custom-logo {
    max-height: 44px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--text);
}

.nav-list > li > a::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.nav-list a[href$="#radio"]::before { background: var(--radio); }
.nav-list a[href$="#komik"]::before { background: var(--komik); }
.nav-list a[href$="#4d"]::before { background: var(--fourd); }
.nav-list a[href$="#gereja"]::before { background: var(--gereja); }

.nav-list a.is-active,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--text);
    background: var(--surface-2);
}

.nav-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list .sub-menu a::before {
    display: none;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 20px;
    height: 20px;
}

.nav-toggle .icon-close,
.menu-open .nav-toggle .icon-menu {
    display: none;
}

.menu-open .nav-toggle .icon-close {
    display: block;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: grid;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: var(--space-2) var(--space-3) var(--space-3);
        border-bottom: 1px solid var(--border);
        background: var(--bg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    .menu-open .nav-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list a {
        height: 48px;
        font-size: 16px;
    }

    .nav-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        background: transparent;
        padding: 0 0 0 var(--space-3);
    }
}

/* Sections */

.site-main {
    min-height: calc(100vh - var(--header-h));
}

.section {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.section-head .h1 {
    margin-top: var(--space-1);
}

.section-head .body-lg {
    margin-top: var(--space-1);
    max-width: 560px;
}

.card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 var(--highlight);
}

/* Radio */

.radio {
    padding: var(--space-8) 0 var(--space-12);
    border-top: none;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(255, 107, 94, 0.18), transparent 70%),
        radial-gradient(500px 300px at 90% 20%, rgba(255, 169, 77, 0.10), transparent 70%);
}

.radio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-3);
}

.radio--compact {
    padding: var(--space-4) 0;
}

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

.now-playing {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4);
    min-width: 0;
}

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

.stream-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.track {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}

.track-text {
    min-width: 0;
}

.artwork {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--radio), var(--radio-glow));
}

.artwork .icon {
    width: 48px;
    height: 48px;
    fill: var(--on-accent);
}

.track .caption {
    margin-bottom: 4px;
}

.track .display {
    font-size: 40px;
    overflow-wrap: anywhere;
    /* Long titles stop at two lines so the player doesn't jump; full text is in the title tooltip. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.track .artist {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--radio);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.visualiser {
    display: block;
    width: 100%;
    height: 64px;
}

.radio--compact .now-playing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3);
}

.radio--compact .now-playing-top,
.radio--compact .visualiser {
    display: none;
}

.radio--compact .artwork {
    width: 64px;
    height: 64px;
}

.radio--compact .artwork .icon {
    width: 28px;
    height: 28px;
}

.radio--compact .track .display {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.radio--compact .track .artist {
    font-size: 15px;
    margin-top: 2px;
}

.audio-hidden,
.radio-player audio {
    display: none;
}

/* Player bar */

.player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
}

.player .play {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--radio);
    color: var(--on-accent);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.player .play:hover,
.player .play:focus-visible {
    filter: brightness(1.08);
}

.player .play:active {
    transform: scale(0.96);
}

.player .play .icon {
    width: 24px;
    height: 24px;
}

.player .icon-pause,
.player .icon-muted,
.player.is-playing .icon-play,
.player.is-muted .icon-volume {
    display: none;
}

.player.is-playing .icon-pause,
.player.is-muted .icon-muted {
    display: block;
}

.player .time {
    flex: 0 0 auto;
    font: 600 13px/1 var(--font-mono);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.player .icon-btn {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.player .icon-btn:hover,
.player .icon-btn:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.player .icon-btn .icon {
    width: 20px;
    height: 20px;
}

.player input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* Taller than the 6px track so the slider is easier to grab. */
    height: 24px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.player .cp-seek {
    flex: 1 1 auto;
    min-width: 0;
}

.player .cp-volume {
    flex: 0 0 80px;
    width: 80px;
}

.player input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right,
            var(--track-fill, var(--text)) 0%,
            var(--track-fill, var(--text)) var(--cp-fill, 0%),
            var(--border) var(--cp-fill, 0%),
            var(--border) 100%);
}

.player input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
}

.player input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--track-fill, var(--text));
}

.player input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4px;
    border: none;
    border-radius: 50%;
    background: var(--text);
}

.player input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--text);
}

.player .cp-seek {
    --track-fill: var(--radio);
}

/* A live stream can't be seeked: show a solid "on air" bar with no thumb. */
.player .cp-seek:disabled {
    cursor: default;
}

.player .cp-seek:disabled::-webkit-slider-runnable-track {
    background: var(--radio);
}

.player .cp-seek:disabled::-webkit-slider-thumb {
    opacity: 0;
}

.player .cp-seek:disabled::-moz-range-thumb {
    opacity: 0;
}

.player .cp-seek:disabled::-moz-range-track {
    background: var(--radio);
}

/* Recently played */

.recent {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    min-width: 0;
}

.recent > .h3 {
    margin-bottom: var(--space-2);
}

.recent li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.recent li:last-child {
    border-bottom: none;
}

.recent-list {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.recent .recent-list .recent-empty {
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    padding: var(--space-3) var(--space-2);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.recent-empty .empty-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--radio-tint);
    color: var(--radio);
}

.recent-empty .empty-icon .icon {
    width: 20px;
    height: 20px;
}

.recent .thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 107, 94, 0.25), rgba(255, 169, 77, 0.15)), var(--surface-2);
}

.recent .meta {
    flex: 1 1 auto;
    min-width: 0;
}

.recent .title,
.recent .caption {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.recent .title {
    font-size: 15px;
    font-weight: 700;
}

.recent .time {
    flex: 0 0 auto;
    font: 600 12px var(--font-mono);
    color: var(--text-muted);
}

/* Komik */

.komik-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.comic {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.comic:hover,
.comic:focus-visible {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.comic-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    background: var(--surface-2);
}

.comic-cover[data-crop="left"] { object-position: left top; }
.comic-cover[data-crop="right"] { object-position: right top; }

.comic-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--space-2);
}

.comic-body .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comic-body .read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
}

.comic-body .read .icon {
    width: 14px;
    height: 14px;
}

/* 4D */

.fourd-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.fourd-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    text-align: center;
}

.fourd-card .rank {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.digits {
    display: flex;
    gap: 8px;
}

.digits .digit {
    display: grid;
    place-items: center;
    width: 64px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font: 800 44px/1 var(--font-mono);
    color: var(--text);
}

.fourd-card.is-first {
    border-color: var(--fourd);
    box-shadow: 0 0 0 1px var(--fourd), 0 20px 60px -20px rgba(52, 211, 188, 0.45);
}

.fourd-card.is-first .rank {
    color: var(--fourd);
}

.fourd-card.is-first .digits .digit {
    background: var(--fourd-tint);
    color: var(--fourd);
}

.fourd-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

/* Gereja */

.gereja-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--space-3);
}

.verse {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    background:
        radial-gradient(400px 260px at 100% 0%, rgba(165, 148, 255, 0.22), transparent 70%),
        var(--surface-1);
}

.verse blockquote {
    font-size: 24px;
    line-height: 1.45;
    font-weight: 600;
}

.verse cite {
    font-style: normal;
    font-weight: 700;
    color: var(--gereja);
}

.schedule {
    padding: var(--space-4);
}

.schedule > .h3 {
    margin-bottom: var(--space-2);
}

.schedule li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
}

.schedule li:last-child {
    border-bottom: none;
}

.date-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 60px;
    border-radius: 12px;
    background: var(--gereja-tint);
    color: var(--gereja);
}

.date-badge .day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.date-badge .mon {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule .meta {
    flex: 1 1 auto;
    min-width: 0;
}

.schedule .time {
    flex: 0 0 auto;
    font: 600 14px var(--font-mono);
    color: var(--text-muted);
}

/* Posts & pages (index.php) */

.entry + .entry {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.entry-header {
    margin-bottom: var(--space-3);
}

.entry-title a:hover,
.entry-title a:focus-visible {
    color: var(--brand);
}

.entry-content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

.entry-content > * + * {
    margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
    line-height: 1.3;
}

.entry-content a:not(.btn) {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content ul {
    list-style: disc;
    padding-left: 1.4em;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 1.4em;
}

.entry-content blockquote {
    padding: var(--space-2) var(--space-3);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-1);
    color: var(--text-muted);
}

.entry-content code,
.entry-content pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.entry-content pre {
    padding: var(--space-2);
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: var(--surface-1);
}

.entry-content img {
    border-radius: var(--radius-md);
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-6);
    font-weight: 700;
    color: var(--brand);
}

/* Footer */

.site-footer {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border);
    background: var(--surface-1);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.footer-links .sub-menu {
    display: none;
}

/* Responsive */

@media (max-width: 1024px) {
    .comic-body .h3 {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .radio-grid,
    .gereja-grid,
    .radio--compact .now-playing {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Keep four columns on tablets: eight picks fill two even rows. */
    .komik-grid {
        gap: var(--space-2);
    }

    .comic-body {
        padding: 12px;
    }

    .comic-body .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .fourd-panel {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .display,
    .track .display {
        font-size: 30px;
    }

    .h1 {
        font-size: 30px;
    }

    .body-lg {
        font-size: 16px;
    }

    .section {
        padding: var(--space-8) 0;
    }

    .radio {
        padding-top: var(--space-6);
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--space-4);
    }

    .now-playing,
    .recent,
    .verse,
    .schedule {
        padding: var(--space-3);
    }

    .artwork {
        width: 80px;
        height: 80px;
    }

    .artwork .icon {
        width: 36px;
        height: 36px;
    }

    .player .cp-volume,
    .player .time {
        display: none;
    }

    .digits .digit {
        width: 56px;
        height: 68px;
        font-size: 36px;
    }

    .komik-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .verse blockquote {
        font-size: 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Reduced motion: keep hover/press feedback but drop the movement. */

@media (prefers-reduced-motion: reduce) {
    .btn:active,
    .player .play:active,
    .comic:hover,
    .comic:focus-visible {
        transform: none;
    }
}
