@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ── Design Tokens — Ministerio Pastor Argenis Cueva ──────────────────── */
:root {
    /* Paleta Azul Marino + Dorado (Default Dark) */
    --navy-deep:      #060d1f;
    --navy-dark:      #0a1428;
    --navy-mid:       #0f1e3d;
    --navy-surface:   #162040;
    --navy-card:      #1a2650;
    --navy-hover:     #1f2d5c;
    --gold:           #C9A84C;
    --gold-light:     #E8C97E;
    --gold-glow:      rgba(201,168,76,0.25);
    --gold-gradient:  linear-gradient(135deg, #C9A84C 0%, #E8C97E 50%, #C9A84C 100%);

    /* UI Variables (Dark) */
    --bg-color:       var(--navy-deep);
    --card-bg:        var(--navy-card);
    --surface-bg:     var(--navy-surface);
    --text-primary:   #f0f4ff;
    --text-secondary: #8899c0;
    --border:         rgba(255,255,255,0.07);
    --accent-color:   var(--gold);
    --accent-glow:    var(--gold-glow);
    --player-bg:      rgba(22,32,64,0.95);
    --nav-bg:         rgba(10,20,40,0.97);

    /* Shapes */
    --card-radius: 18px;
    --tab-radius:  12px;
    --btn-radius:  24px;
}

/* ── Light Mode Overrides ── */
[data-theme='light'] {
    --navy-deep:      #f5f7fa;
    --navy-dark:      #ffffff;
    --navy-mid:       #e1e5f0;
    --navy-surface:   #ffffff;
    --navy-card:      #ffffff;
    --navy-hover:     #f0f2f5;
    
    --bg-color:       #f5f7fa;
    --card-bg:        #ffffff;
    --surface-bg:     #ffffff;
    --text-primary:   #1a202c;
    --text-secondary: #4a5568;
    --border:         rgba(0,0,0,0.08);
    --player-bg:      rgba(255,255,255,0.95);
    --nav-bg:         rgba(255,255,255,0.97);
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-color);
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding-bottom: 150px;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 99px; }

h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; margin: 0; }
a { color: var(--gold); }

.text-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ── App Header ────────────────────────────────────────────────────────── */
.app-header {
    padding: 20px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.app-header-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.app-header-sub {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

/* ── Hero Banner (Home) ─────────────────────────────────────────────────── */
.home-hero {
    position: relative;
    margin: 0 16px 28px;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.home-hero-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 24px var(--gold-glow);
    margin-bottom: 14px;
}

.home-hero-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.home-hero-quote {
    font-size: 13px;
    color: #fff;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ── Category Pills ─────────────────────────────────────────────────────── */
.cat-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 20px;
    scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    background: var(--card-bg);
    transition: all 0.2s;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* ── Search ─────────────────────────────────────────────────────────────── */
.search-container {
    padding: 0 16px;
    margin-bottom: 24px;
}

.search-input {
    background: var(--surface-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 20px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s;
}
.search-input::placeholder { color: var(--text-secondary); }
.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── Section Titles ─────────────────────────────────────────────────────── */
.section-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.learn-more {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

/* ── Horizontal Scroll Cards ────────────────────────────────────────────── */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 16px 4px;
    gap: 14px;
    scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.song-card-horizontal {
    min-width: 150px;
    max-width: 150px;
    cursor: pointer;
    transition: transform 0.2s;
}
.song-card-horizontal:active { transform: scale(0.95); }

.song-card-horizontal img {
    width: 150px;
    height: 150px;
    border-radius: var(--card-radius);
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 16px 16px;
    gap: 10px;
    scrollbar-width: none;
}
.tabs-container::-webkit-scrollbar { display: none; }

.tab-item {
    padding: 8px 18px;
    background: var(--surface-bg);
    border-radius: var(--tab-radius);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-item.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 4px 14px var(--gold-glow);
}

/* ── Song List ──────────────────────────────────────────────────────────── */
.song-list { padding: 0 12px; }

.song-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-radius: 14px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.song-item:hover  { background: rgba(255,255,255,0.04); }
[data-theme='light'] .song-item:hover { background: rgba(0,0,0,0.03); }
.song-item:active { background: rgba(201,168,76,0.08); }

.song-item-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    margin-right: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
}

.song-item-info { flex: 1; min-width: 0; }

.song-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.song-item-duration {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 8px;
}

/* Category badge en items */
.song-item-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 3px;
}
.cat-musica      { background: rgba(201,168,76,0.15); color: var(--gold); }
.cat-estudio     { background: rgba(34,197,94,0.12); color: #4ade80; }
.cat-predicacion { background: rgba(139,92,246,0.12); color: #c4b5fd; }

/* ── Video Grid ─────────────────────────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 14px;
}

.video-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:active { transform: scale(0.97); }

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--navy-mid);
    overflow: hidden;
}
.video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    background: rgba(201,168,76,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
}
.video-card-info {
    padding: 10px 12px 12px;
}
.video-card-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Perfil Page ────────────────────────────────────────────────────────── */
.perfil-hero {
    text-align: center;
    padding: 40px 20px 30px;
    background: var(--surface-bg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.perfil-hero::before {
    content: '';
    position: absolute; top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.perfil-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
    margin-bottom: 18px;
}

.perfil-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.perfil-ministry {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.perfil-social {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.perfil-social-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--gold);
    background: var(--card-bg);
    transition: all 0.2s;
}
.perfil-social-btn:hover {
    background: var(--navy-hover);
}

.perfil-bio-card {
    margin: 0 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 22px;
}

.perfil-bio-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* App-inspired Profile, Donation, Rhema and Video UI */
.profile-page,
.rhema-page,
.video-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 16px 130px;
}

.profile-hero-card {
    margin: 0 0 18px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(21,27,42,.98), rgba(6,13,31,.98));
}

.profile-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-section-title {
    font-size: 22px;
    font-weight: 800;
    margin: 5px 0 14px;
}

.donation-card,
.scripture-card,
.profile-content-card,
.rhema-hero,
.video-hero,
.empty-state-card {
    background: linear-gradient(155deg, rgba(22,32,64,.96), rgba(10,20,40,.96));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 18px;
}

.donation-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    border-color: rgba(201,168,76,.24);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.donation-icon,
.rhema-hero-icon,
.video-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(201,168,76,.14);
    flex-shrink: 0;
}

.donation-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 4px 0 8px;
}

.donation-content p,
.scripture-card p,
.rhema-hero p,
.video-hero p,
.empty-state-card p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.donation-kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.donation-button,
.rhema-primary-share,
.video-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: 999px;
    border: none;
    background: var(--gold);
    color: #07101f;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.scripture-card {
    text-align: center;
    border-color: rgba(201,168,76,.2);
    background: rgba(201,168,76,.08);
}

.scripture-card p {
    color: var(--gold-light);
    font-style: italic;
}

.scripture-card span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-content-item {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    text-decoration: none;
    color: var(--text-primary);
}

.profile-content-item span {
    color: var(--gold);
}

.profile-content-item small {
    color: var(--text-secondary);
    line-height: 1.35;
}

.rhema-hero,
.video-hero {
    display: flex;
    gap: 14px;
    align-items: center;
}

.rhema-hero-banner {
    min-height: 220px;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

.rhema-hero-banner .rhema-hero-icon {
    background: rgba(201,168,76,.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-hero {
    max-width: 1120px;
    margin: clamp(18px, 4vw, 42px) auto 24px;
    padding: clamp(24px, 5vw, 42px);
    min-height: clamp(220px, 34vw, 390px);
    border-radius: 28px;
    border: 1px solid var(--border);
    background: linear-gradient(155deg, rgba(22,32,64,.96), rgba(10,20,40,.96));
    display: flex;
    align-items: flex-end;
    gap: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 46px rgba(0,0,0,.22);
}

.section-hero + .section-title-container {
    display: none;
}

.section-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(201,168,76,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.section-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin: 2px 0 6px;
    line-height: 1;
}

.section-hero p {
    color: #d1d5db;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    line-height: 1.55;
    margin: 0;
}

.section-hero-with-image {
    overflow: hidden;
}

.video-hero.section-hero-with-image {
    min-height: clamp(240px, 34vw, 390px);
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 46px rgba(0,0,0,.22);
}

.profile-hero-with-image {
    background-size: cover;
    background-position: center;
    min-height: clamp(340px, 45vw, 520px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.rhema-hero h1,
.video-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin: 2px 0 5px;
}

.rhema-grid,
.video-card-grid {
    display: grid;
    gap: 18px;
}

.rhema-card,
.video-feature-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.rhema-card {
    cursor: pointer;
}

.rhema-image-button,
.video-feature-media {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
}

.rhema-image-button img,
.video-feature-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.rhema-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(6,13,31,.9));
}

.rhema-card-body,
.video-feature-body {
    padding: 18px;
}

.rhema-card-top,
.video-feature-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rhema-card-label,
.video-card-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rhema-card h2,
.video-feature-card h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
    font-weight: 800;
}

.rhema-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 14px 0;
}

.rhema-share-icon,
.video-share-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--text-primary);
    cursor: pointer;
}

.rhema-read-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-weight: 800;
    cursor: pointer;
}

.rhema-modal-dialog {
    min-height: 100vh;
    background: linear-gradient(180deg, #111827, #050505) !important;
    color: var(--text-primary);
}

.rhema-modal-close {
    color: #fff !important;
    background: rgba(255,255,255,.12) !important;
    border-radius: 50%;
}

.rhema-modal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 68px 20px 44px;
}

.rhema-modal-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-bottom: 22px;
}

.rhema-modal-content h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 6px 0 16px;
}

.rhema-modal-content p {
    color: #e5e7eb;
    font-size: 17px;
    line-height: 1.85;
}

.rhema-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.rhema-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

.video-feature-media {
    border-radius: 22px 22px 0 0;
    overflow: hidden;
}

.video-feature-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201,168,76,.95);
    color: #07101f;
    box-shadow: 0 10px 28px rgba(0,0,0,.32);
}

.video-feature-card h2 {
    margin-bottom: 15px;
}

.video-feature-actions {
    align-items: center;
}

.video-open-button {
    margin-top: 0;
    flex: 1;
}

@media (min-width: 720px) {
    .rhema-grid,
    .video-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Player Bar ─────────────────────────────────────────────────────────── */
.player-bar {
    position: fixed;
    bottom: 70px;
    left: 0; right: 0;
    background: var(--player-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.player-info {
    display: flex;
    align-items: center;
    flex: 1;
}
.player-info img {
    width: 46px; height: 46px;
    border-radius: 10px;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.player-text { max-width: 180px; }
.player-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Bottom Nav ─────────────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 10px;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.nav-item.active {
    color: var(--gold);
}
.nav-item.active span[uk-icon] { color: var(--gold); }

/* ── Offline Page ───────────────────────────────────────────────────────── */
.offline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
    text-align: center;
}

/* ── Progress Bar ───────────────────────────────────────────────────────── */
progress.uk-progress { height: 4px; border-radius: 2px; }
progress.uk-progress::-webkit-progress-bar { background: rgba(255,255,255,0.08); }
progress.uk-progress::-webkit-progress-value { background: var(--gold); }
progress.uk-progress::-moz-progress-bar { background: var(--gold); }

/* ── Utility ────────────────────────────────────────────────────────────── */
.uk-modal-dialog { background: var(--navy-card) !important; color: var(--text-primary) !important; }

/* ── Favorites & Heart Animation ── */
.fav-btn {
    background: none; border: none; cursor: pointer; padding: 5px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; align-items: center; justify-content: center;
}
.fav-btn:active { transform: scale(1.3); }
.fav-btn.is-fav { color: #f43f5e !important; }
.fav-btn.is-fav svg { fill: #f43f5e; }

.song-item .fav-btn {
    opacity: .68;
    transition: opacity 0.2s, transform 0.2s;
}
.song-item:hover .fav-btn, .song-item.is-fav .fav-btn {
    opacity: 1;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}
.heart-beat { animation: heartBeat 0.8s ease-in-out; }
.playable-track.is-playing .song-item-title,
.song-card-horizontal.is-playing .song-item-title {
    color: var(--gold);
}

.song-item.is-playing {
    background: rgba(201,168,76,0.08);
}

.song-item.is-playing .song-item-img,
.song-card-horizontal.is-playing img {
    border: 1px solid var(--gold);
}

/* Responsive scale polish */
html {
    font-size: 17px;
}

body {
    font-size: 1rem;
    line-height: 1.55;
}

.app-header {
    padding: 24px 22px 18px;
}

.app-header-title {
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.app-header-sub {
    font-size: .78rem;
}

.avatar-img {
    width: 48px;
    height: 48px;
}

.home-hero {
    min-height: 380px;
    padding: clamp(56px, 10vw, 96px) 24px;
}

.home-hero-avatar {
    width: clamp(104px, 18vw, 144px);
    height: clamp(104px, 18vw, 144px);
}

.home-hero-name {
    font-size: clamp(2rem, 6vw, 3.35rem);
}

.home-hero-quote {
    max-width: 680px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.cat-pills,
.search-container,
.section-title-container,
.horizontal-scroll {
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
}

.cat-pill,
.tab-item {
    min-height: 44px;
    padding: 11px 22px;
    font-size: .92rem;
}

.search-input {
    min-height: 54px;
    padding: 15px 20px;
    border-radius: 18px;
    font-size: 1rem;
}

.section-title {
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.learn-more {
    font-size: .95rem;
}

.text-meta,
.song-item-artist,
.song-item-duration {
    font-size: .9rem;
}

.song-list {
    padding-left: clamp(14px, 4vw, 40px);
    padding-right: clamp(14px, 4vw, 40px);
}

.song-item {
    min-height: 84px;
    padding: 13px 12px;
    border-radius: 18px;
    margin-bottom: 8px;
}

.song-item-img {
    width: 66px;
    height: 66px;
    border-radius: 14px;
}

.song-item-title {
    font-size: 1.02rem;
    font-weight: 700;
}

.song-item-cat {
    padding: 4px 10px;
    font-size: .74rem;
}

.song-card-horizontal {
    min-width: 190px;
    max-width: 190px;
}

.song-card-horizontal img {
    width: 190px;
    height: 190px;
    border-radius: 22px;
}

.profile-page,
.rhema-page,
.video-page {
    max-width: 1120px;
    padding: clamp(20px, 4vw, 42px) clamp(16px, 4vw, 42px) 150px;
}

.perfil-avatar {
    width: clamp(128px, 18vw, 164px);
    height: clamp(128px, 18vw, 164px);
}

.perfil-name {
    font-size: clamp(2rem, 5vw, 3rem);
}

.perfil-ministry,
.perfil-bio-text,
.donation-content p,
.scripture-card p,
.rhema-hero p,
.video-hero p,
.empty-state-card p,
.rhema-card p {
    font-size: 1rem;
}

.perfil-social-btn {
    min-height: 44px;
    padding: 11px 18px;
    font-size: .95rem;
}

.donation-card,
.scripture-card,
.profile-content-card,
.rhema-hero,
.video-hero,
.empty-state-card,
.perfil-bio-card {
    border-radius: 28px;
    padding: clamp(22px, 4vw, 34px);
}

.profile-section-title,
.donation-content h2 {
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.profile-content-item {
    min-height: 144px;
    padding: 22px;
    font-size: 1rem;
}

.rhema-hero,
.video-hero {
    gap: 18px;
}

.rhema-hero-banner {
    min-height: clamp(260px, 38vw, 430px);
}

.rhema-hero h1,
.video-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
}

.rhema-hero-icon,
.video-hero-icon,
.donation-icon {
    width: 60px;
    height: 60px;
}

.rhema-card h2,
.video-feature-card h2 {
    font-size: clamp(1.35rem, 2.7vw, 1.75rem);
}

.rhema-card-body,
.video-feature-body {
    padding: clamp(20px, 3vw, 28px);
}

.rhema-image-button img,
.video-feature-media img {
    height: clamp(230px, 34vw, 320px);
}

.rhema-share-icon,
.video-share-button {
    width: 50px;
    height: 50px;
}

.rhema-read-button,
.video-open-button,
.rhema-primary-share,
.donation-button {
    min-height: 48px;
    font-size: .98rem;
}

.rhema-modal-content {
    max-width: 860px;
    padding: 86px clamp(22px, 5vw, 48px) 56px;
}

.rhema-modal-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.rhema-modal-content p {
    font-size: 1.1rem;
}

.player-bar {
    min-height: 84px;
    bottom: 78px;
    padding: 12px clamp(16px, 4vw, 36px);
}

.player-info img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
}

.player-text {
    max-width: min(52vw, 420px);
}

.player-title {
    font-size: 1rem;
}

.bottom-nav {
    height: 78px;
    gap: 4px;
    padding: 0 8px;
}

.nav-item {
    flex: 1 1 0;
    font-size: .74rem;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.nav-item span[uk-icon] svg {
    width: 24px;
    height: 24px;
}

.nav-item-featured {
    position: relative;
    color: #101722;
    background: linear-gradient(135deg, #f4dc9a, var(--gold));
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    padding: 8px 6px;
    font-weight: 800;
    transform: translateY(-9px);
    box-shadow: 0 16px 34px rgba(201,168,76,.28);
}

.nav-item-featured span[uk-icon],
.nav-item-featured.active span[uk-icon],
.nav-item-featured.active {
    color: #101722;
}

.nav-item-featured span[uk-icon] svg {
    width: 27px;
    height: 27px;
}

@media (min-width: 720px) {
    body {
        padding-bottom: 168px;
    }

    .home-hero {
        margin-bottom: 34px !important;
    }

    .cat-pills {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .search-container,
    .song-list,
    .section-title-container {
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }

    .horizontal-scroll {
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        overflow: visible;
    }

    .song-card-horizontal {
        min-width: 0;
        max-width: none;
    }

    .song-card-horizontal img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

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

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

@media (min-width: 1024px) {
    .app-header {
        padding-left: 40px;
        padding-right: 40px;
    }

    .rhema-grid,
    .video-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .bottom-nav {
        max-width: 760px;
        left: 50%;
        right: auto;
        width: calc(100% - 48px);
        transform: translateX(-50%);
        bottom: 18px;
        border: 1px solid var(--border);
        border-radius: 28px;
        box-shadow: 0 20px 60px rgba(0,0,0,.35);
    }

    .player-bar {
        max-width: 760px;
        left: 50%;
        right: auto;
        width: calc(100% - 48px);
        transform: translateX(-50%);
        bottom: 104px;
        border: 1px solid var(--border);
        border-radius: 26px;
        box-shadow: 0 20px 60px rgba(0,0,0,.35);
    }
}

@media (max-width: 380px) {
    html {
        font-size: 16px;
    }

    .song-item-img {
        width: 58px;
        height: 58px;
    }

    .nav-item {
        min-width: 52px;
        font-size: .68rem;
        padding-left: 3px;
        padding-right: 3px;
    }

    .nav-item-featured {
        font-size: .66rem;
        transform: translateY(-7px);
    }
}
