/* ---------------------------------------------------
   پایه و رنگ‌بندی کلی
--------------------------------------------------- */

/* Regular */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


body {
    margin: 0;
    font-family: Vazir, iransans, sans-serif;
    background: #0e0e0e;
    color: #fff;
    direction: rtl;
}

a {
    text-decoration: none;
    color: #ff7a00;
    transition: 0.3s;
}

a:hover {
    color: #ffa63a;
}

form {
    background: #111;
    padding: 15px;
    border-radius: 10px;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form input[type="text"],
form input[type="file"],
form input[type="password"],
form input[type="date"],
form button {
    padding: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
}

form input[type="text"]:focus,
form input[type="password"]:focus {
    border-color: orange;
}

form button {
    background: orange;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: #ff9d00;
}

/* بازی‌های فعال */
.adminGame {
    background: #151515;
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-right: 4px solid orange;
}

.adminGame img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.adminGame a {
    display: inline-block;
    padding: 6px 12px;
    background: orange;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin: 4px 0;
}

.adminGame a:hover {
    background: #ff9d00;
}

/* آرشیو */
.archiveItem {
    background: #111;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border-right: 4px solid #444;
}

.archiveItem b {
    color: orange;
}

/* باکس ورود */
.loginBox {
    background: #111;
    width: 350px;
    margin: 120px auto;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.mainGame {
    border-right-color: #ff3c00 !important;
    background: #1e1e1e !important;
    box-shadow: 0 0 10px rgba(255, 100, 0, 0.3);
}


.loginBox input {
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
}

.loginBox button {
    width: 100%;
    padding: 12px;
    background: orange;
    color: #000;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

button,
a.button {
    background: #ff7a00;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover,
a.button:hover {
    background: #ffa63a;
}

/* ---------------------------------------------------
   هدر صفحه اصلی (لوکس و دارک-نارنجی)
--------------------------------------------------- */
.siteHeader {
    background: linear-gradient(135deg, #0b0b0b, #1b1b1b);
    border-bottom: 3px solid #ff7a00;
    box-shadow: 0 0 25px rgba(255, 120, 0, 0.3);
    padding: 20px;
}

.headerContent {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.headerLogo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px #ff7a00);
}

.headerTitle .mainTitle {
    font-size: 26px;
    font-weight: 800;
    color: #ff7a00;
    text-shadow: 0 0 12px #ff7a00;
}

.headerTitle .subTitle {
    opacity: 0.8;
    font-size: 13px;
}

/* ---------------------------------------------------
   پلیر پخش زنده
--------------------------------------------------- */

.mainPlayer {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;

}

.mainPlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
    background: #000;
    display: block;
}

/* ---------------------------------------------------
   لیست بازی‌ها (زیر پلیر)
--------------------------------------------------- */
.gamesList {
    max-width: 1100px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gameCard {
    display: flex;
    flex-direction: column-reverse !important;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 10px 5px;
    margin: 10px;
    transition: 0.2s;
}

.gameCard:hover {
    border-color: #ff7a00;
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.4);
    transform: translateY(-2px);
}

.gameCard img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ff7a00;
}

.gameInfo {
    flex: 1;
}

.gameTitle {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gameSport {
    font-size: 13px;
    opacity: 0.8;
    color: #ccc;
}

.gameTimeBox {
    background: rgba(255, 122, 0, 0.1);
    border: 1px solid #ff7a00;
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 80px;
}

.gameTimeBox .time {
    color: #ff7a00;
    font-weight: 600;
    font-size: 13px;
}

.gameTimeBox .date {
    font-size: 12px;
    opacity: 0.7;
}

/* ---------------------------------------------------
   پنل مدیریت
--------------------------------------------------- */
.adminHeader {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border-bottom: 3px solid #ff7a00;
    box-shadow: 0 0 25px rgba(255, 120, 0, .3);
    padding: 18px 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logoArea {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.adminLogo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px #ff7a00);
}

.placeholderLogo {
    width: 55px;
    height: 55px;
    background: #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff7a00;
    border: 2px dashed #ff7a00;
    font-weight: bold;
}

.loginBox {
    width: 320px;
    margin: 120px auto;
    background: #111;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}

.loginBox h2 {
    color: #ff8c00;
    margin-bottom: 20px;
}

.loginBox input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
}

.loginBox button {
    width: 100%;
    padding: 10px;
    background: #ff8c00;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}


.page {
    max-width: 1100px;
    margin: 20px auto;
    padding: 10px;
}

.adminBox {
    background: #141414;
    border: 1px solid #262626;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .4);
}

.adminBox h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ff7a00;
}

/* ---------------------------------------------------
   فرم‌های مدیریت
--------------------------------------------------- */
input,
textarea,
select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 10px;
    font-size: 14px;
}

textarea {
    height: 90px;
}

.row {
    display: flex;
    gap: 10px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------
   لیست بازی‌ها در پنل مدیریت
--------------------------------------------------- */
.adminRow {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #2e2e2e;
}

.adminRow img {
    width: 85px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff7a00;
}

.gameDetails {
    flex: 1;
}

.mainTag {
    display: inline-block;
    background: #ff7a00;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 4px;
}

.editBtn {
    background: #007bff;
    padding: 7px 10px;
    border-radius: 8px;
    color: #fff !important;
}

.editBtn:hover {
    background: #2f8dff;
}

.deleteBtn {
    background: #d70000 !important;
}

.deleteBtn:hover {
    background: #ff0000 !important;
}

/* ---------------------------------------------------
   ریسپانسیو موبایل
--------------------------------------------------- */
@media (max-width: 700px) {

    .headerLogo img {
        width: 45px;
        height: 45px;
    }

    .headerTitle .mainTitle {
        font-size: 20px;
    }

    .headerTitle .subTitle {
        font-size: 11px;
    }

    .mainPlayer iframe,
    .mainPlayer video {
        height: 220px;

    }

    .gameCard {
        flex-direction: row;
        align-items: center;
        padding: 8px;
    }

    .gameCard img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gameImage {
        width: 90px;
        height: 60px;
        flex-shrink: 0;
    }

    .gameImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gameTimeBox {
        width: 100%;
    }

    .adminLogo {
        width: 38px;
        height: 38px;
    }

    .adminHeader {
        padding: 14px 15px;
    }
}

/* لیست بازی‌ها */
.gamesList {
    max-width: 1100px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* هر بازی */
.gameCard {
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    transition: 0.25s;
}

.gameCard:hover {
    border-color: #ff7a00;
    box-shadow: 0 0 12px rgba(255, 120, 0, .4);
}

/* بخش عکس */
.gameImage {
    position: relative;
}

.gameImage img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff7a00;
}

/* تاریخ روی عکس */
.imageDate {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ff7a00;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 5px;
}

/* اسم بازی */
.gameTitle {
    flex: 1;
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    padding-right: 12px;
}

/* باکس زمان */
.timeBox {
    min-width: 85px;
    text-align: center;
    border: 1px solid #ff7a00;
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(255, 122, 0, 0.08);
}

.timeBox .time {
    color: #ff7a00;
    font-weight: 700;
    font-size: 13px;
}

.timeBox .date {
    font-size: 12px;
    opacity: .8;
}

/* موبایل */
@media(max-width:700px) {


    .gameCard {
        flex-direction: row;
        align-items: center;
        padding: 8px;
    }

    .gameImage {
        width: 90px;
        height: 60px;
        flex-shrink: 0;
    }

    .gameImage img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gameTitle {
        font-size: 14px;
        padding: 0 10px;
        flex: 1;
    }

    .timeBox {
        min-width: 70px;
        font-size: 12px;
    }

}

.video-container {
    padding: 0 !important;
}

.gameCard {
    margin: 0 12px;
    /* فاصله از چپ و راست */
}


@media (max-width: 700px) {

    /* کارت کمی بالاتر فضای اضافی داشته باشد برای timeBox */
    .gameCard {
        position: relative;
        padding-top: 38px;
        /* جا برای timeBox */
        margin: 12px;
        /* فاصله از چپ و راست، و همچنین بالا/پایین */
    }

    /* timeBox بالا برود و تمام عرض شود */
    .timeBox {
        position: absolute;
        top: 0;
        left: 0;

        width: 100%;
        height: auto;

        background: #1a1a1a;
        /* همان تم اصلی کارت */
        border-bottom: 1px solid #282828;
        padding: 6px 12px;

        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;

        border-radius: 8px 8px 0 0;
        z-index: 4;
        text-align: center;
    }

    .timeBox .time {
        color: #ff7a00;
        /* مثل حالت دسکتاپ */
        font-weight: 700;
    }

    .timeBox .date {
        opacity: 0.8;
        /* مثل حالت دسکتاپ */
        font-size: 13px;
    }
}

.cGameCard {
    display: flex;
    flex-direction: column-reverse;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 10px;
    margin: 10px;
    margin-top: 0;
    margin-bottom: 0;
    transition: 0.2s;
}

.cGameCard:hover {
    border-color: #ff7a00;
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.4);
    transform: translateY(-2px);
}

.cTitleAndImage {
    display: flex;
}

.cImageContainer {
    width: 90px;
    height: 52px;
    flex-shrink: 0;
}

.cImageContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ff7a00;
}

.cTitleAndSubtitle {
    padding-top: 6px;
}

.cTimeBox {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ff7a00;
    background: rgba(255, 122, 0, 0.08);
    padding: 3px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.cTimeBox .time {
    color: #ff7a00;
    font-weight: 500;
    font-size: 13px;
}

.cTimeBox .date {
    font-weight: 500;
    font-size: 13px;
}

@media (min-width: 700px) {
    .cGameCard {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px;
    }

    .cGameCard:hover {
        border-color: #ff7a00;
        box-shadow: 0 0 12px rgba(255, 120, 0, 0.4);
        transform: translateY(-2px);
    }

    .cTitleAndImage {
        display: flex;
    }

    .cImageContainer {
        width: 90px;
        height: 60px;
        flex-shrink: 0;
    }

    .cImageContainer img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #ff7a00;
    }

    .cTitleAndSubtitle {
        padding-top: 6px;
    }

    .cTimeBox {
        flex-direction: column;
        gap: 0;
        padding: 5px;
        margin-bottom: 0;
    }

    .cTimeBox .time {
        color: #ff7a00;
        font-weight: 500;
        /* font-size: 16px; */
    }

    .cTimeBox .date {
        font-weight: 500;
        /* font-size: 16px; */
    }
}

.archiveBtn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a2b 100%);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 120, 0, 0.35);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.archiveBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(255, 120, 0, 0.45);
    background: linear-gradient(135deg, #ff8a1a 0%, #ffae45 100%);
    color: #fff;
}

.searchBoxWrap {
    font-family: Vazir;
}

input.archiveSearchInput {
    width: unset;
    width: 95%;
    font-family: Vazir, iransans, sans-serif;
}

.searchBoxWrap {
    max-width: 900px;
    margin: 18px auto 24px;
    padding: 0 12px;
}

.archiveSearchForm {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 13px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

.archiveSearchInput {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.archiveSearchInput:focus {
    /* border-width: 2px; */
    border-color: #ff7a00;
    box-shadow: 0 0 0 3px rgba(255,122,0,0.12);
}

.archiveSearchBtn {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a2b 100%);
    border: none;
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: Vazir;
    font-size: .9rem;
}

.archiveSearchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 122, 0, 0.35);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 12px;
}

.pageBtn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #2c2c2c;
    padding: 9px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.pageBtn:hover {
    border-color: #ff7a00;
    color: #ff7a00;
}

.pageBtn.active {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #fff;
}


h2.sectionTitle {
    margin-right: 1rem;
    font-size: 1.1rem;
}

.containerD {
    max-width: 1100px;
    margin: 0 auto;
}