:root {
    /* Dimensions */
    --nav-height: 60px;
    --player-height: 80px;
    --header-height: 60px;

    /* Light Mode (Default) */
    --primary-color: #6200EE;
    --primary-dark: #3700B3;
    --accent-color: #03DAC6;

    --bg-body: #F4F5F7;
    --bg-card: #FFFFFF;
    --bg-header: #6200EE;
    --bg-secondary: #FFFFFF;
    --bg-input: #F0F0F0;

    --text-main: #212121;
    --text-secondary: #757575;
    --text-inverse: #FFFFFF;

    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Mapping Legacy Variable Names for Compatibility but re-assigning them */
    --primary-background: var(--bg-body);
    --secondary-background: var(--bg-card);
    --header-background: var(--bg-header);
    --primary-text: var(--text-main);
    --secondary-text: var(--text-secondary);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-body: #1F4E5F;
    /* Legacy Dark Teal */
    --bg-card: #263238;
    /* Legacy Dark Card */
    /* --bg-header: #6200EE; Keep purple header or match dark? Legacy had purple. */
    --bg-secondary: #263238;
    --bg-input: #2F3342;

    --text-main: #FFFFFF;
    --text-secondary: #B0BEC5;

    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.3);

    /* Explicitly map legacy variables for Dark Mode */
    --primary-background: var(--bg-body);
    --secondary-background: var(--bg-card);
    --header-background: var(--bg-header);
    --primary-text: var(--text-main);
    --secondary-text: var(--text-secondary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-background);
    color: var(--primary-text);
    line-height: 1.5;
    overflow: hidden;
    /* Prevent body scroll, handle in #app-content */

    /* Disable accidental text selection (stops dictionary popups on Android) */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

/* Header */
#main-header {
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    background-color: var(--header-background);
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) 16px 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-bottom: none;
    color: white;
    gap: 16px;
}

.header-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    /* Alignment adjustment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-back-btn.hidden {
    display: none;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Header Text Column */
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-text h1 {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
}

.header-text h2 {
    display: none;
    /* Legacy app doesn't seem to have subtitle in header */
}

.header-version-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.header-version-settings .version-badge {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.header-version-settings .header-icon-btn {
    padding: 4px;
    font-size: 1rem;
}

/* Main Content */
#app-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding: 16px;
    padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom, 0px) + 20px);
    /* Reduced padding (no nav) */
    background-color: var(--primary-background);
}

/* Footer Player */
#player-footer {
    height: var(--player-height);
    background-color: var(--secondary-background);
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--player-height) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    z-index: 20;
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

#player-footer.hidden {
    transform: translateY(150%);
}

.player-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.song-info {
    display: flex;
    flex-direction: column;
    max-width: 60%;
}

#player-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#player-artist {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

.controls button {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-text);
    cursor: pointer;
    margin-left: 15px;
}

/* Bottom Nav Removed */

/* Utilities */
.hidden {
    display: none !important;
}

/* Selectively re-enable text selection for actual content */
.bible-verse,
.sermon-description,
.descriptive-text,
.item-content,
.about-text,
.attribution-text,
#sermon-description,
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Lists */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* Divider style */
    background-color: #e0e0e0;
    /* Border color */
    border-radius: 8px;
    overflow: hidden;
}

.sermon-player-view {
    background-color: var(--primary-background);
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.list-item {
    background-color: var(--secondary-background);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.list-item:active {
    background-color: var(--alternate-color);
}

.item-icon {
    font-size: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--alternate-color);
    /* Light grey bg for icon */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-content {
    flex: 1;
    overflow: hidden;
}

.item-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.item-subtitle {
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.play-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    font-size: 1rem;
}

/* Search Bar */
.search-bar {
    margin-bottom: 16px;
    position: sticky;
    top: 0;
    background: var(--primary-background);
    /* Match bg */
    padding: 10px 0;
    z-index: 5;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 25px;
    /* Rounded pill */
    border: 1px solid #e0e0e0;
    background-color: var(--secondary-background);
    color: var(--primary-text);
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* --- Home Page Specifics --- */

.hero-section {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
}

@media (min-width: 768px) {
    .hero-section {
        height: 130px;
    }
}

/* Home Action Buttons Grid */
.home-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.home-action-btn {
    background-color: var(--bg-card);
    /* Dark Card Bg */
    border: 2px solid var(--accent-color);
    /* Teal Border */
    border-radius: 8px;
    color: var(--text-main);
    padding: 4px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    min-height: 0;
    line-height: 1.1;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
}

.home-action-btn:active {
    background-color: #37474F;
}

/* Section Header */
.section-header {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    margin: 0 10px 15px 10px;
}

.section-title-bar {
    background-color: var(--bg-input);
    color: var(--text-main);
    text-align: center;
    padding: 8px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.section-content {
    padding: 10px;
}

/* Series Cards (Horizontal layout in section) */
.series-card-home {
    display: flex;
    background-color: var(--bg-card);
    /* Slightly darker than section? */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    align-items: center;
}

.series-card-home img {
    width: 100px;
    /* Small Rectangle */
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin: 8px;
}

.series-card-home .info {
    flex: 1;
    padding: 8px 0;
    color: var(--text-main);
    font-size: 0.9rem;
}

.series-card-home .info h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.series-card-home .info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer Info Box */
.footer-info-box {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    margin: 20px 10px;
    text-align: center;
    color: var(--text-main);
    font-size: 0.9rem;
}

.home-footer-text {
    text-align: center;
    padding: 8px 16px 24px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.home-footer-text p {
    margin-bottom: 20px;
}

.descriptive-text {
    font-style: normal;
    text-align: center;
    color: var(--text-main);
}

/* Song Player View */
.song-player-view {
    background-color: var(--bg-body);
    /* Dark background from screenshot */
    min-height: calc(100vh - 60px);
    /* Adjust for header */
    padding: 8px !important;
    /* Reset padding for this view */
    color: var(--text-main);
    /* Break out of container padding */
    margin: -16px;
    width: calc(100% + 32px);
    box-sizing: border-box;
    /* Ensure padding doesn't add to width */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.song-player-view * {
    box-sizing: border-box;
}

.song-player-header {
    background-color: var(--bg-header);
    /* Purple/Blue header */
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.song-player-header .back-btn {
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.5rem;
    cursor: pointer;
}

.song-player-header h1 {
    color: var(--text-inverse);
    font-size: 1.2rem;
    font-weight: 500;
}

.song-banner {
    background-color: var(--bg-input);
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.song-banner h2 {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
}

.lyrics-container {
    padding: 0;
}

.slide-wrapper {
    background-color: white;
    border-radius: 12px;
    /* Rounded edges restored */
    overflow: hidden;
    position: relative;
    /* padding-top: 56.25%; Removed legacy hack */
    aspect-ratio: 16/9;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Controls Scoped Styles */
.pdf-controls-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Cover full slide for hit testing or just bottom? */
    pointer-events: none;
    z-index: 10;
}

/* --- Responsive Player Layout --- */

/* Default: Stacked (Portrait / Mobile) */
.player-content-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Landscape (Tablet/Desktop) - Side by Side */
@media (min-width: 768px) and (orientation: landscape) {
    .player-content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* Split screen */
        gap: 20px;
        align-items: start;
        /* Top align */
        height: 100%;
        /* Try to use full height */
    }

    .song-player-view {
        /* When in landscape grid, we might want to restrict scrolling */
        overflow-y: auto;
    }
}

.slide-nav-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 32px;
    /* Small but touchable */
    height: 32px;
    font-size: 1rem;
    position: absolute;
    bottom: env(safe-area-inset-bottom, 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slide-nav-btn:active {
    background: rgba(0, 0, 0, 0.6);
}

.slide-nav-btn.prev {
    left: 0;
    border-top-right-radius: 8px;
}

.slide-nav-btn.next {
    right: 0;
    border-top-left-radius: 8px;
}

.slide-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.attribution-box {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.youtube-container {
    margin-top: 20px;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.yt-launch-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    /* Positioned bottom right over the video */
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
    transition: background-color 0.2s;
}

.yt-launch-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* YouTube Play Overlay */
.yt-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.yt-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.yt-play-button {
    width: 68px;
    height: 48px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.yt-play-overlay:hover .yt-play-button {
    background-color: #f00;
    transform: scale(1.1);
}

.yt-play-button i {
    margin-left: 4px;
    /* Offset to center the triangle better */
}

.no-content {
    background: #333;
    color: #888;
    padding: 20px;
    text-align: center;
}

/* --- Dark Mode Songs View (Replication of Legacy) --- */

/* Wrapper */
.songs-view-dark {
    background-color: var(--bg-body);
    /* Dark Background */
    min-height: 100%;
}

.songs-view-dark .content-wrapper {
    padding: 8px;
    padding-bottom: 100px;
}

/* Custom Dark Search Bar */
.search-bar-dark {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar-dark .search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-dark input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    padding-right: 36px;
    /* Space for icon */
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.search-bar-dark .search-icon {
    position: absolute;
    right: 12px;
    color: #888;
    pointer-events: none;
}




/* Last Song Section */
.last-song-section {
    margin-bottom: 24px;
}

.section-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.last-song-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.last-song-box {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    /* Slightly rounded */
    padding: 10px 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    height: 42px;
    /* Fixed height match */
    display: flex;
    align-items: center;
}

.action-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0 12px;
    height: 42px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Songs List */
.songs-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    /* Rectangle box */
    border-radius: 6px;
    /* Slightly rounded */
    padding: 14px 16px;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.2s;
}

.song-card:active {
    background-color: #333;
}

.card-content {
    flex: 1;
    overflow: hidden;
}

.song-title {
    color: var(--text-main);
    font-weight: 700;
    /* Bold titles */
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* New Badge */
.new-badge {
    background-color: #6F61EF;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

/* --- Series List Views (OT/NT) --- */
.series-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px;
}


.series-list-card {
    display: flex;
    align-items: center;
    /* Vertically center content */
    background-color: var(--bg-card);
    border-radius: 12px;
    height: 100px;
    box-shadow: 0 2px 5px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.1s;
    padding: 0 10px;
    /* Padding for the card content */
}

.series-list-card:active {
    transform: scale(0.98);
}

.series-list-card .card-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    margin-right: 8px;
}

.series-list-card .card-info {
    flex: 1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
}

.series-list-card .card-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-list-card .card-info .subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-list-card .card-info .dates {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* --- Series Details View --- */
.series-details-view {
    padding-bottom: 40px;
    background-color: var(--bg-body);
    min-height: calc(100vh - 60px);
    margin: -16px;
    /* Break out of container padding */
    padding: 16px;
    box-sizing: border-box;
}

.series-details-header {
    background-color: var(--bg-card);
    /* Dark slate */
    border-radius: 4px;
    padding: 16px;
    position: relative;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.series-details-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
}

.series-subtitle {
    margin: 4px 0 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-img {
    width: 100px;
    height: 60px;
    /* Rectangular aspect */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.meta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sort-btn {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.sort-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Dark Sermon Card */
.sermon-card-dark {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    /* Thin white border */
    border-radius: 8px;
    /* Slightly rounded */
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
}

.sermon-card-dark:active {
    background-color: #333;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.sermon-index {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    min-width: 25px;
    /* Alignment */
}

.separator {
    color: #666;
    font-weight: bold;
}

.sermon-title-text {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.monitor-icon {
    color: #ef4444;
    /* Red color */
    font-size: 1.4rem;
    padding: 8px;
    border: 2px solid #333;
}

.series-details-view .list-container {
    background-color: transparent !important;
    gap: 12px !important;
    border-radius: 0 !important;
    padding: 0 8px;
    /* Horizontal padding */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-icon-btn:hover {
    opacity: 1;
}

/* Settings View */
.settings-view {
    padding: 20px;
}

.settings-view h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.settings-section {
    background: var(--secondary-background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.settings-section h3 {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-weight: 600;
    font-size: 1rem;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--secondary-text);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

.about-text {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Sermon Player View */
.sermon-player-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sermon-player-header .sermon-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.sermon-player-header .sermon-speaker {
    color: var(--secondary-text);
    font-size: 1rem;
}

.sermon-player-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.audio-player-container {
    background: var(--secondary-background);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.audio-controls {
    width: 100%;
}

.audio-controls audio {
    width: 100%;
    border-radius: 8px;
}

.download-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    transition: background 0.2s;
}

.download-link:hover {
    background: rgba(3, 218, 198, 0.1);
}

.sermon-description-container {
    background: var(--secondary-background);
    border-radius: 12px;
    padding: 20px;
}

.sermon-description-container h3 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--secondary-text);
}

.sermon-description {
    line-height: 1.6;
    color: var(--primary-text);
}

.sermon-description p {
    margin-bottom: 12px;
}

.fallback-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Random Play Section */
.random-play-section {
    margin-bottom: 16px;
}

.random-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(98, 0, 238, 0.3);
}

.random-play-btn:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--secondary-background);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.modal-content p {
    color: var(--secondary-text);
    margin-bottom: 20px;
}

.song-count-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.count-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.count-btn:active {
    background: var(--primary-dark);
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.cancel-btn {
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid var(--secondary-text);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
}

/* Date Modal Specifics */
.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.date-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.date-field label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.date-select-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.date-select-row select {
    flex: 1;
    padding: 10px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 0;
    /* Prevent overflow */
}

.date-select-row .day-select {
    flex: 0 0 70px;
}

.date-select-row .month-select {
    flex: 1;
}

.date-select-row .year-select {
    flex: 0 0 90px;
}

.shortcut-group {
    margin-bottom: 24px;
}

.shortcut-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.full-width-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.full-width-btn+.full-width-btn {
    margin-top: 10px;
}

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

.btn-secondary {
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Random Playlist Display */
.random-playlist {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-background);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.random-playlist.hidden {
    display: none;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--header-background);
}

.playlist-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.playlist-songs {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--secondary-background);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.playlist-item.playing {
    background: var(--primary-color);
}

.playlist-number {
    color: var(--secondary-text);
    font-weight: 600;
    min-width: 24px;
}

.playlist-item.playing .playlist-number {
    color: white;
}

.playlist-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playing-icon {
    color: white;
}

.playlist-controls {
    padding: 16px;
    text-align: center;
    background: var(--secondary-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* iOS Tap to Start Modal */
.ios-tap-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ios-play-icon {
    font-size: 4rem;
    color: var(--accent-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.ios-start-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color), #00a896);
    color: #000;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(3, 218, 198, 0.4);
}

.ios-start-btn:active {
    transform: scale(0.95);
}

/* --- Playlist Feature --- */

/* Fixed Bottom Bar */
.songs-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--secondary-background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.bottom-bar-btn {
    background: transparent;
    border: none;
    color: var(--secondary-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.bottom-bar-btn i {
    font-size: 1.2rem;
}

.bottom-bar-btn.active,
.bottom-bar-btn:active {
    color: var(--accent-color);
    background: rgba(3, 218, 198, 0.1);
}

/* Playlists View */
.playlists-view {
    padding-bottom: 90px;
    /* Space for FAB */
}

/* Sermon Search Actions */
.search-actions {
    display: flex;
    gap: 12px;
}

.search-action-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

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

.search-action-btn.secondary {
    background-color: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

/* Result Cards Specifics */
.sermon-result-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sermon-result-card h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.sermon-result-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.sermon-date {
    font-size: 0.75rem !important;
    margin-top: 4px !important;
    opacity: 0.8;
}

.sermon-play-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border: none;
    z-index: 90;
    transition: transform 0.2s;
    text-decoration: none;
}

.fab-btn:active {
    transform: scale(0.95);
}

/* Playlist View Titles */
.playlists-view h2,
.create-playlist-view h2 {
    color: var(--text-main);
}

/* Playlist Card */
.playlist-card {
    background-color: var(--secondary-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-card:active {
    background-color: var(--bg-input);
}

.playlist-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.playlist-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.playlist-delete-btn {
    background: transparent;
    border: none;
    color: #ef5350;
    /* Red */
    padding: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

/* Create Playlist View */
.create-playlist-view {
    padding: 20px;
}

.create-form-group {
    margin-bottom: 20px;
}

.create-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.create-form-group input {
    height: 70px;
    /* Big touch target */
    width: 100%;
    background: var(--secondary-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.select-songs-list {
    margin-bottom: 80px;
    /* Space for sticky footer */
}

.select-song-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.select-song-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    accent-color: var(--accent-color);
}

.select-song-item span {
    font-size: 1rem;
    color: var(--text-main);
}

/* Sticky Footer for Form Actions */
.form-actions-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--secondary-background);
    border-top: 1px solid #444;
    display: flex;
    gap: 12px;
}

.full-width-btn {
    flex: 1;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary-text);
    color: var(--secondary-text);
}

/* Playlist View Refinements */
.playlist-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.playlist-edit-btn,
.playlist-delete-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 8px;
    transition: color 0.2s;
}

.playlist-edit-btn:hover {
    color: var(--accent-color);
}

.playlist-delete-btn:hover {
    color: #ff4444;
}

/* ============================================
   Find Sermons View
   ============================================ */
.find-sermons-view {
    background-color: var(--primary-background);
    min-height: 100%;
}

.find-sermons-view .content-wrapper {
    padding: 16px;
}

.find-sermons-view h2 {
    color: var(--text-main);
    margin-bottom: 20px;
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-row .search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-row .search-input-wrapper input,
.search-row .search-input-wrapper select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--secondary-background);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

.search-row .search-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

.search-row .search-input-wrapper select {
    appearance: none;
    cursor: pointer;
}

.search-row .search-input-wrapper .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.clear-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.clear-btn:active {
    opacity: 0.8;
}

/* Search Action Buttons */
.search-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.search-action-btn {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.search-action-btn.primary {
    background-color: var(--accent-color);
    color: #000;
}

.search-action-btn:active {
    opacity: 0.8;
}

/* Results */
.sermon-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sermon-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sermon-result-card:active {
    background-color: var(--bg-input);
}

.sermon-result-info h3 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text-main);
}

.sermon-result-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sermon-result-info .sermon-date {
    font-size: 0.8rem;
    margin-top: 4px;
}

.sermon-play-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Home Page Component Styles */
.bible-verse {
    font-style: italic;
    text-align: center;
    line-height: 1.6;
    margin: 12px 0;
    color: var(--text-main);
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 16px 0;
}

.light-mode .divider-line {
    background-color: rgba(0, 0, 0, 0.1);
}

.attribution-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 24px;
    line-height: 1.4;
    padding: 0 16px;
}

.attribution-text p {
    margin-bottom: 8px;
}

/* --- Transcription Styles --- */
.transcribe-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#btn-transcribe {
    width: 250px;
    height: 60px;
    font-size: 1.1rem;
    border-radius: 8px;
    /* Slightly rounded */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.transcription-modal-content {
    width: calc(100% - 32px);
    max-width: 800px;
    margin: 0 auto;
}

.transcript-scroll-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    margin: 15px 0;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

#transcript-text {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    display: block;
}

body:not(.dark-mode) #transcript-text,
body:not(.dark-mode) #transcript-text p,
body:not(.dark-mode) #transcript-text h1,
body:not(.dark-mode) #transcript-text h2,
body:not(.dark-mode) #transcript-text h3,
body:not(.dark-mode) #transcript-text blockquote,
body:not(.dark-mode) #transcript-text strong,
body:not(.dark-mode) #transcript-text em {
    color: #000000 !important;
}

.download-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.download-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.download-btn:active {
    background-color: var(--shadow-color);
}

.setting-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Modal sizing for transcription specifically */
#transcription-modal .modal-content {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* --- Modal Header Row --- */
.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header-row h3 {
    margin: 0;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.header-action-btns {
    display: flex;
    gap: 8px;
}

.icon-btn.delete-btn {
    color: #e74c3c;
}

.icon-btn.delete-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.icon-btn.delete-btn:active {
    background-color: rgba(231, 76, 60, 0.2);
}

/* --- Settings Textarea --- */
.setting-item-block {
    flex-direction: column;
    align-items: flex-start;
}

.setting-item-block .setting-info {
    margin-bottom: 10px;
}

.setting-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.setting-textarea::placeholder {
    color: var(--secondary-text);
}

/* --- Help Modal Styling --- */
.setting-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn.help-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn.help-btn:active {
    background-color: rgba(108, 92, 231, 0.2);
}

.help-modal-content {
    max-width: 480px;
    width: calc(100% - 32px);
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: 16px;
}

.help-modal-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.help-modal-content h3 i {
    color: var(--accent-color);
}

.help-steps {
    margin-bottom: 20px;
}

.help-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.step-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.step-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 1rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.4;
}

.step-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

.help-note {
    background-color: rgba(108, 92, 231, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    font-size: 0.85rem;
    color: var(--text-main);
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-note i {
    color: var(--accent-color);
}

.help-details {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--secondary-text);
    opacity: 0.8;
    margin-bottom: 10px;
    font-style: italic;
}

/* --- Markdown Rendering Styles --- */
#transcript-text h1,
#transcript-text h2,
#transcript-text h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

#transcript-text h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

#transcript-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#transcript-text strong {
    color: var(--text-main);
}

#transcript-text em {
    font-style: italic;
}

#transcript-text blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: rgba(108, 92, 231, 0.05);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
}