:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-color: #ec4899;
    --stop-color: #ef4444;
    --stop-hover: #dc2626;
    --youtube-red: #ff0000;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --font-family: 'Outfit', 'Noto Sans KR', 'Noto Sans JP', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background animated globs */
.background-glob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.glob-1 {
    width: 380px;
    height: 380px;
    background: #6366f1;
    top: -50px;
    left: -50px;
    animation: float1 12s infinite alternate ease-in-out;
}

.glob-2 {
    width: 420px;
    height: 420px;
    background: #ec4899;
    bottom: -100px;
    right: -100px;
    animation: float2 15s infinite alternate ease-in-out;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.2); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -60px) scale(1.1); }
}

/* App Container - Tight Compact Fit */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
    padding-bottom: 4px;
}

/* Prominent Top Scrolling Marquee Announcement Banner */
.announcement-banner-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(99, 102, 241, 0.25));
    border: 1.5px solid rgba(236, 72, 153, 0.45);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    gap: 10px;
    backdrop-filter: blur(12px);
}

.announcement-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ec4899;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5);
    flex-shrink: 0;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marqueeScroll 22s linear infinite;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.announcement-banner-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Automatic App Install Banner */
.auto-install-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(236, 72, 153, 0.45));
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.banner-text {
    display: flex;
    flex-direction: column;
}

.banner-text strong {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 700;
}

.banner-text span {
    font-size: 0.8rem;
    color: #f1f5f9;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-install-btn {
    background: #ffffff;
    color: #1e1b4b;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.4);
    transition: transform 0.2s;
}

.banner-install-btn:hover {
    transform: scale(1.06);
}

.banner-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
}

/* Header Bar with 3 Dedicated Rows */
.app-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
    width: 100%;
}

/* Dedicated Standalone 100% Full-Width Language Selector Row */
.header-row-lang {
    width: 100%;
    margin-bottom: 4px;
}

.standalone-lang-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.standalone-lang-btn:hover, .standalone-lang-btn:active {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #F472B6 100%);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    transform: translateY(-1px) scale(1.01);
}

.header-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.header-row-1::-webkit-scrollbar {
    display: none;
}

.header-row-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 2px;
}

/* Reset Button */
.reset-btn {
    background: rgba(239, 68, 68, 0.25);
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.reset-btn:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* Secret Combination Badge & 3 Color Boxes Group */
.secret-combination-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.church-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.church-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}

.church-badge.active-step {
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 3 Secret Combination Square Boxes */
.secret-boxes-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.secret-box {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.secret-box:hover {
    transform: scale(1.25);
}

.secret-box.box-1 {
    background: #ef4444; /* Red */
}

.secret-box.box-2 {
    background: #3b82f6; /* Blue */
}

.secret-box.box-3 {
    background: #10b981; /* Green */
}

.secret-box.active-step {
    border-color: #ffffff;
    box-shadow: 0 0 12px #ffffff;
    transform: scale(1.2);
}

.header-right-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Target Language Switcher Toggle Button */
.lang-toggle-btn {
    padding: 5px 9px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(236, 72, 153, 0.45));
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.5));
    border-color: white;
}

/* Expandable Category Menu Toggle Button & Wrapper */
.more-menu-toggle-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
    margin-bottom: 8px;
}

.more-menu-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
    transform: translateY(-1px);
}

.category-tabs-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.category-tabs-wrapper.expanded {
    max-height: 350px;
    opacity: 1;
    margin-top: 6px;
}

/* Cross Language Filter Toggle Button */
.cross-lang-toggle-btn {
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.cross-lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.homepage-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: 1.5px solid #60A5FA;
    color: #FFFFFF;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.homepage-header-btn:hover, .homepage-header-btn:active {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px) scale(1.03);
}

.youtube-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border: 1.5px solid #FF4D4D;
    color: #FFFFFF;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.youtube-header-btn:hover, .youtube-header-btn:active {
    background: linear-gradient(135deg, #FF1A1A 0%, #E60000 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 14px rgba(255, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px) scale(1.03);
}

.yt-icon {
    font-size: 0.78rem;
    color: #FFFFFF;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.qr-btn {
    background: rgba(99, 102, 241, 0.25);
    border: 1.5px solid rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.qr-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.lang-selector-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.lang-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.lang-select {
    background: transparent;
    color: var(--text-main);
    border: none;
    padding: 4px 2px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.lang-select option {
    background: #1e1b4b;
    color: var(--text-main);
}

/* Title Section */
.title-section {
    text-align: center;
    padding: 0;
}

.main-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-title span {
    display: block;
}

.sub-title {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Player Card */
.player-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Album Art & Equalizer */
.album-art-container {
    width: 125px;
    height: 125px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #312e81 0%, #1e1b4b 60%, #0f172a 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.5s ease;
}

.album-art.spinning {
    animation: rotate 15s linear infinite;
}

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

.disc-center {
    width: 28px;
    height: 28px;
    background: #0f172a;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    z-index: 2;
}

.eq-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
    position: absolute;
    z-index: 3;
}

.eq-bar {
    width: 5px;
    height: 8px;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    opacity: 0.7;
}

.album-art.spinning .eq-bar:nth-child(1) { animation: bounce 1.2s infinite ease-in-out; }
.album-art.spinning .eq-bar:nth-child(2) { animation: bounce 0.8s infinite ease-in-out 0.2s; }
.album-art.spinning .eq-bar:nth-child(3) { animation: bounce 1.5s infinite ease-in-out 0.4s; }
.album-art.spinning .eq-bar:nth-child(4) { animation: bounce 1.0s infinite ease-in-out 0.1s; }
.album-art.spinning .eq-bar:nth-child(5) { animation: bounce 1.3s infinite ease-in-out 0.3s; }

@keyframes bounce {
    0%, 100% { height: 8px; }
    50% { height: 32px; opacity: 1; }
}

/* Track Info */
.track-info {
    text-align: center;
    width: 100%;
}

.track-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-speaker {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Progress Slider */
.progress-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.seek-slider, .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.seek-slider::-webkit-slider-thumb, .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: transform 0.1s;
}

.seek-slider::-webkit-slider-thumb:hover, .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Controls Container */
.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.control-btn {
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.primary-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.primary-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.7);
}

.secondary-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1.5px solid var(--card-border);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
}

.stop-btn {
    width: 44px;
    height: 44px;
    background: rgba(239, 68, 68, 0.18);
    color: var(--stop-color);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.stop-btn:hover {
    background: var(--stop-color);
    color: white;
    transform: scale(1.06);
}

/* Volume Bar */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 80%;
    color: var(--text-muted);
}

/* Multi-Category Filter Tabs (Intuitive 2x2 Grid) */
.category-section {
    width: 100%;
}

.category-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 6px;
    gap: 8px;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.12);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

/* Dedicated Metadata Badges */
.metadata-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.date-badge {
    background: rgba(236, 72, 153, 0.18);
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: #f472b6;
}

.passage-badge {
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
}

/* Playlist Trigger Button Section - Zero Bottom Margin */
.playlist-toggle-section {
    width: 100%;
    margin-top: 2px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.open-playlist-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.open-playlist-trigger-btn:hover, .open-playlist-trigger-btn:active {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.6);
}

.open-playlist-trigger-btn .btn-icon {
    font-size: 1.25rem;
}

.badge-count {
    font-size: 0.85rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 14px;
}

/* Color-Coded Interactive Category Badge Buttons */
.category-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.category-badge-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.4);
}

.cat-badge-sermon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
}

.cat-badge-praise {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: #ffffff;
}

.cat-badge-review {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
}

/* Radio Button Styling in Submenu */
.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.18);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary-color);
}

/* Modal Overlay & Drawer Sheet */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none !important;
}

.drawer-card {
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.drawer-body {
    overflow-y: auto;
    max-height: 65vh;
    padding-right: 4px;
}

.playlist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.playlist-item.active {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
}

.item-play-icon {
    font-size: 1.0rem;
    color: #a5b4fc;
    width: 24px;
    text-align: center;
}

.item-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.item-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-passage-inline {
    font-size: 0.88rem;
    color: #a5b4fc;
    font-weight: 700;
    margin-top: 2px;
}

.item-speaker {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.item-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.modal-card {
    background: #1e1b4b;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 480px;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.qr-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-img {
    width: 200px;
    height: 200px;
    border-radius: 14px;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.qr-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}

.modal-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 22px;
    border-radius: 22px;
    border: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

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

.cancel-btn {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
}

.form-input, .form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
}

/* Floating New Audio Track Notification Banner */
.new-track-toast {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 480px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(5, 150, 105, 0.98));
    border: 2px solid #34D399;
    border-radius: 16px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5), 0 0 20px rgba(52, 211, 153, 0.4);
    backdrop-filter: blur(12px);
    cursor: pointer;
    animation: toastPulse 2s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-track-toast.hidden {
    display: none !important;
}

@keyframes toastPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5), 0 0 20px rgba(52, 211, 153, 0.4);
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 14px 36px rgba(16, 185, 129, 0.75), 0 0 30px rgba(52, 211, 153, 0.7);
        transform: translateX(-50%) scale(1.02);
    }
}

.toast-icon {
    font-size: 1.5rem;
    animation: bellRing 1.5s infinite alternate;
}

@keyframes bellRing {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

#toast-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#toast-subtitle {
    font-size: 0.8rem;
    opacity: 0.95;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 2px;
}

.toast-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* One-Touch Autoplay Prompt Banner */
.autoplay-prompt-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    cursor: pointer;
    animation: promptGlow 2s infinite alternate ease-in-out;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    user-select: none;
}

@keyframes promptGlow {
    0% { transform: scale(0.99); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
    100% { transform: scale(1.01); box-shadow: 0 8px 28px rgba(16, 185, 129, 0.7); }
}

.autoplay-prompt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.95rem;
}

.pulse-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #ffffff;
    color: #059669;
    border-radius: 50%;
    font-size: 0.85rem;
    padding-left: 2px;
}

.autoplay-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.3rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Install Guide Modal OS Tabs */
.install-guide-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    justify-content: center;
}

.guide-tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.guide-tab-btn.active {
    background: var(--primary-color);
    border-color: #a5b4fc;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

