:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a26;
    --bg-card: #16161f;
    --bg-elevated: #1e1e2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --accent-primary: #a855f7;
    --accent-secondary: #6366f1;
    --accent-tertiary: #ec4899;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 1) 100%);
    --glass-bg: rgba(22, 22, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-bengali: 'ReadingFont', 'BanglaFont', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    --font-english: 'ReadingFont', 'EnglishFont', system-ui, -apple-system, sans-serif;
    --font-reading: 'ReadingFont', 'BanglaFont', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f1f5;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="sepia"] {
    --bg-primary: #f5f0e6;
    --bg-secondary: #ebe4d6;
    --bg-tertiary: #e0d7c7;
    --bg-card: #f0e9db;
    --bg-elevated: #f5f0e6;
    --text-primary: #3c3020;
    --text-secondary: #5a4a38;
    --text-muted: #7a6a58;
    --border-color: rgba(60, 48, 32, 0.12);
    --border-light: rgba(60, 48, 32, 0.15);
    --accent-primary: #8b6914;
    --accent-secondary: #a67c1a;
    --glass-bg: rgba(245, 240, 230, 0.9);
    --glass-border: rgba(60, 48, 32, 0.15);
}

[data-theme="dark-sepia"] {
    --bg-primary: #1c1814;
    --bg-secondary: #252018;
    --bg-tertiary: #2e281e;
    --bg-card: #221e16;
    --bg-elevated: #2a2418;
    --text-primary: #f5f0e6;
    --text-secondary: #c5b8a0;
    --text-muted: #8a7a60;
    --accent-primary: #d4a556;
    --accent-secondary: #b8924a;
}

@font-face {
    font-family: 'BanglaFont';
    src: url('assets/Bangla_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0980-09FF;
}

@font-face {
    font-family: 'EnglishFont';
    src: url('assets/English_font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ReadingFont';
    src: url('assets/reading_font.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00FF, U+0100-017F, U+0180-024F;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-bengali);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100vw;
}

button, input, select, textarea, .pill, .toolbar-btn, .nav-action-btn, .size-btn, .mode-btn, .favorite-btn, .search-bar button, .global-search-bar button, .suggestion-card, .admin-story-actions button, .admin-song-actions button {
    font-family: var(--font-reading) !important;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.library-view {
    overflow-x: hidden;
    max-width: 100vw;
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

::selection {
    background: var(--accent-primary);
    color: white;
}

.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ambient-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    animation: ambientFloat 12s linear infinite;
}

@keyframes ambientFloat {
    0% { 
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { 
        opacity: 0.6;
    }
    90% { 
        opacity: 0.6;
    }
    100% { 
        transform: translateY(-100vh) translateX(var(--tx, 0px));
        opacity: 0;
    }
}

.global-click-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #050508 0%, #0a0a12 50%, #0d0815 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.2) rotate(3deg);
    pointer-events: none;
}

.splash-aurora {
    position: absolute;
    inset: 0;
    background: 
        conic-gradient(from 180deg at 50% 50%, 
            rgba(168, 85, 247, 0) 0deg,
            rgba(168, 85, 247, 0.1) 60deg,
            rgba(99, 102, 241, 0.15) 120deg,
            rgba(236, 72, 153, 0.1) 180deg,
            rgba(168, 85, 247, 0.12) 240deg,
            rgba(99, 102, 241, 0.08) 300deg,
            rgba(168, 85, 247, 0) 360deg);
    animation: auroraRotate 15s linear infinite;
    filter: blur(60px);
}

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

.splash-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: particleFloatUp 6s linear infinite;
    filter: blur(0.5px);
    opacity: 0.8;
}

@keyframes particleFloatUp {
    0% { 
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { 
        opacity: 0.8;
    }
    90% { 
        opacity: 0.8;
    }
    100% { 
        transform: translateY(-100vh) translateX(var(--tx, 0px));
        opacity: 0;
    }
}

.click-particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.click-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 8px var(--accent-primary);
}

@keyframes clickBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), var(--vy)) scale(0);
        opacity: 0;
    }
}

.splash-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: splashReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

@keyframes splashReveal {
    from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.splash-logo-container {
    position: relative;
    width: clamp(120px, 30vw, 160px);
    height: clamp(120px, 30vw, 160px);
}

.splash-logo-clean {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logoPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.splash-title-clean {
    font-family: 'EnglishFont', var(--font-english);
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleGlow 3s ease-in-out infinite;
    margin: 0;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

@keyframes titleGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.splash-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin: -0.5rem 0 1rem 0;
    border-radius: 1px;
    animation: dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {
    0%, 100% { opacity: 0.5; width: 60px; }
    50% { opacity: 1; width: 80px; }
}

.splash-byline {
    font-family: 'ReadingFont', var(--font-english);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin: 0;
    font-weight: 500;
    animation: bylineFade 3s ease-in-out infinite;
}

@keyframes bylineFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.splash-tap-text {
    font-family: 'ReadingFont', var(--font-english);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin: 0;
    animation: tapPulse 2s ease-in-out infinite;
}

@keyframes tapPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-screen::before,
    .splash-screen::after {
        animation: none;
    }
    
    .splash-content {
        animation: none;
        opacity: 1;
    }
    
    .splash-logo-wrapper::before {
        animation: none;
        opacity: 0.5;
    }
    
    .splash-logo {
        animation: none;
    }
    
    .splash-ring,
    .splash-ring.ring-2 {
        animation: none;
    }
    
    .splash-title {
        animation: none;
        background-position: 0% 50%;
    }
    
    .splash-loader::before,
    .loader-bar {
        animation: none;
        transform: translateX(0);
        background-position: 0% 50%;
    }
    
    .splash-tap,
    .splash-tap::before {
        animation: none;
        opacity: 1;
    }
}

.offline-indicator {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    display: none;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.offline-indicator.show {
    display: flex;
}

.offline-indicator.online {
    border-color: var(--accent-success);
}

.offline-indicator.offline {
    border-color: var(--accent-warning);
}

.offline-indicator i {
    font-size: 1rem;
}

.offline-indicator.online i {
    color: var(--accent-success);
}

.offline-indicator.offline i {
    color: var(--accent-warning);
}

.offline-indicator-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: notificationSlide 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    max-width: 280px;
}

@keyframes notificationSlide {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.notification.hide {
    animation: notificationHide 0.3s ease forwards;
}

@keyframes notificationHide {
    to { opacity: 0; transform: translateX(100%); }
}

.notification i {
    font-size: 1rem;
    flex-shrink: 0;
}

.notification.success i { color: var(--accent-success); }
.notification.error i { color: var(--accent-danger); }
.notification.warning i { color: var(--accent-warning); }
.notification.info i { color: var(--accent-primary); }

.notification-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.pwa-install-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 9998;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pwa-install-popup.show {
    transform: translateX(-50%) translateY(0);
}

.pwa-install-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
}

.pwa-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.pwa-close-btn:hover {
    background: var(--accent-danger);
    color: white;
}

.pwa-icon img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
}

.pwa-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pwa-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pwa-install-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 1rem 2rem;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 2rem;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: scale(1.02);
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.nav-title {
    font-family: var(--font-english);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
}

.nav-music-btn, .nav-play-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.nav-music-btn:hover, .nav-play-btn:hover {
    color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.1);
}

.nav-play-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
}

.nav-play-btn:hover {
    color: white;
    transform: scale(1.1);
}

.nav-play-btn.playing {
    animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
}

.nav-btn-text {
    display: none;
}

.nav-progress {
    display: none !important;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

body.reader-mode .nav-progress {
    display: none;
}

body.reader-mode .nav-progress.visible {
    display: flex !important;
}

.progress-track {
    width: 80px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 35px;
}

.nav-home-only {
    display: flex;
}

.nav-reader-only {
    display: none;
}

body.reader-mode .nav-home-only {
    display: none;
}

body.reader-mode .nav-reader-only {
    display: flex;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.nav-action-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.nav-action-btn {
    position: relative;
}

.offline-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.offline-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.offline-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.offline-stat-card i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.offline-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.offline-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.offline-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.offline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.offline-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.offline-btn.primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.offline-btn.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.offline-stories-list {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.offline-stories-list h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#offlineStoriesItems {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.offline-story-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.offline-story-item i {
    color: var(--accent-success);
}

.reading-controls-wrapper {
    position: relative;
}

.reading-controls-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 2100;
}

.reading-controls-wrapper.active .reading-controls-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.control-section {
    margin-bottom: 1rem;
}

.control-section:last-child {
    margin-bottom: 0;
}

.control-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.size-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.size-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.size-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.size-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 50px;
    text-align: center;
}

.mode-controls {
    display: flex;
    gap: 8px;
}

.mode-btn {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mode-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.mode-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.speed-slider {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.search-bar {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.search-bar input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--accent-primary);
}

.search-bar button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.search-bar button:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.focus-exit-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2001;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.focus-exit-btn:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
}

.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    max-width: 100vw;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-family: 'EnglishFont', var(--font-english);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.8s ease 0.2s both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-family: 'EnglishFont', var(--font-english);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeSlideUp 0.8s ease 0.4s both;
}

.title-line {
    display: block;
    color: var(--text-secondary);
    font-size: 0.5em;
    font-weight: 400;
}

.title-accent {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'ReadingFont', var(--font-bengali);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    animation: fadeSlideUp 0.8s ease 0.6s both;
}

.hero-desc {
    font-family: var(--font-english);
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease 0.8s both;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease 1s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.5);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}

.hero-card-stack {
    position: relative;
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
    overflow: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hc-1 {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(0);
    z-index: 3;
}

.hc-2 {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-40px) translateX(20px);
    opacity: 0.7;
    z-index: 2;
}

.hc-3 {
    transform: rotateY(-10deg) rotateX(5deg) translateZ(-80px) translateX(40px);
    opacity: 0.4;
    z-index: 1;
}

@keyframes heroCardSwipe {
    0% {
        transform: rotateY(-10deg) rotateX(5deg) translateZ(0) translateX(0);
        opacity: 1;
    }
    40% {
        transform: rotateY(20deg) rotateX(-5deg) translateZ(60px) translateX(-150px);
        opacity: 0.8;
    }
    60% {
        transform: rotateY(-20deg) rotateX(5deg) translateZ(60px) translateX(150px);
        opacity: 0.8;
    }
    100% {
        transform: rotateY(-10deg) rotateX(5deg) translateZ(0) translateX(0);
        opacity: 1;
    }
}

.hero-card.swipe-out {
    animation: heroCardSwipe 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card-stack:hover .hc-1 {
    transform: rotateY(-5deg) rotateX(2deg) translateZ(20px);
}

.hero-card-stack:hover .hc-2 {
    transform: rotateY(-8deg) rotateX(4deg) translateZ(-20px) translateX(30px);
}

.hero-card-stack:hover .hc-3 {
    transform: rotateY(-12deg) rotateX(6deg) translateZ(-60px) translateX(50px);
}

.library-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-primary);
}

.search-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.search-toggle-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.search-section {
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.5s ease;
}

.global-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    max-width: 600px;
}

.global-search-bar i {
    color: var(--text-muted);
}

.global-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.global-search-bar input::placeholder {
    color: var(--text-muted);
}

.global-search-bar button {
    padding: 8px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.global-search-bar button:hover {
    transform: scale(1.05);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.pill .pill-text {
    display: inline;
}

.pill:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pill.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.story-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.story-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.story-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--accent-primary);
    box-shadow: 
        var(--shadow-lg), 
        0 20px 40px rgba(168, 85, 247, 0.2),
        0 0 0 1px rgba(168, 85, 247, 0.1);
}

.story-card:hover::before {
    opacity: 1;
}

.story-card:hover::after {
    transform: scaleX(1);
}

.story-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
}

.story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-normal);
}

.story-card:hover .story-card-image img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.story-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.9) 100%);
    opacity: 0.8;
    z-index: 1;
}

.story-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(99, 102, 241, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.story-card-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    background: var(--bg-card);
}

.story-card-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.story-card:hover .story-card-title {
    color: var(--accent-primary);
}

.story-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.story-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.story-card:hover .story-card-meta span {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
}

.story-card-meta span i {
    font-size: 0.7rem;
    color: var(--accent-primary);
}

.story-card-meta i {
    color: var(--accent-primary);
}

.story-card-favorite {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.story-card-favorite:hover,
.story-card-favorite.active {
    background: var(--accent-warning);
    color: white;
}

.story-card.upcoming {
    opacity: 0.85;
    cursor: pointer;
}

.story-card.upcoming::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    pointer-events: none;
}

.no-stories {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-stories i {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-stories h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.reader-view {
    padding-top: 80px;
    min-height: 100vh;
}

.reader-toolbar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1900;
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(22, 22, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 40px;
    height: 36px;
}

.toolbar-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-primary);
}

.toolbar-btn.favorite-btn.active {
    color: var(--accent-warning);
    background: rgba(245, 158, 11, 0.1);
}

.toolbar-btn i {
    font-size: 0.95rem;
}

.toolbar-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.reader-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.reader-header-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.reader-header-covers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.current-story-cover,
.next-part-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.cover-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 4px 12px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
}

.reader-cover {
    position: relative;
    width: 160px;
    height: 220px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent-primary);
}

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

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.cover-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.reader-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reader-title {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.reader-author {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.reader-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    justify-content: center;
}

.reader-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reader-stats i {
    color: var(--accent-primary);
}

.next-part-preview .cover-label {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.next-part-cover {
    position: relative;
    width: 160px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px dashed var(--accent-secondary);
}

.next-part-cover:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(168, 85, 247, 0.3);
    border-style: solid;
    border-color: var(--accent-primary);
}

.next-part-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.next-part-cover:hover img {
    transform: scale(1.1);
}

.next-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(99, 102, 241, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    transition: all var(--transition-fast);
}

.next-overlay i {
    font-size: 1.5rem;
    animation: arrowBounce 1s ease-in-out infinite;
}

.next-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.next-part-cover:hover .next-overlay {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(99, 102, 241, 0.8));
}

.story-content {
    font-family: var(--font-reading);
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-primary);
    font-feature-settings: "liga" 1, "calt" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.story-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-content .highlight,
.story-content mark.highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5));
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
    animation: highlightPulse 1.5s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(168, 85, 247, 0.6); }
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

.page-transition-enter {
    animation: pageTransitionIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-transition-exit {
    animation: pageTransitionOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageTransitionOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}

@keyframes pageTransitionIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.page-number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: pageNumberReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pageNumberReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.page-number-display .page-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.page-number-display .page-text {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.page-number-display .page-info {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-number-display .page-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .page-number-display .page-text {
        font-size: 2.5rem;
    }
    
    .page-number-display .page-info {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-number-display .page-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .page-number-display .page-text {
        font-size: 2rem;
    }
    
    .page-number-display .page-info {
        font-size: 0.9rem;
    }
}

.page-btn {
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--gradient-primary);
    border-color: transparent;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.story-suggestions {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.suggestions-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestions-title i {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .story-suggestions {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }

    .suggestions-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .story-suggestions {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .suggestions-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        gap: 8px;
    }
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .suggestions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

button.suggestion-card,
.suggestion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.suggestion-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.suggestion-card-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.suggestion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.suggestion-card:hover .suggestion-card-image img {
    transform: scale(1.1);
}

.suggestion-card-content {
    padding: 1rem;
}

.suggestion-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.suggestion-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .suggestion-card-image {
        height: 100px;
    }

    .suggestion-card-content {
        padding: 0.75rem;
    }

    .suggestion-card h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .suggestion-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .suggestion-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .suggestion-card-image {
        width: 80px;
        min-width: 80px;
        height: 100px;
        border-radius: var(--radius-md);
    }

    .suggestion-card-content {
        flex: 1;
        padding: 0.5rem 0.75rem;
    }

    .suggestion-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .suggestion-card p {
        font-size: 0.75rem;
    }
}

.about-view {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg-primary);
    overflow-y: auto;
    padding-bottom: 100px;
}

.about-view .site-footer {
    display: none;
}

.about-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.about-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.about-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 8s linear infinite;
}

.about-name {
    font-family: var(--font-english);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.about-content {
    margin-bottom: 3rem;
}

.about-section {
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h2 i {
    color: var(--accent-primary);
}

.about-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
}

.social-btn.facebook { background: #1877f2; }
.social-btn.youtube { background: #ff0000; }
.social-btn.discord { background: #5865f2; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.email { background: var(--gradient-primary); }

.about-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.about-footer .version {
    margin-top: 0.5rem;
    color: var(--accent-primary);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.show .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box.modal-lg {
    max-width: 700px;
}

.modal-box.modal-xl {
    max-width: 900px;
    max-height: 90vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-primary);
}

.modal-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.modal-box.modal-xl .modal-body {
    max-height: calc(90vh - 80px);
}

.playlist-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.song-item:hover {
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.1);
}

.song-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
}

.song-item .song-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.song-item.active .song-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.song-item .song-info {
    flex: 1;
}

.song-item .song-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.song-item .song-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.song-item.active .song-artist {
    color: rgba(255, 255, 255, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.analytics-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.analytics-section.full-width {
    grid-column: 1 / -1;
}

.analytics-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.analytics-section h4 i {
    color: var(--accent-primary);
}

.analytics-list {
    max-height: 200px;
    overflow-y: auto;
}

.analytics-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.analytics-item:hover {
    border-color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.05);
}

.analytics-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.analytics-item-content {
    flex: 1;
    min-width: 0;
}

.analytics-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.analytics-item-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.timeline-list .analytics-item {
    position: relative;
    padding-left: 24px;
}

.timeline-list .analytics-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.timeline-list .analytics-item::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-card);
}

.timeline-list .analytics-item:last-child::before {
    display: none;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .offline-stats {
        grid-template-columns: 1fr;
    }

    .offline-stat-card {
        padding: 1rem;
    }

    .offline-stat-card i {
        font-size: 1.5rem;
    }

    .offline-stat-value {
        font-size: 1.5rem;
    }
}

.admin-modal .modal-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
}

.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.admin-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.admin-content {
    padding: 1.5rem;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.admin-search {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.admin-search:focus {
    border-color: var(--accent-primary);
}

.admin-btn {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.admin-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-btn.primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.admin-btn.primary:hover {
    transform: scale(1.02);
}

.admin-btn.danger {
    background: var(--accent-danger);
    border-color: transparent;
    color: white;
}

.admin-stories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-story-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.admin-story-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.admin-story-info {
    flex: 1;
}

.admin-story-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.admin-story-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-story-actions {
    display: flex;
    gap: 8px;
}

.admin-story-actions button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.admin-story-actions button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-story-actions button.delete:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

.admin-story-item.hidden-story,
.admin-song-item.hidden-song {
    opacity: 0.6;
    background: var(--bg-secondary);
}

.visibility-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.visibility-badge.public {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

.visibility-badge.hidden {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.admin-songs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-song-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.admin-song-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.2rem;
}

.admin-song-info {
    flex: 1;
}

.admin-song-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.admin-song-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-song-actions {
    display: flex;
    gap: 8px;
}

.admin-song-actions button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.admin-song-actions button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.admin-song-actions button.delete:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid var(--border-color);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

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

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.setting-item label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.setting-item select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
}

.password-change-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.password-change-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-change-form .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.password-change-form .form-group input {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.password-change-form .form-group input:focus {
    border-color: var(--accent-primary);
}

.password-change-form .admin-btn {
    margin-top: 0.5rem;
}

body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.site-footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem 1.25rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: footerGradientFlow 3s ease-in-out infinite;
}

@keyframes footerGradientFlow {
    0%, 100% { opacity: 0.6; transform: translateX(-10%); }
    50% { opacity: 1; transform: translateX(10%); }
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
    animation: footerOrbFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerOrbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.footer-brand::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(20px);
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.footer-brand:hover::before {
    opacity: 0.4;
}

.footer-brand:hover {
    transform: scale(1.08) translateY(-2px);
}

.footer-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: var(--gradient-primary);
    padding: 2px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.footer-brand:hover img {
    transform: rotate(360deg);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
}

.footer-brand span {
    font-family: var(--font-english);
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footerTextShimmer 3s linear infinite;
}

@keyframes footerTextShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.footer-info {
    text-align: center;
}

.footer-copy {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.footer-tagline::before,
.footer-tagline::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    text-decoration: none;
    overflow: hidden;
}

.footer-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.footer-links a::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    opacity: 0;
    filter: blur(8px);
    transition: opacity var(--transition-normal);
    z-index: -2;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a:hover::after {
    opacity: 0.6;
    animation: footerLinkRotate 3s linear infinite;
}

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

.footer-links a:nth-child(1):hover { animation-delay: 0s; }
.footer-links a:nth-child(2):hover { animation-delay: 0.1s; }
.footer-links a:nth-child(3):hover { animation-delay: 0.2s; }
.footer-links a:nth-child(4):hover { animation-delay: 0.3s; }
.footer-links a:nth-child(5):hover { animation-delay: 0.4s; }

@media (min-width: 1400px) {
    .library-section {
        max-width: 1600px;
        padding: 3rem;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }

    .hero {
        padding: 10rem 4rem 5rem;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-subtitle {
        font-size: 1.75rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .reader-article {
        max-width: 900px;
        padding: 3rem;
    }

    .nav-inner {
        max-width: 1600px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .library-section {
        padding: 2.5rem;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .reader-article {
        max-width: 850px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero {
        padding: 7rem 2rem 4rem;
    }

    .hero-content {
        max-width: 550px;
    }

    .hero-visual {
        right: 3%;
    }

    .hero-card-stack {
        width: 220px;
        height: 300px;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }

    .library-section {
        padding: 1.75rem;
    }

    .nav-center {
        padding: 5px 10px;
    }

    .nav-music-btn .nav-btn-text {
        display: none;
    }

    .reader-header {
        gap: 1.5rem;
    }

    .reader-cover {
        width: 180px;
        height: 250px;
    }

    .reader-article {
        padding: 1.75rem;
    }

    body.reader-mode .nav-progress.visible {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .notification-container {
        bottom: 15px;
        right: 15px;
        max-width: calc(100vw - 30px);
    }

    .notification {
        padding: 0.65rem 0.85rem;
        gap: 8px;
        max-width: 250px;
    }

    .notification i {
        font-size: 0.9rem;
    }

    .notification-text {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-title {
        display: none;
    }

    .nav-center {
        padding: 4px 8px;
    }

    .nav-music-btn .nav-btn-text {
        display: none;
    }

    .nav-action-btn {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .library-section {
        padding: 1.5rem;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .story-card-image {
        height: 160px;
    }

    .story-card-content {
        padding: 1rem;
    }

    .story-card-title {
        font-size: 1.1rem;
    }

    .story-card-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .story-card-meta {
        font-size: 0.75rem;
        gap: 10px;
    }

    .reader-header-new {
        margin-top: 1rem;
        gap: 1rem;
    }

    .reader-header-covers {
        gap: 1rem;
    }

    .reader-cover {
        width: 120px;
        height: 165px;
    }

    .next-part-cover {
        width: 120px;
        height: 165px;
    }

    .cover-label {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .cover-badge {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        bottom: 6px;
    }

    .next-overlay i {
        font-size: 1.2rem;
    }

    .next-overlay span {
        font-size: 0.65rem;
    }

    .reader-title {
        font-size: 1.35rem;
    }

    .reader-toolbar {
        bottom: 8px;
        padding: 5px 8px;
        gap: 2px;
        max-width: 92vw;
    }

    .toolbar-btn span {
        display: none;
    }

    .toolbar-btn {
        padding: 8px;
        min-width: 36px;
        height: 32px;
    }

    .toolbar-btn i {
        font-size: 0.9rem;
    }

    .reading-controls-panel {
        width: 280px;
        right: 0;
        left: auto;
        max-height: 70vh;
    }

    .modal-box {
        max-height: 90vh;
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal-body {
        max-height: calc(90vh - 80px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .pwa-install-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .site-footer {
        padding: 1rem 1rem 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-brand img {
        width: 32px;
        height: 32px;
    }

    .footer-brand span {
        font-size: 1rem;
    }

    .footer-copy {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .footer-tagline {
        font-size: 0.65rem;
    }

    .footer-links {
        justify-content: center;
        gap: 8px;
    }

    .footer-links a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .global-search-bar {
        padding: 10px 16px;
    }

    .global-search-bar input {
        font-size: 0.9rem;
    }

    .category-pills {
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .reader-article {
        padding: 1.5rem;
        margin-top: 3rem;
    }

    .reader-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .notification-container {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }

    .notification {
        padding: 0.6rem 0.75rem;
        gap: 8px;
        max-width: 220px;
        border-radius: var(--radius-sm);
    }

    .notification i {
        font-size: 0.85rem;
    }

    .notification-text {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .nav-inner {
        gap: 0.5rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title {
        display: none;
    }

    .nav-action-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .nav-play-btn {
        width: 32px;
        height: 32px;
    }

    .nav-center {
        padding: 3px 6px;
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-actions {
        gap: 4px;
        flex-shrink: 0;
    }

    body.reader-mode .nav-actions {
        gap: 3px;
    }

    body.reader-mode .reading-controls-wrapper {
        flex-shrink: 0;
    }

    body.reader-mode .nav-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .progress-track {
        width: 50px;
    }

    .progress-text {
        font-size: 0.7rem;
        min-width: 28px;
    }

    body.reader-mode .nav-progress.visible {
        display: flex !important;
    }

    .hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .library-section {
        padding: 1rem;
    }

    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .story-card-image {
        height: 140px;
    }

    .pill .pill-text {
        display: none;
    }

    .pill {
        padding: 10px 14px;
        gap: 0;
    }

    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 2rem;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-card-stack {
        width: 200px;
        height: 260px;
    }

    .hc-1 {
        transform: rotateY(-5deg) rotateX(3deg) translateZ(0);
    }

    .hc-2 {
        transform: rotateY(-5deg) rotateX(3deg) translateZ(-25px) translateX(12px);
    }

    .hc-3 {
        transform: rotateY(-5deg) rotateX(3deg) translateZ(-50px) translateX(24px);
    }

    .story-card-content {
        padding: 1rem;
    }

    .story-card-title {
        font-size: 1.15rem;
    }

    .story-card-desc {
        font-size: 0.85rem;
    }

    .reader-toolbar {
        bottom: 6px;
        padding: 4px 6px;
        gap: 2px;
        border-radius: var(--radius-lg);
    }

    .toolbar-btn {
        padding: 7px;
        min-width: 32px;
        height: 30px;
    }

    .toolbar-btn i {
        font-size: 0.85rem;
    }

    .reader-article {
        padding: 0.75rem;
        margin-top: 2rem;
    }

    .reader-header-new {
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .reader-header-covers {
        gap: 0.75rem;
    }

    .reader-cover {
        width: 100px;
        height: 140px;
    }

    .next-part-cover {
        width: 100px;
        height: 140px;
    }

    .cover-label {
        font-size: 0.6rem;
        padding: 2px 8px;
        margin-bottom: 4px;
    }

    .cover-badge {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
        bottom: 4px;
    }

    .next-overlay i {
        font-size: 1rem;
    }

    .next-overlay span {
        font-size: 0.55rem;
    }

    .reader-title {
        font-size: 1.2rem;
    }

    .reader-author {
        font-size: 0.85rem;
    }

    .reader-stats {
        font-size: 0.75rem;
        gap: 8px;
    }

    .reading-controls-panel {
        width: 260px;
        max-height: 65vh;
    }

    .control-section label {
        font-size: 0.7rem;
    }

    .size-btn {
        width: 32px;
        height: 32px;
    }

    .mode-btn {
        height: 36px;
    }

    .modal-box {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .search-toggle-btn {
        width: 38px;
        height: 38px;
    }

    .global-search-bar {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 12px;
    }

    .global-search-bar input {
        width: 100%;
        margin-bottom: 8px;
    }

    .global-search-bar button {
        width: 100%;
    }

    .category-pills {
        gap: 6px;
        margin-bottom: 1rem;
    }

    .pill {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .site-footer {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .footer-content {
        padding: 0;
        gap: 0.75rem;
    }

    .footer-brand {
        gap: 8px;
    }

    .footer-brand img {
        width: 28px;
        height: 28px;
    }

    .footer-brand span {
        font-size: 0.95rem;
    }

    .footer-copy {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .footer-tagline {
        font-size: 0.6rem;
    }

    .footer-tagline::before,
    .footer-tagline::after {
        width: 25px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer-links a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .cta-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    .pwa-install-popup {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .splash-title {
        font-size: 2.5rem;
    }

    .splash-tagline {
        font-size: 1rem;
    }

    .splash-logo {
        width: 80px;
        height: 80px;
    }

    .no-stories {
        padding: 2rem 1rem;
    }

    .no-stories i {
        font-size: 3rem;
    }

    .no-stories h3 {
        font-size: 1.25rem;
    }

    .focus-exit-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        top: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ambient-bg {
        display: none;
    }
}

body.focus-mode .navbar,
body.focus-mode .site-footer,
body.focus-mode .reader-toolbar {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(-100%) !important;
    transition: all 0.3s ease !important;
}

body.focus-mode .reader-article {
    max-width: 700px;
}

.focus-auto-scroll-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2001;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.focus-auto-scroll-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.focus-auto-scroll-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
}

.auto-scroll-close-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 2001;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease;
}

.auto-scroll-close-btn.show {
    display: flex;
}

.auto-scroll-close-btn:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.auto-scroll-close-btn i {
    font-size: 1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.focus-mode .auto-scroll-close-btn {
    bottom: 20px;
}

@media (max-width: 768px) {
    .auto-scroll-close-btn {
        bottom: 90px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    body.focus-mode .auto-scroll-close-btn {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .auto-scroll-close-btn {
        bottom: 100px;
        right: 10px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .auto-scroll-close-btn span {
        display: none;
    }

    body.focus-mode .auto-scroll-close-btn {
        bottom: 10px;
    }
}

.story-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    margin: 4px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.story-link-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.social-link-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-link-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.about-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.about-bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: aboutOrbFloat 15s ease-in-out infinite;
}

.about-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    opacity: 0.3;
    top: -100px;
    left: -100px;
}

.about-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    opacity: 0.25;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.about-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-tertiary);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes aboutOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.about-card {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: aboutCardReveal 0.8s ease-out;
}

@keyframes aboutCardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.about-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
}

.about-avatar-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(25px);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.about-avatar-ring-outer {
    position: absolute;
    inset: -12px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 6s linear infinite;
}

.about-avatar-ring-inner {
    position: absolute;
    inset: -6px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--gradient-accent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite reverse;
}

.about-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-secondary);
}

.about-name-new {
    font-family: var(--font-english);
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.about-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-title-badge i {
    color: var(--accent-primary);
}

.about-stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 1rem;
}

.about-stat:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.about-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
}

.about-stat-info {
    display: flex;
    flex-direction: column;
}

.about-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-content-new {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-section-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.about-section-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.about-section-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.1rem;
}

.about-section-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.about-section-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-social-new {
    text-align: center;
    margin-bottom: 2rem;
}

.about-social-new h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.about-social-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.about-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.about-social-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-md);
}

.facebook-btn { background: #1877f2; }
.youtube-btn { background: #ff0000; }
.discord-btn { background: #5865f2; }
.whatsapp-btn { background: #25d366; }
.email-btn { background: var(--gradient-primary); }

.about-footer-new {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.about-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.about-footer-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.about-footer-brand span {
    font-family: var(--font-english);
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-footer-new p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-version {
    color: var(--accent-primary) !important;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .about-card {
        padding: 1.5rem;
    }

    .about-stats-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .about-stat {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .about-stat:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
    }

    .about-section-card {
        flex-direction: column;
        text-align: center;
    }

    .about-section-icon {
        margin: 0 auto;
    }

    .focus-auto-scroll-btn {
        top: 75px;
        right: 10px;
        width: 45px;
        height: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-bg-effects {
        display: none;
    }
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.password-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--accent-primary);
}

.password-error {
    color: #ef4444;
    font-size: 0.85rem;
    min-height: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-error:not(:empty)::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.password-form .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.password-form .form-actions .admin-btn {
    flex: 1;
    justify-content: center;
}

#passwordModal .modal-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
}

#passwordModal .modal-header h3 i {
    color: var(--accent-primary);
}

.admin-reorder-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 12px;
}

.reorder-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reorder-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.reorder-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-story-item,
.admin-song-item {
    display: flex;
    align-items: center;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-story-item.dragging,
.admin-song-item.dragging {
    z-index: 100;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-primary) !important;
}

.admin-story-item.drag-over,
.admin-song-item.drag-over {
    border-top: 3px solid var(--accent-primary);
}

.admin-story-item .admin-reorder-controls,
.admin-song-item .admin-reorder-controls {
    flex-shrink: 0;
}

.admin-item-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 48px;
    cursor: grab;
    color: var(--text-muted);
    margin-right: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.admin-item-drag-handle:active {
    cursor: grabbing;
}

.admin-item-drag-handle:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
}

.admin-item-drag-handle i {
    font-size: 1.1rem;
}


@media (max-width: 768px) {
    .admin-reorder-controls {
        display: none;
    }

    .admin-item-drag-handle {
        display: flex;
        width: 40px;
        height: 100%;
        min-height: 60px;
    }

    .admin-story-item,
    .admin-song-item {
        padding-left: 0;
    }
}