.movies {
    margin: 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* margin-bottom: 40px; */
}

.movie-card {
    background: #fff;
    border-radius: 14px;
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e7f5ee;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    position: relative;
}

.movie-thumb {
    width: 80px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}


.movie-thumb-center {
    width: 150px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    margin-bottom: 18px;
}

/* badge type */

.type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #28a965;
    color: white;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 6px;
}

.series {
    background: #ff6b35;
}

/* info */

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.movie-title {
    font-size: 15px;
    text-align: justify;
    font-weight: bold;
    color: #333;
}

.movie-meta {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-align: justify;
}

.movie-link {
    text-decoration: none;
    color: inherit;
}

/* tags */

.tags {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    background: #f3fbf7;
    color: #28a965;
    padding: 3px 6px;
    border-radius: 6px;
}

/* rating */

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #ffaa00;
}

.rating i {
    font-size: 13px;
}


.favorite-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    color: #ff4d6d;
    font-size: 14px;
}

.favorite-btn i {
    pointer-events: none;
}












/* poster */

.poster {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* title */

.movie-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.movie-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

/* tags */

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag {
    font-size: 11px;
    background: #f3fbf7;
    color: #28a965;
    padding: 4px 7px;
    border-radius: 6px;
}

/* rating */

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffaa00;
    font-size: 14px;
    margin-bottom: 12px;
}

/* play button */

.play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #28a965;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

/* section */

.section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.description {
    font-size: 13px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* trailer */

.movie-player {
    height: 180px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}



.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    /* فاصله از محتوای بعدی */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}





/* 🔍 Search box */
/* search box */
.search-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* rows */
.search-row {
    display: flex;
    gap: 8px;
}

.search-row input,
.search-row select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Byekan;
    font-size: 13px;
    outline: none;
}

/* search button */
.search-row button {
    width: 42px;
    border: none;
    background: #28a965;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

/* ژانر بزرگ‌تر باشد */
.genre-large {
    flex: 2;
}

/* دسته‌بندی کنار ژانر */
.type-small {
    flex: 1;
}

/* سال در ردیف سوم */
.year-small {
    flex: 1;
}

/* فیلدهای ردیف سوم */
.search-row.third input {
    flex: 1;
}

/* امتیاز وسط‌چین */
#searchRating {
    text-align: center;
}

/* دکمه جستجو کمی بزرگ‌تر */
#searchBtn {
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ستون کوچک برای سال */
.year-small {
    flex: 0.8 !important;
}

/* ستون کمی بزرگ‌تر برای امتیاز */
#searchRating {
    flex: 1 !important;
    text-align: center;
}

/* دکمه همیشه جا شود */
#searchBtn {
    flex-shrink: 0;
    width: 48px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* 🧩 Categories */
.categories {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-item {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 20px;
    background: #f2f2f2;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.cat-item:hover,
.cat-item.active {
    background: #28a965;
    color: #fff;
}


.cat-item.active,
.cat-item:hover {
    background: #c8a63f;;
    color: #fff;
}




.video-cover {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    padding-bottom: 25px;
}

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

/* دایره دور پلی */
.play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 80px;
    height: 80px;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* مثلث پلی */
.play-triangle {
    width: 0;
    height: 0;
    border-left: 22px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}



.episode-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
    padding-bottom: 20px;
}

/* کارت هر قسمت */
.episode-card {
    display: flex;
    gap: 14px;
    background: #111;
    /* پس‌زمینه تیره و تمیز */
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    border: 1px solid #1f1f1f;
    direction: rtl;
    /* برای فارسی */
    align-items: center;
}

.episode-card:hover {
    background: #181818;
    transform: translateY(-2px);
}

/* تصویر کوچک */
.episode-thumb {
    position: relative;
    width: 150px;
    height: 84px;
    flex-shrink: 0;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* لایه پلی روی تصویر */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    transition: 0.25s ease;
}

.episode-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay i {
    color: white;
    font-size: 26px;
}

/* بخش اطلاعات */
.episode-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.episode-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.episode-meta {
    font-size: 13px;
    color: #bdbdbd;
}



/* ریسپانسیو موبایل */
@media(max-width:600px) {
    .episode-thumb {
        width: 120px;
        height: 70px;
    }

    .episode-title {
        font-size: 15px;
    }

    .episode-meta {
        font-size: 12px;
    }
}

.episode-meta {
    font-size: 13px;
    color: #bdbdbd;
    display: flex;
    gap: 14px;
    align-items: center;
}

.movie-player {
    width: 100%;
    background: #000;
    border-radius: 14px;
    display: block;
    min-height: 200px;
    /* برای اینکه جای خالی نماند */
}

.music-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 15px;
}

.music-item {
    display: grid;
    grid-template-columns: 60px 1fr 65px;
    gap: 12px;
    align-items: center;
    /* تراز عمودی کل سطر */
    background: #f4f4f4;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e2e2e2;
}

.music-cover {
    width: 60px;
    height: 60px;
}

.music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.music-info {
    min-width: 0;
}

.music-title {
    color: #222;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-artist {
    color: #666;
    font-size: 13px;
    margin-top: 2px;
}

.music-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #777;
    display: flex;
    gap: 8px;
}

/* اصلاح بخش دکمه‌ها */
.music-player {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* هماهنگ‌سازی دقیق دکمه‌ها برای رفع مشکل بالا بودن دکمه پخش */
.play-btn,
.playlist-btn,
.download-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    /* تغییر به این لاین فلکس */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin: 0;
    text-decoration: none;
    vertical-align: middle;
    /* برای اطمینان از هم‌ترازی */
}

.play-btn {
    background: #0e7547;
    color: white;
}

.playlist-btn {
    background: #e0e0e0;
    color: #333;
}

.download-btn {
    background: #e0e0e0;
    color: #333;
}

/* رفع مشکل آیکون داخل دکمه */
.play-btn i,
.playlist-btn i,
.download-btn i {
    line-height: 1;
    display: block;
}