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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
    color: #ffc107;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 10px;
}

.logo-text .get-part {
    color: #000000;
}

.logo-text .extra-part {
    color: #ff8c00;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: #e9ecef;
}

/* Main Content */
.main-content {
    padding: 15px 0 80px 0;
    min-height: calc(100vh - 180px);
}

/* Container optimization for desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

/* Hero Banner */
.hero-banner {
    margin-bottom: 20px;
}

.hero-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.hero-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Category Icons */
.category-icons {
    margin-bottom: 30px;
}

.category-icon {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 10px;
}

.category-icon:hover {
    transform: translateY(-5px);
}

/* Desktop category icons layout */
@media (min-width: 769px) {
    .category-icons .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .category-icons .col-4 {
        width: 100%;
        max-width: none;
        flex: none;
    }
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
}

.category-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.saints-stories {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
}

.warriors-stories {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}

.gods-stories {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.motivational-stories {
    background: linear-gradient(45deg, #007bff, #6610f2);
}

.historical-stories {
    background: linear-gradient(45deg, #6f42c1, #e83e8c);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Free Stories Banner */
.free-stories-banner {
    margin-bottom: 30px;
}

.banner-content {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-content:hover {
    background: #ffeaa7;
    transform: translateY(-2px);
}

.banner-content i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-right: 10px;
}

.banner-content span {
    font-weight: 600;
    color: #856404;
}

/* Featured Section */
.featured-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #ffc107;
    padding-left: 15px;
}

/* Audiobook Cards */
.audiobook-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.audiobook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.audiobook-card.small .book-image {
    aspect-ratio: 1;
    height: auto;
}

.book-image {
    position: relative;
    aspect-ratio: 1;
    height: auto;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audiobook-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 2rem;
    background: #ffc107;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    text-align: center;
}

.lock-overlay:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.05);
}

.lock-overlay i {
    color: #ffc107;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.audiobook-card.small .lock-overlay i {
    font-size: 1.8rem;
}

.audiobook-card.small .lock-text {
    font-size: 0.8rem;
}

.book-info {
    padding: 12px;
}

.book-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
}

.book-category {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
}

/* Category Section */
.category-section {
    margin-bottom: 25px;
}

.audiobook-slider {
    overflow-x: auto;
    padding-bottom: 10px;
}

.audiobook-slider .row {
    flex-wrap: nowrap;
}

.audiobook-slider .col-4 {
    min-width: 150px;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 12px 0;
    z-index: 1000;
    border-top: 1px solid #e9ecef;
}

.player-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.player-info {
    margin-right: 15px;
}

.player-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: #333;
}

.player-episode {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

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

.player-controls .btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px;
}

.nav-item:hover,
.nav-item.active {
    color: #ffc107;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-icon-large {
    display: flex;
    justify-content: center;
}

.category-icon-large .icon-circle {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.category-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.category-icon-large .icon-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 30px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Book Description */
.book-description {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-top: 5px;
}

/* Hide scrollbars for images */
.book-image img,
.hero-image img,
.player-image img,
.category-icon img,
.audiobook-card img {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.book-image img::-webkit-scrollbar,
.hero-image img::-webkit-scrollbar,
.player-image img::-webkit-scrollbar,
.category-icon img::-webkit-scrollbar,
.audiobook-card img::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

/* Hide scrollbars for all images globally */
img {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

img::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbars for audiobook sliders */
.audiobook-slider,
.audiobook-slider .row,
.audiobook-slider .col-6,
.audiobook-slider .col-md-4,
.audiobook-slider .col-lg-3,
.featured-section,
.category-section {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.audiobook-slider::-webkit-scrollbar,
.audiobook-slider .row::-webkit-scrollbar,
.audiobook-slider .col-6::-webkit-scrollbar,
.audiobook-slider .col-md-4::-webkit-scrollbar,
.audiobook-slider .col-lg-3::-webkit-scrollbar,
.featured-section::-webkit-scrollbar,
.category-section::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

/* Hide scrollbars for any horizontal scrolling containers */
.main-content .container,
.main-content .row,
.main-content .col-* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-content .container::-webkit-scrollbar,
.main-content .row::-webkit-scrollbar,
.main-content .col-*::-webkit-scrollbar {
    display: none;
}

.book-episodes {
    font-size: 0.8rem;
    color: #28a745;
    margin: 5px 0;
}

/* Favorite and Download Overlays */
.favorite-overlay,
.download-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
}

.favorite-overlay .favorite-icon,
.download-overlay .download-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.offline-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 3;
}

/* Profile Stats */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 5px;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Settings Section */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 500;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

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

input:checked + .slider {
    background-color: #ffc107;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #444444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: #2d2d2d;
    --nav-bg: #1a1a1a;
    --player-bg: #333333;
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .logo-text .get-part {
    color: #ffffff;
}

[data-theme="dark"] .logo-text .extra-part {
    color: #ff8c00;
}

[data-theme="dark"] .main-content {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .audiobook-card {
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .audiobook-card:hover {
    box-shadow: 0 10px 25px var(--shadow-color);
}

[data-theme="dark"] .book-title {
    color: var(--text-primary);
}

[data-theme="dark"] .book-category {
    color: var(--text-secondary);
}

[data-theme="dark"] .book-description {
    color: var(--text-muted);
}

[data-theme="dark"] .category-card {
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .category-name {
    color: var(--text-primary);
}

[data-theme="dark"] .category-count {
    color: var(--text-muted);
}

[data-theme="dark"] .bottom-nav {
    background-color: var(--nav-bg);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-item {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-item.active {
    color: #ffc107;
}

[data-theme="dark"] .mini-player {
    background-color: var(--player-bg);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .player-title {
    color: var(--text-primary);
}

[data-theme="dark"] .player-episode {
    color: var(--text-secondary);
}

[data-theme="dark"] .section-card {
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .stats-card {
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .setting-item {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .setting-label {
    color: var(--text-primary);
}

[data-theme="dark"] .search-box {
    background-color: var(--bg-card);
    box-shadow: 0 5px 20px var(--shadow-color);
}

[data-theme="dark"] .search-input {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .search-input:focus {
    background-color: var(--bg-secondary);
    border-color: #ffc107;
    color: var(--text-primary);
}

[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .filter-card {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .empty-state {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-state i {
    color: var(--text-muted);
}

[data-theme="dark"] .storage-info {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .storage-bar {
    background-color: var(--border-color);
}

[data-theme="dark"] .page-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .page-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .category-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .favorites-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .downloads-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .profile-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

/* Dark mode transition */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive Design */
@media (min-width: 769px) {
    /* Desktop Styles */
    .main-content {
        padding: 30px 0 100px 0;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1.2rem;
    }
    
    .icon-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-category {
        font-size: 0.85rem;
    }
    
    .book-info {
        padding: 15px;
    }
    
    /* Desktop Grid Layout */
    .featured-section .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .featured-section .col-6 {
        width: 100%;
        max-width: none;
        flex: none;
    }
    
    .category-section .audiobook-slider .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .category-section .audiobook-slider .col-4 {
        width: 100%;
        max-width: none;
        flex: none;
        min-width: auto;
    }
    
    /* Desktop Card Sizes */
    .audiobook-card .book-image {
        aspect-ratio: 1;
        height: auto;
    }
    
    .audiobook-card.small .book-image {
        aspect-ratio: 1;
        height: auto;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px 0 70px 0;
    }
    
    .hero-image img {
        height: 150px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .book-image {
        aspect-ratio: 1;
        height: auto;
    }
    
    .audiobook-card.small .book-image {
        aspect-ratio: 1;
        height: auto;
    }
    
    .book-title {
        font-size: 0.9rem;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero-overlay h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
} 

/* Full Screen Music Player */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-player.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fullscreen-player-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
    z-index: 10001;
}

.fullscreen-player-header .back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-player-header .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-player-header .title {
    font-size: 18px;
    font-weight: 600;
}

.fullscreen-player-header .more-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-player-header .more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* More options dropdown */
.fullscreen-player-header .more-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.fullscreen-player-header .more-dropdown.show {
    display: block;
}

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

.fullscreen-player-header .more-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.fullscreen-player-header .more-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fullscreen-player-header .more-dropdown .dropdown-item i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 16px;
}

.fullscreen-player-header .more-dropdown .dropdown-item.favorite.active {
    color: #ff6b6b;
}

.fullscreen-player-header .more-dropdown .dropdown-item.download.active {
    color: #4ecdc4;
}

.fullscreen-player-header .more-dropdown .dropdown-item.sleep.active {
    color: #45b7d1;
}

/* Sleep timer indicator */
.sleep-timer-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10003;
    display: none;
    animation: fadeIn 0.3s ease;
}

.sleep-timer-indicator.show {
    display: block;
}

/* Share modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10004;
    display: none;
    justify-content: center;
    align-items: center;
}

.share-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.share-modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.share-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 24px;
    margin-bottom: 8px;
}

.share-option .share-name {
    font-size: 12px;
    font-weight: 500;
}

.share-option.whatsapp i {
    color: #25d366;
}

.share-option.facebook i {
    color: #1877f2;
}

.share-option.twitter i {
    color: #1da1f2;
}

.share-option.copy i {
    color: #6c757d;
}

.share-modal .close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-modal .close-btn:hover {
    background: #5a6268;
}

/* Dark mode support for dropdown and modals */
[data-theme="dark"] .share-modal-content {
    background: #2d2d2d;
    color: white;
}

[data-theme="dark"] .share-modal-content h3 {
    color: white;
}

[data-theme="dark"] .share-option {
    color: white;
}

[data-theme="dark"] .share-option:hover {
    background: #3d3d3d;
}

/* Queue Modal */
.queue-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10007;
    display: none;
    justify-content: center;
    align-items: center;
}

.queue-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.queue-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.queue-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.queue-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-queue-modal {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-queue-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.queue-info {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.queue-book-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.queue-book-poster {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.queue-book-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.queue-book-details p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.queue-controls {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.queue-control-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.queue-control-btn:hover {
    background: #f8f9fa;
    border-color: #ffc107;
    transform: translateY(-1px);
}

.queue-control-btn.active {
    background: #ffc107;
    color: #333;
    border-color: #ffc107;
}

.queue-episodes {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.queue-episode-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.queue-episode-item:hover {
    background: #f8f9fa;
}

.queue-episode-item.playing {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.queue-episode-item .episode-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-right: 15px;
}

.queue-episode-item.playing .episode-number {
    background: #ffc107;
    color: #333;
}

.queue-episode-item .episode-info {
    flex: 1;
}

.queue-episode-item .episode-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.queue-episode-item .episode-duration {
    font-size: 12px;
    color: #666;
}

.queue-episode-item .episode-actions {
    display: flex;
    gap: 10px;
}

.queue-episode-action {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.queue-episode-action:hover {
    background: #f0f0f0;
    color: #333;
}

/* Dark mode support for queue modal */
[data-theme="dark"] .queue-modal-content {
    background: #2d2d2d;
    color: white;
}

[data-theme="dark"] .queue-modal-header {
    border-bottom-color: #444;
}

[data-theme="dark"] .queue-modal-header h3 {
    color: white;
}

[data-theme="dark"] .queue-info {
    border-bottom-color: #444;
}

[data-theme="dark"] .queue-book-details h4 {
    color: white;
}

[data-theme="dark"] .queue-book-details p {
    color: #ccc;
}

[data-theme="dark"] .queue-controls {
    border-bottom-color: #444;
}

[data-theme="dark"] .queue-control-btn {
    background: #3d3d3d;
    color: white;
    border-color: #555;
}

[data-theme="dark"] .queue-control-btn:hover {
    background: #4d4d4d;
    border-color: #ffc107;
}

[data-theme="dark"] .queue-control-btn.active {
    background: #ffc107;
    color: #2d2d2d;
}

[data-theme="dark"] .queue-episode-item {
    border-bottom-color: #444;
}

[data-theme="dark"] .queue-episode-item:hover {
    background: #3d3d3d;
}

[data-theme="dark"] .queue-episode-item.playing {
    background: #3d2d1a;
    border-left-color: #ffc107;
}

[data-theme="dark"] .queue-episode-item .episode-number {
    background: #555;
    color: #ccc;
}

[data-theme="dark"] .queue-episode-item.playing .episode-number {
    background: #ffc107;
    color: #2d2d2d;
}

[data-theme="dark"] .queue-episode-item .episode-title {
    color: white;
}

[data-theme="dark"] .queue-episode-item .episode-duration {
    color: #ccc;
}

[data-theme="dark"] .queue-episode-action {
    color: #ccc;
}

[data-theme="dark"] .queue-episode-action:hover {
    background: #4d4d4d;
    color: white;
}

.fullscreen-player-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.fullscreen-player-image {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
}

.fullscreen-player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-player-info {
    margin-bottom: 40px;
    color: white;
}

.fullscreen-player-info .book-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fullscreen-player-info .episode-title {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fullscreen-player-progress {
    width: 100%;
    margin-bottom: 30px;
}

.fullscreen-player-progress .progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}

.fullscreen-player-progress .progress-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 2px;
    transition: width 0.1s ease;
}

.fullscreen-player-progress .time-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

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

.fullscreen-player-controls .control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.fullscreen-player-controls .control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-player-controls .play-btn {
    width: 70px;
    height: 70px;
    background: #ffc107;
    color: #333;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}

.fullscreen-player-controls .play-btn:hover {
    background: #ffb300;
    transform: scale(1.05);
}

/* Dark mode support for fullscreen player */
[data-theme="dark"] .fullscreen-player {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .fullscreen-player-controls .play-btn {
    background: #ffc107;
    color: #1a1a1a;
}

/* Mini player click enhancement */
.mini-player {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-player:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive design for fullscreen player */
@media (max-width: 768px) {
    .fullscreen-player-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .fullscreen-player-image {
        width: 250px;
        height: 250px;
    }
    
    .fullscreen-player-info .book-title {
        font-size: 20px;
    }
    
    .fullscreen-player-controls {
        max-width: 280px;
    }
    
    .fullscreen-player-controls .control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .fullscreen-player-controls .play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fullscreen-player-image {
        width: 220px;
        height: 220px;
    }
    
    .fullscreen-player-info .book-title {
        font-size: 18px;
    }
    
    .fullscreen-player-controls .control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .fullscreen-player-controls .play-btn {
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
} 