/* فونت وزیر */
@font-face {
    font-family: 'Vazir';
    src: url('../font/vazir.woff2') format('woff2'),
        url('../font/vazir.woff') format('woff'),
        url('../font/vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* برای نمایش بهتر هنگام لود */
}

/* Selection Color */
::selection {
    background-color: #22c55e;
    color: #ffffff;
}

* {
    font-family: 'Vazir' !important;
}

/* Enhanced responsive design */
@media (max-width: 1400px) {
    .player-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .player-info h4 {
        max-width: 150px;
    }

    .player-info p {
        max-width: 150px;
    }
}

@media (max-width: 1200px) {
    .player-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .player-left {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .player-right {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .player-controls {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }

    .player-info h4 {
        font-size: 0.85rem;
        max-width: 120px;
    }

    .player-info p {
        font-size: 0.75rem;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .player-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
        margin: 0;
        width: 100%;
    }

    .player {
        max-width: 100%;
        bottom: 0;
        border-radius: 15px 15px 0 0;
    }

    .player-left {
        padding: 0.25rem 0.5rem;
        gap: 0.5rem;
        min-width: 0;
        justify-content: space-between;
        width: 100%;
    }

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

    .player-info h4 {
        font-size: 0.8rem;
        max-width: 150px;
    }

    .player-info p {
        font-size: 0.7rem;
        max-width: 150px;
    }

    .rating-container {
        display: none;
    }

    .player-center {
        width: 100%;
        order: -1;
    }

    .player-controls {
        padding: 0.4rem 0.5rem;
        gap: 0.4rem;
        border-radius: 20px;
        width: 100%;
        justify-content: center;
    }

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

    .play-btn {
        width: 40px;
        height: 40px;
    }

    .player-time {
        font-size: 0.7rem;
        width: 100%;
    }

    .player-right {
        padding: 0.25rem 0.5rem;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .volume-control {
        display: none;
    }
}

@media (max-width: 480px) {
    .player-cover {
        width: 38px;
        height: 38px;
    }

    .player-info h4 {
        font-size: 0.75rem;
        max-width: 110px;
    }

    .player-info p {
        font-size: 0.65rem;
        max-width: 110px;
    }

    .control-btn {
        width: 28px;
        height: 28px;
    }

    .play-btn {
        width: 34px;
        height: 34px;
    }

    .player-time {
        font-size: 0.6rem;
    }

    .player-content {
        padding: 0.4rem;
        gap: 0.4rem;
    }
}

@media (max-width: 360px) {

    .player-info h4,
    .player-info p {
        max-width: 90px;
    }

    .player-controls {
        gap: 0.2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .player-cover {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .player {
        animation: none;
    }

    .player-content>* {
        animation: none;
    }

    .player-progress-bar::before {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Rating container styles */
.rating-container {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme adjustments for mini player */
[data-theme='light'] .player {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

.quick-card-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--color-text-main);
    min-width: 70%;
}

[data-theme='light'] .album-song-item.scale-in.hover-lift.swipeable * {
    color: black !important;
}

.card-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

/* Advanced animations and transitions */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 40px rgba(34, 197, 94, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.5), 0 0 60px rgba(34, 197, 94, 0.2);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Player show/hide animations */
.player {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating mini player toggle button (shown above the mini player) */
.mini-toggle {
    position: fixed;
    right: 1rem;
    bottom: calc(var(--mini-player-height, 72px) + 12px);
    z-index: 999;
    transition: bottom 0.25s ease, opacity 0.2s ease;
}

.mini-toggle .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent, #22c55e);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border: none;
}

h2#fullPlayerTitle,
#fullPlayerArtist,
#lyricsContent {
    -webkit-text-fill-color: white;
}

.mini-toggle .icon-btn svg {
    transform-origin: center;
    transition: transform 0.2s ease;
}

/* When the player is hidden, compact the toggle to bottom */
.mini-toggle.compact {
    bottom: 12px;
}

/* Toggle rotates when player is visible */
.mini-toggle.open .icon-btn svg {
    transform: rotate(180deg);
    color: var(--color-text-main);
}

@media (max-width: 480px) {
    .mini-toggle .icon-btn {
        width: 40px;
        height: 40px;
    }
}

.player-content>* {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.player-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.player-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.player-content>*:nth-child(3) {
    animation-delay: 0.3s;
}

/* Enhanced button interactions */
.control-btn:active,
.play-btn:active,
.icon-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Touch feedback for mobile */
.touch-feedback:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Enhanced progress bar animations */
.player-progress-bar::before {
    background: linear-gradient(90deg, var(--color-progress) 0%, #10b981 50%, #22c55e 100%);
    background-size: 200% 100%;
    animation: progress-gradient 3s ease infinite;
}

@keyframes progress-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Loading state for player */
.player.loading .player-cover {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Enhanced tooltip animations */
.progress-tooltip {
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-progress-bar:hover .progress-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-35px);
}

/* Hover lift effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[data-theme='light'] .player-content {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: none;
}

[data-theme='light'] .player-left {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .player-left:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .player-cover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .player-cover:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .player-controls {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .play-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(0, 0, 0, 0.05);
}

[data-theme='light'] .play-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .player-right {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .player-right:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .rating-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .rating-container:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme='light'] .icon-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .icon-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme='light'] #playerLikeBtn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] #playerLikeBtn:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(244, 63, 94, 0.3);
}

[data-theme='light'] .volume-control {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .volume-control:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme='light'] .player-progress-bar {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
}

[data-theme='light'] .player-progress-bar::before {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.rating-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    opacity: 0.7;
    transform: scale(1);
}

.star-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.star-btn.active {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Like button styles */
#playerLikeBtn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#playerLikeBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(244, 63, 94, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

#playerLikeBtn:hover::before {
    width: 100%;
    height: 100%;
}

#playerLikeBtn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 63, 94, 0.3);
    transform: scale(1.1);
}

#playerLikeBtn.liked {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}

#playerLikeBtn.liked svg {
    fill: #f43f5e;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

/* Icon button enhancements */
.icon-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.icon-btn:hover::before {
    width: 100%;
    height: 100%;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    color: var(--color-primary);
}

/* Lyrics button specific */
#lyricsBtn {
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#lyricsBtn:not([disabled]):hover {
    opacity: 1;
    color: var(--color-primary);
}

#lyricsBtn.active {
    opacity: 1;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--color-progress);
}



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

:root {
    --color-primary: linear-gradient(135deg, #22c55e, #10b981);
    --color-progress: #22c55e;
    --color-secondary: #f43f5e;
    --color-bg-main: #020617;
    --color-bg-secondary: #0f172a;
    --color-bg-card: #1e293b;
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-header-bg: rgba(15, 23, 42, 0.9);
    --color-header-border: rgba(148, 163, 184, 0.1);
    --color-border: rgba(148, 163, 184, 0.2);
    --color-primary-alpha: rgba(34, 197, 94, 0.3);
    --color-sidebar-bg: #0f172a;
    --color-player-bg: rgba(15, 23, 42, 0.95);
    --color-input-bg: rgba(30, 41, 59, 0.5);
    --color-shadow: rgba(0, 0, 0, 0.4);
    --color-progress-empty: #4B5563;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
}

[data-theme='light'] {
    --color-bg-main: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-bg-card: #ffffff;
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-header-bg: rgba(255, 255, 255, 0.8);
    --color-header-border: rgba(148, 163, 184, 0.1);
    --color-border: rgba(148, 163, 184, 0.2);
    --color-sidebar-bg: #ffffff;
    --color-player-bg: rgba(255, 255, 255, 0.9);
    --color-input-bg: #f1f5f9;
    --color-shadow: rgba(0, 0, 0, 0.05);
    --color-progress-empty: #e2e8f0;

    /* Keep primary colors but slightly more saturated for light mode */
    --color-primary: linear-gradient(135deg, #10b981, #059669);
    --color-progress: #10b981;
    --color-primary-alpha: rgba(16, 185, 129, 0.3);
}

[data-theme='light'] body {
    color: var(--color-text-main);
}

[data-theme='light'] .playlist-info-card,
[data-theme='light'] .album-info-card,
[data-theme='light'] .info-card,
[data-theme='light'] .lyrics-section,
[data-theme='light'] .similar-songs-section,
[data-theme='light'] .search-container,
[data-theme='light'] .card,
[data-theme='light'] .sidebar {
    box-shadow: 0 10px 15px -3px var(--color-shadow), 0 4px 6px -4px var(--color-shadow);
}

.legal-hero scale-in *,
.help-hero-content * {
    text-align: center;
    color: white !important;
}

[data-theme='light'] .song-item:hover {
    background: rgba(22, 163, 74, 0.05);
}

[data-theme='light'] .text-muted,
[data-theme='light'] .song-artist,
[data-theme='light'] .song-album {
    color: var(--color-text-main) !important;
}

[data-theme='light'] .song-title,
[data-theme='light'] .info-value,
[data-theme='light'] h1,
[data-theme='light'] h2,
[data-theme='light'] h3,
[data-theme='light'] .artist-followers {
    color: var(--color-text-main) !important;
}

[data-theme='light'] .slider-title,
[data-theme='light'] .footer-trust h4 {
    color: #ffffff;
}

[data-theme='light'] .slider-title {
    color: #ffffff !important;
}

[data-theme='light'] .quick-icon {
    background-color: #667eea !important;
}

[data-theme='light'] .playlist-song-item .song-duration {
    color: #059669;
}

body {
    font-family: 'Vazir', -apple-system, sans-serif;
    background-color: var(--color-bg-main);
    color: #ffffff;
    direction: rtl;
    line-height: 1.6;
    text-align: right;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* RTL-specific improvements */
* {
    box-sizing: border-box;
}

/* Ensure proper RTL text alignment */
h1,
h2,
h3,
h4,
h5,
h6,
p,
div,
span,
a,
li,
td,
th,
button {
    text-align: right;
    direction: rtl;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Center alignment exceptions */
.text-center,
.player-time,
.player-controls,
.full-player-info h2,
.genre-card h4,
.footer-bottom,
.footer-content,
.download-card,
.full-player-main {
    text-align: center;
}

/* Persian number and typography improvements */
body {
    font-variant-numeric: eastern-arabic;
}

/* RTL-specific form improvements */
input,
textarea,
select {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', -apple-system, sans-serif;
}

/* Placeholder text RTL */
input::placeholder,
textarea::placeholder {
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive Container Sizes */
@media (min-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-header-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: var(--color-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-main);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--color-border);
}

.theme-toggle {
    position: relative;
}

.theme-toggle-icon {
    transition: opacity 0.2s, transform 0.2s;
}

.theme-toggle-icon.sun {
    display: none;
}

[data-theme='light'] .theme-toggle-icon.sun {
    display: block;
}

[data-theme='light'] .theme-toggle-icon.moon {
    display: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    color: white;
}

.user-avatar:hover {
    transform: scale(1.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    height: 100vh;
    top: 64px;
    right: 0;
    bottom: 80px;
    width: 256px;
    background: var(--color-sidebar-bg);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 100;
    transform: translateX(0);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--color-header-border);
}

.sidebar.hidden {
    transform: translateX(256px);
}


.genre-card-container {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.genre-card-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.genre-card {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.genre-card-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: right 0.75s ease-in-out;
    z-index: 2;
}

.genre-card-container:hover::after {
    right: 150%;
}

.genre-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.genre-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 600px;
    animation: slideInRight 0.8s ease-out;
}

.leftsec .coverPlay {
    position: relative;
    right: 70%;
    width: 375px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 15px 12px rgba(0, 0, 0, 0.22);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.slider-play-btn {
    background: linear-gradient(135deg, #22c55e, #10b981);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.7rem;
    font-weight: bolder;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.slider-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-prev {
    margin-right: auto;
}

.slider-next {
    margin-left: auto;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    background-color: #05966886;
    padding: 10px;
    border-radius: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}



.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

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

    .slider-description {
        font-size: 1rem;
    }

    .slider-content {
        padding: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .slider-content {
        padding: 1rem;
    }

    .slider-play-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }
}

.slider-content {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    max-width: 500px;
    text-align: right;
}

.slider-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: slideInRight 0.8s ease-out;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: slideInRight 1s ease-out 0.2s both;
}






.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-prev {
    position: relative;
    left: 0;
}

.slider-next {
    position: relative;
    right: 0;
}



.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Slider Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Slider */
@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

    .slider-content {
        right: 1.5rem;
        max-width: 400px;
    }

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

    .slider-description {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .slider-content {
        right: 1rem;
        left: 1rem;
        max-width: none;
        text-align: center;
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-description {
        font-size: 0.9rem;
    }

    .slider-nav {
        display: flex;
        bottom: 0;
        top: 90%;
    }
}

.coverPlay {
    float: left;
}

.sidebar.collapsed {
    transform: translateX(256px);
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 100px;
}

/* Genre Card Flip */
.genre-card-container {
    perspective: 1000px;
    cursor: pointer;
}

.genre-card {
    width: 100%;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.genre-card-container:hover .genre-card {
    transform: rotateY(180deg);
}

.genre-card-front,
.genre-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: white;
    text-align: center;
}

.genre-card-front {
    z-index: 2;
}

.genre-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.genre-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.genre-name {
    font-size: 1.125rem;
    font-weight: bold;
}


/* Custom sidebar scrollbar (modern browsers) */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

[data-theme='light'] .sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover {
    background: var(--color-border);
    color: var(--color-text-main);
}

.nav-item.active {
    background: var(--color-primary);
    color: white;
}

/* Sidebar submenu styles */
.nav-submenu {
    display: block;
}

.nav-submenu .nav-item {
    width: 100%;
    justify-content: space-between;
    background: #22c55e;
    color: var(--color-bg-secondary);
}

.nav-submenu .nav-item .chev {
    opacity: 0.75;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-submenu .submenu {
    display: none;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.nav-submenu .submenu.open {
    display: block;
}

.submenu-item {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
}

.submenu-item:hover {
    background: var(--color-border);
    color: var(--color-text-main);
}

.submenu-item.active {
    font-weight: 600;
    color: var(--color-text-main);
}


.playlists-section {
    flex: 1;
}

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

.playlists-header h3 {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.icon-btn-small {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.icon-btn-small:hover {
    background: var(--color-border);
}

.playlists-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.playlist-item:hover {
    color: var(--color-text-main);
}

/* Collapsible Playlist Menu */
.playlists-section {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlists-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlists-toggle:hover {
    color: var(--color-text-main);
}

.playlists-toggle .toggle-icon {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.playlists-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

.playlists-toggle h3 {
    margin: 0;
    font-size: inherit;
    color: inherit;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.playlists-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.playlists-list.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.playlist-category {
    border-radius: 0.75rem;
    overflow: hidden;
    list-style: none;
}

.playlist-category-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text-main);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlist-category-toggle:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-progress);
}

.playlist-category-toggle .category-icon {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.playlist-category-toggle[aria-expanded="false"] .category-icon {
    transform: rotate(-90deg);
}

.playlist-category-toggle span:first-of-type {
    flex: 1;
    text-align: right;
}

.playlist-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-bg-main);
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    min-width: 1.5rem;
    text-align: center;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlist-category-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 0.5rem;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    list-style: none;
    margin: 0;
}

.playlist-category-items.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.playlist-item {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playlist-category-items li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.playlist-item:hover {
    color: var(--color-text-main);
    background: var(--color-bg-hover);
    padding-right: 1rem;
}

.playlist-item.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-right: 3px solid var(--color-primary);
}

/* Mobile responsive for collapsible menu */
@media (max-width: 1024px) {
    .playlists-list {
        max-height: 300px;
    }

    .playlist-category-items {
        max-height: 150px;
    }

    .playlists-toggle {
        font-size: 0.9rem;
    }

    .playlist-category-toggle {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .playlist-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .playlist-category-toggle {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .playlist-category-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .playlist-count {
    background: rgba(255, 255, 255, 0.1);
}

/* RTL support for playlist menu */
.playlist-category-toggle .category-icon {
    margin-left: 0.5rem;
}

.playlist-category-items {
    padding-right: 1rem;
}

.playlist-item {
    margin-right: 0.5rem;
}

/* Semantic HTML adjustments */
.playlists-list li {
    text-align: right;
}

.playlist-category-items li {
    text-align: right;
}

/* ========================================
   ENHANCED GENRE PAGE STYLES
   ======================================== */

/* Enhanced Genre Hero Section */
.genre-hero {
    padding: 17px;
    position: relative;
    min-height: max-content;
    border-radius: 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-main) 100%);
}

.genre-hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.genre-hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.1) 0%,
            rgba(34, 197, 94, 0.05) 50%,
            transparent 100%);
    z-index: 2;
}

.genre-hero-particles {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    animation: floatParticles 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatParticles {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.genre-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.genre-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.breadcrumb-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

.breadcrumb-separator {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.breadcrumb-current {
    color: var(--color-sidebar-bg);
    font-weight: 500;
}

.genre-hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.genre-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.genre-hero-icon {
    font-size: 6rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-progress));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulseIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.3));
}

@keyframes pulseIcon {

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

    50% {
        transform: scale(1.05);
    }
}

.genre-hero-wave {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    animation: wave 4s ease-in-out infinite;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 1;
    }

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

.genre-hero-info {
    text-align: right;
}

.genre-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary), var(--color-progress));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.genre-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-bg-card);
    margin: 0 0 1rem 0;
    text-align: center;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-text-main), var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-bg-card);
    background-clip: text;
}

.genre-hero-description {
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-bg-card);
    margin: 0 0 2rem 0;
    line-height: 1.6;
    max-width: 600px;
}

.genre-hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.genre-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.genre-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.25rem;
}

.genre-stat-label {
    font-size: 0.875rem;
    color: var(--color-bg-card);
}

.genre-hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 2rem;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: 2px solid transparent;
    color: white;
    padding: 0.875rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.genre-play-btn {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

.genre-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* Enhanced Genre Sections */
.genre-section {
    margin: 4rem 0;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-main);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-progress));
    border-radius: 2px;
}

.section-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.section-action-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Enhanced Grid Layouts */
.genre-songs-grid,
.genre-artists-grid,
.genre-playlists-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.genre-songs-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.genre-artists-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.genre-playlists-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Enhanced Song Cards */
.genre-song-card {
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.genre-song-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: right 0.6s ease;
}

.genre-song-card:hover::before {
    right: 100%;
}

.genre-song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.genre-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.genre-song-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.25rem 0;
}

.genre-song-artist {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.genre-song-duration {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-bg-main);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Enhanced Artist Cards */
.genre-artist-card {
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.genre-artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.genre-artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.genre-artist-card:hover .genre-artist-avatar {
    transform: scale(1.1);
}

.genre-artist-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.genre-artist-genres {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem 0;
}

.genre-artist-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Enhanced Playlist Cards */
.genre-playlist-card {
    background: var(--color-bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    position: relative;
}

.genre-playlist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.genre-playlist-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.genre-playlist-card:hover .genre-playlist-cover {
    transform: scale(1.05);
}

.genre-playlist-info {
    padding: 1rem;
}

.genre-playlist-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.genre-playlist-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.genre-playlist-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.genre-playlist-count {
    background: var(--color-bg-main);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .genre-hero-title {
        font-size: 3rem;
    }

    .genre-hero-main {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .genre-hero-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .genre-hero-info {
        text-align: center;
    }

    .genre-hero-stats {
        justify-content: center;
    }

    .genre-hero-actions {
        justify-content: center;
    }

    .genre-songs-grid,
    .genre-artists-grid,
    .genre-playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .genre-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

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

    .genre-hero-icon {
        font-size: 4rem;
    }

    .genre-hero-description {
        font-size: 1.125rem;
    }

    .genre-hero-stats {
        gap: 1rem;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .genre-songs-grid,
    .genre-artists-grid,
    .genre-playlists-grid {
        grid-template-columns: 1fr;
    }

    .genre-song-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .genre-hero-title {
        font-size: 2rem;
    }

    .genre-hero-icon {
        font-size: 3rem;
    }

    .genre-hero-breadcrumb {
        font-size: 0.75rem;
    }

    .breadcrumb-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .genre-hero {
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.05) 0%,
            var(--color-bg-main) 100%);
}

[data-theme="dark"] .genre-hero-particles {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
}

[data-theme="dark"] .breadcrumb-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .genre-song-card,
[data-theme="dark"] .genre-artist-card,
[data-theme="dark"] .genre-playlist-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Loading animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.playlist-category-toggle {
    text-align: right;
    justify-content: flex-start;
}

/* Main Content */
/* Main Content - Default right margin for pages with sidebar */
.main-content {
    margin-top: 64px;
    margin-right: 256px;
    margin-bottom: 80px;
    padding: 1rem;
    background: var(--color-bg-main);
    transition: margin-right 0.3s ease;
}

/* Legal pages should have no right margin by default on desktop */
.legal-page .main-content,
.download-page .main-content,
.pricing-page .main-content,
.help-page .main-content,
.blog-page .main-content {
    margin-right: 0;
}

/* Main Content with sidebar */
body:has(.sidebar) .main-content {
    margin-right: 256px;
    transition: margin-right 0.3s ease;
}

/* Main content when sidebar is hidden */
body:has(.sidebar.hidden) .main-content {
    margin-right: 0;
    transition: margin-right 0.3s ease;
}

/* Main content when sidebar is collapsed (desktop) */
body:has(.sidebar.collapsed) .main-content {
    margin-right: 0;
    transition: margin-right 0.3s ease;
}

/* Legal pages sidebar - hide by default but allow toggle on mobile */
@media (max-width: 1024px) {

    .legal-page .sidebar:not(.open),
    .download-page .sidebar:not(.open),
    .pricing-page .sidebar:not(.open),
    .help-page .sidebar:not(.open),
    .blog-page .sidebar:not(.open) {
        transform: translateX(100%);
    }

    /* Ensure children are visible */
    .legal-page .sidebar .sidebar-nav,
    .legal-page .sidebar .playlists-section {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (min-width: 480px) {
    .main-content {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 2rem;
    }
}

@media (min-width: 1025px) {

    /* Legal pages should have no right margin by default on desktop */
    .legal-page .main-content,
    .download-page .main-content,
    .pricing-page .main-content,
    .help-page .main-content,
    .blog-page .main-content {
        margin-right: 0;
    }

    /* Hide sidebar by default on legal pages on desktop */
    .legal-page .sidebar.collapsed,
    .download-page .sidebar.collapsed,
    .pricing-page .sidebar.collapsed,
    .help-page .sidebar.collapsed,
    .blog-page .sidebar.collapsed {
        transform: translateX(256px);
    }

    /* Show sidebar when NOT collapsed */
    .legal-page .sidebar:not(.collapsed),
    .download-page .sidebar:not(.collapsed),
    .pricing-page .sidebar:not(.collapsed),
    .help-page .sidebar:not(.collapsed),
    .blog-page .sidebar:not(.collapsed) {
        transform: translateX(0);
    }

    /* Push content when sidebar is open */
    .legal-page:not(:has(.sidebar.collapsed)) .main-content,
    .download-page:not(:has(.sidebar.collapsed)) .main-content,
    .pricing-page:not(:has(.sidebar.collapsed)) .main-content,
    .help-page:not(:has(.sidebar.collapsed)) .main-content,
    .blog-page:not(:has(.sidebar.collapsed)) .main-content {
        margin-right: 256px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero {
        height: 350px;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 400px;
        margin-bottom: 3rem;
    }
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.8) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 1rem;
}

@media (min-width: 640px) {
    .hero-content {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 2rem;
    }
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--color-primary);
    border-radius: 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

@media (min-width: 640px) {
    .hero-content h2 {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

.hero-content p {
    color: #D1D5DB;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: white;
    color: black;
    border: none;
    border-radius: 2rem;
    font-family: 'Vazir';
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* Sections */
.section {
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .section {
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 768px) {
    .section {
        margin-bottom: 3rem;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
}

.auth-btn {
    padding: 0.4rem 0.9rem;
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: bolder;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-main);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--color-shadow);
    transition: all 0.2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--color-shadow);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

/* Cards */
.card {
    background: var(--color-bg-card);
    border-radius: 0.5rem;
    padding: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

@media (max-width: 480px) {
    .card {
        padding: 0.75rem;
    }
}



.card-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
}

.card-image.circle {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    display: flex;
    max-height: 95%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-btn-card {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.play-btn-card:hover {
    transform: scale(1.1);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.25rem;
}

.verified-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Genres Grid */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 640px) {
    .genres-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {

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

.genre-card {
    height: 120px;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

@media (max-width: 480px) {
    .genre-card {
        height: 100px;
        padding: 0.75rem;
    }
}

@media (min-width: 768px) {
    .genre-card {
        height: 120px;
    }


}

.genre-card:hover {
    transform: scale(1.05);
}

.genre-card h4 {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--color-bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    border-radius: 1rem 1rem 0 0;
}

@media (min-width: 640px) {
    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
        margin-top: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
        margin-top: 4rem;
    }


}

[data-theme='light'] .footer {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1.25rem;
    color: var(--color-light);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.3s;
}

[data-theme='light'] .social-icon {
    background: #e2e8f0;
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #6B7280;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem 0.75rem;
        margin-top: 2rem;
    }

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

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

/* Footer trust badges */
/* استایل اصلی فوتر - نسخه بهبود یافته */
.footer-trust {
    max-width: 1200px;
    background: #0f172a;
    padding: 20px !important;
    border-radius: 20px;
    margin: 0 auto;
    margin-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;

    /* ویژگی‌های جدید برای افکت */
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

[data-theme='light'] .footer-trust {
    background: #25d366 !important;
}

/* ایجاد یک لایه درخشان پشت زمینه */
.footer-trust::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.1),
            rgba(96, 165, 250, 0.3),
            rgba(167, 139, 250, 0.3),
            rgba(59, 130, 246, 0.1),
            transparent);
    z-index: 1;
    transition: right 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* افکت هاور - درخشش از راست به چپ */
.footer-trust:hover::before {
    right: 100%;
}

/* افکت برگشت - درخشش از چپ به راست */
.footer-trust::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(16, 185, 129, 0.1),
            rgba(34, 197, 94, 0.2),
            rgba(16, 185, 129, 0.1),
            transparent);
    z-index: 1;
    transition: left 0s;
}

/* فعال کردن افکت برگشت هنگام خروج از هاور */
.footer-trust:hover::after {
    left: 100%;
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

/* بهبود استایل عناصر داخلی هنگام هاور */
.footer-trust:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
}

/* اطمینان از اینکه محتوای فوتر بالاتر از افکت درخشان قرار می‌گیرد */
.footer-trust>* {
    position: relative;
    z-index: 2;
}

.footer-trust h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--color-light);
}

.trust-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.trust-badges img {
    height: 100px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
}

@media (max-width: 640px) {
    .footer-trust {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Page-specific footer tweaks */
.upload-page .footer {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.06), transparent);
    padding-bottom: 2.5rem;
}

.blog-post-page .footer {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
    padding-bottom: 2.5rem;
}

.profile-page .footer {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), transparent);
    padding-bottom: 2.5rem;
}

/* Slightly bigger trust badges on upload page for emphasis */
.upload-page .footer-trust .trust-badges img {
    height: 48px;
}


/* Full Player */
.full-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-main) 0%, #0f1419 100%);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
    animation: playerSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes playerSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.full-player.active {
    display: flex;
    transform: translateY(0);
}

.full-player-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(100px) brightness(0.3) saturate(1.2);
    opacity: 0.7;
    z-index: -1;
    transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='light'] .full-player-bg {
    filter: blur(100px) brightness(0.7) saturate(0.8);
    opacity: 0.5;
}

.full-player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow-y: auto;
}

.full-player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.full-player-queue-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-player-visualizer-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.full-player-visualizer-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.05);
}

.full-player-visualizer-toggle.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.full-player-close {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

[data-theme='light'] .full-player-close {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
}

.full-player-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.full-player-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.full-player:not(.lyrics-active) .full-player-right {
    display: none;
}

.full-player:not(.lyrics-active) .full-player-main {
    grid-template-columns: 1fr;
}

.full-player:not(.lyrics-active) .full-player-cover-container {
    max-width: 550px;
}

.full-player.lyrics-active .full-player-main {
    grid-template-columns: 1fr 1fr;
}

.full-player.lyrics-active .full-player-left {
    display: flex;
}

.full-player.lyrics-active .full-player-right {
    display: flex;
}

.full-player-left {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInLeft 0.6s ease-out;
}

.full-player-cover-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.full-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.full-player-cover-container:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(255, 255, 255, 0.15);
}

.cover-visualizer {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><rect fill="%23ffffff" width="100" height="100" opacity="0.1"/></svg>');
    animation: visualizerAnim 0.5s ease-in-out infinite;
}

@keyframes visualizerAnim {

    0%,
    100% {
        opacity: 0.05;
    }

    50% {
        opacity: 0.15;
    }
}

.full-player-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.full-player-info {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

.full-player-info h2 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: white;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

[data-theme='light'] .full-player-info h2 {
    color: var(--color-text-main);
    background: none;
    -webkit-text-fill-color: unset;
}

.full-player-info p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

[data-theme='light'] .full-player-info p {
    color: var(--color-primary);
}

.full-player-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.lyrics-container {
    flex: 1;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 1.5rem;
    margin-top: 1.5rem;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 85%, transparent);
}

.lyrics-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.3s;
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lyrics-content {
    font-size: 1.2rem;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.4);
    padding: 1.5rem 0;
}

[data-theme='light'] .lyrics-content {
    color: var(--color-text-muted);
}

.lyrics-line.active {
    color: white;
    font-weight: 600;
    font-size: 1.35rem;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.3);
}

[data-theme='light'] .lyrics-line.active {
    color: var(--color-primary);
    text-shadow: none;
}

.full-player-controls-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.full-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    color: white;
}

.play-btn-large {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 40px rgba(29, 185, 84, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.play-btn-large:hover {
    transform: scale(1.12);
    box-shadow: 0 25px 60px rgba(29, 185, 84, 0.5);
}

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

.full-player-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.full-player-action-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.full-player-action-buttons .icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-player-action-buttons .icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.full-player-action-buttons .icon-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

@media (max-width: 1024px) {
    .full-player-content {
        padding: 2rem;
    }

    .full-player-info {
        grid-template-columns: 1fr;
    }

    .full-player-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .full-player-right {
        display: none;
    }

    .full-player.lyrics-active .full-player-left {
        display: none;
    }

    .full-player.lyrics-active .full-player-right {
        display: flex;
    }

    .full-player.lyrics-active .full-player-main {
        grid-template-columns: 1fr;
    }

    .full-player-cover-container {
        max-width: 380px;
    }

    .full-player-info h2 {
        font-size: 2.2rem;
    }

    .full-player-info p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .full-player-content {
        padding: 1.5rem;
    }

    .full-player-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .full-player-cover-container {
        max-width: 300px;
    }

    .full-player-info h2 {
        font-size: 1.8rem;
    }

    .full-player-info p {
        font-size: 1rem;
    }

    .play-btn-large {
        width: 70px;
        height: 70px;
    }

    .play-btn-large svg {
        width: 28px;
        height: 28px;
    }

    .full-player-controls {
        gap: 1.5rem;
    }

    .full-player-extra {
        gap: 0.5rem !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .full-player-meta {
        gap: 0.5rem;
    }

    .meta-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .rating-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .full-player-action-buttons {
        order: 2;
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

    .volume-control {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .full-player-content {
        padding: 1rem;
    }

    .full-player-top-bar {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .full-player-close {
        width: 36px;
        height: 36px;
    }

    .full-player-cover-container {
        max-width: 240px;
    }

    .full-player-info h2 {
        font-size: 1.5rem;
    }

    .full-player-info p {
        font-size: 0.9rem;
    }

    .play-btn-large {
        width: 60px;
        height: 60px;
    }

    .play-btn-large svg {
        width: 24px;
        height: 24px;
    }

    .full-player-controls {
        gap: 1rem;
    }

    .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .full-player-action-buttons .icon-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 1024px) {
    .full-player-content {
        padding: 1.5rem;
    }

    .full-player-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .full-player-right {
        display: none;
        height: 100%;
    }

    .full-player.lyrics-active .full-player-left {
        display: none;
    }

    .full-player.lyrics-active .full-player-right {
        display: flex;
        flex-direction: column;
    }

    .full-player-cover-container {
        max-width: 280px;
        margin: 0 auto;
    }

    .full-player-info h2 {
        font-size: 1.5rem;
    }

    .full-player-info p {
        font-size: 1rem;
    }

    .full-player-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .play-btn-large {
        width: 64px;
        height: 64px;
    }

    .play-btn-large svg {
        width: 24px;
        height: 24px;
    }

    .lyrics-container {
        max-height: none;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .full-player-cover-container {
        max-width: 240px;
    }

    .full-player-extra .volume-control {
        display: none;
        /* Hide volume on very small screens to save space */
    }
}

/* Lyrics Toggle Button Style */
.icon-btn.active {
    color: var(--color-primary);
}

.full-player-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.full-player-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-player-cover-container {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.full-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-player-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.full-player-info {
    margin-bottom: 2rem;
}

.full-player-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

[data-theme='light'] .full-player-info h2 {
    color: var(--color-text-main);
}

.full-player-info p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

[data-theme='light'] .full-player-info p {
    color: var(--color-text-muted);
}

.lyrics-container {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.lyrics-content {
    font-size: 1.25rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
}

[data-theme='light'] .lyrics-content {
    color: var(--color-text-muted);
}

.lyrics-line.active {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

[data-theme='light'] .lyrics-line.active {
    color: var(--color-primary);
}

.full-player-controls-section {
    padding: 2rem 0;
}

.full-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-btn-large:hover {
    transform: scale(1.1);
}

/* Lyrics Scrollbar */
.lyrics-container::-webkit-scrollbar {
    width: 4px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.player {
    position: fixed;
    bottom: 10px;
    border-radius: 20px;
    max-width: 82%;
    margin: 0;
    left: 0;
    /* right: 0; */
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .player {
        max-width: 100%;
        bottom: 0;
        border-radius: 20px;
        left: 0;
        right: 0;
        bottom: 5px;
    }
}

.player-progress-bar {
    height: 6px;
    margin: 0 auto;
    margin-top: 10px;
    max-width: 95%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
}

.player-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--color-progress) 0%, #10b981 100%);
    width: var(--progress-width, 0%);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.progress-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    margin: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    z-index: 2;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-progress);
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-progress);
}

.progress-slider:hover::-webkit-slider-thumb {
    opacity: 1;
    transform: scale(1.2);
}

.progress-slider:hover::-moz-range-thumb {
    opacity: 1;
    transform: scale(1.2);
}

.progress-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.player-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .player-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .player-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.player-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 0;
}

.player-left:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .player-left {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .player-left {
        gap: 0.5rem;
    }
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .player-cover {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .player-cover {
        width: 40px;
        height: 40px;
    }
}

.player-cover:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.player-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-main);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.player-info h4:hover {
    color: var(--color-progress);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .player-info h4 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .player-info h4 {
        font-size: 0.7rem;
    }
}

.player-info p {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.player-info p:hover {
    opacity: 1;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .player-info p {
        font-size: 0.65rem;
    }
}

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

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .player-controls {
        gap: 0.75rem;
        margin-bottom: 0.4rem;
    }
}

@media (max-width: 480px) {
    .player-controls {
        gap: 0.6rem;
        margin-bottom: 0.25rem;
    }
}

.control-btn {
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.control-btn:hover {
    color: var(--color-primary);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .control-btn {
        padding: 0.4rem;
    }
}

.control-btn:hover {
    color: var(--color-primary);
}

.play-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 50%;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.play-btn:hover::before {
    width: 100%;
    height: 100%;
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .play-btn {
        width: 36px;
        height: 36px;
    }
}

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

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9CA3AF;
    position: relative;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.9;
    width: 100%;
}

@media (max-width: 768px) {
    .player-time {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .player-time {
        font-size: 0.65rem;
    }
}

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-right:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .player-right {
        gap: 0.5rem;
        background: none;
        padding: 0;
        border: none;
    }
}

@media (max-width: 480px) {
    .player-right {
        display: flex;
        justify-content: center;
        width: auto;
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    direction: ltr;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .volume-control {
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .volume-control {
        display: none;
    }
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #4B5563;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .volume-slider {
        width: 70px;
    }
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

/* Like Button Active State */
.liked {
    fill: var(--color-secondary);
    stroke: var(--color-secondary);
}

/* Songs Table */
.songs-table {
    background: var(--color-bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .songs-table {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .songs-table {
        font-size: 0.75rem;
    }
}

.songs-table .song-item {
    display: grid;
    grid-template-columns: 40px 56px minmax(0, 1.5fr) 64px 140px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

@media (max-width: 768px) {
    .songs-table .song-item {
        grid-template-columns: 40px 48px 1fr 40px;
        gap: 0.75rem;
        padding: 0.6rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .songs-table .song-item {
        grid-template-columns: 32px 40px 1fr;
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

.song-cover-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .song-cover-wrapper {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .song-cover-wrapper {
        width: 32px;
        height: 32px;
    }
}

.song-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.song-item:hover .song-play-btn {
    opacity: 1;
}

.song-play-btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    opacity: 1 !important;
}

.icon-btn-small {
    background: none;
    border: none;
    color: var(--color-light);
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-small:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

[data-theme='light'] .icon-btn-small:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Download section in song page */
.download-section {
    background: var(--color-bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .download-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .download-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
}

.download-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .download-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .download-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

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

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

.download-card {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .download-card {
        padding: 0.75rem;
        border-radius: 0.5rem;
    }
}

[data-theme='light'] .download-card {
    background: #F1F5F9;
    border-color: #E2E8F0;
}

.download-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.download-quality {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
    .download-quality {
        font-size: 1.1rem;
    }
}

.download-size {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .download-size {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

.btn-download {
    width: 100%;
    padding: 0.6rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Vazir';
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .btn-download {
        padding: 0.55rem;
        font-size: 0.85rem;
    }
}

.btn-download:hover {
    opacity: 0.9;
}

.songs-table .song-item:last-child {
    border-bottom: none;
}

.song-number {
    color: #9CA3AF;
    text-align: center;
    font-size: 0.75rem;
}

.song-cover,
.song-cover-small {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.song-title {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-plays,
.song-stats {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.song-duration {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
}

.song-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.songs-table .song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.songs-table .song-item:hover .song-actions {
    opacity: 1;
}

.song-like,
.song-options,
.icon-btn-small {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.song-row {
    display: grid;
    grid-template-columns: 40px 1fr 2fr 100px 40px;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    transition: background 0.3s;
    cursor: pointer;
}

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

.song-row-number {
    color: #9CA3AF;
    text-align: center;
}

.song-row-cover {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.song-row-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.song-row-info p {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.song-row-album {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.song-row-duration {
    color: #9CA3AF;
    font-size: 0.875rem;
    text-align: center;
}

.song-row-actions {
    opacity: 0;
    transition: opacity 0.3s;
}

.song-row:hover .song-row-actions {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-down {
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-left {
    animation: slideLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Transitions */
.page-transition {
    animation: fadeIn 0.4s ease-in-out;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme='light'] .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hover effects for cards */
.card,
.info-card,
.song-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-align: center;
}

.card:hover,
.info-card:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #0f172a;
}

[data-theme='light'] .card:hover,
[data-theme='light'] .info-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: rgb(51, 20, 163);
    background: #d1dfff;
}

.song-item:hover {
    transform: translateX(-5px);
}

/* Button hover effects */
.btn-primary,
.btn-secondary,
.icon-btn {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
    filter: brightness(1.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Image hover effect */
.img-hover-zoom {
    overflow: hidden;
    text-align: center;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 80px;
        width: 260px;
        background: var(--color-sidebar-bg);
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        border-left: 1px solid var(--color-header-border);
    }

    /* Remove bottom gap on legal pages (no player) */
    .legal-page .sidebar,
    .download-page .sidebar,
    .pricing-page .sidebar,
    .help-page .sidebar,
    .blog-page .sidebar {
        bottom: 0;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Fix content shifting when sidebar is open on mobile - exclude legal pages */
    body:not(.legal-page):not(.download-page):not(.pricing-page):not(.help-page):not(.blog-page):has(.sidebar.open) .main-content {
        transform: translateX(-260px);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        margin-right: 0 !important;
        overflow: hidden;
        padding: 1rem;
        transition: transform 0.3s ease-in-out;
    }

    .player-content {
        grid-template-columns: 1fr;
    }

    .player-right .volume-control {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 56px;
    }

    .logo-text {
        display: none;
    }

    .sidebar {
        width: 240px;
        bottom: 70px;
    }

    .legal-page .sidebar,
    .download-page .sidebar,
    .pricing-page .sidebar,
    .help-page .sidebar,
    .blog-page .sidebar {
        bottom: 0;
    }

    .main-content {
        margin-bottom: 70px;
        padding: 1rem;
    }

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

    .hero {
        height: 280px;
        margin-bottom: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .player-left .icon-btn {
        display: none;
    }

    .player-info h4 {
        font-size: 0.8rem;
    }

    .player-info p {
        font-size: 0.7rem;
    }

    .player-time {
        gap: 100px;
        font-size: 0.7rem;
    }

    .player-cover {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 56px;
    }

    .header-content {
        height: 56px;
    }

    .header-left,
    .header-right {
        gap: 0.75rem;
    }

    .logo-text {
        display: none;
    }

    .sidebar {
        width: 220px;
        padding: 1rem;
        bottom: 65px;
        font-size: 0.85rem;
    }

    .nav-item {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }

    .main-content {
        margin-top: 56px;
        margin-bottom: 65px;
        padding: 0.75rem;
    }

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

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

    .hero {
        height: 250px;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .section {
        margin-bottom: 2rem;
    }

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

    .card {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.875rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .genre-card {
        height: 120px;
        padding: 0.5rem;
    }

    .genre-card h4 {
        font-size: 0.85rem;
    }

    .player-content {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .player-left {
        gap: 0.75rem;
    }

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

    .player-info h4 {
        font-size: 0.75rem;
    }

    .player-info p {
        font-size: 0.65rem;
    }

    .player-controls {
        gap: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .control-btn {
        padding: 0.4rem;
    }

    .play-btn {
        width: 36px;
        height: 36px;
    }

    .player-time {
        gap: 60px;
        font-size: 0.65rem;
    }

    .volume-slider {
        width: 70px;
    }

    .footer {
        padding: 1.5rem 1rem 0.75rem;
        margin-top: 2rem;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px var(--color-shadow);
    border: 1px solid var(--color-border);
}

@media (min-width: 640px) {
    .modal-content {
        padding: 2rem;
    }
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-main);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-input-bg);
    color: var(--color-text-main);
}

/* Lyrics Modal Specific */
.lyrics-modal {
    max-width: 600px;
    width: 90vw;
}

.lyrics-song-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-input-bg);
    border-radius: 12px;
}

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

.lyrics-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--color-text-main);
}

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

.lyrics-text-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--color-input-bg);
    border-radius: 12px;
}

.lyrics-text-container::-webkit-scrollbar {
    width: 6px;
}

.lyrics-text-container::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
    border-radius: 3px;
}

.lyrics-text-container::-webkit-scrollbar-thumb {
    background: var(--color-progress);
    border-radius: 3px;
}

.lyrics-text-container {
    scrollbar-width: thin;
    scrollbar-color: var(--color-progress) var(--color-bg-secondary);
}

.lyrics-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text-main);
    text-align: center;
    white-space: pre-line;
}

.lyrics-text p {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.lyrics-text::-webkit-scrollbar {
    width: 6px;
}

.lyrics-text::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
    border-radius: 3px;
}

.lyrics-text::-webkit-scrollbar-thumb {
    background: var(--color-progress);
    border-radius: 3px;
}

/* Playlist Modal Specific */
.playlist-modal {
    max-width: 500px;
    width: 90vw;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: 'Vazir';
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-progress);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.error-message {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.cover-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cover-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px dashed var(--color-border);
    background: var(--color-bg-secondary);
}

.upload-btn {
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-progress);
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Vazir';
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

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

.btn-secondary:hover {
    background: var(--color-bg-secondary);
}

/* Modern Song Header Styles - Complete Redesign */

/* Ultra-modern glassmorphism container */
.song-header {
    position: relative;
    padding: 4rem 2rem;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 41, 59, 0.9) 50%,
            rgba(51, 65, 85, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.song-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--song-cover-url, linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c));
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.3) saturate(1.5);
    opacity: 0.7;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

/*
.song-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(15, 23, 42, 0.1) 50%,
            rgba(15, 23, 42, 0.3) 100%);
    z-index: 0;
}
*/
/* Content container with advanced layering */
.song-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    transform: perspective(1000px) translateZ(50px);
}

/* Premium cover design with floating effect */
.song-cover-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(102, 126, 234, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    transform-style: preserve-3d;
}

.song-cover-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientRotate 4s linear infinite;
}

.song-cover-wrapper:hover::before {
    opacity: 1;
}

.song-cover-wrapper:hover {
    transform:
        perspective(1000px) rotateY(15deg) rotateX(5deg) scale(1.05) translateZ(20px);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(102, 126, 234, 0.4);
}

.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.song-cover-wrapper:hover .song-cover {
    transform: scale(1.1);
}

/* Advanced song info with typography hierarchy */
.song-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    position: relative;
}

.song-title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.song-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
}

.song-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    opacity: 0.6;
}

.song-artist {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: inline-block;
}

.song-artist::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.song-artist:hover::after {
    width: 100%;
}

.song-artist:hover {
    color: white;
    transform: translateY(-2px);
}

.song-album {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.song-album:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Revolutionary play button */
.title-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow:
        0 12px 30px rgba(34, 197, 94, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.title-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.title-play-btn:hover::before {
    width: 100px;
    height: 100px;
}

.title-play-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow:
        0 16px 40px rgba(34, 197, 94, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #25d366 0%, #1abd57 50%, #16a34a 100%);
}

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

.title-play-btn svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Futuristic action buttons */
.song-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    color: white;
    box-shadow:
        0 10px 30px rgba(34, 197, 94, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 14px 40px rgba(34, 197, 94, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #25d366 0%, #1abd57 50%, #16a34a 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Advanced animations */
@keyframes backgroundPulse {

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

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

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

.song-header {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.song-cover-wrapper {
    animation: scaleIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s both, float 6s ease-in-out infinite;
}

.song-title {
    animation: textGlow 3s ease-in-out infinite;
}

.song-info>* {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.song-info>*:nth-child(1) {
    animation-delay: 0.4s;
}

.song-info>*:nth-child(2) {
    animation-delay: 0.6s;
}

.song-info>*:nth-child(3) {
    animation-delay: 0.8s;
}

.song-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1s both;
}

/* Light theme with advanced glassmorphism */
[data-theme='light'] .song-header {
    background: linear-gradient(135deg,
            rgba(248, 250, 252, 0.9) 0%,
            rgba(241, 245, 249, 0.95) 50%,
            rgba(226, 232, 240, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .song-header::before {
    filter: blur(80px) brightness(0.8) saturate(0.6) hue-rotate(30deg);
}

[data-theme='light'] .song-title {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--color-text-main);
    background-clip: text;
}



[data-theme='light'] .song-artist:hover {
    color: #1e293b;
}

[data-theme='light'] .song-album {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme='light'] .btn-secondary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--color-success);
}

/* Ultra-responsive design */
@media (max-width: 1200px) {
    .song-header {
        padding: 3.5rem 2rem;
        margin: -1.5rem -1.5rem 2.5rem -1.5rem;
    }

    .song-cover-wrapper {
        width: 200px;
        height: 200px;
    }

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

    .song-artist {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .song-header {
        padding: 3rem 1.5rem;
        margin: -1rem -1rem 2rem -1rem;
        border-radius: 1.5rem;
        transform: perspective(1000px) rotateX(1deg);
    }

    .song-header::before {
        filter: blur(60px) brightness(0.4) saturate(1.5);
    }

    .song-cover-wrapper {
        width: 160px;
        height: 160px;
    }

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

    .song-artist {
        font-size: 1.125rem;
    }

    .song-album {
        font-size: 1rem;
    }

    .title-play-btn {
        width: 56px;
        height: 56px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .song-header {
        padding: 2.5rem 1rem;
        margin: -0.75rem -0.75rem 1.5rem -0.75rem;
        border-radius: 1rem;
    }

    .song-cover-wrapper {
        width: 120px;
        height: 120px;
        border-radius: 1rem;
    }

    .song-title-section {
        flex-direction: column;
        gap: 1rem;
    }

    .song-title {
        font-size: 1.75rem;
    }

    .song-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* High-end accessibility features */
@media (prefers-reduced-motion: reduce) {

    .song-header,
    .song-cover-wrapper,
    .song-info>*,
    .song-actions,
    .song-header::before {
        animation: none;
    }

    .song-cover-wrapper,
    .btn-primary,
    .btn-secondary,
    .title-play-btn {
        transition: all 0.2s ease;
    }

    .song-cover-wrapper:hover {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .song-header {
        border: 2px solid white;
    }

    .btn-primary {
        border: 2px solid white;
    }

    .btn-secondary {
        border: 2px solid white;
    }
}

/* ===== PLAYLIST TABLE STYLES ===== */
.playlist-songs-table {
    font-family: 'Vazir';
    direction: rtl;
    padding: 1rem 0;
}

.playlist-song-item {
    display: grid;
    grid-template-columns: 50px 60px 1fr 80px 120px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.playlist-song-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.playlist-song-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.playlist-song-item:hover::before {
    opacity: 1;
}

.playlist-song-item .song-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-family: 'Vazir';
    transition: all 0.3s ease;
}

.playlist-song-item:hover .song-number {
    color: #667eea;
    transform: scale(1.1);
}

.playlist-song-item .song-cover-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.playlist-song-item:hover .song-cover-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.playlist-song-item .song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.playlist-song-item:hover .song-cover {
    transform: scale(1.1);
}

.playlist-song-item .song-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.playlist-song-item:hover .song-play-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.playlist-song-item .song-play-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.playlist-song-item .song-play-btn svg {
    width: 14px;
    height: 14px;
    color: white;
}

.playlist-song-item .song-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'Vazir';
}

.playlist-song-item .song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    font-family: 'Vazir';
    transition: color 0.3s ease;
}

.playlist-song-item:hover .song-title {
    color: #667eea;
}

.playlist-song-item .song-artist {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'Vazir';
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-song-item .song-artist:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.playlist-song-item .song-plays {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-family: 'Vazir';
}

.playlist-song-item .song-duration {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-family: 'Vazir';
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.playlist-song-item .song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.playlist-song-item .icon-btn-small {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.playlist-song-item .icon-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.playlist-song-item .icon-btn-small.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Responsive Playlist Table */
@media (max-width: 768px) {
    .playlist-song-item {
        grid-template-columns: 40px 50px 1fr auto;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
    }

    .playlist-song-item .song-number {
        font-size: 1rem;
    }

    .playlist-song-item .song-cover-wrapper {
        width: 45px;
        height: 45px;
    }

    .playlist-song-item .song-title {
        font-size: 1rem;
    }

    .playlist-song-item .song-artist {
        font-size: 0.85rem;
    }

    .playlist-song-item .song-plays {
        font-size: 0.8rem;
    }

    .playlist-song-item .song-duration {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .playlist-song-item .song-actions {
        position: absolute;
        top: 0.8rem;
        left: 0.8rem;
        gap: 0.3rem;
    }

    .playlist-song-item .icon-btn-small {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .playlist-song-item {
        grid-template-columns: 35px 45px 1fr;
        gap: 0.6rem;
        padding: 0.7rem 0.8rem;
    }

    .playlist-song-item .song-duration {
        display: none;
    }

    .playlist-song-item .song-actions {
        position: static;
        grid-column: 4;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .playlist-song-item .song-info {
        gap: 0.2rem;
    }
}

@media (max-width: 360px) {
    .playlist-song-item {
        grid-template-columns: 30px 40px 1fr;
        padding: 0.6rem 0.7rem;
    }

    .playlist-song-item .song-cover-wrapper {
        width: 40px;
        height: 40px;
    }

    .playlist-song-item .song-title {
        font-size: 0.9rem;
    }

    .playlist-song-item .song-artist {
        font-size: 0.8rem;
    }

    .playlist-song-item .song-plays {
        font-size: 0.75rem;
    }
}

/* ===== ALBUM TABLE STYLES ===== */
.album-songs-table {
    font-family: 'Vazir';
    direction: rtl;
    padding: 1rem 0;
}

.album-song-item {
    display: grid;
    grid-template-columns: 50px 60px 1fr 80px 200px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.album-song-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.album-song-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.album-song-item:hover::before {
    opacity: 1;
}

.album-song-item .song-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-family: 'Vazir';
    transition: all 0.3s ease;
}

.album-song-item:hover .song-number {
    color: #ff6b6b;
    transform: scale(1.1);
}

.album-song-item .song-cover-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.album-song-item:hover .song-cover-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.album-song-item .song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-song-item:hover .song-cover {
    transform: scale(1.1);
}

.album-song-item .song-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.album-song-item:hover .song-play-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.album-song-item .song-play-btn:hover {
    background: linear-gradient(135deg, #ff8e53 0%, #ff6b6b 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.album-song-item .song-play-btn svg {
    width: 14px;
    height: 14px;
    color: white;
}

.album-song-item .song-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'Vazir';
}

.album-song-item .song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    font-family: 'Vazir';
    transition: color 0.3s ease;
}

.album-song-item:hover .song-title {
    color: #ff6b6b;
}

.album-song-item .song-artist {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'Vazir';
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-song-item .song-artist:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.album-song-item .song-plays {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-family: 'Vazir';
}

.album-song-item .song-duration {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-family: 'Vazir';
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.album-song-item .song-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.album-song-item .icon-btn-small {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.album-song-item .icon-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.album-song-item .icon-btn-small.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-color: #ff6b6b;
    color: white;
}

/* Responsive Album Table */
@media (max-width: 768px) {
    .album-song-item {
        grid-template-columns: 40px 50px 1fr auto;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
    }

    .album-song-item .song-number {
        font-size: 1rem;
    }

    .album-song-item .song-cover-wrapper {
        width: 45px;
        height: 45px;
    }

    .album-song-item .song-title {
        font-size: 1rem;
    }

    .album-song-item .song-artist {
        font-size: 0.85rem;
    }

    .album-song-item .song-plays {
        font-size: 0.8rem;
    }

    .album-song-item .song-duration {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .album-song-item .song-actions {
        position: absolute;
        top: 0.8rem;
        left: 0.8rem;
        gap: 0.3rem;
    }

    .album-song-item .icon-btn-small {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .album-song-item {
        grid-template-columns: 35px 45px 1fr;
        gap: 0.6rem;
        padding: 0.7rem 0.8rem;
    }

    .album-song-item .song-duration {
        display: none;
    }

    .album-song-item .song-actions {
        position: static;
        grid-column: 4;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }

    .album-song-item .song-info {
        gap: 0.2rem;
    }
}

@media (max-width: 360px) {
    .album-song-item {
        grid-template-columns: 30px 40px 1fr;
        padding: 0.6rem 0.7rem;
    }

    .album-song-item .song-cover-wrapper {
        width: 40px;
        height: 40px;
    }

    .album-song-item .song-title {
        font-size: 0.9rem;
    }

    .album-song-item .song-artist {
        font-size: 0.8rem;
    }

    .album-song-item .song-plays {
        font-size: 0.75rem;
    }
}

/* 3-Column Layout for Song Header */
.song-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    min-height: 200px;
    font-family: 'Vazir';
    padding: 2rem;
    direction: rtl;
}

.song-header-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ستون کاور */
.song-cover-column {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-cover-column .song-cover-wrapper {
    width: 350px;
    height: 350px;
    margin: 0;
}

.song-cover-column .song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ستون اطلاعات */
.song-info-column {
    padding: 0 2rem;
    text-align: right;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.song-info-column .song-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
    font-family: 'Vazir' !important;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.song-info-column .song-artist {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.3rem !important;
    font-family: 'Vazir' !important;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-info-column .song-artist:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.song-info-column .song-album {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0 !important;
    font-family: 'Vazir' !important;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-info-column .song-album:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ستون اکشن */
.song-actions-column {
    flex-shrink: 0;
    gap: 0.8rem;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-actions-column .btn-primary,
.song-actions-column .btn-secondary {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.6rem;
    font-family: 'Vazir', sans-serif !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    gap: 0.8rem;
}

.song-actions-column .btn-primary:last-child,
.song-actions-column .btn-secondary:last-child {
    margin-bottom: 0;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .song-header-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1.5rem;
        text-align: center;
        padding: 1rem;
    }

    .song-header-column {
        align-items: center;
        width: 100%;
    }

    /* کاور در موبایل */
    .song-cover-column {
        order: 1;
        margin-bottom: 1rem;
    }

    .song-cover-column .song-cover-wrapper {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    /* اطلاعات در موبایل */
    .song-info-column {
        order: 2;
        padding: 0;
        text-align: center;
        margin-bottom: 1rem;
    }

    .song-info-column .song-title {
        font-size: 2rem;
        margin-bottom: 0.8rem !important;
    }

    .song-info-column .song-artist {
        font-size: 1.2rem;
        margin-bottom: 0.5rem !important;
    }

    .song-info-column .song-album {
        font-size: 1rem;
    }

    /* دکمه‌ها در موبایل */
    .song-actions-column {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        min-width: auto;
    }

    .song-actions-column .btn-primary,
    .song-actions-column .btn-secondary {
        width: auto;
        min-width: 120px;
        margin-bottom: 0;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .song-actions-column .btn-primary svg,
    .song-actions-column .btn-secondary svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .song-header-content {
        gap: 1rem;
        padding: 0.5rem;
    }

    .song-cover-column .song-cover-wrapper {
        width: 120px;
        height: 120px;
    }

    .song-info-column .song-title {
        font-size: 1.6rem;
    }

    .song-info-column .song-artist {
        font-size: 1rem;
    }

    .song-info-column .song-album {
        font-size: 0.9rem;
    }

    .song-actions-column {
        gap: 0.3rem;
    }

    .song-actions-column .btn-primary,
    .song-actions-column .btn-secondary {
        min-width: 100px;
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 360px) {
    .song-actions-column {
        flex-direction: column;
        align-items: center;
    }

    .song-actions-column .btn-primary,
    .song-actions-column .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
}

/* Dynamic accent colors from JavaScript */
.song-header.loaded .song-cover-wrapper {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 0 30px var(--accent-color-light, rgba(102, 126, 234, 0.3));
}

.song-header.loaded .song-cover-wrapper:hover {
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.15),
        0 0 40px var(--accent-color-light, rgba(102, 126, 234, 0.4));
}

.song-header.loaded .song-title::after {
    background: linear-gradient(90deg, transparent, var(--accent-color, #667eea), transparent);
}

.song-header.loaded .song-artist::after {
    background: linear-gradient(90deg, var(--accent-color, #667eea), var(--accent-color, #764ba2));
}

.song-header.loaded .title-play-btn {
    background: linear-gradient(135deg, var(--accent-color, #22c55e) 0%, var(--accent-color, #16a34a) 50%, #15803d 100%);
    box-shadow:
        0 12px 30px var(--accent-color-light, rgba(34, 197, 94, 0.4)),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.song-header.loaded .btn-primary {
    background: linear-gradient(135deg, var(--accent-color, #22c55e) 0%, var(--accent-color, #16a34a) 50%, #15803d 100%);
    box-shadow:
        0 10px 30px var(--accent-color-light, rgba(34, 197, 94, 0.4)),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.song-header.loaded .btn-primary:hover {
    box-shadow:
        0 14px 40px var(--accent-color-light, rgba(34, 197, 94, 0.5)),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.song-header.loaded .btn-secondary:hover {
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3),
        0 0 0 2px var(--accent-color-light, rgba(255, 255, 255, 0.15));
    color: #15803d;
}

/* Lyrics button disabled state */
.icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-btn:disabled:hover {
    background: none;
    transform: none;
}

/* Responsive for modals */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.25rem;
        margin: 1rem;
        max-width: 95vw;
    }

    .lyrics-modal {
        max-width: 95vw;
        width: 90vw;
    }

    .playlist-modal {
        max-width: 95vw;
        width: 90vw;
    }

    .lyrics-song-info {
        flex-direction: column;
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-header {
        flex-direction: row;
        gap: 1rem;
    }

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

    .modal-close {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }

    .lyrics-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .lyrics-text-container {
        max-height: 300px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
}

/* Rating System */
.rating-container {
    display: flex;

    gap: 2px;
    align-items: center;
}

.star-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    opacity: 0.3;
    transition: all 0.2s ease;
    filter: grayscale(100%);
}

.star-btn:hover,
.star-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.star-btn:hover {
    transform: scale(1.2);
}

#miniPlayerRating .star-btn {
    font-size: 14px;
}

#fullPlayerRating .star-btn {
    font-size: 18px;
}

@media (max-width: 768px) {
    .rating-container {
        gap: 1px;

    }

    .star-btn {
        font-size: 14px;
        padding: 2px;
    }

    #fullPlayerRating .star-btn {
        font-size: 16px;
    }

    /* Progress Bar Enhancements */
    .progress-tooltip {
        position: absolute;
        top: -35px;
        background: var(--color-bg-card);
        color: var(--color-text-main);
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    .progress-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-top-color: var(--color-bg-card);
    }

    .player-progress-bar:hover .progress-tooltip {
        opacity: 1;
        visibility: visible;
    }

    .player-progress-bar {
        position: relative;
        height: 8px;
        background: var(--color-border);
        border-radius: 4px;
        cursor: pointer;
        margin: 0 auto;
        margin-top: 10px;
        max-width: 90%;
        transition: height 0.2s ease;
    }

    .player-progress-bar:hover {
        height: 10px;
    }

    .progress-slider {
        width: 100%;
        height: 100%;
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        outline: none;
        margin: 0;
        top: -8px;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

    .progress-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: 2px solid var(--color-primary);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .progress-slider::-moz-range-thumb {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: white;
        cursor: pointer;
        border: 2px solid var(--color-primary);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.2s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .player-progress-bar:hover .progress-slider::-webkit-slider-thumb,
    .player-progress-bar:hover .progress-slider::-moz-range-thumb {
        opacity: 1;
    }

    .progress-slider:active::-webkit-slider-thumb,
    .progress-slider:active::-moz-range-thumb {
        transform: scale(1.2);
    }

    /* Progress bar fill effect */
    .player-progress-bar::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: var(--progress-percentage, 100%);
        background: var(--color-primary);
        border-radius: 4px;
        transition: width 0.1s ease;
        z-index: 1;
    }

    .player-time {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--color-text-secondary);
        margin-top: 4px;
    }
}

/* Additional RTL Standards for Persian Website */

/* Persian text optimization */
.persian-text {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -moz-font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Better Persian number display */
.persian-numbers {
    font-variant-numeric: eastern-arabic;
    -webkit-font-variant-numeric: eastern-arabic;
    -moz-font-variant-numeric: eastern-arabic;
}

/* RTL-specific scrollbar styling */
.rtl-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.rtl-scrollbar::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
    border-radius: 4px;
}

.rtl-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-progress);
    border-radius: 4px;
    border: 2px solid var(--color-bg-secondary);
}

.rtl-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light, var(--color-progress));
}

/* Persian text selection */

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

/* RTL form improvements */
.form-control-rtl {
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', -apple-system, sans-serif;
}

.form-control-rtl::placeholder {
    direction: rtl;
    text-align: right;
}

/* Persian text wrapping */
.persian-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
}

/* RTL button improvements */
.btn-rtl {
    direction: rtl;
    text-align: center;
    font-family: 'Vazir', -apple-system, sans-serif;
}

/* Persian calendar and date improvements */
.date-rtl {
    direction: ltr;
    /* Keep dates LTR for consistency */
    text-align: right;
    unicode-bidi: embed;
}

/* Enhanced RTL spacing */
.rtl-spacing>*+* {
    margin-right: 1rem;
    margin-left: 0;
}

/* Persian text emphasis */
.text-emphasis-persian {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* RTL card improvements */
.card-rtl {
    direction: rtl;
    text-align: right;
}

.card-rtl .card-title {
    font-family: 'Vazir', -apple-system, sans-serif;
    font-weight: 700;
}

.card-rtl .card-text {
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Pages with no sidebar */
.legal-page,
.download-page,
.pricing-page,
.help-page {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* ===== Legal Pages Hero ===== */
.legal-hero {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6366f1 100%) !important;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 2rem;
    margin-bottom: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
    animation: gradient-shift 8s ease-in-out infinite;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.legal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
    color: white;
}

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== Legal Content ===== */
.legal-content {
    background: transparent;
    padding: 0;
    border: none;
    margin-bottom: 4rem;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-section {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.legal-section:hover .section-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(-10deg);
}

.legal-section p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.legal-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.check-list li {
    padding-right: 2rem;
}

.check-list li::before {
    content: '✓';
    background: none;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    top: -2px;
    width: auto;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-hero {
        padding: 4rem 1rem;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }
}

/* ===== Download Page Hero ===== */
.download-hero {
    background: linear-gradient(135deg, var(--color-bg-main) 0%, var(--color-bg-secondary) 50%, var(--color-bg-card) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
    animation: gradient-shift 8s ease-in-out infinite;
}

.download-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 1rem 0;
}

.download-hero-content p {
    font-size: 1.1rem;
    color: #3b82f6;
    margin: 0 0 1.5rem 0;
}

.download-hero-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: white;
}

/* App Cards */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.app-card,
.desktop-app-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover,
.desktop-app-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px var(--color-shadow);
}

.app-icon,
.os-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-card h3,
.desktop-app-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.os-version {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: right;
}

.app-features li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s;
    font-family: 'Vazir';
    font-weight: 600;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--color-shadow);
}

.rating {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.desktop-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-badge {
    display: inline-block;
    background: var(--color-input-bg);
    color: var(--color-text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin: 0.25rem;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background: var(--color-bg-secondary);
    font-weight: 700;
    color: var(--color-text-main);
}

.comparison-table td {
    color: var(--color-text-main);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-card {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.requirement-card h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    padding: 0.4rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Pricing Page Hero ===== */
.pricing-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
    animation: gradient-shift 8s ease-in-out infinite;
}

.pricing-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    margin: 0 0 1rem 0;
}

.pricing-hero-content p {
    font-size: 1.1rem;
    color: #f59e0b;
    margin: 0 0 2rem 0;
}

.pricing-toggle {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: rgb(0, 0, 0);
    border: 2px solid transparent;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Vazir';
}

.cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-btn.active {
    background: white;
    color: #3b82f6;
    border-color: white;
}

.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-main);
}

.plan-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.plan-price {
    margin: 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.price-monthly,
.monthly-price {
    color: var(--color-primary);
}

.price-yearly,
.yearly-price {
    color: var(--color-primary);
}

.currency {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.btn-plan {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
}

.plan-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.plan-features {
    flex: 1;
}

.plan-features h4 {
    color: var(--color-text-main);
    margin: 1rem 0 0.75rem 0;
    font-size: 1rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.feature-included {
    color: #10b981 !important;
}

.feature-excluded {
    color: #ef4444 !important;
}

/* ===== Help Page Hero ===== */
.help-hero {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%) !important;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
    animation: gradient-shift 8s ease-in-out infinite;
}

.help-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
}

.help-hero-content p {
    font-size: 1.1rem;
    color: white;
    margin: 0 0 1.5rem 0;
}

.contact-box {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.help-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.5rem;
    color: var(--color-text-main);
    font-family: 'Vazir';
}

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

.btn-search {
    padding: 0.75rem 1rem;
    background: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-progress);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.category-icon svg {
    width: 30%;
    stroke: var(--color-progress);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card:hover .category-icon {
    color: var(--color-primary);
}

.category-card h3 {
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.category-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.help-section {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.help-section.highlighted {
    background: var(--color-bg-hover);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-alpha, rgba(34, 197, 94, 0.3));
    transform: scale(1.02);
}

.help-articles {
    display: grid;
    gap: 1.5rem;
}

.article-item {
    background: var(--color-bg-secondary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-item:hover {
    background: var(--color-input-bg);
}

.article-item.expanded {
    background: var(--color-input-bg);
}

.article-item h4 {
    color: var(--color-text-main);
    margin: 0 0 0.5rem 0;
}

.article-item p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.article-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-main);
    line-height: 1.8;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--color-text-main);
    margin: 0 0 0.75rem 0;
}

.tip-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.about-hero {
    background: linear-gradient(135deg, var(--color-primary), rgba(22, 163, 74, 0.8));
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
    animation: gradient-shift 8s ease-in-out infinite;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-hero-icon {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.about-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.about-hero p {
    font-size: 1.1rem;
    color: #22c55e;
    margin: 0;
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-content p {
    color: var(--color-text-main);
    line-height: 1.8;
    font-size: 1rem;
}

.story-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    color: var(--color-text-muted);
}

.about-mission-section .section-title {
    margin-bottom: 2.5rem;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mission-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.mission-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.15);
}

.team-member-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.team-member-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem !important;
}

.team-member-bio {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.about-stats-section .section-title {
    margin-bottom: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-secondary));
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

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

/* ===== Contact Page Styles ===== */
.contact-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #f43f5e 50%, #a8116b 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
}

.contact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.contact-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px var(--color-shadow);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.contact-info-card p {
    color: var(--color-text-main);
    margin: 0.25rem 0;
    font-weight: 600;
}

.contact-desc {
    color: var(--color-text-muted) !important;
    font-weight: 400 !important;
    font-size: 0.85rem;
}

.contact-form-section {
    margin-top: 3rem;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    direction: ltr;
    color: var(--color-text-main);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Vazir', -apple-system, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    direction: ltr;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.checkbox-group input {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.submit-btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Upload Page Styles */
.upload-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.upload-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px var(--color-shadow);
}

.drop-zone {
    border: 2px dashed var(--color-border);
    border-radius: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(var(--color-primary-rgb), 0.02);
}

.drop-zone.highlight {
    border-color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
}

.upload-icon-wrapper {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.drop-zone h3 {
    margin-bottom: 0.5rem;
}

.file-info {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 1rem 0 1.5rem;
}

.upload-progress-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-main);
    border-radius: 0.75rem;
}

.file-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.progress-bar-wrapper {
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.cover-upload {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.cover-preview {
    width: 120px;
    height: 120px;
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.help-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.form-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.profile-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--color-bg-main);
    box-shadow: 0 10px 15px -3px var(--color-shadow);
}

.btn-edit-avatar {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--color-primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

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

.name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.bio {
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.profile-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}



.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-main);
    border-radius: 0.75rem;
    transition: transform 0.2s;
}

.activity-item:hover {
    transform: translateX(-5px);
}

.activity-icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.detailed-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.d-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--color-bg-main);
    border-radius: 0.5rem;
}

.mini-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mini-playlist {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mini-playlist img {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
}

/* 404 Page Styles - Updated */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 2rem;
}

.error-container {
    text-align: center;
    z-index: 10;
    background: rgba(var(--color-bg-card-rgb), 0.85);
    backdrop-filter: blur(12px);
    padding: 3.5rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(var(--color-border-rgb), 0.3);
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.error-container:hover {
    transform: translateY(-5px);
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared error visual styles */
.error-visual {
    margin-bottom: 2.5rem;
}

.error-code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.error-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.error-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    opacity: 0.9;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    min-width: 160px;
}

/* Floating notes animation - shared */
.broken-notes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.broken-notes span {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0;
    animation: float-note 4s infinite ease-in-out;
}

.broken-notes span:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    color: var(--color-primary);
}

.broken-notes span:nth-child(2) {
    top: 35%;
    left: 85%;
    animation-delay: 1.3s;
    color: #3b82f6;
}

.broken-notes span:nth-child(3) {
    top: 75%;
    left: 20%;
    animation-delay: 2.6s;
    color: #f59e0b;
}

@keyframes float-note {

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

    20% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.7;
        transform: translateY(-80px) rotate(180deg) scale(1.2);
    }

    80% {
        opacity: 0.1;
    }
}

/* Background blobs - shared */
.bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.bg-blobs .blob {
    position: absolute;
    filter: blur(70px);
    opacity: 0.25;
    border-radius: 50%;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--color-primary);
    top: -150px;
    right: -100px;
    animation: blob-float 20s infinite ease-in-out;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #3b82f6;
    bottom: -100px;
    left: -80px;
    animation: blob-float 25s infinite ease-in-out reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f59e0b;
    top: 60%;
    left: 15%;
    animation: blob-float 30s infinite ease-in-out;
}

@keyframes blob-float {

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

    33% {
        transform: translate(30px, -50px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Spin animation for records */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for new pages */
@media (max-width: 992px) {

    .upload-grid,
    .profile-dashboard {
        grid-template-columns: 1fr;
    }

    .profile-info-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .error-container {
        padding: 2rem;
        margin: 1rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .error-actions {
        flex-direction: column;
    }
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-highlight {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    border-right: 4px solid var(--color-primary);
}

.contact-highlight h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-highlight ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-highlight li {
    color: var(--color-text-muted);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-highlight li:before {
    content: "✓ ";
    color: var(--color-primary);
    font-weight: 700;
    margin-left: 0.5rem;
}

.social-links-contact {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.social-links-contact h3 {
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    transform: translateY(-3px);
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* FAQ Styles */
.faq-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px var(--color-shadow);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--color-bg-secondary);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 1.5rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Animations */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background: linear-gradient(135deg, var(--color-primary), rgba(22, 163, 74, 0.8));
    }

    50% {
        background: linear-gradient(-45deg, var(--color-primary), rgba(22, 163, 74, 0.9));
    }
}

/* Responsive Design for About & Contact */
@media (max-width: 768px) {
    .about-hero {
        padding: 2.5rem 1.5rem;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-hero-icon {
        font-size: 3rem;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image-placeholder {
        width: 250px;
        height: 250px;
    }

    .mission-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .contact-form-side {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 1.5rem;
    }

    .about-hero-icon {
        font-size: 2.5rem;
    }

    .mission-cards {
        grid-template-columns: 1fr;
    }

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

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

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #f97316 100%) !important;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    margin-bottom: 3rem;
    color: white;
    animation: gradient-shift 8s ease-in-out infinite;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.blog-posts {
    margin: 3rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: var(--color-bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.post-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
    transform: scale(1.08);
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.post-card:hover .post-image::after {
    opacity: 0.4;
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Category styling - assumes it will be moved to image or kept here with different style */
.post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: all 0.3s;
}

.post-category:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.post-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.post-card h3 a {
    color: var(--color-text-main);
    text-decoration: none;
    background-image: linear-gradient(to left, var(--color-progress) 0%, var(--color-progress) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: right bottom;
    transition: background-size 0.3s;
}

.post-card:hover h3 a {
    background-size: 100% 2px;
    color: var(--color-progress);
}

.post-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.read-more svg {
    transition: transform 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more:hover svg {
    transform: translateX(-4px);
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.page-btn {
    background: var(--color-bg-card);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

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

.page-info {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Blog Post Article */
.blog-post-article {
    max-width: 900px;
    margin: 0 auto;
}

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

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin: 2rem 0;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-main);
    margin: 2rem 0;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--color-text-main);
}

.post-body h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--color-text-main);
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.post-tags {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-bg-card);
    color: #ec4899;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.tag:hover {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

.post-share {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
}

.post-share h4 {
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-post {
    background: var(--color-bg-card);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 1rem;
    font-size: 1rem;
}

.related-post h4 a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post h4 a:hover {
    color: #ec4899;
}

/* Enhanced Related Section with Post Card Styling */
.related-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.related-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-main);
    position: relative;
}



.related-section .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.related-section .post-card {
    background: var(--color-bg-card);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px var(--color-shadow);
}

.related-section .post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary);
}

.related-section .post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-section .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-section .post-card:hover .post-image img {
    transform: scale(1.1);
}

.related-section .post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.related-section .post-card:hover .post-image::after {
    opacity: 0.5;
}

.related-section .post-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s;
}

.related-section .post-card:hover .post-category {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.related-section .post-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-section .post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.related-section .post-meta svg {
    opacity: 0.7;
}

.related-section .post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
}

.related-section .post-card h3 a {
    color: var(--color-text-main);
    text-decoration: none;
    background-image: linear-gradient(to left, var(--color-primary) 0%, var(--color-primary) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: right bottom;
    transition: all 0.3s ease;
}

.related-section .post-card:hover h3 a {
    background-size: 100% 2px;
    color: var(--color-primary);
}

.related-section .post-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-section .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.related-section .read-more:hover {
    gap: 0.75rem;
    color: var(--color-primary-hover);
}

.related-section .read-more svg {
    transition: transform 0.3s ease;
}

.related-section .read-more:hover svg {
    transform: translateX(-4px);
}

/* Responsive Design for Related Section */
@media (max-width: 768px) {
    .related-section .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-section .post-image {
        height: 180px;
    }

    .related-section .post-content {
        padding: 1.5rem;
    }

    .related-section .post-card h3 {
        font-size: 1.1rem;
    }
}

/* Comments Section */
.comments-section {
    margin: 3rem 0;
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 1rem;
}

.comments-section h2,
.comments-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    background: var(--color-bg-main);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #ec4899;
}

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

.comment-author {
    font-weight: 600;
    color: var(--color-text-main);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.comment-text {
    color: var(--color-text-main);
    line-height: 1.6;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form h4 {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    background: var(--color-input-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

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

.btn-primary {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.3);
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 2.5rem 1rem;
    }

    .blog-hero h1 {
        font-size: 1.75rem;
    }

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

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-body {
        font-size: 1rem;
    }

    .pagination {
        gap: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    span#currentTime,
    span#totalTime {
        font-size: 11px;
    }

    .coverPlay {
        display: none !important;
    }
}

/* Privacy Page Styles */
.legal-page {
    background-color: var(--color-bg-main);
}

.legal-hero {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6366f1 100%) !important;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.4);
    animation: gradient-shift 8s ease-in-out infinite;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.legal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1.5rem;
    animation: float 6s ease-in-out infinite;
    color: white;
}

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
}

.legal-section {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.legal-section h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.legal-section p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.legal-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.check-list li {
    padding-right: 2rem;
}

.check-list li::before {
    content: '✓';
    background: none;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    top: -2px;
    width: auto;
    height: auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 4rem 1rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }
}