
/* ==========================================
   GCLG INTL RADIO
   CONSOLIDATED STYLESHEET
========================================== */

/* ==========================================
   1. ROOT VARIABLES AND RESET
========================================== */

:root {
    --primary: #17176D;
    --primary-dark: #10104B;
    --primary-light: #EEEEF8;

    --accent: #D4AF37;
    --accent-light: #F1D36C;

    --bg: #F7F8FC;
    --text: #202033;
    --muted: #73738A;
    --white: #FFFFFF;

    --border: #E3E4EF;
    --success: #198754;
    --danger: #C62828;

    --shadow: 0 10px 30px rgba(23, 23, 109, .07);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* ==========================================
   2. HEADER AND BRAND
========================================== */

.topbar {
    width: 100%;
    min-height: 82px;
    padding: 12px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 950;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-text strong {
    color: var(--primary);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-text small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}


/* ==========================================
   3. DESKTOP NAVIGATION
========================================== */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.site-nav a {
    color: #414155;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    transition: color .2s ease;
}

.site-nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle,
.mobile-nav-heading,
.nav-backdrop {
    display: none;
}


/* ==========================================
   4. HEADER ACTIONS
========================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.live-indicator,
.live-badge {
    color: #D12B2B;
    font-size: 12px;
    font-weight: bold;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;

    background: #E53935;
    border-radius: 50%;

    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}


/* ==========================================
   5. BUTTONS
========================================== */

.primary-button,
.outline-button {
    display: inline-block;
    padding: 12px 20px;

    border: none;
    border-radius: var(--radius-md);

    font-weight: bold;
    text-align: center;
    text-decoration: none;

    transition: .2s ease;
}

.primary-button {
    background: var(--primary);
    color: var(--white);
}

.primary-button:hover {
    background: var(--primary-dark);
}

.outline-button {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
}

.outline-button:hover {
    background: var(--primary-light);
}


/* ==========================================
   6. HERO SECTION
========================================== */

.hero {
    min-height: 440px;
    padding: 80px 8%;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(212, 175, 55, .18),
            transparent 25%
        ),
        linear-gradient(
            115deg,
            #10104B 0%,
            #17176D 65%,
            #38388F 100%
        );

    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 670px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #7777A8;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
}

.hero .eyebrow {
    color: var(--accent);
}

.hero h1 {
    margin: 20px 0;

    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero p {
    max-width: 540px;
    margin-bottom: 25px;

    color: #E5E5F2;
    font-size: 16px;
    line-height: 1.9;
}

.hero .primary-button {
    padding: 15px 25px;

    background: var(--accent);
    color: #171717;

    border-radius: var(--radius-sm);

    transition: .25s ease;
}

.hero .primary-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}


/* ==========================================
   7. GENERAL SECTIONS
========================================== */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 65px 25px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 30px;
}

.section-heading h2,
.section h2 {
    margin: 8px 0;

    color: var(--primary-dark);
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 750;
}


/* ==========================================
   8. LIVE RADIO PLAYER
========================================== */

.live-section {
    scroll-margin-top: 25px;
}

.live-player {
    display: flex;
    align-items: center;
    gap: 35px;

    padding: 35px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    box-shadow: var(--shadow);
}

.radio-art {
    width: 190px;
    height: 190px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 15px;

    background: linear-gradient(145deg, #17176D, #30308D);
    border: 2px solid var(--accent);
    border-radius: 18px;

    color: var(--white);
}

.radio-art img {
    width: 105px;
    height: 105px;
    object-fit: contain;
}

.radio-art span {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.radio-art small {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 2px;
}

.player-details {
    flex: 1;
    min-width: 0;
}

.player-details h3 {
    margin: 12px 0;

    color: var(--primary-dark);
    font-size: 28px;
}

.player-details p {
    color: var(--muted);
    line-height: 1.7;
}

.live-badge {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    background: #FFF0F0;
    border-radius: 30px;
}

.player-controls {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.play-button,
.stop-button {
    min-height: 46px;
    padding: 12px 22px;

    border: none;
    border-radius: 9px;

    font-weight: bold;
    transition: .2s ease;
}

.play-button {
    background: var(--primary);
    color: var(--white);
}

.play-button:hover {
    background: var(--primary-dark);
}

.stop-button {
    background: #F0F0F5;
    color: #333;
}

.stop-button:hover {
    background: #E1E1EB;
}


/* ==========================================
   9. VOLUME CONTROL
========================================== */

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 330px;
    margin-top: 18px;

    color: var(--muted);
    font-size: 12px;
}

.volume-control input {
    flex: 1;
    min-width: 0;

    accent-color: var(--primary);
    cursor: pointer;
}

#volumeValue {
    min-width: 35px;
    text-align: right;
}


/* ==========================================
   10. PROGRAMME SCHEDULE
========================================== */

.current-programme {
    margin-bottom: 18px;
    padding: 18px;

    background: #FFF8DF;
    border: 1px solid #F2D36B;
    border-radius: 14px;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 15px;
}

.programme-card {
    padding: 23px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;

    transition: .2s ease;
}

.programme-card strong {
    display: block;
    margin-bottom: 9px;
    color: var(--primary);
}

.programme-card small {
    color: var(--muted);
}

.programme-card:hover,
.audio-card:hover,
.devotional-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 23, 109, .08);
}

.programme-time {
    margin-bottom: 10px;

    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.programme-info h3 {
    margin: 5px 0 8px;
    color: var(--primary-dark);
}

.programme-info p {
    color: var(--muted);
    font-size: 13px;
}

.programme-info small {
    color: var(--muted);
}

.active-programme {
    border: 1px solid var(--accent);
    background: #FFFCF1;
}

.programme-status {
    display: inline-block;
    margin-top: 12px;

    color: var(--success);
    font-size: 11px;
    font-weight: bold;
}


/* ==========================================
   11. AUDIO LIBRARY
========================================== */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-button {
    padding: 10px 18px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;

    color: var(--primary);

    white-space: nowrap;
    transition: .2s ease;
}

.filter-button:hover {
    border-color: var(--primary);
}

.filter-button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(240px, 1fr)
    );
    gap: 18px;
}

.audio-card {
    min-width: 0;
    padding: 23px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;

    transition: .2s ease;
}

.audio-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;

    display: grid;
    place-items: center;

    background: var(--primary-light);
    border-radius: 12px;

    color: var(--primary);
    font-size: 22px;
}

.audio-card h3 {
    margin: 8px 0;

    color: var(--primary-dark);
    font-size: 19px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.audio-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.audio-card .audio-speaker {
    color: var(--primary);
    font-weight: 600;
}

.audio-card .item-meta {
    margin-top: 12px;
    font-size: 11px;
}


/* ==========================================
   12. HORIZONTAL AUDIO PLAYER
========================================== */

.audio-player-row {
    width: 100%;
    min-width: 0;
    margin-top: 17px;

    display: flex;
    align-items: center;
    gap: 7px;
}

/* PLAY BUTTON */

.load-audio-button {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 38px;

    padding: 9px 10px;

    background: var(--primary);
    border: none;
    border-radius: 8px;

    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;

    transition: .2s ease;
}

.load-audio-button:hover {
    background: var(--primary-dark);
}

.load-audio-button:disabled {
    opacity: .65;
    cursor: wait;
}

/* DOWNLOAD BUTTON */

.download-audio-button {
    flex-shrink: 0;

    min-height: 38px;
    padding: 10px 9px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--primary);
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;

    transition: .2s ease;
    cursor: pointer;
}

.download-audio-button:hover {
    background: #E0E0F2;
}

.download-audio-button.disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* PROGRESS BAR CONTAINER */

.audio-progress-container {
    flex: 1;
    min-width: 45px;

    display: flex;
    align-items: center;
    gap: 5px;
}

.audio-current-time,
.audio-duration {
    flex-shrink: 0;

    color: var(--muted);
    font-size: 9px;
    font-weight: 600;

    font-variant-numeric: tabular-nums;
}

/* PLAYBACK PROGRESS LINE */

.audio-progress {
    width: 100%;
    min-width: 20px;
    height: 5px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: #E1E2ED;
    border-radius: 20px;

    accent-color: var(--primary);
    cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 12px;
    height: 12px;

    background: var(--primary);
    border: 2px solid var(--white);
    border-radius: 50%;

    box-shadow: 0 0 0 1px var(--primary);
}

.audio-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;

    background: var(--primary);
    border: 2px solid var(--white);
    border-radius: 50%;

    box-shadow: 0 0 0 1px var(--primary);
}

.audio-progress:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* HIDDEN AUDIO ELEMENT */

.audio-card audio {
    display: none;
}


/* ==========================================
   13. AUDIO PLAYBACK STATUS
========================================== */

.audio-playback-status {
    min-height: 18px;
    margin: 9px 0 0;

    font-size: 11px !important;
    line-height: 1.5;
}

.audio-playback-status:empty {
    display: none;
}

.audio-playback-status.loading {
    color: #856404;
}

.audio-playback-status.notice {
    color: var(--primary);
}

.audio-playback-status.success {
    color: var(--success);
}

.audio-playback-status.error {
    color: var(--danger);
}

/* ==========================================
   14. EMPTY STATES
========================================== */

.empty-state {
    grid-column: 1 / -1;

    padding: 30px 20px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;

    color: var(--muted);
    text-align: center;
}

.empty-state h3 {
    color: var(--primary-dark);
}


/* ==========================================
   15. AUDIO LIBRARY SEARCH
========================================== */

.library-search {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.search-input-wrapper {
    min-height: 52px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    transition: .2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 23, 109, .08);
}

.search-icon {
    color: var(--muted);
    font-size: 23px;
}

.search-input-wrapper input {
    flex: 1;
    min-width: 0;
    height: 48px;

    background: transparent;
    border: none;
    outline: none;

    color: var(--text);
    font-size: 14px;
}

.search-input-wrapper button {
    padding: 5px;

    background: transparent;
    border: none;

    color: var(--muted);
    font-size: 22px;
}

.audio-result-count {
    margin: -8px 0 18px;
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   16. DEVOTIONAL
========================================== */

.devotional-section {
    max-width: 100%;
    padding-left: max(24px, calc((100% - 1100px) / 2));
    padding-right: max(24px, calc((100% - 1100px) / 2));

    background: var(--white);
}

.devotional-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(230px, 1fr)
    );
    gap: 15px;
    margin-top: 25px;
}

.devotional-card {
    padding: 24px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 15px;

    transition: .2s ease;
}

.devotional-card h3 {
    color: var(--primary);
}

.devotional-card p {
    color: var(--muted);
    line-height: 1.7;
}


/* ==========================================
   17. PRAYER SECTION
========================================== */

.prayer-section {
    max-width: 100%;
    margin: 0;
    padding: 55px 25px;

    background: var(--primary-light);
    text-align: center;
}

.prayer-section p {
    margin-bottom: 25px;
    color: var(--muted);
}


/* ==========================================
   18. FOOTER
========================================== */

.footer {
    padding: 45px 20px 105px;

    background: var(--primary-dark);
    border-top: 3px solid var(--accent);

    color: var(--white);
    text-align: center;
}

.footer h3 {
    color: var(--white);
    letter-spacing: 2px;
}

.footer p {
    color: #DDD0E8;
    font-size: 13px;
    line-height: 1.8;
}


/* ==========================================
   19. PERSISTENT MINI PLAYER
========================================== */

.mini-player {
    position: fixed;
    left: 0;
    bottom: 0;

    width: 100%;
    min-height: 76px;
    padding: 10px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: var(--primary-dark);
    border-top: 2px solid var(--accent);

    color: var(--white);

    box-shadow: 0 -5px 25px rgba(0, 0, 0, .15);

    z-index: 900;
}

.mini-player-info {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-player-info img {
    width: 48px;
    height: 48px;

    padding: 3px;

    background: var(--white);
    border-radius: 8px;

    object-fit: contain;
}

.mini-player-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-player-text strong {
    font-size: 13px;
    letter-spacing: .5px;
}

.mini-player-text span {
    color: #C9C9E0;
    font-size: 11px;
}

.mini-player-live {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #F2D36C;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-play-button,
.mini-stop-button,
.expand-player-button {
    display: grid;
    place-items: center;

    border: none;
    border-radius: 50%;

    cursor: pointer;
    transition: .2s ease;
}

.mini-play-button {
    width: 43px;
    height: 43px;

    background: var(--accent);
    color: #171717;
    font-size: 17px;
}

.mini-stop-button {
    width: 36px;
    height: 36px;

    background: rgba(255, 255, 255, .13);
    color: var(--white);
}

.expand-player-button {
    width: 34px;
    height: 34px;

    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);

    color: var(--white);
    font-size: 19px;
}

.mini-play-button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

.mini-stop-button:hover,
.expand-player-button:hover {
    background: rgba(255, 255, 255, .22);
}


/* ==========================================
   20. ADMIN DASHBOARD
========================================== */

.admin-layout {
    min-height: 75vh;

    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
}

.admin-sidebar {
    min-width: 0;
    padding: 25px 15px;

    display: flex;
    flex-direction: column;

    background: var(--white);
    border-right: 1px solid var(--border);
}

.sidebar-heading {
    padding: 10px;

    color: var(--muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-button {
    margin-bottom: 5px;
    padding: 14px;

    background: transparent;
    border: none;
    border-radius: 9px;

    color: #555;
    text-align: left;
}

.nav-button:hover,
.nav-button.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: bold;
}

.sidebar-bottom {
    margin-top: auto;
}

.admin-content {
    min-width: 0;
    padding: 35px;
}

.admin-heading {
    margin-bottom: 28px;
}

.admin-heading h1 {
    margin: 8px 0;
    color: var(--primary-dark);
}

.admin-heading p {
    color: var(--muted);
}


/* ==========================================
   21. DASHBOARD STATISTICS
========================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    padding: 22px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin-top: 12px;

    color: var(--primary);
    font-size: 30px;
}


/* ==========================================
   22. ADMIN PANELS
========================================== */

.admin-panel {
    margin-bottom: 22px;
    padding: 25px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;

    overflow-wrap: anywhere;
}

.admin-panel h2 {
    color: var(--primary-dark);
    font-size: 19px;
}


/* ==========================================
   23. ADMIN FORMS
========================================== */

.upload-form {
    max-width: 750px;
}

.upload-form label {
    display: block;
    margin: 18px 0 8px;

    font-size: 13px;
    font-weight: bold;
}

.upload-form input:not([type="checkbox"]),
.upload-form select,
.upload-form textarea {
    width: 100%;
    padding: 13px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;

    outline: none;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
    border-color: var(--primary);
}

.upload-form input[type="checkbox"] {
    accent-color: var(--primary);
}

.check-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.file-info {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   24. ADMIN AUDIO PREVIEW
========================================== */

.admin-audio-preview {
    margin-top: 18px;
    padding: 18px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-audio-preview h4 {
    margin: 0 0 10px;
    color: var(--primary);
}

.admin-audio-preview p {
    color: var(--muted);
    font-size: 13px;
}

.admin-audio-preview audio {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.preview-note {
    margin-bottom: 0;
    line-height: 1.6;
}

.admin-audio-preview[hidden] {
    display: none;
}


/* ==========================================
   25. UPLOAD VALIDATION MESSAGES
========================================== */

.upload-message {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.upload-message.error {
    color: var(--danger);
}

.upload-message.success {
    color: var(--success);
}


/* ==========================================
   26. ADMIN AUDIO MANAGEMENT
========================================== */

.admin-audio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.admin-audio-row:last-child {
    border-bottom: none;
}

.admin-audio-row p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.admin-audio-information {
    min-width: 0;
}

.admin-item-note {
    font-size: 11px !important;
    color: var(--muted);
}

.managed-audio-status {
    display: inline-block;

    margin: 8px 0;
    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-draft {
    background: #FFF3CD;
    color: #856404;
}

.status-scheduled {
    background: #E3F2FD;
    color: #1565C0;
}

.status-published {
    background: #E6F4EA;
    color: #218838;
}

.managed-audio-actions,
.admin-audio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.managed-audio-actions button,
.admin-audio-actions button {
    padding: 8px 12px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;

    font-size: 12px;
}

.managed-audio-actions button:hover,
.admin-audio-actions button:hover {
    border-color: var(--primary);
}

.managed-audio-actions .delete-audio {
    color: var(--danger);
}

.delete-button {
    padding: 9px 12px;

    background: #FFF0EF;
    border: none;
    border-radius: 8px;

    color: #B42318;
}

.delete-button:hover {
    background: #FFE1DF;
}

.content-empty-state {
    padding: 30px 15px;

    background: var(--bg);
    border-radius: 12px;

    color: var(--muted);
    text-align: center;
}


/* ==========================================
   27. ADMIN SECTION HEADINGS
========================================== */

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.admin-section-heading h2 {
    margin-bottom: 6px;
}

.admin-section-heading p {
    color: var(--muted);
    font-size: 13px;
}

.content-management-list {
    display: grid;
    gap: 15px;
}

.managed-audio-item {
    padding: 18px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.managed-audio-item h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.managed-audio-item p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 13px;
}


/* ==========================================
   28. TABLET RESPONSIVENESS
========================================== */

@media (max-width: 1050px) {
    .topbar {
        flex-wrap: wrap;
        gap: 14px;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;

        overflow-x: auto;
        padding: 10px 0;
    }

    .site-nav a {
        padding: 8px 3px;
    }
}


/* ==========================================
   29. MOBILE NAVIGATION
========================================== */

@media (max-width: 800px) {
    .topbar {
        position: sticky;
        top: 0;
        z-index: 950;

        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        flex-shrink: 0;

        display: grid;
        place-items: center;

        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 9px;

        color: var(--primary);
        font-size: 23px;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;

        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;

        padding: 25px 20px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        background: var(--white);
        box-shadow: 8px 0 30px rgba(0, 0, 0, .12);

        transform: translateX(-110%);
        transition: transform .3s ease;

        z-index: 1001;
        overflow-y: auto;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .mobile-nav-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding-bottom: 22px;
        margin-bottom: 12px;

        border-bottom: 1px solid var(--border);

        color: var(--primary);
    }

    .mobile-nav-heading button {
        background: transparent;
        border: none;

        color: var(--primary);
        font-size: 30px;
    }

    .site-nav a {
        display: block;
        padding: 17px 10px;

        border-bottom: 1px solid var(--border);

        font-size: 14px;
    }

    .site-nav a:hover,
    .site-nav a:active {
        background: var(--primary-light);
        border-radius: 8px;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;

        width: 100%;
        height: 100%;

        display: block;

        background: rgba(0, 0, 0, .48);
        border: none;

        opacity: 0;
        visibility: hidden;

        transition: .3s ease;

        z-index: 1000;
    }

    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .header-actions {
        margin-left: auto;
    }
}


/* ==========================================
   30. ADMIN TABLET RESPONSIVENESS
========================================== */

@media (max-width: 800px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 5px;
    }

    .sidebar-heading,
    .sidebar-bottom {
        display: none;
    }

    .nav-button {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 12px;
    }

    .admin-content {
        padding: 20px 15px;
    }

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


/* ==========================================
   31. MOBILE RESPONSIVENESS
========================================== */

@media (max-width: 650px) {
    .topbar {
        padding: 12px 15px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

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

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        max-width: 165px;
        font-size: 8px;
        line-height: 1.4;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions .outline-button {
        padding: 9px 10px;
        font-size: 11px;
    }

    .live-indicator {
        display: none;
    }

    .site-nav {
        gap: 18px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        min-height: 390px;
        padding: 60px 23px;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding: 42px 17px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .live-player {
        flex-direction: column;
        align-items: stretch;
        gap: 23px;

        padding: 20px;
    }

    .radio-art {
        width: 100%;
        height: 175px;
    }

    .radio-art img {
        width: 95px;
        height: 95px;
    }

    .player-details h3 {
        font-size: 23px;
    }

    .player-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .play-button,
    .stop-button {
        padding: 12px 8px;
        font-size: 13px;
    }

    .volume-control {
        max-width: 100%;
    }

    .programme-grid,
    .audio-grid,
    .devotional-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .filter-button {
        flex-shrink: 0;
    }

    .library-search {
        max-width: 100%;
    }

    .search-input-wrapper {
        min-height: 48px;
    }

    .search-input-wrapper input {
        font-size: 16px;
    }

    .prayer-section {
        padding: 45px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-content {
        padding: 18px 12px;
    }

    .admin-panel {
        padding: 17px;
    }

    .admin-audio-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .managed-audio-actions button,
    .admin-audio-actions button {
        flex: 1 1 auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .upload-form input,
    .upload-form select,
    .upload-form textarea {
        font-size: 16px;
    }

    .mini-player {
        min-height: 70px;
        padding: 9px 13px;
        gap: 10px;
    }

    .mini-player-info img {
        width: 40px;
        height: 40px;
    }

    .mini-player-text strong {
        font-size: 11px;
    }

    .mini-player-text span {
        font-size: 10px;
    }

    .mini-player-live {
        font-size: 9px;
    }

    .mini-play-button {
        width: 39px;
        height: 39px;
    }

    .mini-stop-button {
        width: 32px;
        height: 32px;
    }

    .expand-player-button {
        display: none;
    }
}


/* ==========================================
   32. SMALL MOBILE SCREENS
========================================== */

@media (max-width: 480px) {
    .topbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        max-width: 115px;
        font-size: 7px;
    }

    .header-actions .outline-button {
        padding: 8px;
        font-size: 10px;
    }

    .mini-player {
        justify-content: space-between;
    }

    .mini-player-live {
        display: none;
    }

    .mini-player-controls {
        gap: 7px;
    }

    .managed-audio-item {
        padding: 14px;
    }
}


/* ==========================================
   33. VERY SMALL PHONES
========================================== */

@media (max-width: 380px) {
    .brand-text strong {
        font-size: 12px;
    }

    .brand-text small {
        max-width: 100px;
        font-size: 7px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .header-actions .outline-button {
        padding: 8px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .audio-card {
        padding: 17px;
    }
}


/* ==========================================
   34. ACCESSIBILITY
========================================== */

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .site-nav,
    .nav-backdrop {
        transition: none;
    }
}

/* ==========================================
   WEEKLY PROGRAMME DAY SELECTOR
========================================== */

.programme-day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.programme-day-button {
    min-width: 65px;
    padding: 12px 16px;
    border: 1px solid #d8d8e5;
    border-radius: 8px;
    background: #ffffff;
    color: #17176D;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.programme-day-button:hover {
    border-color: #17176D;
    background: #EEEEF8;
}

.programme-day-button.active {
    background: #17176D;
    border-color: #17176D;
    color: #ffffff;
}

.programme-day-button:focus-visible {
    outline: 3px solid #D4AF37;
    outline-offset: 3px;
}

.selected-programme-day-heading {
    margin: 20px 0;
    color: #17176D;
    font-size: 20px;
}

#currentProgramme[hidden],
#nextProgramme[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .programme-day-selector {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .programme-day-button {
        min-width: 0;
        padding: 11px 6px;
        font-size: 13px;
    }
}