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

/* Scope styling to the Audiobook Platform container to avoid WordPress theme conflicts */
.audiobooks-platform-scope, 
.audiobooks-auth-body {
    background-color: #210F46 !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#audiobooks-app,
#audiobooks-auth-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff !important;
}

/* Force all text within the scope to be white/light grey by default, avoiding default browser black overrides */
.audiobooks-platform-scope *,
.audiobooks-auth-body * {
    color: #ffffff;
}


.auth-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    text-decoration: none;
}

.auth-logo {
    width: 130px;
    max-width: 70%;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 600px) {
    .auth-logo {
        width: 110px;
    }
}

/* Auth Layout */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff, #C6FE7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-input-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px;
    color: #ffffff !important;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #C6FE7A;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(198, 254, 122, 0.35);
}

/* Autofill fixes for dark fields */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #210F46 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* High contrast accent button with dark readable text */
.auth-btn {
    width: 100%;
    background: #C6FE7A !important;
    color: #210F46 !important;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 14px rgba(198, 254, 122, 0.25);
}

.auth-btn * {
    color: #210F46 !important; /* Forces inner text to remain dark on green button */
}

.auth-btn:hover {
    background: #F4FF6B !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 255, 107, 0.4);
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #C6FE7A !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #F4FF6B !important;
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5 !important;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* App Main Navigation */
.app-header {
    background: rgba(33, 15, 70, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-brand {
    font-size: 24px;
    font-weight: 800;
    color: #C6FE7A !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #C6FE7A !important;
}

/* Dashboard Layout */
.dashboard-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #ffffff, #C6FE7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 16px;
    color: #ffffff !important;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: #C6FE7A;
    border-radius: 2px;
}

/* Search Box */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    margin-bottom: 32px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 14px 20px 14px 48px;
    color: #ffffff !important;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #C6FE7A;
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Audiobook Grid & Cards */
.audiobooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
}

.book-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(198, 254, 122, 0.3);
    box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}

.book-cover-wrap {
    width: 100%;
    padding-top: 130%;
    position: relative;
    background: #180935;
    overflow: hidden;
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.06);
}

.book-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Progress Bar */
.card-progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.card-progress-bar {
    height: 100%;
    background: #C6FE7A !important;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Continue Listening Hero Section */
.continue-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(198,254,122,0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.continue-cover {
    width: 130px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.continue-details {
    flex-grow: 1;
}

.continue-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #C6FE7A !important;
    margin-bottom: 10px;
}

.continue-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #ffffff !important;
}

.continue-author {
    font-size: 16px;
    color: rgba(255,255,255,0.6) !important;
    margin-bottom: 20px;
}

.continue-progress-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 350px;
}

.continue-play-btn {
    background: #C6FE7A !important;
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(198, 254, 122, 0.3);
}

.continue-play-btn span {
    color: #210F46 !important;
}

.continue-play-btn:hover {
    background: #F4FF6B !important;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(244, 255, 107, 0.45);
}

/* Audiobook Detail Page Layout */
.book-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .book-detail-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.detail-cover {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.6);
}

.detail-title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 14px 0;
    color: #ffffff !important;
}

.detail-meta {
    font-size: 17px;
    color: rgba(255,255,255,0.65) !important;
    margin-bottom: 28px;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 36px;
}

/* Playlist / Chapters list layout */
.playlist-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.playlist-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 24px;
    font-weight: 700;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chapter-row {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chapter-row.active {
    background: rgba(198, 254, 122, 0.05);
    border-left: 4px solid #C6FE7A;
}

.chapter-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff !important;
}

.chapter-title span {
    color: #C6FE7A !important;
}

.chapter-duration {
    font-size: 14px;
    color: rgba(255,255,255,0.5) !important;
}

/* Premium Player Controller (Sticky bottom bar) */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #120626;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .player-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 25%;
    min-width: 220px;
}

.player-cover {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
}

.player-text-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #ffffff !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-text-chapter {
    font-size: 13px;
    color: rgba(255,255,255,0.5) !important;
    margin: 4px 0 0 0;
}

.player-center-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    gap: 12px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 32px;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
}

.control-btn:hover {
    color: #C6FE7A !important;
    transform: scale(1.15);
}

.control-btn.play-pause-btn {
    background: #C6FE7A !important;
    color: #210F46 !important;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(198, 254, 122, 0.35);
}

.control-btn.play-pause-btn:hover {
    background: #F4FF6B !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 255, 107, 0.5);
}

.control-btn.play-pause-btn span {
    color: #210F46 !important;
    font-size: 24px;
}

.progress-timeline {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(255,255,255,0.5) !important;
}

.timeline-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C6FE7A !important;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.player-right-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    width: 25%;
}

/* Style browser select tags to have clean white options */
.speed-select {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px;
    color: #ffffff !important;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.speed-select option {
    background-color: #120626 !important;
    color: #ffffff !important;
}

.speed-select:focus {
    outline: none;
    border-color: #C6FE7A !important;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
}

.volume-control span {
    color: #ffffff !important;
}

.volume-slider {
    width: 90px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff !important;
}

/* --- MOBILE RESPONSIVE MEDIA QUERIES (Industry Standard) --- */

/* Fluid responsive typography overrides */
.welcome-title {
    font-size: clamp(24px, 4vw, 38px) !important;
}
.detail-title {
    font-size: clamp(22px, 5vw, 40px) !important;
}
.continue-title {
    font-size: clamp(18px, 3.5vw, 28px) !important;
}
.section-title {
    font-size: clamp(18px, 3vw, 24px) !important;
}
.book-title {
    font-size: clamp(14px, 2vw, 18px) !important;
}

/* Scrollable Playlist Container (Prevents page elongation) */
.playlist-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}
.playlist-container::-webkit-scrollbar {
    width: 6px;
}
.playlist-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.playlist-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.playlist-container::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 254, 122, 0.3);
}

/* Prevent sticky player bar content overlaps dynamically */
.has-active-player {
    padding-bottom: 120px !important;
}

@media (max-width: 768px) {
    .has-active-player {
        padding-bottom: 180px !important;
    }

    /* Dashboard & Layout container */
    .dashboard-container {
        padding: 24px 20px;
    }

    /* Continue Listening Hero Section */
    .continue-hero {
        padding: 20px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .continue-cover {
        width: 110px;
        height: 145px;
    }

    .continue-details {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .continue-progress-wrap {
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Audiobook Grids */
    .audiobooks-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    /* Book details */
    .detail-cover {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }

    .detail-title {
        text-align: center;
    }

    .detail-meta {
        text-align: center;
    }

    .detail-desc {
        font-size: 15px;
    }

    .book-detail-grid .auth-btn {
        max-width: 280px;
        margin: 24px auto 0 auto;
    }

    .playlist-header {
        padding: 14px 20px;
        font-size: 16px;
    }

    .chapter-row {
        padding: 12px 20px;
    }

    .chapter-title {
        font-size: 14px;
        gap: 10px;
    }

    /* Sticky player bar for tablet screen */
    .player-bar {
        padding: 16px 20px 80px 20px; /* Space for screen bounds */
        flex-direction: column;
        gap: 16px;
    }

    .player-info {
        width: 100%;
        justify-content: center;
    }

    .player-center-controls {
        width: 100%;
    }

    .player-right-controls {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .has-active-player {
        padding-bottom: 240px !important;
    }

    /* Header & Navigation - Horizontal Mobile Tab bar layout */
    .app-header {
        padding: 12px 16px;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px;
    }
    
    .app-brand {
        font-size: 16px !important;
        gap: 6px;
    }
    
    .app-brand span {
        font-size: 18px !important;
    }

    .app-nav {
        display: flex;
        gap: 8px;
        width: auto !important;
        justify-content: flex-end !important;
    }

    .nav-link {
        font-size: 12px !important;
        font-weight: 700;
        padding: 6px 10px !important;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: all 0.2s ease;
    }
    
    .nav-link.active {
        background: rgba(198, 254, 122, 0.15) !important;
        border-color: rgba(198, 254, 122, 0.4) !important;
        color: #C6FE7A !important;
    }

    /* Compact Sticky player bar for mobile screen */
    .player-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 14px 16px env(safe-area-inset-bottom, 14px) 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: #120626;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.6);
    }

    .player-info {
        width: 100% !important;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }

    .player-cover {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .player-text-title {
        font-size: 14px !important;
        max-width: 220px !important;
    }

    .player-text-chapter {
        font-size: 12px;
        margin-top: 2px;
    }

    .player-center-controls {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .control-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 28px !important;
        width: 100% !important;
    }

    .control-buttons .control-btn {
        display: flex !important; /* Force all control buttons to remain visible on mobile */
        color: #ffffff !important;
        opacity: 0.9;
        padding: 10px; /* Ample touch target */
        font-size: 24px !important; /* Increased icon visibility and size */
    }

    .control-buttons .control-btn:active {
        color: #C6FE7A !important;
        transform: scale(1.15);
    }

    .control-buttons .control-btn.play-pause-btn {
        background: #C6FE7A !important;
        color: #210F46 !important;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(198, 254, 122, 0.35);
    }

    .control-buttons .control-btn.play-pause-btn span {
        color: #210F46 !important;
        font-size: 20px;
    }

    .progress-timeline {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
    }

    .player-right-controls {
        width: 100% !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-top: 2px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }

    .volume-control {
        display: none !important; /* Hide volume control slider on mobile for cleaner UI */
    }

    .speed-select {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Search bar container */
    .search-container {
        max-width: 100%;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    /* Beautiful 2-column layout for product grids on mobile */
    .audiobooks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .book-card {
        border-radius: 12px;
    }

    .book-info {
        padding: 10px;
    }

    /* Mobile detail cover scaling */
    .detail-cover {
        max-width: 180px;
        margin: 0 auto;
        display: block;
        border-radius: 12px;
    }

    /* Auth card responsive design */
    .auth-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .auth-input {
        padding: 12px;
        font-size: 15px;
    }

    .auth-btn {
        padding: 14px;
        font-size: 15px;
        margin-top: 8px;
    }
}

/* Store / downloadable additions */
.product-price,
.product-price * {
    color: #C6FE7A !important;
    font-weight: 700;
    margin: 10px 0;
}

.buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #C6FE7A !important;
    color: #210F46 !important;
    font-weight: 800;
    text-decoration: none !important;
}

.buy-now-btn:hover {
    background: #F4FF6B !important;
    color: #210F46 !important;
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    background: rgba(255,255,255,0.08);
}

.downloadable-files-container {
    margin-top: 24px;
}

.download-file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.download-file-row:hover {
    background: rgba(198, 254, 122, 0.08);
}

/* v1.3.3: stronger cover image handling */
.book-cover,
.continue-cover,
.detail-cover,
.player-cover {
    object-fit: cover;
    background: #1b0b3d;
}
.book-cover-wrap img.book-cover {
    display: block;
    width: 100%;
    height: 100%;
}

/* Reliable CSS-drawn player icons so the play button never disappears on Safari/mobile. */
.control-btn.play-pause-btn .play-icon {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    border-left: 16px solid #210F46 !important;
    margin-left: 4px !important;
}

.control-btn.play-pause-btn .pause-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 22px !important;
    height: 22px !important;
}

.control-btn.play-pause-btn .pause-icon span {
    display: block !important;
    width: 6px !important;
    height: 20px !important;
    background: #210F46 !important;
    border-radius: 2px !important;
}

/* v1.3.6 - Reliable play icon in Continue Listening card and WooCommerce account embedding */
.continue-play-btn .play-icon {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 12px solid transparent !important;
    border-bottom: 12px solid transparent !important;
    border-left: 18px solid #210F46 !important;
    margin-left: 5px !important;
}

.woocommerce-account .audiobooks-platform-scope {
    display: block;
    width: 100%;
    margin-top: 24px;
    background: #210F46;
    color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
}

.woocommerce-account .audiobooks-platform-scope #audiobooks-app {
    min-height: 720px;
}

.woocommerce-account .audiobooks-platform-scope .app-header {
    position: relative;
    top: auto;
}
