/* Mematikan View Transitions bawaan Chrome agar tidak bentrok dengan PJAX */
@view-transition {
    navigation: none;
}

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.3);
    --nav-height: 70px;
    --radius: 20px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0;
    font-family: var(--font);
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased;
}

/* App Shell Desktop Wrapper */
@media (min-width: 768px) {
    body { background-color: #e5e7eb; }
    .krida-app-shell {
        max-width: 768px; /* 🔥 Diperlebar untuk desktop/tablet */
        margin: 40px auto; /* Beri jarak atas bawah agar terlihat seperti tablet */
        border-radius: 24px; /* Membuat sudut luar shell membulat */
        min-height: calc(100vh - 80px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15); /* Bayangan lebih tegas */
        overflow: hidden;
    }
    .site-main {
        padding-bottom: 120px !important; /* Ruang untuk mini player */
    }
}

/* ═════════ HEADER ═════════ */
.site-header {
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: env(safe-area-inset-top) 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.site-header.is-home {
    background: transparent;
}
.site-logo img { max-height: 40px; width: auto; object-fit: contain; }
.logo-text { font-weight: 900; font-size: 24px; letter-spacing: -1px; }
.back-btn {
    text-decoration: none; font-size: 24px; color: var(--text-main);
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); border-radius: 50%;
}
.header-spacer { width: 40px; }

/* ═════════ FULL PLAYER (HOME) ═════════ */
.site-main { min-height: calc(100vh - var(--nav-height)); }
.krida-full-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 70px);
    padding: 20px;
    text-align: center;
}

/* Artwork */
.fp-artwork-wrap { margin-bottom: 40px; }
.fp-artwork {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    padding: 8px;
    background: var(--bg-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
}
.fp-artwork::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 20px; height: 20px; background: var(--bg-secondary);
    border-radius: 50%; transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.fp-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}
.fp-artwork.is-playing img { animation-play-state: running; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Text Info */
.fp-info { margin-bottom: 40px; padding: 0 20px; }
.fp-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fp-subtitle { font-size: 14px; color: var(--text-muted); margin: 0; font-weight: 500; }

/* Play Button */
.fp-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; align-items: center; justify-content: center;
    padding-left: 6px;
}
.fp-play-btn:hover { transform: scale(1.05); }
.fp-play-btn.is-playing { padding-left: 0; animation: pulse 2s infinite; }
.fp-play-btn:disabled { background: #d1d5db; box-shadow: none; cursor: not-allowed; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Status */
.fp-status {
    margin-top: 32px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.fp-status .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.5);
}
.fp-status[data-online="0"] .dot { background: #ef4444; box-shadow: none; }

/* ═════════ BOTTOM NAV ═════════ */
.krida-app-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    z-index: 200;
}
@media (min-width: 768px) {
    .krida-app-nav {
        max-width: 480px; left: 50%; transform: translateX(-50%);
    }
}
.app-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text-muted); gap: 4px; transition: color 0.2s;
}
.app-tab.active { color: var(--accent); }
.tab-icon { font-size: 22px; }
.tab-label { font-size: 10px; font-weight: 700; }

/* ═════════ MINI PLAYER (Halaman Lain) ═════════ */
.krida-mini-player {
    position: fixed;
    bottom: calc(var(--nav-height) + 10px + env(safe-area-inset-bottom));
    left: 10px; right: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 150;
    border: 1px solid rgba(0,0,0,0.05);
}
@media (min-width: 768px) {
    .krida-mini-player { max-width: 460px; left: 50%; transform: translateX(-50%); }
}
.mini-info { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.mini-info img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mini-text { display: flex; flex-direction: column; overflow: hidden; }
.mini-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mini-sub { font-size: 12px; color: var(--text-muted); }
.mini-play-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--accent); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* Content / News Grid */
.post-grid { padding: 20px; display: grid; gap: 16px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.post-card img { width: 100%; height: 180px; object-fit: cover; }
.post-body { padding: 16px; }
.post-title { margin: 0; font-size: 16px; }
.post-title a { text-decoration: none; color: var(--text-main); }

/* ═════════ CONTAINER & PAGE HEADER ═════════ */
.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .container { max-width: 480px; }
}
.page-header { padding: 24px 16px 8px; }
.page-header h1 {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.page-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* ═════════ POST GRID ═════════ */
.post-grid {
    padding: 8px 16px 24px;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.post-card > a > img,
.post-card .post-thumb-placeholder {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}
.post-body { padding: 14px 16px; }
.post-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.post-meta .cat { color: var(--accent); font-weight: 700; }
.post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a { color: var(--text-main); text-decoration: none; }

/* ═════════ SINGLE ARTICLE ═════════ */
.single-article, .single-acara, .single-penyiar {
    padding: 20px 16px 32px;
}
.article-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.article-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.article-meta .cat { color: var(--accent); font-weight: 700; }
.article-thumb {
    margin: 16px -16px;
    overflow: hidden;
}
.article-thumb img { width: 100%; height: auto; display: block; }
.article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}
.article-content p { margin: 0 0 1.1em; }
.article-content a { color: var(--accent); }
.article-content img { border-radius: 10px; margin: 16px 0; max-width: 100%; height: auto; }

/* ═════════ ACARA ═════════ */
.live-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    animation: blink 1.5s infinite;
}
@keyframes blink { 50% { opacity: 0.4; } }
.acara-info {
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 20px;
}
.acara-row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    align-items: center;
    color: var(--text-main);
}
.acara-row .icon { font-size: 16px; }
.acara-penyiar { margin: 24px 0; }
.acara-penyiar h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.penyiar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}
.penyiar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}
.penyiar-card:hover { background: #e5e7eb; }
.penyiar-card img, .penyiar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ═════════ PENYIAR ═════════ */
.penyiar-header {
    text-align: center;
    margin-bottom: 20px;
}
.penyiar-photo img, .penyiar-avatar-big {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 48px;
}
.penyiar-acara {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.penyiar-acara h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.acara-list { list-style: none; padding: 0; margin: 0; }
.acara-list li { border-bottom: 1px solid #e5e7eb; }
.acara-list li:last-child { border-bottom: none; }
.acara-list a {
    display: block;
    padding: 14px 0;
    color: var(--text-main);
    text-decoration: none;
}
.acara-list a strong { display: block; font-size: 15px; margin-bottom: 4px; }
.acara-list .meta { font-size: 12px; color: var(--text-muted); }

/* ═════════ ARCHIVE PENYIAR ═════════ */
.penyiar-archive {
    padding: 8px 16px 32px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.penyiar-card-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.penyiar-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.penyiar-card-large img, .penyiar-card-large .penyiar-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-size: 32px;
}
.penyiar-card-large h3 {
    font-size: 14px;
    margin: 4px 0 0;
    font-weight: 700;
}
.penyiar-card-large .meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ═════════ SCHEDULE (Jadwal) ═════════ */
.schedule-week {
    padding: 8px 16px 32px;
    display: grid;
    gap: 12px;
}
.schedule-day {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.schedule-day.is-today {
    box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(239,68,68,0.15);
}
.schedule-day h2 {
    margin: 0 0 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}
.today-badge {
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-weight: 700;
}
.schedule-day ul { list-style: none; padding: 0; margin: 0; }
.schedule-day li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}
.schedule-day li:last-child { border-bottom: none; }
.schedule-day time {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}
.acara-info-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}
.acara-info-item .penyiar-names {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.no-acara {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
    margin: 0;
}

/* ═════════ 404 / EMPTY ═════════ */
.error-page, .empty-state {
    text-align: center;
    padding: 60px 20px;
}
.error-page h1 {
    font-size: 72px;
    margin: 0;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -3px;
}
.error-page p, .empty-state p {
    color: var(--text-muted);
    margin: 8px 0 24px;
}
.empty-icon { font-size: 48px; margin-bottom: 8px; }
.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* ═════════ PAGINATION ═════════ */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 16px 32px;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination .page-numbers, .nav-links a, .nav-links span {
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.pagination .page-numbers.current {
    background: var(--accent);
    color: #fff;
}

/* ═════════ ADS ═════════ */
.krida-ad {
    margin: 20px 0;
    text-align: center;
    min-height: 60px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}
.ad-slot { margin: 20px 0; }

/* ═════════ SEARCH FORM ═════════ */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 100%;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
    outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent); }
.search-form button {
    padding: 10px 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

/* ═════════ SIDEBAR WIDGETS ═════════ */
.sidebar .widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.widget-title {
    font-size: 14px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    font-weight: 800;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--text-main); text-decoration: none; }

/* ═══════════════════════════════════════════════════
   v3.1 UPDATE — Center Logo, Status Below, Persist Player
   ═══════════════════════════════════════════════════ */

/* ═══ HEADER: Center Logo/Name ═══ */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    position: relative;
    padding: 0 16px;
}
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    gap: 2px;
    max-width: 100%;
}
.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.2;
}
.logo-tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
    line-height: 1.2;
}
.back-btn {
    position: absolute;
    left: 16px;
    text-decoration: none;
    font-size: 22px;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
}
.header-spacer { display: none; }

/* ═══ FULL PLAYER: Status Below ═══ */
.krida-full-player {
    min-height: calc(100vh - var(--nav-height) - 70px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 40px;
    text-align: center;
}
.fp-status {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 8px 18px;
    border-radius: 999px;
}
.fp-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: krida-blink 1.8s infinite;
}
.fp-status[data-online="0"] .dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239,68,68,0.6);
    animation: none;
}
@keyframes krida-blink {
    50% { opacity: 0.35; }
}

/* Artwork rotation speed via customizer */
.fp-artwork img {
    animation: rotate var(--rotate-speed, 20s) linear infinite;
    animation-play-state: paused;
}
.fp-artwork.is-playing img {
    animation-play-state: running;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ═══ PERSISTENT MINI PLAYER ═══ */
.krida-mini-player {
    display: none; /* hidden by default; JS shows on non-home */
    position: fixed;
    bottom: calc(var(--nav-height) + 8px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 10px 12px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 150;
    transition: opacity 0.2s;
}
@media (min-width: 768px) {
    .krida-mini-player {
        max-width: 456px;
        left: 50%;
        transform: translateX(-50%);
    }
}
.mini-art {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.mini-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mini-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.mini-sub {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 2px;
}
.mini-play-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.15s;
}
.mini-play-btn:hover { transform: scale(1.06); }
.mini-play-btn.is-playing {
    background: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.mini-play-btn .icon { line-height: 1; }

/* Push content up on non-home so mini doesn't overlap */
body:not(.home) .site-main {
    padding-bottom: 80px;
}

/* Home page hide header background for full player immersion */
.site-header.is-home {
    background: transparent;
    border-bottom: none;
    padding-top: env(safe-area-inset-top);
}

/* Ensure play icon uses proper color */
.fp-play-btn .play-icon,
.mini-play-btn .icon {
    display: inline-block;
    line-height: 1;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .fp-artwork img,
    .fp-artwork.is-playing img,
    .fp-status .dot,
    .fp-play-btn.is-playing {
        animation: none !important;
    }
}

/* ═══ FULL PLAYER: STATUS & LISTENER ROW ═══ */
.fp-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.fp-status, .fp-listeners {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 999px;
}

.fp-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: krida-blink 1.8s infinite;
}
.fp-status[data-online="0"] .dot {
    background: #ef4444; box-shadow: none; animation: none;
}

.fp-listeners .listener-icon {
    font-size: 14px;
}

/* ═══ MINI PLAYER: LISTENER TEXT ═══ */
.mini-sub .krida-listener-count {
    font-weight: 700;
    color: var(--accent);
}

/* Animasi Blink */
@keyframes krida-blink {
    50% { opacity: 0.35; }
}

/* ═══ VISUALIZER ═══ */
.krida-visualizer {
    width: 100%;
    max-width: 200px;
    height: 40px;
    margin: 20px auto 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.krida-visual-bar {
    flex: 1;
    background-color: var(--accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.85;
    transition: height 0.08s ease;
    height: 2px; /* Default minimal height */
    max-width: 4px;
}

/* ═══════════════════════════════════════════════════
   LAYOUT FULL PLAYER (Responsif Layar Penuh)
   ═══════════════════════════════════════════════════ */
.krida-full-player {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100dvh - var(--nav-height) - 70px); /* Gunakan dvh untuk mobile browser */
    padding: 20px 20px 30px;
    box-sizing: border-box;
}

/* Bagian Atas (Gambar & Teks) */
.fp-top-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.fp-artwork-wrap {
    margin-bottom: 24px;
}

.fp-info {
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

/* Bagian Tengah (Tombol Play) */
.fp-controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Bagian Bawah (Kotak Acara & Status) */
.fp-bottom-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ═══ KOTAK ACARA (PERSEGI PANJANG) ═══ */
.fp-show-box {
    width: 100%;
    max-width: 340px;
    background: var(--bg-color);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.show-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.show-label .live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.show-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-host {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* ═══ STATUS & LISTENER ═══ */
.fp-meta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.fp-status, .fp-listeners {
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}