@font-face {
    font-family: 'vazir';
    src: url(../fonts/Vazir.woff2) format(woff2);
}

:root {
    --bg-page-1: #f9fcfb;
    --bg-page-2: #e8f1ee;

    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(210, 222, 217, 0.9);

    --text-main: #17221f;
    --text-muted: #5e6c67;

    --shadow-1: 0 8px 22px rgba(15, 30, 26, 0.10);
    --shadow-2: 0 22px 60px rgba(15, 30, 26, 0.12);
    --shadow-3: 0 40px 90px rgba(15, 30, 26, 0.12);

    --radius: 10px;

    --accent: #22403a;
    --accent-light: #2f5c54;
    --accent-soft: #e7f2ef;

    --gold: #c8a165;
    --gold-soft: #f3e7d3;
    --gold-glow: rgba(200, 161, 101, 0.25);

    --teal-very-soft: #eef7f4;
}

/* کلیات */
* {
    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 65%),
        radial-gradient(900px 500px at 100% 0%, rgba(200, 161, 101, 0.08) 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: 16px;
    line-height: 1.8;
}

body,
button>span {
    font-family: 'vazir' !important;
}

.page-wrap {
    max-width: 100%;
}

/* هدر */
.site-header {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 248, 0.96) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(6px);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    border: 1px solid rgba(200, 161, 101, 0.25);
    pointer-events: none;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.site-header h1 {
    font-size: 1.45rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 800;
}

.site-header p {
    color: var(--text-muted);
    font-size: .92rem;
}

/* ساختار */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ویدیو */
.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(200, 161, 101, 0.25);
    box-shadow: var(--shadow-3);
}

.video-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.video-box::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: calc(var(--radius) + 12px);
    box-shadow: 0 0 80px var(--gold-glow);
    opacity: .6;
    pointer-events: none;
}

video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

/* اطلاعات ویدیو */
.video-info {
    margin-top: 12px;
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(6px);
    position: relative;
}

.video-info::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(200, 161, 101, 0.18);
    pointer-events: none;
}

.video-title {
    font-size: 1.18rem;
    font-weight: 900;
    margin-bottom: 6px;
    color: var(--accent);
    letter-spacing: .2px;
}

.video-desc {
    color: var(--text-muted);
    font-size: .92rem;
    margin-top: 6px;
    line-height: 1.9;
    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, #f7fbf9, #e9f2ef);
    border: 1px solid #d7e5df;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* باکس توضیحات بیشتر */
.more-info {
    margin-top: 14px;
    border: 1px solid #dbe6e2;
    border-radius: var(--radius);
    background: rgba(252, 254, 253, 0.9);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 30, 26, 0.06);
}

.more-info-header {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f5f9f7, #edf3f1);
    color: var(--accent);
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
}

.more-info-header .arrow {
    font-size: 12px;
    opacity: .7;
    transition: transform .25s ease;
}

.more-info-content {
    padding: 12px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.9;
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid #e4ece8;
    background: #fff;
    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-2);
    backdrop-filter: blur(6px);
    position: relative;
}

.playlist-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(200, 161, 101, 0.18);
    pointer-events: none;
}

.playlist-header {
    background: linear-gradient(135deg, #f5f9f7, #edf3f1);
    padding: 14px;
    font-weight: 900;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    font-size: .98rem;
    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: rgba(251, 253, 252, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.category-title {
    padding: 10px 12px;
    background: linear-gradient(135deg, #e8f2ef, #f3f8f6);
    color: var(--accent);
    font-weight: 900;
    border-bottom: 1px solid #d2e0db;
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-arrow {
    font-size: 12px;
    opacity: .8;
    transition: transform .25s ease;
}

.category-block.open .category-arrow {
    transform: rotate(180deg);
}

.category-videos {
    display: none;
}

.category-block.open .category-videos {
    display: block;
    animation: openFade .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, #f2f8f6, #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(200, 161, 101, 0.2);
    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: .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);
    box-shadow: 0 0 12px rgba(34, 64, 58, 0.3);
}

.playlist-name {
    font-size: .9rem;
    font-weight: 800;
    color: var(--text-main);
}

.playlist-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* تماس */
.contact-box {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-1);
    position: relative;
}

.contact-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(200, 161, 101, 0.18);
    pointer-events: none;
}

.contact-box-title {
    font-weight: 900;
    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;
    box-shadow: 0 4px 12px rgba(200, 161, 101, 0.25);
}

.social-icons a i {
    transform: translateY(6%);
}

.social-icons a:last-child i {
    transform: translateY(2%);
}

.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: .85rem;
    box-shadow: 0 8px 18px rgba(34, 64, 58, 0.25);
}

/* فوتر */
.site-footer {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.92);
    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: .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: 22px;
    }

    .site-header h1 {
        font-size: 1.55rem;
    }

    .video-title {
        font-size: 1.22rem;
    }

    .video-desc {
        font-size: .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;
    }
}