/* پک کامل فونت Estedad */
@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Thin.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-ExtraLight.woff2') format('woff2'),
         url('../fonts/anj/Estedad-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Light.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Regular.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Medium.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-SemiBold.woff2') format('woff2'),
         url('../fonts/anj/Estedad-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Bold.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-ExtraBold.woff2') format('woff2'),
         url('../fonts/anj/Estedad-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/anj/Estedad-Black.woff2') format('woff2'),
         url('../fonts/anj/Estedad-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.btn-listen, .shuffle-btn{
    font-family: Estedad;
}

body {
    font-family: Estedad, 'Segoe UI', system-ui, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== هدر ========== */
.header-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #f0f0f0;
    /* position: sticky; */
    top: 0;
    z-index: 100;
}

.logo-area {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* ========== اسلایدر ========== */
.hero-slider {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
    cursor: grab;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease-out;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    /* transition: opacity 0.3s ease, visibility 0.3s ease; */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}
.slide-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.slide-content p {
    color: #666;
    font-size: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 24px;
    border-radius: 3px;
    background: #111;
}

/* ========== کاروسل و کارت کتاب ========== */
.section {
    margin-top: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.view-all {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}

.view-all:hover {
    color: #111;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 0 0 -15px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.book-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.carousel {
    scrollbar-width: none; /* فایرفاکس */
    -ms-overflow-style: none; /* IE/Edge */
}

.carousel::-webkit-scrollbar {
    display: none; /* کروم/سافاری */
}
.book-card:active {
    transform: scale(0.98);
}

.book-cover {
    width: 140px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    background: #f5f5f5;
    margin-bottom: 6px;
    box-shadow: -3px 10px 10px -7px rgba(0, 0, 0, 0.26);
    -webkit-box-shadow: -3px 10px 10px -7px rgba(0, 0, 0, 0.26);
}

.book-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.book-author {
    font-size: 0.75rem;
    color: #888;
}

.book-duration {
    font-size: 0.7rem;
    color: #aaa;
}

/* ========== کتاب شانسی ========== */
.random-section {
    margin-top: 56px;
    padding: 32px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.random-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 12px;
}

.random-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.random-book-info {
    flex: 1;
    cursor: pointer;
}

.random-book-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.random-book-meta {
    font-size: 0.8rem;
    color: #888;
}

.shuffle-btn {
    background: none;
    border: 1px solid #e5e5e5;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.shuffle-btn:hover {
    border-color: #111;
    color: #111;
}

/* ========== صفحه جزئیات ========== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 16px 0;
    transition: color 0.2s;
}

.back-button:hover {
    color: #111;
}

.book-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.book-cover-large {
    width: 140px;
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    box-shadow: -3px 10px 10px -7px rgba(0, 0, 0, 0.26);
    -webkit-box-shadow: -3px 10px 10px -7px rgba(0, 0, 0, 0.26);
}

.book-info-large {
    flex: 1;
}

.book-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.book-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.book-meta-large {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.85rem;
    color: #888;
}

.rating {
    color: #f5b042;
    font-weight: 500;
}

/* ========== تب‌ها ========== */
/* .tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.tab {
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: #111;
    border-bottom-color: #111;
}

.tab-content {
    display: none;
    line-height: 1.8;
    color: #444;
}

.tab-content.active {
    display: block;
} */

.info-box {
    background: #f8f8f8;
    padding: 20px 12px !important;
    border-radius: 12px;
    margin: 24px 0;
}

.info-box p{
    margin: 10px 0;
}

/* ========== لیست قسمتها ========== */
.parts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.part-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.part-item:hover {
    background: #f0f0f0;
}

.part-number {
	font-weight: 600;
	background-color: #000;
	padding: 5px 13px;
	color: #fff;
	border-radius: 12px;
}

.part-title {
    flex: 1;
}

.part-duration {
    color: #888;
    font-size: 0.8rem;
}

.play-part-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #111;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
}

.play-part-btn:hover {
    /* background: #fff; */
    transform: scale(1.1);
}

/* ========== نظرات ========== */
.review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.review-text {
    color: #666;
    font-size: 0.9rem;
}

/* ========== پلیر پایین ========== */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.player-info {
    flex: 2;
    min-width: 0;
}

.player-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status {
    font-size: 0.7rem;
    color: #999;
}

.timeline-mini {
    flex: 3;
}

.timeline-bg-mini {
    width: 100%;
    height: 3px;
    background: #e5e5e5;
    border-radius: 2px;
    cursor: pointer;
}

.timeline-progress-mini {
    width: 0%;
    height: 100%;
    background: #111;
    border-radius: 2px;
}

.player-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #444;
    padding: 6px;
    border-radius: 50%;
}

.bottom-spacer {
    height: 90px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 550px) {
    .book-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .book-meta-large {
        justify-content: center;
    }
    
    .part-item {
        flex-wrap: wrap;
    }
    
    .mini-player {
        padding: 10px 16px;
    }
    
    .player-title {
        font-size: 0.75rem;
    }
}

/* ========== پلیر جدید ========== */
.player-container {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 20px;
    margin: 24px 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.play-pause-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.05);
}

.player-info {
    flex: 1;
}

.player-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.player-status {
    font-size: 0.7rem;
    color: #888;
}

.timeline-wrapper {
    width: 100%;
}

.timeline-bg {
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.timeline-progress {
    width: 0%;
    height: 100%;
    background: #111;
    border-radius: 2px;
    position: relative;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #888;
}

/* حذف پلیر پایین صفحه قدیمی */
.mini-player {
    display: none !important;
}

.timeline-wrapper{
    direction: ltr;
}

/* ========== بخش اطلاعات جدید ========== */
.info-section {
    margin-top: 32px;
}

.section-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.about-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* قسمت فعال */
.part-item.active-part {
    background: #e8e8e87a;
    /* border-right: 3px solid #111; */
}

.part-item.active-part .play-part-btn {
    color: #111;
}

/* ========== بخش اطلاعات قابل باز و بسته شدن ========== */
.info-section {
    margin-top: 32px;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.section-header-clickable {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.2s;
}

.section-header-clickable:hover {
    background: #f5f5f5;
}

.section-title-small {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #888;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.open {
    max-height: 800px;
}

.section-content .about-text,
.section-content .info-box,
.section-content .parts-list {
    padding: 20px;
}

.section-content .info-box {
    margin: 0 20px 20px 20px;
}

/* قسمت در حال پخش */
.part-item.playing {
    background: #e8e8e8;
    position: relative;
}

.part-item.playing .play-part-btn i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* جلوگیری از انتخاب متن در کل صفحه */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.book-card {
    position: relative;
    flex: 0 0 140px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.book-info {
    margin-top: 8px;
}

/* badge زمان */
.book-badge-time {
    position: absolute;
    bottom: 8px;
    /* right: 8px; */
    background: rgba(0, 0, 0, 0.03);
    /* backdrop-filter: blur(4px); */
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* badge هدفون */
.book-badge-icon {
    position: absolute;
    bottom: 8px;
    left: 0px;
    background: rgba(93, 163, 243, 0.197);
    /* backdrop-filter: blur(4px); */
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgb(0, 119, 255);
}
.book-badge-group{
    margin-top: 40px;
}

.btn-g-time{
    margin-top: 38px;
}

/* ========== درباره کتاب - دیزاین مدرن ========== */
.about-wrapper {
    padding: 8px 0;
}

.about-text {
    line-height: 1.9;
    color: #444;
    margin-bottom: 28px;
    font-size: 0.95rem;
    text-align: justify;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222;
    margin-top: 2px;
}

/* ریسپانسیو */
@media (max-width: 550px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    
    .info-item {
        gap: 12px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .info-value {
        font-size: 0.85rem;
    }
}
/* ========== ناوبری پایین (Bottom Navigation) ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 20px 16px;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #888;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 30px;
}

.nav-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item:hover {
    color: #444;
}

.nav-item:hover .nav-icon {
    transform: translateY(-2px);
}

.nav-item.active {
    color: #111;
}

.nav-item.active .nav-icon {
    transform: translateY(-2px);
    animation: navPop 0.3s ease;
}

@keyframes navPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* اضافه کردن padding-bottom به body برای ناوبری */
body {
    padding-bottom: 70px;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .bottom-nav {
        padding: 6px 16px 14px;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
    
    .nav-item {
        padding: 4px 8px;
    }
}

/* صفحه جستجو و لیست کتاب‌ها */
.search-header {
    margin-bottom: 24px;
}

.search-form {
    margin-bottom: 32px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    font-size: 1rem;
    background: #f8f8f8;
}

.book-card-horizontal {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.book-card-horizontal:hover {
    background: #f0f0f0;
    transform: translateX(-4px);
}

.book-cover-small {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 10px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.category-card {
    background: #f8f8f8;
    padding: 24px 16px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    background: #f0f0f0;
    transform: translateY(-4px);
}

.category-icon {
    font-size: 2rem;
    color: #000000c7;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
}

.results-count {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ========== صفحه دسته‌بندی‌ها - مدرن و مینیمال ========== */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 24px 0 32px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1a1a1a 0%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #111, #ccc);
    border-radius: 3px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.category-card {
    background: #fff;
    padding: 28px 16px;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: #e0e0e0;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.category-card:active {
    transform: translateY(-2px);
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #f8f8f8;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #111;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #000000c7;
    color: #fff;
    transform: scale(1.05);
}

.category-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.category-card:hover .category-name {
    color: #111;
}

/* ریسپانسیو */
@media (max-width: 550px) {
    .page-title {
        font-size: 1.5rem;
        margin: 20px 0 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card {
        padding: 20px 12px;
    }
    
    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px 8px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* باکس نویسنده */
.author-box {
    display: flex;
    gap: 16px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 24px;
    padding: 12px 20px;
    margin: 16px 0;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.author-avatar i {
    font-size: 70px;
    color: #ccc;
}

.author-details {
    flex: 1;
}

.author-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.author-name:hover {
    color: #667eea;
}

.author-name i {
    font-size: 0.8rem;
    color: #aaa;
}

.author-bio {
    font-size: 0.8rem;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

@media (max-width: 550px) {
    .author-avatar img,
    .author-avatar i {
        width: 55px;
        height: 55px;
        font-size: 55px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-bio {
        font-size: 0.7rem;
    }
}

/* loading */
/* لودینگ ساده کل صفحه */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* دکمه‌های کنترل پلیر */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    direction: ltr;
}

.player-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.2s;
    position: relative;
}

.player-control-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.player-control-btn:active {
    transform: scale(0.95);
}

.play-pause-btn {
    width: 56px;
    height: 56px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 1.3rem;
}

.play-pause-btn:hover {
    background: #333;
}

.time-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.55rem;
    background: #111;
    color: #fff;
    padding: 2px 5px;
    border-radius: 12px;
    font-family: monospace;
}

@media (max-width: 480px) {
    .player-control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .play-pause-btn {
        width: 50px;
        height: 50px;
    }
    
    .player-controls {
        gap: 8px;
    }
}

/* تایم‌لاین ساده و تمیز */
.timeline-bg {
    width: 100%;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.timeline-progress {
    width: 0%;
    height: 100%;
    background: #111;
    border-radius: 2px;
    position: relative;
    pointer-events: none;
}

/* هندل مخفی - فقط موقع درگ نشون داده نشه */
.timeline-progress::after {
    display: none;
}

.parts-list .part-title{
    font-size: 13px !important;
}