/* ============================================================
   styles.css - Complete stylesheet for RKD Media Library
   ============================================================ */

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #6d28d9 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
            radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* === Layout === */
.container { max-width: 800px; margin: 0 auto; background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; position: relative; z-index: 1; }
.content { padding: 30px; }

/* === Header === */
header { background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #6d28d9 100%); color: white; padding: 40px 30px; text-align: center; position: relative; overflow: hidden; }
header::before { content: '\1FA88'; position: absolute; font-size: 120px; opacity: 0.1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffd700 0%, #ffb700 25%, #ff8c00 50%, #ffb700 75%, #ffd700 100%); }
header .admin-btn { position: absolute; top: 15px; right: 15px; z-index: 10; }
h1 { font-size: 2.5em; margin-bottom: 10px; position: relative; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
.subtitle { opacity: 0.95; font-size: 1.1em; position: relative; letter-spacing: 0.5px; margin-bottom: 0; }

/* === Controls === */
.controls { display: flex; gap: 15px; margin-bottom: 25px; align-items: stretch; flex-wrap: wrap; }
.controls-row { display: flex; gap: 15px; width: 100%; flex-wrap: wrap; }
.search-bar { flex: 1; min-width: 250px; position: relative; }
.filters-row { display: flex; gap: 15px; width: 100%; flex-wrap: wrap; align-items: center; }
.search-input { width: 100%; padding: 15px 50px 15px 20px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1em; transition: all 0.3s ease; }
.search-input:focus { outline: none; border-color: #3730a3; box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.1); }
.search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #6d28d9; pointer-events: none; }

/* === Filters & Sorts === */
.sort-select, .filter-select { padding: 10px 15px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1em; background: white; cursor: pointer; transition: all 0.3s ease; min-width: 140px; height: 51px; flex: 0 0 auto; width: auto; }
.sort-select:focus, .filter-select:focus { outline: none; border-color: #3730a3; }
.filter-select.active { border-color: #6d28d9; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); color: #3730a3; font-weight: 600; }
.favorite-filter-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 20px; background: white; color: #6b7280; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1em; font-weight: 500; cursor: pointer; transition: all 0.3s ease; height: 51px; white-space: nowrap; }
.favorite-filter-btn:hover { border-color: #ef4444; color: #ef4444; }
.favorite-filter-btn.active { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border-color: #ef4444; color: #ef4444; }
.favorite-filter-btn svg { width: 18px; height: 18px; }
.favorite-filter-btn.active svg { fill: #ef4444; }

/* === View Toggle === */
.view-toggle { display: flex; border: 2px solid #e5e7eb; border-radius: 12px; overflow: hidden; height: 51px; }
.view-btn { padding: 15px 20px; background: white; border: none; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1em; }
.view-btn:first-child { border-right: 1px solid #e5e7eb; }
.view-btn.active { background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%); color: white; }
.view-btn:hover:not(.active) { background: #f3f4f6; }
.view-btn svg { width: 20px; height: 20px; }

/* === Share Button === */
.share-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 20px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; border-radius: 12px; font-size: 1em; font-weight: 500; cursor: pointer; transition: all 0.3s ease; height: 51px; white-space: nowrap; }
.share-btn:hover { background: linear-gradient(135deg, #059669 0%, #047857 100%); transform: scale(1.02); }
.share-btn:active { transform: scale(0.98); }
.share-btn svg { width: 20px; height: 20px; }
.share-btn.copied { background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); }

/* === Toast === */
.share-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(0, 0, 0, 0.9); color: white; padding: 15px 25px; border-radius: 12px; font-size: 0.95em; z-index: 1001; opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.share-toast svg { width: 20px; height: 20px; color: #10b981; }

/* === Active Filters === */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; padding: 0 12px; background: #f5f3ff; border-radius: 10px; align-items: center; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, margin-bottom 0.25s ease; }
.active-filters.show { max-height: 200px; opacity: 1; padding: 12px; margin-bottom: 15px; }
.active-filters-label { font-size: 0.85em; color: #6b7280; margin-right: 5px; }
.active-filter-tag { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); color: white; padding: 5px 10px; border-radius: 20px; font-size: 0.8em; font-weight: 500; }
.active-filter-tag button { background: rgba(255,255,255,0.3); border: none; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: white; font-size: 14px; line-height: 1; }
.active-filter-tag button:hover { background: rgba(255,255,255,0.5); }
.clear-filters-btn { background: none; border: 1px solid #6d28d9; color: #6d28d9; padding: 5px 12px; border-radius: 20px; font-size: 0.8em; cursor: pointer; margin-left: auto; transition: all 0.2s; }
.clear-filters-btn:hover { background: #6d28d9; color: white; }

/* === Results Count === */
.results-count-row { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.results-count { font-size: 0.9em; color: #6b7280; padding: 8px 0; }
.clear-all-filters-btn { background: none; border: 1px solid #ef4444; color: #ef4444; padding: 6px 14px; border-radius: 20px; font-size: 0.85em; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 5px; }
.clear-all-filters-btn:hover { background: #ef4444; color: white; }

/* === Audio List & Items === */
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.audio-list { list-style: none; }
.audio-item { background: linear-gradient(135deg, #fefcf9 0%, #fff9f0 100%); border-radius: 12px; padding: 20px; margin-bottom: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease; border: 2px solid transparent; position: relative; overflow: visible; animation: cardFadeIn 0.22s ease forwards; }
.audio-item:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(55, 48, 163, 0.15); border-color: #ffd700; }
.audio-item.now-playing { border-color: #6d28d9; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); box-shadow: 0 8px 25px rgba(109, 40, 217, 0.2); }
.audio-item h3 { color: #1f2937; margin-bottom: 8px; font-size: 1.2em; display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; line-height: 1.3; padding-right: 160px; }
.audio-item h3 .title-text { flex: 1; min-width: 0; }
.vedabase-chapter { font-size: 0.82em; color: #6d28d9; font-style: italic; margin: -4px 0 8px; opacity: 0.85; }

/* === Now Playing Badge === */
.now-playing-badge { display: none; align-items: center; gap: 6px; background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); color: white; padding: 4px 10px; border-radius: 12px; font-size: 0.75em; font-weight: 600; margin-left: auto; flex-shrink: 0; }
.audio-item.now-playing .now-playing-badge { display: inline-flex; }
.now-playing-badge .eq-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.now-playing-badge .eq-bar { width: 3px; background: white; border-radius: 1px; animation: eq 0.5s ease-in-out infinite; }
.now-playing-badge .eq-bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.now-playing-badge .eq-bar:nth-child(2) { height: 8px; animation-delay: 0.1s; }
.now-playing-badge .eq-bar:nth-child(3) { height: 6px; animation-delay: 0.2s; }
.now-playing-badge .eq-bar:nth-child(4) { height: 10px; animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
.audio-item.paused .now-playing-badge .eq-bar { animation-play-state: paused; }

/* === List View === */
.audio-list.list-view .audio-item { display: flex; align-items: center; gap: 20px; padding: 15px 20px; flex-wrap: wrap; }
.audio-list.list-view .audio-item-content { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; }
.audio-list.list-view .audio-item-info { flex: 1; min-width: 0; }
.audio-list.list-view h3 { font-size: 1.1em; margin-bottom: 5px; }
.audio-list.list-view .metadata { margin-bottom: 0; }
.audio-list.list-view .custom-audio-player,
.audio-list.list-view .youtube-container { display: none; }
.audio-list.list-view .download-btn { white-space: nowrap; }
.audio-list.list-view .tags-container { display: none; }
.audio-list.list-view .coming-soon-placeholder { display: none; }
.audio-list.list-view .vedabase-preview { width: 100%; flex-basis: 100%; }

/* === Type Icon === */
.type-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%); border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(255, 215, 0, 0.3); }
.type-icon svg { width: 24px; height: 24px; color: #3730a3; }

/* === Metadata === */
.metadata { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.85em; color: #6b7280; flex-wrap: wrap; align-items: center; padding-right: 160px; }
.metadata-item { display: inline-flex; align-items: center; gap: 4px; }
.metadata-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.category-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #1e3a8a; padding: 2px 8px; border-radius: 10px; font-size: 0.75em; font-weight: 600; }

/* === Tags === */
.tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); color: #3730a3; padding: 4px 10px; border-radius: 20px; font-size: 0.8em; font-weight: 500; border: 1px solid rgba(55, 48, 163, 0.2); cursor: pointer; transition: all 0.2s ease; }
.tag:hover { background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%); transform: scale(1.05); }
.tag svg { width: 12px; height: 12px; }
.tag.active { background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); color: white; border-color: transparent; }

/* === Action Buttons === */
.button-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.action-buttons { position: absolute; top: 15px; right: 15px; display: flex; gap: 6px; align-items: center; z-index: 5; }
.favorite-btn { display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); color: #9ca3af; padding: 8px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s ease; width: 36px; height: 36px; }
.favorite-btn:hover { background: #fee2e2; color: #ef4444; transform: scale(1.1); }
.favorite-btn.active { background: #fee2e2; color: #ef4444; }
.favorite-btn.active svg { fill: #ef4444; }
.favorite-btn svg { width: 18px; height: 18px; }
.edit-btn { display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); color: #6b7280; padding: 8px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s ease; width: 36px; height: 36px; }
.edit-btn:hover { background: #dbeafe; color: #2563eb; transform: scale(1.1); }
.edit-btn svg { width: 18px; height: 18px; }
.admin-mode .edit-btn { display: inline-flex; }
.download-btn { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%); color: white; padding: 8px; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; width: 36px; height: 36px; }
.download-btn:hover { transform: scale(1.1); }
.download-btn svg { width: 18px; height: 18px; }
.download-btn.disabled { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); cursor: not-allowed; pointer-events: none; }

/* === More Actions Toggle (mobile) === */
.more-actions-btn { display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); color: #9ca3af; padding: 8px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s ease; width: 36px; height: 36px; }
.more-actions-btn:hover { background: #f3f4f6; color: #6b7280; }

/* === Completed Badge === */
.completed-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; padding: 3px 8px; border-radius: 10px; font-size: 0.7em; font-weight: 600; margin-left: 8px; }
.completed-badge svg { width: 12px; height: 12px; }

/* === Coming Soon === */
.coming-soon-badge { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; padding: 4px 10px; border-radius: 12px; font-size: 0.7em; font-weight: 600; margin-left: 10px; }
.coming-soon-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 12px; margin: 15px 0; color: #92400e; text-align: center; }
.coming-soon-placeholder svg { margin-bottom: 10px; opacity: 0.7; }
.coming-soon-placeholder p { font-size: 0.95em; margin: 0; }
.audio-item.coming-soon { opacity: 0.85; }

/* === Vedabase === */
.vedabase-btn { display: inline-flex; align-items: center; justify-content: center; background: #e9c754; color: white; padding: 6px; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; width: 36px; height: 36px; }
.vedabase-btn:hover { background: #d4b344; transform: scale(1.1); }
.vedabase-btn svg, .vedabase-btn img { width: 22px; height: 22px; image-rendering: crisp-edges; }
.vedabase-preview-btn { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); color: white; padding: 8px; border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s ease; width: 36px; height: 36px; }
.vedabase-preview-btn:hover { background: linear-gradient(135deg, #3730a3 0%, #1e3a8a 100%); transform: scale(1.1); }
.vedabase-preview-btn svg { width: 18px; height: 18px; }
.vedabase-preview { width: 100%; border-radius: 12px; overflow: hidden; background: #fffbeb; border: 2px solid #f59e0b; clear: both; max-height: 0; opacity: 0; margin-top: 0; transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease; }
.vedabase-preview.open { max-height: 520px; opacity: 1; margin-top: 15px; }
.vedabase-preview iframe { width: 100%; height: 450px; border: none; display: block; }
.vedabase-preview-loading { padding: 30px; text-align: center; color: #92400e; }
.vedabase-preview-error { padding: 20px; text-align: center; color: #ef4444; background: #fef2f2; }

/* === Series Badge === */
.series-btn { display: inline-flex; align-items: center; gap: 4px; background: rgba(109, 40, 217, 0.08); color: #6d28d9; border: 1px solid rgba(109, 40, 217, 0.2); padding: 4px 10px; border-radius: 20px; font-size: 0.78em; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: 6px; }
.series-btn:hover { background: rgba(109, 40, 217, 0.15); transform: scale(1.02); }
.series-btn svg { flex-shrink: 0; }

/* === Series Modal === */
.series-modal-overlay { display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s; }
.series-modal-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.series-modal { background: white; border-radius: 16px; max-width: 500px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.95) translateY(8px); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.series-modal-overlay.show .series-modal { transform: scale(1) translateY(0); }
.series-modal-header { padding: 18px 22px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.series-modal-header h3 { margin: 0; color: #1e3a8a; display: flex; align-items: center; gap: 10px; font-size: 1.1em; }
.series-modal-close { background: none; border: none; cursor: pointer; color: #6b7280; padding: 8px; border-radius: 8px; transition: all 0.2s; }
.series-modal-close:hover { background: #f3f4f6; color: #1f2937; }
.series-modal-close svg { width: 24px; height: 24px; }
.series-modal-body { padding: 12px; overflow-y: auto; flex: 1; }
.series-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.series-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background 0.15s ease; }
.series-item:hover { background: #f3f4f6; }
.series-item.current { background: rgba(109, 40, 217, 0.08); border-left: 3px solid #6d28d9; }
.series-item.completed { opacity: 0.7; }
.series-number { min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #e5e7eb; color: #6b7280; border-radius: 50%; font-size: 0.72em; font-weight: 700; flex-shrink: 0; }
.series-item.current .series-number { background: #6d28d9; color: white; }
.series-item-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6b7280; }
.series-item-info { flex: 1; min-width: 0; }
.series-item-title { font-size: 0.9em; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.series-item-date { font-size: 0.78em; color: #9ca3af; margin-top: 2px; }
.series-now-playing .eq-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.series-now-playing .eq-bar { width: 2.5px; background: #6d28d9; border-radius: 1px; animation: eq 0.5s ease-in-out infinite; }
.series-now-playing .eq-bar:nth-child(1) { height: 3px; animation-delay: 0s; }
.series-now-playing .eq-bar:nth-child(2) { height: 7px; animation-delay: 0.1s; }
.series-now-playing .eq-bar:nth-child(3) { height: 5px; animation-delay: 0.2s; }
.series-completed-icon { flex-shrink: 0; }

/* === Series Highlight Animation === */
@keyframes seriesHighlight { 0% { box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.5); } 100% { box-shadow: 0 0 0 0 rgba(109, 40, 217, 0); } }
.series-highlight { animation: seriesHighlight 2s ease-out; border-color: #6d28d9; }

/* === Infinite Scroll Sentinel === */
.load-more-sentinel { height: 1px; list-style: none; }

/* === YouTube Container === */
.youtube-container { width: 100%; border-radius: 12px; overflow: hidden; margin: 15px 0; }
.youtube-container iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }
.youtube-placeholder { position: relative; width: 100%; aspect-ratio: 16/9; cursor: pointer; background: #000; display: block; touch-action: manipulation; border: none; padding: 0; -webkit-appearance: none; appearance: none; }
.youtube-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.youtube-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.youtube-play-overlay svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); transition: transform 0.15s; }
.youtube-placeholder:hover .youtube-play-overlay svg,
.youtube-placeholder:active .youtube-play-overlay svg { transform: scale(1.1); }

/* === Hidden Audio Element === */
.audio-player { display: none; }

/* === Custom Audio Player === */
.custom-audio-player { display: flex; flex-direction: column; gap: 12px; background: linear-gradient(165deg, #1e3a8a 0%, #3730a3 55%, #6d28d9 100%); padding: 18px 20px; border-radius: 14px; margin: 15px 0; overflow: visible; position: relative; border: 1px solid rgba(255,255,255,0.08); border-top-color: rgba(255,200,50,0.35); box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05); }
.player-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; overflow: visible; }
.transport-controls { display: flex; align-items: center; gap: 12px; }
.player-secondary-controls { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; position: relative; overflow: visible; }
.player-action-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.player-btn { width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: row; transition: background 0.2s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease; }
.player-btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.08); }
.player-btn:active { transform: scale(0.9); transition: transform 0.1s ease; }
.player-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.prev-btn, .next-btn { flex-direction: column; gap: 2px; width: 44px; height: 44px; }
.prev-btn svg, .next-btn svg { width: 17px; height: 17px; }
.seek-label { font-size: 0.58em; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; line-height: 1; }
.play-btn { width: 58px; height: 58px; background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #1e3a8a; box-shadow: 0 4px 16px rgba(255,140,0,0.4); }
.play-btn:hover { background: linear-gradient(135deg, #ffe44d 0%, #ffaa33 100%); box-shadow: 0 6px 22px rgba(255,215,0,0.5); }
.play-btn svg { width: 26px; height: 26px; }

/* === Player Progress Section === */
.player-progress-section { display: flex; align-items: center; gap: 10px; }
.player-progress-section .current-time,
.player-progress-section .duration { font-size: 0.76em; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 34px; text-align: center; }
.player-progress-section .duration { text-align: right; }
.player-progress-section .progress-bar { flex: 1; min-width: 0; }

/* === Progress Bar === */
.progress-container { flex: 1; min-width: 100px; display: flex; flex-direction: column; gap: 8px; }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-bar { width: 100%; height: 28px; background: rgba(255, 255, 255, 0.08); border-radius: 6px; cursor: pointer; position: relative; overflow: hidden; transition: background 0.2s ease; }
.progress-bar:hover { background: rgba(255, 255, 255, 0.13); }
.waveform-container { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 4px 2px; gap: 0; }
.waveform-bar { flex: 1; margin: 0 0.5px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; min-width: 2px; transition: background 0.1s ease; }
.waveform-bar.played { background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%); }
.waveform-bar.active { background: white; box-shadow: 0 0 4px rgba(255, 255, 255, 0.8); }
.progress-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; pointer-events: none; z-index: 1; }
.progress-thumb { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); border-radius: 50%; box-shadow: 0 2px 8px rgba(255, 140, 0, 0.5); opacity: 0; transition: opacity 0.2s, box-shadow 0.2s; z-index: 2; pointer-events: none; }
.progress-bar:hover .progress-thumb, .progress-bar.dragging .progress-thumb { opacity: 1; box-shadow: 0 2px 12px rgba(255, 140, 0, 0.8); }
.buffered-bar { position: absolute; top: 0; left: 0; height: 100%; background: rgba(255, 255, 255, 0.12); border-radius: 6px; pointer-events: none; z-index: 0; }


/* === Speed Control === */
.speed-control { position: relative; z-index: 10; flex-shrink: 0; }
.player-spacer { min-width: 42px; flex-shrink: 0; }
.speed-btn { background: rgba(255, 255, 255, 0.15); color: white; border: none; padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.8em; font-weight: 600; transition: all 0.2s ease; min-width: 42px; }
.speed-btn:hover { background: rgba(255, 255, 255, 0.25); }
.speed-menu { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) scale(0.95); background: white; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); padding: 8px 0; margin-bottom: 8px; z-index: 500; min-width: 80px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.15s; transform-origin: bottom center; }
.speed-menu.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) scale(1); }
.audio-item:has(.speed-menu.show) { z-index: 100; }
.speed-option { display: block; width: 100%; padding: 10px 20px; border: none; background: none; cursor: pointer; font-size: 0.9em; color: #1f2937; text-align: center; transition: background 0.15s; }
.speed-option:hover { background: #f3f4f6; }
.speed-option.active { background: linear-gradient(135deg, #6d28d9 0%, #3730a3 100%); color: white; }

/* === Resume & Skip === */
.resume-indicator { display: none; align-items: center; gap: 5px; font-size: 0.8em; color: rgba(255, 255, 255, 0.75); align-self: flex-end; justify-content: flex-end; }
.resume-indicator.show { display: inline-flex; }
.resume-indicator svg { width: 14px; height: 14px; }
.restart-btn { background: rgba(255, 255, 255, 0.15); color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8em; font-weight: 500; transition: all 0.2s ease; display: none; align-items: center; gap: 4px; }
.restart-btn.show { display: inline-flex; }
.restart-btn:hover { background: rgba(255, 255, 255, 0.25); }
.restart-btn svg { width: 14px; height: 14px; }
.skip-start-btn { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #1e3a8a; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8em; font-weight: 600; transition: all 0.2s ease; display: none; align-items: center; gap: 4px; white-space: nowrap; }
.skip-start-btn.show { display: inline-flex; }
.skip-start-btn:hover { background: linear-gradient(135deg, #ffe44d 0%, #ffaa33 100%); transform: scale(1.03); }
.skip-start-btn:active { transform: scale(0.97); }
.skip-start-btn svg { width: 14px; height: 14px; }
.yt-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.yt-resume-btn { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85em; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; touch-action: manipulation; }
.yt-resume-btn:hover { background: linear-gradient(135deg, #34d399 0%, #10b981 100%); transform: scale(1.03); }
.yt-resume-btn svg { width: 14px; height: 14px; }
.yt-skip-start-btn { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #1e3a8a; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85em; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.yt-skip-start-btn:hover { background: linear-gradient(135deg, #ffe44d 0%, #ffaa33 100%); transform: scale(1.03); }
.resume-badge { display: none; align-items: center; gap: 5px; font-size: 0.8em; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12); border-radius: 6px; padding: 6px 12px; font-weight: 500; }
.resume-badge.show { display: inline-flex; }
.resume-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.yt-restart-link { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85em; font-weight: 600; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; touch-action: manipulation; }
.yt-restart-link:hover { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); transform: scale(1.03); }

/* === Sticky Player === */
.sticky-player { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%); color: white; z-index: 999; transform: translateY(100%); transition: transform 0.3s ease; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); }
.sticky-player.show { transform: translateY(0); }
.sticky-player.show ~ .sticky-player-spacer, body:has(.sticky-player.show) .content { padding-bottom: 80px; transition: padding-bottom 0.3s ease; }
.sticky-player-progress { height: 4px; background: rgba(255, 255, 255, 0.1); cursor: pointer; position: relative; }
.sticky-player-progress-fill { height: 100%; background: linear-gradient(90deg, #ffd700 0%, #ff8c00 100%); width: 0%; transition: width 0.1s linear; }
.sticky-player-content { display: flex; align-items: center; padding: 10px 15px; gap: 12px; overflow: visible; }
.sticky-player-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; overflow: hidden; }
.sticky-player-type { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border-radius: 8px; flex-shrink: 0; }
.sticky-player-type svg { width: 20px; height: 20px; }
.sticky-player-text { min-width: 0; }
.sticky-player-title { font-weight: 600; font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-player-time { font-size: 0.75em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.sticky-player-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sticky-player-btn { width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.15); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.sticky-player-btn:hover { background: rgba(255, 255, 255, 0.25); }
.sticky-play-btn { width: 44px; height: 44px; background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); color: #1e3a8a; }
.sticky-play-btn:hover { background: linear-gradient(135deg, #ffe44d 0%, #ffaa33 100%); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
.sticky-play-btn svg { width: 22px; height: 22px; }
.sticky-close-btn:hover { background: rgba(239, 68, 68, 0.8); }

/* === Keyboard Hint === */
.keyboard-hint { position: fixed; bottom: 20px; right: 20px; background: rgba(0, 0, 0, 0.85); color: white; padding: 12px 18px; border-radius: 10px; font-size: 0.85em; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 1000; }
.keyboard-hint.show { opacity: 1; }
.keyboard-hint kbd { background: rgba(255, 255, 255, 0.2); padding: 3px 8px; border-radius: 4px; margin: 0 3px; }
/* === Back to Top Button === */
.back-to-top-btn { position: fixed; bottom: 90px; right: 20px; z-index: 1000; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(109,40,217,0.4); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.back-to-top-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top-btn:hover { background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(109,40,217,0.5); }

/* === Admin Panel === */
.admin-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.9em; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.admin-btn:hover { background: rgba(255,255,255,0.2); }
.admin-btn.active { background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-color: transparent; }
.admin-btn svg { width: 16px; height: 16px; }
.admin-panel { background: white; border-radius: 12px; padding: 0 25px; max-height: 0; overflow: hidden; opacity: 0; margin-bottom: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: max-height 0.4s ease, opacity 0.3s ease, padding-top 0.4s ease, padding-bottom 0.4s ease, margin-bottom 0.4s ease; }
.admin-panel.show { padding: 25px; max-height: 3000px; opacity: 1; margin-bottom: 20px; }
.admin-panel h3 { margin: 0 0 20px 0; color: #1e3a8a; display: flex; align-items: center; gap: 10px; }
.admin-panel h3 svg { width: 24px; height: 24px; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.admin-form .form-group { display: flex; flex-direction: column; gap: 5px; }
.admin-form .form-group.full-width { grid-column: 1 / -1; }
.admin-form label { font-weight: 600; color: #374151; font-size: 0.9em; }
.admin-form input, .admin-form select, .admin-form textarea { padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1em; transition: border-color 0.2s; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: #6d28d9; }
.admin-form textarea { resize: vertical; min-height: 60px; }
.admin-form .btn-row { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 10px; }
.admin-form .submit-btn { background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%); color: white; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.2s; }
.admin-form .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3); }
.admin-form .submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.admin-form .cancel-btn { background: #f3f4f6; color: #374151; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.2s; }
.admin-form .cancel-btn:hover { background: #e5e7eb; }
.admin-login { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.admin-login input { flex: 1; padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; }
.admin-login button { padding: 12px 20px; background: linear-gradient(135deg, #3730a3 0%, #6d28d9 100%); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.admin-status { padding: 0 12px; border-radius: 8px; max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease, margin-top 0.3s ease; }
.admin-status.success { max-height: 100px; background: #d1fae5; color: #065f46; opacity: 1; padding: 12px; margin-top: 15px; }
.admin-status.error { max-height: 100px; background: #fee2e2; color: #991b1b; opacity: 1; padding: 12px; margin-top: 15px; }
.admin-status.loading { max-height: 100px; background: #e0e7ff; color: #3730a3; opacity: 1; padding: 12px; margin-top: 15px; }

/* === Edit Modal === */
.edit-modal-overlay { display: flex; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s; }
.edit-modal-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.edit-modal { background: white; border-radius: 16px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); transform: scale(0.95) translateY(8px); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.edit-modal-overlay.show .edit-modal { transform: scale(1) translateY(0); }
.edit-modal-header { padding: 20px 25px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.edit-modal-header h3 { margin: 0; color: #1e3a8a; display: flex; align-items: center; gap: 10px; }
.edit-modal-header h3 svg { width: 24px; height: 24px; }
.edit-modal-close { background: none; border: none; cursor: pointer; color: #6b7280; padding: 8px; border-radius: 8px; transition: all 0.2s; }
.edit-modal-close:hover { background: #f3f4f6; color: #1f2937; }
.edit-modal-close svg { width: 24px; height: 24px; }
.edit-modal-body { padding: 25px; }
.edit-row-info { background: #f3f4f6; padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9em; color: #6b7280; }
.edit-row-info strong { color: #1f2937; }
.edit-modal-footer { padding: 20px 25px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 10px; }

/* === Error & Loading States === */
.error-state { text-align: center; padding: 40px 20px; }
.error-state h3 { color: #ef4444; margin-bottom: 10px; }

/* === Mobile Responsive === */
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { border-radius: 12px; }
    header { padding: 30px 20px; }
    h1 { font-size: 1.8em; }
    .subtitle { font-size: 1em; }
    .content { padding: 20px; }
    .filters-row { flex-wrap: wrap; }
    .sort-select, .filter-select { flex: 1 1 auto; min-width: 120px; }
    .view-toggle { width: 100%; }
    .view-btn { flex: 1; padding: 12px 15px; }
    .share-btn { width: 100%; }
    .audio-item h3 { font-size: 1.1em; padding-right: 55px; }
    .audio-item { padding-top: 20px; }
    .action-buttons { top: 12px; right: 12px; }
    .metadata { flex-direction: row; flex-wrap: wrap; gap: 6px; padding-right: 55px; }
    /* Collapsible action buttons on mobile */
    .more-actions-btn { display: inline-flex; order: 99; }
    .action-buttons:not(.expanded) > :not(.more-actions-btn) { display: none !important; }
    .action-buttons.expanded { background: white; padding: 6px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); z-index: 10; }
    .action-buttons.expanded .more-actions-btn { background: #fee2e2; color: #ef4444; }
    .audio-list.list-view .audio-item { display: block; padding: 12px; position: relative; }
    .audio-list.list-view .audio-item-content { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; width: calc(100% - 55px); }
    .audio-list.list-view .audio-item-info { flex: 1; min-width: 0; }
    .audio-list.list-view .audio-item-info h3 { font-size: 0.95em; margin-bottom: 2px; display: block; padding-right: 0; }
    .audio-list.list-view .audio-item-info h3 .title-text { display: block; word-wrap: break-word; overflow-wrap: break-word; }
    .audio-list.list-view .audio-item-info .metadata { display: none; }
    .audio-list.list-view .type-icon { width: 32px; height: 32px; flex-shrink: 0; }
    .audio-list.list-view .type-icon svg { width: 18px; height: 18px; }
    .audio-list.list-view .action-buttons { position: absolute; top: 12px; right: 12px; }
    .audio-list.list-view .vedabase-preview { width: 100%; margin-top: 10px; }
    .player-controls { flex-wrap: nowrap; gap: 8px; }
    .player-secondary-controls { gap: 8px; }
    .play-btn { width: 60px; height: 60px; }
    .play-btn svg { width: 28px; height: 28px; }
    .prev-btn, .next-btn { width: 48px; height: 48px; }
    .player-progress-section .current-time, .player-progress-section .duration { font-size: 0.72em; min-width: 30px; }
    .progress-bar { height: 36px; border-radius: 8px; }
    .progress-thumb { opacity: 1; width: 16px; height: 16px; }
    .speed-menu { bottom: auto; top: 100%; margin-top: 8px; margin-bottom: 0; left: auto; right: 0; transform: scale(0.95); transform-origin: top right; }
    .speed-menu.show { transform: scale(1); }
    .speed-btn { min-height: 44px; padding: 10px 16px; }
    .speed-option { padding: 12px 24px; min-height: 44px; }
    .resume-indicator { display: none !important; }
    .player-action-row { gap: 6px; }
    .restart-btn { padding: 8px 14px; font-size: 0.85em; min-height: 36px; }
    .skip-start-btn { padding: 8px 14px; font-size: 0.85em; min-height: 36px; }
    .resume-badge { font-size: 0.75em; padding: 5px 10px; }
    .tags-container { gap: 5px; }
    .tag { font-size: 0.75em; padding: 3px 8px; }
    .series-btn { font-size: 0.72em; padding: 3px 8px; }
    .series-modal { max-width: 100%; max-height: 85vh; border-radius: 12px; }
    .series-modal-header { padding: 15px 18px; }
    .series-modal-body { padding: 8px; }
    .keyboard-hint { display: none; }
    .sticky-player-content { padding: 8px 10px; gap: 6px; overflow: visible; }
    .sticky-player-info { gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
    .sticky-player-type { display: none; }
    .sticky-player-text { min-width: 0; }
    .sticky-player-title { font-size: 0.8em; }
    .sticky-player-time { font-size: 0.7em; }
    .sticky-player-controls { gap: 4px; flex-shrink: 0; }
    .sticky-player-btn { width: 34px; height: 34px; flex-shrink: 0; }
    .sticky-play-btn { width: 40px; height: 40px; }
    .sticky-player-btn svg { width: 16px; height: 16px; }
    #stickyPrevBtn, #stickyNextBtn { display: none; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.5em; }
    .subtitle { font-size: 0.9em; }
    .content { padding: 15px; }
    .controls, .controls-row, .filters-row { gap: 10px; }
    .search-input { padding: 12px 45px 12px 15px; font-size: 16px; }
    .sort-select, .filter-select { font-size: 16px; }
    .audio-item { padding: 15px; }
    .audio-item h3 { font-size: 1em; }
    .metadata { font-size: 0.85em; }
    .category-badge { font-size: 0.8em; padding: 4px 10px; }
    .custom-audio-player { flex-direction: column; gap: 10px; padding: 15px; }
    .player-controls { justify-content: space-between; gap: 8px; }
    .player-secondary-controls { gap: 8px; justify-content: center; }
    .player-action-row { justify-content: center; gap: 6px; }
    .player-btn { width: 44px; height: 44px; }
    .play-btn { width: 56px; height: 56px; }
    .play-btn svg { width: 28px; height: 28px; }
    .admin-form { grid-template-columns: 1fr; }
    .edit-modal { max-height: 85vh; margin: 10px; }
}

/* === Touch Device Overrides === */
@media (hover: none) and (pointer: coarse) {
    .audio-item { transform: none !important; transition: none !important; animation: none !important; }
    .audio-item:hover { transform: none !important; box-shadow: none !important; }
    .tag:hover { transform: none !important; }
    .download-btn:hover { transform: none !important; }
    .favorite-btn:hover { transform: none !important; }
    .edit-btn:hover { transform: none !important; }
    .vedabase-btn:hover { transform: none !important; }
    .vedabase-preview-btn:hover { transform: none !important; }
    .series-btn:hover { transform: none !important; }
    .share-btn:hover { transform: none !important; }
    .more-actions-btn:hover { transform: none !important; }
    .player-btn:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.35); transition: transform 0.1s ease; }
    .play-btn:active { transform: scale(0.92); background: linear-gradient(135deg, #e6c200 0%, #e67d00 100%); transition: transform 0.1s ease; }
    .audio-list { -webkit-overflow-scrolling: touch; }
    .content { -webkit-overflow-scrolling: touch; }
}

@media (hover: hover) and (pointer: fine) {
    .player-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.05); }
    .play-btn:hover { background: linear-gradient(135deg, #ffe44d 0%, #ffaa33 100%); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
}