@font-face {
    font-family: 'vazir';
    src: url(../fonts/Vazir.woff2) format(woff2);
}

:root {
    /* پس‌زمینه لطیف و لوکس */
    --bg-page-1: #f7fbf9;
    --bg-page-2: #eaf2ef;

    --card-bg: #ffffff;
    --card-border: #dfe7e3;

    --text-main: #1b2622;
    --text-muted: #5c6b66;

    /* سایه‌های چندلایه لوکس */
    --shadow-1: 0 6px 18px rgba(22, 35, 31, 0.08);
    --shadow-2: 0 18px 40px rgba(22, 35, 31, 0.08);

    --radius: 8px;

    /* رنگ اصلی */
    --accent: #22403a;
    --accent-light: #2d544c;
    --accent-soft: #e6f1ee;

    /* طلایی لوکس */
    --gold: #c9a86a;
    --gold-soft: #f1e5d1;

    --teal-very-soft: #eef6f4;
}

/* کلیات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-color: #22403a #e7efec;
    scrollbar-width: thin;
}

body {
    background: radial-gradient(1200px 600px at 20% -10%, #ffffff 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-page-1) 0%, var(--bg-page-2) 100%);
    font-family: "Vazirmatn", sans-serif;
    color: var(--text-main);
    padding: 14px;
    line-height: 1.75;
}

body,
button>span {
    font-family: 'vazir' !important;
}

.page-wrap {
    max-width: 100%;
}

/* هدر */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9f7 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-1);
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 168, 106, 0.18);
    pointer-events: none;
}

.site-header h1 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.site-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ساختار */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* ویدیو */
.video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #cfdad6;
    box-shadow: var(--shadow-2);
    position: relative;
}

.video-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.18);
    pointer-events: none;
}

video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* اطلاعات ویدیو */
.video-info {
    margin-top: 12px;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-1);
}

.video-title {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--accent);
}

.video-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* برچسب‌ها */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.video-tag {
    background: linear-gradient(135deg, #f4f8f6, #e9f1ee);
    border: 1px solid #d6e3dd;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--accent);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* باکس توضیحات بیشتر */
.more-info {
    margin-top: 14px;
    border: 1px solid #dbe6e2;
    border-radius: var(--radius);
    background: #fbfdfc;
    overflow: hidden;
}

.more-info-header {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f3f7f6, #edf3f1);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
}

.more-info-header .arrow {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.more-info-content {
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.9;
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #e4ece8;
    background: #ffffff;
    display: none;
}

.more-info.open .more-info-content {
    display: block;
}

.more-info.open .more-info-header .arrow {
    transform: rotate(180deg);
}

/* پلی‌لیست */
.playlist-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

.playlist-header {
    background: linear-gradient(135deg, #f3f7f6, #eef3f1);
    padding: 14px;
    font-weight: 800;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    font-size: 0.95rem;
    color: var(--accent);
}

/* پلی‌لیست فیکس + اسکرول */
.playlist-items {
    padding: 10px;
    height: 360px;
    overflow-y: auto;
}

@media (min-width: 1100px) {
    .playlist-items {
        height: 600px;
    }
}

.category-block {
    margin-bottom: 12px;
    border: 1px solid #d9e6e0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fbfdfc;
}

.category-title {
    padding: 10px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    border-bottom: 1px solid #d2e0db;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-arrow {
    font-size: 12px;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

.category-block.open .category-arrow {
    transform: rotate(180deg);
}

/* فقط وقتی open شد باز میشه */
.category-videos {
    display: none;
}

.category-block.open .category-videos {
    display: block;
    animation: openFade 0.35s ease;
}

@keyframes openFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e6eeeb;
    cursor: pointer;
    border-radius: var(--radius);
    position: relative;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item.active {
    background: linear-gradient(135deg, #f1f7f5, #e8f2ef);
    border-right: 4px solid var(--accent);
}

.playlist-item.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.18);
    pointer-events: none;
}

.playlist-index {
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 2px;
    border: 1px solid #cfe0da;
}

.playlist-item.active .playlist-index {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.playlist-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.playlist-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* تماس */
.contact-box {
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-1);
}

.contact-box-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--accent);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--gold-soft), #f7e9d2);
    border: 1px solid #ead8b7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    color: #8b6a2f;
}

.social-icons a i {
    transform: translateY(6%);
}

.social-icons a:last-child i {
    transform: translateY(2%);
}
.back-btn-site {
    display: block;
    margin-top: 6px;
    background: linear-gradient(135deg, #ff7a7a, #ffb3b3);
    color: #fff;
    padding: 8px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.85rem;
}

.back-btn {
    display: block;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    padding: 8px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.85rem;
}

/* فوتر */
.site-footer {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-1);
    font-size: 0.85rem;
}

/* اسکرول‌بار */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #e7efec;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #22403a;
    border-radius: 10px;
    border: 2px solid #e7efec;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d544c;
}

/* تبلت به بالا */
@media (min-width: 768px) {
    body {
        padding: 18px;
    }

    .site-header {
        padding: 20px;
    }

    .site-header h1 {
        font-size: 1.45rem;
    }

    .video-title {
        font-size: 1.18rem;
    }

    .video-desc {
        font-size: 0.95rem;
    }
}

/* دسکتاپ بزرگ */
@media (min-width: 1100px) {
    .page-wrap {
        max-width: 1280px;
        margin: 0 auto;
    }

    .container {
        grid-template-columns: minmax(0, 799px) minmax(280px, 1fr);
        gap: 20px;
    }

    .video-box {
        aspect-ratio: 799 / 457;
    }
}