:root {
    --bg: #08121a;
    --card: #0b1620;
    --muted: #9aa4b2;
    --accent: #06a89a;
}

/* ===== پایه ===== */
body,
html {
    margin: 0;
    height: 100%;
    font-family: "IranSans", "Segoe UI", Roboto, Arial;
    background: url("bg4.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    direction: rtl;
}

@font-face {
    font-family: 'IranSans';
    src: url('/A-Iranian-Sans/Iranian Sans.woff2') format('woff2'),
        url('/A-Iranian-Sans/Iranian Sans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IranSans', sans-serif;
}

/* ===== هدر ===== */
.main-header {
    position: relative;
    background-color: #ffffffbe;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* لوگو */
.logo {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.logo img {
    height: 60px;
    width: auto;
}

/* منوی دسکتاپ */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-menu a:hover {
    transform: scale(1.05);
    color: #007BFF;
}

/* ===== دکمه همبرگری ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ===== حالت موبایل ===== */
@media (max-width: 768px) {
    .main-header {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        position: static;
        transform: none;
        order: 2;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 250px;
        background: #ffffffee;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px;
        gap: 15px;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-menu a {
        color: #000;
        font-size: 16px;
    }

    body {
        font-size: 12px;
    }
}

/* ===== بخش پخش زنده ===== */
.container {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.player-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 3, 75, 0.3), rgba(20, 3, 75, 0.4));
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 8px 36px rgba(1, 7, 33, 0.28);
    border: 1px solid rgba(12, 2, 71, 0.55);
    max-width: 900px;
    width: 100%;
}

.video-cover-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 70, 1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 25px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.player-wrap {
    display: none;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 10px;
}

.player-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.title {
    font-size: 20px;
    font-weight: 700;
}

.button-title {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.button-stile {
    display: inline-block;
    color: white;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.button-stile:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}