﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue-dark: #14336b;
    --blue-mid: #1a4b8c;
    --blue-light: #2c5faa;
    --red: #d32f2f;
    --red-dark: #b71c1c;
    --bg: #f1f3f6;
    --card: #ffffff;
    --text: #222831;
    --muted: #6b7280;
    --border: #e5e7eb;
    --soft: #f4f6fa;
    --input-border: #d1d5db;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --blue-dark: #2c5faa;
    --blue-mid: #3b82c4;
    --blue-light: #4a90d9;
    --red: #ef5350;
    --red-dark: #d32f2f;
    --bg: #111827;
    --card: #1f2937;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #374151;
    --soft: #1a2233;
    --input-border: #4b5563;
}

html[data-theme="dark"] body { background: var(--bg); color: var(--text); }

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
}

button, input, select, textarea, optgroup, option, th, td, label {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--red); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- Ù†ÙˆØ§Ø± ØªØ§Ø±ÛŒØ® Ùˆ Ø³Ø§Ø¹Øª Ø²Ù†Ø¯Ù‡ ---------- */
.date-strip {
    background: var(--blue-dark);
    color: #c7d6ec;
    font-size: 12.5px;
    border-bottom: 3px solid var(--red);
}
.date-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}
.date-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.date-strip-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}
.date-strip-dates .date-strip-item { gap: 4px; }
.date-strip-sep {
    opacity: .35;
    font-weight: 300;
}
.date-strip-clock {
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.date-strip-clock span { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .date-strip { font-size: 11px; }
    .date-strip-inner { justify-content: center; }
}

/* ---------- Header ---------- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 600px;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease, opacity .35s ease, visibility .4s, gap .4s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 34px;
    background: var(--red);
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-dark);
}

.tagline {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    padding-right: 44px;
}

.search-form {
    display: flex;
    gap: 6px;
    background: transparent;
    overflow: visible;
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--input-border);
    outline: none;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    transition: border-color .2s;
}

.search-form input:focus { border-color: var(--blue-mid); }

.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--blue-dark);
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    transition: background .2s;
}

.search-form button:hover { background: var(--red); }
.search-form button svg { display: block; flex-shrink: 0; }

/* ---------- ویجت جستجو در سایدبار ---------- */
.sidebar-box.search-widget { overflow: visible; }
.sidebar-box.search-widget .box-title { border-radius: 9px 9px 0 0; }
@media (min-width: 769px) {
    .search-widget .live-search-box {
        width: 100%;
        max-width: none;
        top: calc(100% + 6px);
    }
}

/* ---------- Ø¬Ø³ØªØ¬ÙˆÛŒ Ø²Ù†Ø¯Ù‡ ---------- */
.live-search-box {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    width: 380px;
    max-width: 92vw;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .18);
    overflow: hidden;
    z-index: 1000;
}
.live-search-box .ls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted);
    background: var(--soft);
    border-bottom: 1px solid var(--border);
}
.live-search-box .ls-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
}
.live-search-box .ls-item:last-child { border-bottom: none; }
.live-search-box .ls-item:hover,
.live-search-box .ls-item.active {
    background: var(--soft);
}
.live-search-box .ls-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--soft);
}
.live-search-box .ls-info {
    flex: 1;
    min-width: 0;
}
.live-search-box .ls-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.live-search-box .ls-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.live-search-box .ls-cat {
    padding: 1px 8px;
    border-radius: 99px;
    color: #fff;
    font-size: 10.5px;
    white-space: nowrap;
}
.live-search-box .ls-empty {
    padding: 22px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.live-search-box .ls-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-mid);
    background: var(--soft);
    border-top: 1px solid var(--border);
    text-decoration: none;
}
.live-search-box .ls-all:hover { color: var(--red); }
.live-search-box .ls-loading {
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.live-search-box .ls-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--blue-mid);
    border-radius: 50%;
    vertical-align: -4px;
    animation: ls-spin .7s linear infinite;
}
@keyframes ls-spin { to { transform: rotate(360deg); } }
.search-form { position: relative; }
@media (max-width: 768px) {
    .live-search-box {
        position: fixed;
        top: auto;
        inset-inline-start: 50%;
        transform: translateX(50%);
        bottom: 8px;
        width: calc(100vw - 24px);
        max-height: 55vh;
        overflow-y: auto;
    }
    .live-search-box .ls-thumb { width: 40px; height: 40px; }
}

/* ---------- ÙØ±Ù… Ø¬Ø³ØªØ¬ÙˆÛŒ Ù¾ÛŒØ´Ø±ÙØªÙ‡ (ØµÙØ­Ù‡ Ù†ØªØ§ÛŒØ¬ Ø¬Ø³ØªØ¬Ùˆ) ---------- */
.advanced-search-form {
    background: var(--card);
    border: 1px solid var(--border, #dbe2ea);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, .06);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.search-row-q {
    display: flex;
    border: 2px solid var(--blue-dark);
    border-radius: 30px;
    overflow: hidden;
    background: var(--card);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-row-q input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: transparent;
}

.search-row-q button {
    background: var(--blue-dark);
    color: #fff;
    border: none;
    padding: 11px 22px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.search-row-q button:hover { background: var(--red); }

.search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
    min-width: 0;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.filter-field label {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.filter-field input,
.filter-field select {
    border: 1.5px solid var(--border, #dbe2ea);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text);
    background: var(--bg, #fff);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--blue-light);
}

/* ØªÙ‚ÙˆÛŒÙ… Ø´Ù…Ø³ÛŒ Ø¯Ø§Ø®Ù„ ÙÛŒÙ„Ø¯Ù‡Ø§ÛŒ Ø¬Ø³ØªØ¬Ùˆ */
.search-jdate-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.search-jdate-wrap input {
    background: var(--bg, #fff);
}

.search-jdate-wrap .datepicker-container {
    z-index: 50;
}

.search-jdate-wrap .datepicker-plot-area {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    width: 280px;
    min-width: 280px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #dbe2ea);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 30, 60, .18);
    text-align: center;
}

.search-jdate-wrap .datepicker-plot-area,
.search-jdate-wrap .datepicker-plot-area * {
    box-sizing: border-box;
}

.search-jdate-wrap .datepicker-plot-area * { color: var(--text); }

/* ---------- Ù†ÙˆØ§Ø± Ù…Ø§Ù‡ ---------- */
.search-jdate-wrap .datepicker-plot-area .datepicker-navigator {
    background: linear-gradient(180deg, var(--blue-mid), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-next,
.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-switch,
.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-prev {
    background: transparent;
    color: #fff;
    height: 30px;
    line-height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 120ms ease;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-switch {
    font-weight: 700;
    font-size: 13.5px;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-next:hover,
.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-switch:hover,
.search-jdate-wrap .datepicker-plot-area .datepicker-navigator .pwt-btn-prev:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---------- Ø±ÙˆØ²Ù‡Ø§ÛŒ Ù‡ÙØªÙ‡ ---------- */
.search-jdate-wrap .datepicker-plot-area .month-grid-box .header {
    background: var(--card, #fff);
}

.search-jdate-wrap .datepicker-plot-area .month-grid-box .header .header-row-cell {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    height: 26px;
    line-height: 26px;
}

/* ---------- Ø±ÙˆØ²Ù‡Ø§ ---------- */
.search-jdate-wrap .datepicker-plot-area .table-days {
    background: var(--card, #fff);
    border-collapse: separate;
    border-spacing: 2px;
    padding: 0 4px 4px;
    width: calc(100% - 8px);
    margin: 0 4px;
    float: none;
    display: inline-table;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td {
    height: 30px;
    padding: 0;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td span {
    display: block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    background: transparent;
    color: var(--text);
    transition: background 100ms ease, color 100ms ease;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td:hover span,
.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td span:hover {
    background: var(--blue-mid);
    color: #fff;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.other-month span {
    color: var(--muted);
    opacity: .55;
    background: transparent;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.other-month:hover span {
    background: var(--blue-mid);
    color: #fff;
    opacity: .8;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.disabled span,
.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.disabled:hover span {
    background: transparent;
    color: var(--muted);
    opacity: .4;
    cursor: default;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.today span {
    background: var(--blue-light);
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.today:hover span {
    background: var(--blue-mid);
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.selected span {
    background: var(--blue-dark);
    color: #fff;
    box-shadow: 0 2px 6px rgba(20, 51, 107, .35);
}

.search-jdate-wrap .datepicker-plot-area .datepicker-day-view .table-days td.selected:hover span {
    background: var(--blue-dark);
    color: #fff;
}

/* ---------- Ù†ÙˆØ§Ø± Ù¾Ø§ÛŒÛŒÙ† (Ø§Ù…Ø±ÙˆØ²/ØªÙ‚ÙˆÛŒÙ…) ---------- */
.search-jdate-wrap .datepicker-plot-area .toolbox {
    background: var(--card, #fff);
    padding: 4px 6px 8px;
    margin-top: 2px;
}

.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-today,
.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-calendar,
.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-submit {
    background: transparent;
    color: var(--blue-mid);
    height: 26px;
    line-height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 100ms ease;
}

.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-today:hover,
.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-calendar:hover,
.search-jdate-wrap .datepicker-plot-area .toolbox .pwt-btn-submit:hover {
    background: var(--soft, #f4f6fa);
    color: var(--blue-dark);
}

/* ---------- Ø³Ø§Ù„/Ù…Ø§Ù‡ ---------- */
.search-jdate-wrap .datepicker-plot-area .datepicker-year-view .year-item,
.search-jdate-wrap .datepicker-plot-area .datepicker-month-view .month-item {
    height: 44px;
    line-height: 44px;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-year-view .year-item:hover,
.search-jdate-wrap .datepicker-plot-area .datepicker-month-view .month-item:hover {
    background: var(--blue-mid);
    color: #fff;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-year-view .year-item.selected,
.search-jdate-wrap .datepicker-plot-area .datepicker-month-view .month-item.selected {
    background: var(--blue-dark);
    color: #fff;
}

.search-jdate-wrap .datepicker-plot-area .datepicker-year-view .year-item-disable,
.search-jdate-wrap .datepicker-plot-area .datepicker-month-view .month-item-disable {
    background: transparent;
    color: var(--muted);
    opacity: .4;
}

.filter-submit {
    background: var(--blue-light);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-submit:hover { background: var(--blue-dark); }

.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    flex-shrink: 0;
}

.filter-reset:hover { color: var(--red); }

@media (max-width: 600px) {
    .advanced-search-form {
        padding: 12px;
        border-radius: 12px;
    }
    .search-row-q {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px;
        border-radius: 12px;
    }
    .search-row-q input {
        width: 100%;
        padding: 10px 12px;
    }
    .search-row-q button {
        width: 100%;
        padding: 10px 8px;
    }
    .search-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-field {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .filter-submit,
    .filter-reset {
        box-sizing: border-box;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .search-jdate-wrap .datepicker-container,
    .search-jdate-wrap .datepicker-plot-area {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

.user-area { flex-shrink: 0; }

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
}

.user-btn:hover { background: var(--red); color: #fff; }
.push-toggle { cursor: pointer; }
.push-toggle.is-on { background: var(--green, #2e7d32); color: #fff; }
.push-toggle.is-on:hover { background: var(--red); }
[data-theme="dark"] .push-toggle.is-on { background: #2f9e44; }
.user-avatar { font-size: 16px; }
.user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout { background: rgba(255,255,255,0.2); padding: 1px 8px; border-radius: 12px; font-size: 12px; }

.main-nav {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
    border-bottom: 3px solid var(--red);
}

.main-nav .container { display: flex; align-items: center; gap: 10px; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    margin-inline-end: 14px;
    visibility: hidden;
    opacity: 0;
    max-width: 0;
    margin-inline-end: 0;
    transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease, max-width .4s ease, margin-inline-end .4s ease, visibility .4s;
}

.site-header.is-scrolled .nav-logo {
    visibility: visible;
    opacity: 1;
    max-width: 260px;
    margin-inline-end: 14px;
    transform: none;
}
.site-header.is-scrolled .top-bar {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding-block: 0;
    gap: 0;
}
.nav-logo .logo-icon { font-size: 20px; padding: 6px 9px; border-radius: 7px; }
.nav-logo .logo-img { height: 30px; width: auto; max-width: 130px; border-radius: 6px; }
.nav-logo-text { font-weight: 800; font-size: 16px; white-space: nowrap; }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.site-header.is-scrolled .main-nav li a {
    padding: 9px 14px;
    font-size: 13.5px;
}

.site-header.is-scrolled .main-nav li a .nav-icon {
    width: 13px;
    height: 13px;
    vertical-align: -1px;
    margin-left: 4px;
}

.site-header.is-scrolled .nav-theme-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.site-header.is-scrolled .nav-theme-btn svg {
    width: 14px;
    height: 14px;
}

.main-nav li a {
    display: block;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.main-nav li:first-child a { border-right: none; }
.main-nav li a:hover,
.main-nav li a.active { background: var(--red); }

.main-nav li a .nav-icon {
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-left: 5px;
    color: inherit;
}

.nav-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}

.nav-theme-btn:hover { background: rgba(255, 255, 255, .3); border-color: #fff; }
.nav-theme-btn svg { display: block; }

/* دکمه همبرگری موبایل: در دسکتاپ مخفی و منو تخت است */
.nav-toggle { display: none; }
.nav-acc-head { display: none; }
.nav-acc-body { display: flex; flex-wrap: wrap; }

/* ---------- Layout ---------- */
.main-content {
    display: flex;
    gap: 25px;
    padding: 25px 0 40px;
}

.content-main { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 15px; align-self: flex-start; }

/* ---------- Featured hero ---------- */
.hero { display: flex; gap: 20px; margin-bottom: 30px; }

.hero-main {
    flex: 1.6;
    background: var(--blue-dark);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
    color: #fff;
}

.hero-slider { position: relative; overflow: hidden; touch-action: pan-y; }

.hero-track {
    display: flex;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.25, 0.6, 0.3, 1);
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    background: var(--blue-dark);
}

.hero-slide .hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.hero-slide .hero-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 60px 20px 18px;
}

.hero-slide .cat-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.hero-slide h2 a { color: #fff; font-size: 22px; line-height: 1.6; }
.hero-slide h2 a:hover { color: #ffd3d3; }

.hero-lead {
    color: #dbe4f3;
    font-size: 13.5px;
    line-height: 1.8;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide .meta { color: #cbd5e1; font-size: 13px; margin-top: 6px; }

.hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .22);
    z-index: 4;
    transform-origin: right;
    display: none;
}
.hero-progress.anim { animation: hero-progress-fill var(--hero-interval, 5.5s) linear forwards; display: block; }

@keyframes hero-progress-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.hero-counter {
    position: absolute;
    left: 12px;
    bottom: 32px;
    z-index: 4;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(0, 0, 0, .38);
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: .5px;
    direction: rtl;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.45);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-slider:hover .hero-nav { opacity: 1; }
.hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: rgba(0,0,0,0.7); }

.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-dots {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    z-index: 5;
    display: flex;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,0.35);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active { background: #fff; transform: scale(1.25); }
.hero-dot:hover { background: rgba(255,255,255,0.9); }
.hero-dot:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-side-item {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--border);
    flex: 1;
}

.hero-side-item img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-side-item .num {
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.hero-side-item h3 { font-size: 13px; line-height: 1.7; }
.hero-side-item h3 a { color: var(--text); }
.hero-side-item h3 a:hover { color: var(--red); }

/* ---------- Ø¨Ø®Ø´â€ŒÙ‡Ø§ÛŒ Ø¯Ø³ØªÙ‡â€ŒØ§ÛŒ ØµÙØ­Ù‡ Ø§ØµÙ„ÛŒ ---------- */
.cat-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

/* ---------- Ù…Ù‡Ù…â€ŒØªØ±ÛŒÙ† Ø§Ø®Ø¨Ø§Ø± (ÙÙ‡Ø±Ø³Øª Ø´Ù…Ø§Ø±Ù‡â€ŒØ¯Ø§Ø±) ---------- */
.top-news {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    border-top: 3px solid var(--red);
    margin-bottom: 30px;
}
.top-news-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.top-news-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 0;
}
.top-news-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    font-size: 13px;
}
.top-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.top-news-item { min-width: 0; }
.top-news-item a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    height: 100%;
}
.top-news-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--soft);
}
.top-news-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-news-num {
    position: absolute;
    top: 6px;
    right: 6px;
    flex-shrink: 0;
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.top-news-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.top-news-line {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top-news-item a:hover .top-news-line { color: var(--red); }
.top-news-meta { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1100px) {
    .top-news-list { grid-template-columns: repeat(3, 1fr); }
    .top-news-list .top-news-item:nth-child(n+4) { display: none; }
}
@media (max-width: 700px) {
    .top-news-list { grid-template-columns: repeat(2, 1fr); }
    .top-news-list .top-news-item:nth-child(n+4) { display: block; }
}
@media (max-width: 420px) {
    .top-news-list { grid-template-columns: 1fr; }
}

.cat-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    border-top: 3px solid var(--cat-color, var(--red));
}

.cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.cat-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 0;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.cat-section-more {
    font-size: 12px;
    color: var(--cat-color, var(--red));
    font-weight: 700;
    white-space: nowrap;
}

.cat-section-more:hover { text-decoration: underline; }

.cat-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cat-section-lead {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 180px;
}

.cat-section-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cat-section-lead-title {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 34px 12px 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.cat-section-lead:hover .cat-section-lead-title { color: #ffd3d3; }

.cat-section-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-section-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cat-section-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cat-section-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-dark);
    color: #fff;
    font-size: 20px;
}

.cat-section-item-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cat-section-item-title {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-section-item:hover .cat-section-item-title { color: var(--red); }

.cat-section-item-meta {
    font-size: 11px;
    color: var(--muted);
}

/* ---------- Ø¨Ø§Ú©Ø³ ØªØ¨â€ŒØ¯Ø§Ø± Ø¯Ø³ØªÙ‡â€ŒÙ‡Ø§ Ø¯Ø± Ø³Ø§ÛŒØ¯Ø¨Ø§Ø± ---------- */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.cat-tab {
    background: none;
    border: none;
    padding: 6px 2px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.cat-tab::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 0;
    left: 0;
    height: 2.5px;
    border-radius: 3px;
    background: var(--cat-color, var(--red));
    opacity: 0;
    transition: opacity 0.2s;
}

.cat-tab:hover { color: var(--blue-dark); }
.cat-tab:hover::after { opacity: 0.45; }

.cat-tab.is-active {
    color: var(--cat-color, var(--red));
    font-weight: 800;
}

.cat-tab.is-active::after { opacity: 1; }

.cat-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.cat-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cat-panel-thumb {
    width: 56px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.cat-panel-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-dark);
    color: #fff;
    font-size: 16px;
}

.cat-panel-title {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-panel-item:hover .cat-panel-title { color: var(--red); }

/* ---------- Section titles ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.np-today-btn {
    margin-inline-start: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-dark);
    border: 1px solid var(--blue-light);
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.np-today-btn:hover {
    background: var(--blue-dark);
    color: #fff;
}

.section-title h1,
.section-title h2 {
    font-size: 19px;
    color: var(--blue-dark);
    background: var(--red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 5px;
    font-weight: 800;
}

.section-title h2::after {
    content: '';
    display: none;
}

/* ---------- View toggle ---------- */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 3px;
    margin-right: auto;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 27px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #7c8aa0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.view-toggle-btn:hover {
    color: var(--blue-dark);
    background: #e2e8f0;
}

.view-toggle-btn:active { transform: scale(0.94); }

.view-toggle-btn.is-active {
    background: linear-gradient(180deg, var(--card), var(--soft));
    color: var(--blue-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

/* ---------- List (row) view ---------- */
.r3-inner-page .news-grid[data-view="list"],
.news-grid[data-view="list"] {
    grid-template-columns: 1fr;
    gap: 14px;
}

.news-grid[data-view="list"] .news-card {
    flex-direction: row;
    align-items: stretch;
}

.news-grid[data-view="list"] .news-card .card-thumb,
.news-grid[data-view="list"] .news-card .card-img,
.news-grid[data-view="list"] .news-card .card-img-placeholder {
    width: 220px;
    height: auto;
    min-height: 140px;
    flex-shrink: 0;
}

.news-grid[data-view="list"] .news-card .card-body {
    padding: 16px;
}

.news-grid[data-view="list"] .news-card h3 { font-size: 16px; }

.news-grid[data-view="list"] .news-card .card-thumb {
    display: flex;
    flex-direction: column;
}

.news-grid[data-view="list"] .news-card .card-badges {
    position: static;
    flex-direction: row;
    gap: 5px;
    padding: 6px 8px 0;
    pointer-events: auto;
}

.news-grid[data-view="list"] .news-card .card-badge {
    font-size: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.news-grid[data-view="list"] .news-card .card-badge.badge-live { display: none; }

.inf-scroll-sentinel { height: 1px; }

.inf-scroll-status {
    text-align: center;
    padding: 18px 0 4px;
    font-size: 13.5px;
    color: var(--muted);
}
.inf-scroll-status.loading { color: var(--blue-mid); }
.inf-scroll-status.end { color: var(--muted); }
.inf-scroll-status.err { color: var(--red); }

/* ---------- Ø§Ø³Ú©Ù„ØªÙˆÙ†â€ŒÙ„ÙˆØ¯Ø± (Ø­ÛŒÙ† Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±ÛŒ Ø§Ø®Ø¨Ø§Ø±) ---------- */
.sk-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.sk-img { width: 100%; height: 160px; display: block; }
.sk-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 12px; border-radius: 6px; }
.sk-line.w80 { width: 80%; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-shimmer {
    background: linear-gradient(90deg, var(--soft) 0%, var(--border) 50%, var(--soft) 100%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.15s linear infinite;
}
@keyframes sk-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .sk-shimmer { animation: none; }
}
.news-grid[data-view="list"] .sk-card { flex-direction: row; }
.news-grid[data-view="list"] .sk-img { width: 220px; height: 140px; flex-shrink: 0; }
.news-grid[data-view="list"] .sk-body { flex: 1; justify-content: center; }
@media (max-width: 600px) {
    .news-grid[data-view="list"] .sk-img { width: 140px; height: 120px; }
}

/* ---------- Ù…ÛŒÚ©Ø±ÙˆØªØ¹Ø§Ù…Ù„â€ŒÙ‡Ø§ ---------- */
.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    z-index: 1500;
    transition: width .12s linear;
}

.newsletter-widget .newsletter-form { display: flex; gap: 6px; flex-wrap: wrap; }
.newsletter-widget .nl-input {
    flex: 1;
    min-width: 130px;
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    background: var(--card);
    color: var(--text);
}
.newsletter-msg { margin-top: 8px; font-size: 12.5px; }
.newsletter-msg.nl-ok { color: #059669; }
.newsletter-msg.nl-err { color: #dc2626; }
.top-news-item a { transition: transform .2s ease; }
.top-news-item a:hover { transform: translateY(-3px); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 800;
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 3px 14px rgba(0, 0, 0, .14); }

.to-top-btn {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 1200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
background: var(--red);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease;
}
.to-top-btn:not([hidden]) { opacity: 1; visibility: visible; transform: none; }

/* دکمه بازگشت به بالا در موبایل: کمرنگ و بالای نوار «روی خط خبر» — با رسیدن به فوتر پررنگ */
@media (max-width: 760px) {
    .to-top-btn {
        bottom: 68px;
        left: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
        opacity: .4 !important;
    }
    .to-top-btn:hover { opacity: 1 !important; }
    .to-top-btn.near-footer { opacity: 1 !important; }
}
.to-top-btn:hover { background: var(--red); }
.to-top-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- News grid ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.news-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

.card-thumb { position: relative; }

.card-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card .card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.news-card:hover .card-img { transform: scale(1.045); }

.news-card .card-img-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: #fff;
    font-size: 40px;
}

.card-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.card-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    width: fit-content;
}

.card-badge.badge-video { background: var(--red); }
.card-badge.badge-photo { background: rgba(20,51,107,0.85); }
.card-badge.badge-breaking { background: var(--red); }
.card-badge.badge-featured { background: #b45309; }
.card-badge.badge-live {
    background: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-badge.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.2s infinite;
}
.live-inline {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #dc2626;
    background: #fee2e2;
    border: 1px solid #f5b5b5;
    border-radius: 6px;
    padding: 1px 8px;
    margin-bottom: 6px;
    animation: live-pulse 2s infinite;
}

.card-meta-right { display: inline-flex; align-items: center; gap: 12px; }

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
}

/* ---------- Ù†Ù‚Ø´Ù‡ Ø´Ù‡Ø±Ø³ØªØ§Ù†â€ŒÙ‡Ø§ÛŒ Ø®ÙˆØ²Ø³ØªØ§Ù† ---------- */
.khz-map-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin: 22px 0;
}
.khz-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 2px solid var(--hb-c, var(--border));
    background: var(--hb-bg, linear-gradient(135deg, var(--soft), transparent));
    color: var(--hb-t, inherit);
}
html[data-theme="dark"] .khz-map-head { border-bottom-color: var(--hb-cd, var(--border)); background: var(--hb-bgd, linear-gradient(135deg, var(--soft), transparent)); color: var(--hb-td, inherit); }
.khz-map-head h3 { font-size: 16px; margin: 0; color: var(--hb-t, var(--blue-dark)); }
html[data-theme="dark"] .khz-map-head h3 { color: var(--hb-td, var(--blue-dark)); }
.khz-map-head p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.khz-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}
.khz-legend small { flex-basis: 100%; text-align: left; font-size: 10.5px; }
.khz-legend i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .1);
}
.khz-legend i.khz-temp-scale {
    width: 108px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e6ff2, #66ccff 32%, #ffd166 52%, #ff7a45 75%, #c62828);
}
.khz-legend-offline { color: #b45309; }
.khz-map-body {
    padding: 14px;
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, .05), transparent 60%);
    display: flex;
    gap: 14px;
    align-items: stretch;
}
.khz-map-main { flex: 1 1 70%; min-width: 0; display: flex; align-items: center; position: relative; }
.khz-svg {
    width: 100%;
    height: auto;
    max-width: 640px;
    display: block;
    margin: 0 auto;
}
.khz-cell {
    stroke: #fff;
    stroke-width: 1.5;
    transition: filter .15s, transform .15s;
    cursor: pointer;
}
.khz-link:hover .khz-cell {
    filter: brightness(1.08) drop-shadow(0 4px 10px rgba(29, 78, 216, .35));
}
.khz-link.khz-active .khz-cell {
    stroke: #e11d48;
    stroke-width: 2.5;
    filter: brightness(1.05) drop-shadow(0 4px 12px rgba(225, 29, 72, .4));
}
.khz-name { font-size: 11.5px; font-weight: 800; }
.khz-count { font-size: 9.5px; }
.khz-gulf { fill: #dbeafe; stroke: #93c5fd; stroke-width: 1.5; }
.khz-gulf-text { font-size: 10px; fill: #2563eb; font-weight: 700; }
/* ---------- Ù†Ù‚Ø´Ù‡ Ø¬ØºØ±Ø§ÙÛŒØ§ÛŒÛŒ (Ù…Ø³ÛŒØ±Ù‡Ø§ÛŒ ÙˆØ§Ù‚Ø¹ÛŒ) ---------- */
.khz-geo-svg { background: #f4f8ff; border-radius: 12px; }
.khz-map-bg { fill: #f4f8ff; }
html[data-theme="dark"] .khz-geo-svg { background: #101a2b; }
html[data-theme="dark"] .khz-map-bg { fill: #101a2b; }
.khz-geo path {
    stroke: #ffffff;
    stroke-width: 1.4;
    transition: fill .18s ease, filter .18s ease, stroke .18s ease;
    cursor: pointer;
}
.khz-link:hover .khz-geo path {
    filter: brightness(1.18) drop-shadow(0 3px 8px rgba(29, 78, 216, .35));
    stroke: #1d4ed8;
    stroke-width: 2.5;
}
.khz-link:focus-visible .khz-geo path {
    stroke: #e11d48;
    stroke-width: 2.5;
    filter: brightness(1.12) drop-shadow(0 3px 9px rgba(225, 29, 72, .42));
}
.khz-link.khz-active .khz-geo path {
    stroke: #e11d48;
    stroke-width: 2.5;
    filter: saturate(1.3) brightness(1.05) drop-shadow(0 3px 10px rgba(225, 29, 72, .45));
}
.khz-geo text {
    pointer-events: none;
    user-select: none;
}
.khz-geo-name { font-size: 16.5px; font-weight: 800; }
.khz-geo-name-v { letter-spacing: 1px; }
.khz-geo-name-d { letter-spacing: .5px; }
.khz-geo-count { font-size: 10.5px; font-weight: 700; }
.khz-wx-tip {
    position: fixed;
    z-index: 10020;
    width: min(290px, calc(100vw - 16px));
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 12px;
    background: rgba(15, 23, 42, .96);
    color: #fff;
    direction: rtl;
    text-align: right;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .3);
    pointer-events: none;
    backdrop-filter: blur(8px);
}
.khz-wx-tip[hidden] { display: none; }
.khz-tip-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; }
.khz-tip-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.khz-tip-now b { font-size: 30px; line-height: 1; }
.khz-tip-now span, .khz-tip-stats span { display: flex; align-items: center; gap: 5px; }
.khz-tip-stats { display: grid; grid-template-columns: 1fr; gap: 5px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11.5px; color: #dbeafe; }
.khz-side {
    flex: 1 1 30%;
    min-width: 0;
    max-height: 500px;
    overflow-y: auto;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    scrollbar-width: thin;
}
.khz-side-weather {
    margin: -4px -6px 14px;
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(219, 234, 254, .82), rgba(255, 255, 255, .78));
}
html[data-theme="dark"] .khz-side-weather { background: linear-gradient(145deg, rgba(30, 64, 175, .22), rgba(15, 23, 42, .72)); }
.khz-side-wx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.khz-side-wx-head > span { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; color: var(--blue-dark); }
.khz-side-wx-head strong { font-size: 28px; line-height: 1; color: var(--text); }
.khz-side-wx-desc { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.khz-side-wx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.khz-side-wx-stats > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 5px; min-width: 0; padding: 7px 5px; border-radius: 8px; background: rgba(255,255,255,.6); }
html[data-theme="dark"] .khz-side-wx-stats > span { background: rgba(15, 23, 42, .38); }
.khz-side-wx-stats svg { grid-row: 1 / 3; }
.khz-side-wx-stats b { font-size: 13px; line-height: 1.2; }
.khz-side-wx-stats small { font-size: 9px; color: var(--muted); white-space: nowrap; }
.khz-wx-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 9px; }
.khz-wx-day { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px; padding: 6px; border-top: 1px solid rgba(59,130,246,.18); font-style: normal; font-size: 10.5px; }
.khz-wx-day > span { font-weight: 700; }
.khz-wx-day > i { display: flex; justify-content: flex-end; font-style: normal; }
.khz-wx-day > b { font-size: 12px; }
.khz-wx-day > small { color: var(--muted); text-align: left; }
.khz-wx-day > em { grid-column: 1 / 3; display: flex; align-items: center; gap: 3px; color: #2563eb; font-size: 9px; font-style: normal; }
.khz-side-loading .khz-side-icon svg { animation: khz-spin .85s linear infinite; }
@keyframes khz-spin { to { transform: rotate(360deg); } }
.khz-side-placeholder {
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
    padding: 34px 10px;
    line-height: 1.9;
}
.khz-side-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.khz-side-placeholder p { margin: 0; }
.khz-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.khz-side-head b { font-size: 15px; color: var(--blue-dark); }
.khz-side-head span { font-size: 11.5px; color: var(--muted); }
.khz-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.khz-side-list li { border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.khz-side-list li:last-child { border-bottom: none; padding-bottom: 0; }
.khz-side-list a { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.6; display: block; }
.khz-side-list a:hover { color: var(--blue-dark); }
.khz-side-item-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.khz-side-empty { font-size: 12.5px; color: var(--muted); padding: 8px 0; }
.khz-side-all { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--blue-dark); text-decoration: none; }
.khz-side-all:hover { text-decoration: underline; }
.khz-map-foot {
    padding: 10px 18px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    text-align: left;
}
.khz-map-foot a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.khz-map-foot a:hover { text-decoration: underline; }
@media (max-width: 720px) {
    .khz-map-body { flex-direction: column; }
    .khz-map-head { align-items: flex-start; }
    .khz-legend { width: 100%; }
    .khz-legend small { text-align: right; }
    .khz-side { width: 100%; max-height: 540px; padding: 12px; }
    .khz-side-wx-stats { gap: 4px; }
    .khz-side-wx-stats > span { padding: 6px 3px; }
    .khz-wx-tip { display: none !important; }
}

/* ---------- Ù…ÛŒØ² ÙˆÛŒØ¯ÛŒÙˆ ---------- */
.vid-cat-chip {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    transition: all .15s;
}
.vid-cat-chip:hover { background: rgba(255, 255, 255, .22); }
.vid-cat-chip.active { background: #e11d48; border-color: #e11d48; }
.vid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.vid-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}
.vid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .16);
}
.vid-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vid-card:hover .vid-thumb img { transform: scale(1.05); }
.vid-thumb-ph {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 44px;
background: linear-gradient(135deg, #1f2937, #111827);
}
.vid-frame-src {
position: absolute;
width: 2px;
height: 2px;
opacity: .01;
pointer-events: none;
}
.vid-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    background: rgba(225, 29, 72, .92);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding-right: 3px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
    transition: transform .18s;
}
.vid-card:hover .vid-play { transform: scale(1.12); }
.vid-dur-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 5px;
}
.vid-body { padding: 12px 14px 14px; }
.vid-body h3 {
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 8px;
}
.vid-body h3 a { color: var(--text); text-decoration: none; }
.vid-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
    flex-wrap: wrap;
    align-items: center;
}
.vid-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.vid-modal[hidden] { display: none; }
.vid-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 18, .82); backdrop-filter: blur(4px); }
.vid-modal-box {
    position: relative;
    width: min(880px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    animation: vid-pop .25s ease;
}
@keyframes vid-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.vid-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.vid-modal-head h2 { margin: 0; font-size: 15px; }
.vid-close {
    border: none;
    background: #f1f5f9;
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
}
.vid-close:hover { background: #fee2e2; color: #b91c1c; }
.vid-modal-player {
    padding: 14px;
    background: #000;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vid-modal-player .video-embed { width: 100%; }
.vid-modal-player .video-embed iframe,
.vid-modal-player .video-embed video { width: 100%; height: 100%; border-radius: 10px; }
.vid-loading { color: #94a3b8; font-size: 13px; }
.vid-error { color: #fca5a5; font-size: 13.5px; text-align: center; padding: 30px 10px; }
.vid-modal-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 16px;
    max-height: 240px;
    overflow-y: auto;
}
.vid-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: right;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.vid-side-item:hover { background: var(--soft); }
.vid-side-item b { display: block; font-size: 12.5px; color: var(--text); line-height: 1.5; }
.vid-side-item small { font-size: 11px; color: var(--muted); }
.vid-side-item img { width: 88px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.vid-side-ph { width: 88px; height: 52px; border-radius: 8px; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vid-side-empty { font-size: 12px; color: var(--muted); }

/* ---------- Ù¾ÙˆØ´Ø´ Ø²Ù†Ø¯Ù‡ Ø±ÙˆÛŒØ¯Ø§Ø¯ ---------- */
.live-box {
    margin: 18px 0;
    border: 1.5px solid #e8b4b4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff5f5, #fff);
}
.live-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}
.live-header .live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.2s infinite;
    flex-shrink: 0;
}
.live-title { letter-spacing: .2px; }
.live-status {
    margin-right: auto;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .18);
    padding: 3px 10px;
    border-radius: 20px;
}
.live-status.off { background: rgba(0, 0, 0, .28); }
.live-timeline {
    max-height: 480px;
    overflow-y: auto;
    padding: 10px 0;
}
.live-item {
    position: relative;
    padding: 12px 18px 12px 16px;
    border-bottom: 1px dashed #f0d5d5;
    animation: live-slide-in .45s ease;
}
.live-item:last-child { border-bottom: none; }
.live-item.pinned { background: #fff7e6; }
.live-item.is-new { background: #fff1f1; animation: live-flash 1.6s ease; }
.live-item::before {
    content: '';
    position: absolute;
    right: 7px;
    top: 16px;
    width: 4px;
    height: calc(100% - 10px);
    background: linear-gradient(180deg, #fca5a5, transparent);
    border-radius: 2px;
}
.live-time {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 6px;
}
.live-pin {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #92400e;
    background: #fde68a;
    border-radius: 6px;
    padding: 2px 8px;
    margin-bottom: 6px;
    margin-right: 6px;
}
.live-item p {
    margin: 4px 0 6px;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--text);
}
.live-img {
    display: block;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 6px;
}
.live-foot {
    padding: 0 16px 10px;
    min-height: 0;
}
.live-toast {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .35);
}
@keyframes live-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}
@keyframes live-flash {
    0% { background: #ffe4e4; }
    100% { background: #fff1f1; }
}.news-card .card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }

.news-card .cat-badge {
    display: inline-block;
    background: var(--blue-mid);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.news-card .cat-badge[style*="--cat-color"] { background: var(--cat-color); }

.news-card h3 { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--red); }

.news-card p { font-size: 13px; color: var(--muted); flex: 1; }

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

/* ساعت ارسال خبر: آیکن ساعت + ساعت:دقیقه با فاصله کنار تاریخ */
.dt-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 6px;
    white-space: nowrap;
}
.dt-time svg { flex: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 25px; direction: ltr; }
.pagination a, .pagination span {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
}
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a:hover { background: var(--blue-mid); color: #fff; }
.pagination .disabled { background: var(--border); color: var(--muted); border-color: transparent; }
.pagination .dots { border: none; background: transparent; }

/* ---------- Sidebar ---------- */
.sidebar-box {
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-box .box-title {
    background: var(--blue-dark);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    font-size: 15px;
    border-right: 5px solid var(--widget-line, var(--red));
}

.sidebar-box .box-body { padding: 12px 16px; }

/* ===== ویجت آب‌وهوای خوزستان — کارت MSN ===== */
.wx-shell { padding: 0; }
.wx-card { position: relative; overflow: hidden; border-radius: 14px; padding: 16px; color: #fff; direction: rtl; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }

/* ===== صفحه هواشناسی دزفول (dezful-weather.php) ===== */
.dzf-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 18px 20px 14px; color: #fff; direction: rtl; box-shadow: 0 10px 28px rgba(0, 0, 0, .20); margin-bottom: 16px; }
.dzf-hero .wx-head { margin-bottom: 12px; }
.dzf-hero .wx-now { padding-bottom: 12px; }
.dzf-hero .wx-stats { grid-template-columns: repeat(6, 1fr); margin-bottom: 12px; }
.wx-feels { font-size: 12px; font-weight: 700; opacity: .92; white-space: nowrap; }
.dzf-refresh { color: #fff; text-decoration: none; font-size: 17px; line-height: 1; background: rgba(255, 255, 255, .18); border-radius: 999px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.dzf-refresh:hover { background: rgba(255, 255, 255, .34); }
.dzf-hero-foot { margin-top: 12px; font-size: 11px; opacity: .85; border-top: 1px dashed rgba(255, 255, 255, .35); padding-top: 8px; }
.dzf-details { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px 18px; margin-bottom: 16px; }
.dzf-details-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.dzf-details-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.dzf-det { display: flex; flex-direction: column; align-items: center; gap: 3px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 4px; }
.dzf-det-ic { font-size: 17px; line-height: 1; color: var(--blue); }
.dzf-det-v { font-size: 14px; font-weight: 800; white-space: nowrap; }
.dzf-det-k { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dzf-det.dzf-uv-low { background: #f0fdf4; border-color: #16a34a; color: #15803d; }
.dzf-det.dzf-uv-low .dzf-det-ic { color: #16a34a; }
.dzf-det.dzf-uv-mod { background: #fefce8; border-color: #eab308; color: #a16207; }
.dzf-det.dzf-uv-mod .dzf-det-ic { color: #eab308; }
.dzf-det.dzf-uv-mid { background: #fff7ed; border-color: #f97316; color: #c2410c; }
.dzf-det.dzf-uv-mid .dzf-det-ic { color: #f97316; }
.dzf-det.dzf-uv-high { background: #fef2f2; border-color: #dc2626; color: #b91c1c; animation: dzf-alarm-pulse 1.6s ease-in-out infinite; }
.dzf-det.dzf-uv-high .dzf-det-ic { color: #dc2626; }
.dzf-det.dzf-uv-extreme { background: #faf5ff; border-color: #9333ea; color: #7e22ce; animation: dzf-alarm-pulse 1.6s ease-in-out infinite; }
.dzf-det.dzf-uv-extreme .dzf-det-ic { color: #9333ea; }
.dzf-det.dzf-uv-mid .dzf-det-k, .dzf-det.dzf-uv-high .dzf-det-k, .dzf-det.dzf-uv-extreme .dzf-det-k { font-weight: 700; }
@keyframes dzf-alarm-pulse { 0%, 100% { box-shadow: 0 0 0 1px inset; } 50% { box-shadow: 0 0 0 1px inset, 0 0 12px rgba(0, 0, 0, .18); } }
.dzf-hourly { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px 18px; margin-bottom: 16px; }
.dzf-hourly .wx-hourly { margin-bottom: 0; }
.dzf-hourly .wx-h { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }
.dzf-hourly .wx-h:hover { border-color: #94a3b8; }
.dzf-hourly .wx-h.is-now { background: #e8f0fe; border-color: #2563eb; color: #1e40af; box-shadow: 0 0 0 1px #2563eb; }
.dzf-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 16px; }
.dzf-day { border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; background: #fff; }
.dzf-today { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.dzf-day-name { font-size: 13px; font-weight: 700; }
.dzf-day-date { font-size: 11px; color: var(--muted); margin: 2px 0 8px; }
.dzf-day-icon { font-size: 26px; line-height: 1.2; border-radius: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; }
.dzf-day-cond { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.dzf-day-temps { display: flex; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; }
.dzf-max { color: #d35400; }
.dzf-min { color: #2980b9; }
.dzf-day-meta { display: flex; justify-content: center; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.dzf-day-meta2 { display: flex; justify-content: center; gap: 8px; margin-top: 4px; font-size: 10px; color: var(--muted); opacity: .9; }
.dzf-aq { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 14px 18px; margin-bottom: 16px; }
.dzf-aq-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.dzf-aq-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.dzf-aq-ok { background: #d4edda; color: #155724; }
.dzf-aq-mid { background: #fff3cd; color: #856404; }
.dzf-aq-warn { background: #ffe5d0; color: #b3541e; }
.dzf-aq-bad { background: #f8d7da; color: #a42834; }
.dzf-aq-vbad { background: #dcd3f8; color: #4a1d96; }
.dzf-aq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dzf-aq-p { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 7px 4px; }
.dzf-aq-p b { font-size: 15px; }
.dzf-aq-p span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dzf-aq-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; }
.dzf-src { font-size: 11.5px; color: var(--muted); text-align: center; }
.dzf-src a { color: var(--blue); }
@media (max-width: 920px) { .dzf-grid { grid-template-columns: repeat(2, 1fr); } .dzf-hero .wx-stats { grid-template-columns: repeat(3, 1fr); } .dzf-details-grid { grid-template-columns: repeat(3, 1fr); } .dzf-aq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .dzf-grid { grid-template-columns: 1fr; } .dzf-hero .wx-stats { grid-template-columns: repeat(2, 1fr); } .dzf-details-grid { grid-template-columns: repeat(2, 1fr); } .dzf-aq-grid { grid-template-columns: repeat(2, 1fr); } }
.wxg-sunny  { background: linear-gradient(150deg, #ff9a3d 0%, #ffb347 40%, #3aa0ff 100%); }
.wxg-partly { background: linear-gradient(160deg, #3d7bd9 0%, #5ba3f7 50%, #8fc7ff 100%); }
.wxg-cloudy { background: linear-gradient(160deg, #5a6b7d 0%, #7e92a8 60%, #9fb2c7 100%); }
.wxg-rain   { background: linear-gradient(160deg, #1d4e89 0%, #2c6cad 55%, #4d8fce 100%); }
.wxg-storm  { background: linear-gradient(160deg, #2b2b3a 0%, #4a4a66 55%, #6e6e8f 100%); }
.wxg-snow   { background: linear-gradient(160deg, #6d92b8 0%, #9db9d6 60%, #c8dcef 100%); }
.wxg-fog    { background: linear-gradient(160deg, #77818c 0%, #9aa4af 60%, #c0c8d0 100%); }
.wxg-default{ background: linear-gradient(160deg, #0f6bc9 0%, #2e8de8 55%, #5fb0f5 100%); }

.wx-card .wx-err { color: #fff; font-size: 13.5px; line-height: 1.8; padding: 8px; text-align: center; }

.wx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.wx-loc { font-weight: 800; font-size: 14.5px; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); white-space: nowrap; }
.wx-card .wx-city { font-family: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 3px 12px; max-width: 128px; cursor: pointer; appearance: auto; }
.wx-card .wx-city:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .32); }
.wx-card .wx-city option { color: #222; background: #fff; }

.wx-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; }
.wx-temp { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); white-space: nowrap; }
.wx-now-side { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-icon { font-size: 46px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2)); }
.wx-desc { font-size: 14.5px; font-weight: 700; opacity: .95; white-space: nowrap; }

.wx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.wx-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; padding: 6px 2px; }
.wx-stat-ic { display: flex; align-items: center; line-height: 1; font-size: 17px; }
.wx-stat-v { font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.wx-stat-k { font-size: 11px; opacity: .85; white-space: nowrap; }

.wx-hlabel { font-size: 13px; font-weight: 700; opacity: .9; margin-bottom: 6px; }
.wx-hourly { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.wx-hourly::-webkit-scrollbar { display: none; }
.wx-h { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; padding: 7px 4px; border-radius: 9px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); flex-shrink: 0; }
.wx-h.is-now { background: rgba(255, 255, 255, .32); border-color: #fff; }
.wx-h-time { font-size: 12px; font-weight: 700; opacity: .95; white-space: nowrap; }
.wx-h-ic { display: flex; align-items: center; line-height: 1; font-size: 20px; }
.wx-h-t { font-size: 14px; font-weight: 800; white-space: nowrap; }
.wx-h-pop { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; opacity: .85; white-space: nowrap; }

.wx-days { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 6px; }
.wx-day { display: flex; align-items: center; gap: 8px; padding: 7px 4px; }
.wx-day.is-today { background: rgba(255, 255, 255, .18); border-radius: 9px; padding: 7px 8px; }
.wx-day-name { width: 66px; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.wx-day-ic { display: flex; align-items: center; justify-content: center; width: 24px; font-size: 19px; }
.wx-day-temps { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; white-space: nowrap; }
.wx-day-temps b { font-size: 15px; font-weight: 800; }
.wx-day-temps i { font-style: normal; opacity: .8; }
.wx-day-pop { font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .18); border-radius: 999px; padding: 2px 9px; min-width: 54px; text-align: center; white-space: nowrap; }

.wx-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 6px; }
.wx-foot-links { display: inline-flex; align-items: center; gap: 6px; }
.wx-ir-map { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 11px; text-decoration: none; white-space: nowrap; }
.wx-ir-map:hover { background: rgba(255, 255, 255, .25); }
.wx-updated { font-size: 12px; opacity: .85; white-space: nowrap; }
.wx-refresh { display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; line-height: 1; transition: transform .25s, background .2s; }
.wx-refresh:hover { background: rgba(255, 255, 255, .3); }
.wx-refresh.is-spin { animation: wx-spin .8s linear infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }

/* ===== نسخه ویژه دارک مود ===== */
html[data-theme="dark"] .wx-card { box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .wxg-sunny  { background: linear-gradient(150deg, #b45309 0%, #c97f1e 38%, #173a63 100%); }
html[data-theme="dark"] .wxg-partly { background: linear-gradient(160deg, #1e3a5f 0%, #2c5588 55%, #4a76a8 100%); }
html[data-theme="dark"] .wxg-cloudy { background: linear-gradient(160deg, #2d3540 0%, #414e5e 60%, #5c6d80 100%); }
html[data-theme="dark"] .wxg-rain   { background: linear-gradient(160deg, #0d2743 0%, #17406b 60%, #2a5f96 100%); }
html[data-theme="dark"] .wxg-storm  { background: linear-gradient(160deg, #15151f 0%, #2e2e42 60%, #4a4a68 100%); }
html[data-theme="dark"] .wxg-snow   { background: linear-gradient(160deg, #3d566e 0%, #5f7d9c 60%, #8aa7c4 100%); }
html[data-theme="dark"] .wxg-fog    { background: linear-gradient(160deg, #3a4148 0%, #565f68 60%, #747f8b 100%); }
html[data-theme="dark"] .wxg-default{ background: linear-gradient(160deg, #0a3d73 0%, #155f9e 55%, #2a7cc4 100%); }
html[data-theme="dark"] .wx-card .wx-stat { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .wx-card .wx-h { background: rgba(0, 0, 0, .22); border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .wx-card .wx-h.is-now { background: rgba(255, 255, 255, .24); border-color: #fff; }
html[data-theme="dark"] .wx-card .wx-day.is-today { background: rgba(0, 0, 0, .3); }
html[data-theme="dark"] .wx-day-pop { background: rgba(0, 0, 0, .32); }
html[data-theme="dark"] .wx-card .wx-city { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .35); }
html[data-theme="dark"] .wx-refresh { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .35); }

/* ===== نقشه آب‌وهوای ایران ===== */
.iranwx { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.iranwx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.iranwx-title { font-size: 16px; font-weight: 800; color: var(--blue-dark); }
.iranwx-tools { display: flex; align-items: center; gap: 10px; }
.iranwx-updated { font-size: 11px; color: var(--muted); }
.iranwx-refresh { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--blue-dark); border-radius: 8px; width: 28px; height: 28px; text-decoration: none; font-size: 14px; transition: transform .25s, border-color .2s; }
.iranwx-refresh:hover { border-color: var(--blue); transform: rotate(180deg); }
.iranwx-err { color: #b91c1c; font-size: 13px; padding: 14px; text-align: center; }
.iranwx-body { display: flex; gap: 14px; align-items: flex-start; }
.iranwx-map-wrap { position: relative; flex: 1; min-width: 0; }
.iranwx-svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.iranwx-bg { fill: #eef4fb; }
.iranwx-path { stroke: #fff; stroke-width: 1.1; transition: stroke-width .15s, filter .15s; }
.iranwx-link:hover .iranwx-path, .iranwx-link.is-pin .iranwx-path { stroke: #14336b; stroke-width: 2; filter: brightness(1.12); }
.iranwx-lbl { font-size: 10.5px; font-weight: 700; fill: #14336b; pointer-events: none; }
.iranwx-lbl-light { fill: #fff; }
.iranwx-lbl-temp { font-size: 9.5px; font-weight: 800; fill: rgba(20, 51, 107, .75); pointer-events: none; }
.iranwx-lbl-light + .iranwx-lbl-temp, .iranwx-lbl-temp.light { fill: rgba(255, 255, 255, .85); }
.iranwx-tip { position: fixed; z-index: 1200; width: 190px; background: rgba(15, 23, 42, .95); color: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); pointer-events: none; }
.iranwx-tip-name { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.iranwx-tip-now { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.iranwx-tip-temp { font-size: 24px; font-weight: 800; line-height: 1; }
.iranwx-tip-ic { font-size: 22px; }
.iranwx-tip-d { font-size: 11.5px; opacity: .9; }
.iranwx-tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; font-size: 10.5px; opacity: .92; border-top: 1px solid rgba(255,255,255,.18); padding-top: 6px; }
.iranwx-side { width: 230px; flex-shrink: 0; }
.iranwx-side-ph { background: var(--soft); border: 1px dashed var(--border); border-radius: 10px; padding: 18px 12px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.iranwx-side-ic { font-size: 26px; display: block; margin-bottom: 6px; }
.iranwx-side-card { background: linear-gradient(160deg, #0f6bc9, #2e8de8); color: #fff; border-radius: 12px; padding: 14px; }
.iranwx-side-name { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.iranwx-side-desc { font-size: 12px; opacity: .92; margin-bottom: 10px; }
.iranwx-side-temp { font-size: 34px; font-weight: 800; line-height: 1.1; }
.iranwx-side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.iranwx-side-stat { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; padding: 5px 8px; font-size: 10.5px; }
.iranwx-side-stat b { display: block; font-size: 13px; }
.iranwx-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.iranwx-legend-label { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.iranwx-legend-bar { flex: 1; height: 10px; border-radius: 999px; max-width: 320px; }
html[data-theme="dark"] .iranwx-bg { fill: #182433; }
html[data-theme="dark"] .iranwx-path { stroke: #1b2735; }
html[data-theme="dark"] .iranwx-link:hover .iranwx-path, html[data-theme="dark"] .iranwx-link.is-pin .iranwx-path { stroke: #fff; }
html[data-theme="dark"] .iranwx-lbl { fill: #bcd2ee; }
html[data-theme="dark"] .iranwx-lbl-temp { fill: rgba(188, 210, 238, .65); }
html[data-theme="dark"] .iranwx-refresh { background: var(--card); color: var(--text); }

/* ============ ویجت قیمت روز (طلا و ارز) ============ */
.mk-shell { padding: 0; }
.market-widget { border-radius: 12px; background: linear-gradient(160deg, #0b3b2e, #14684f); color: #fff; padding: 12px 14px; box-shadow: 0 4px 14px rgba(11, 59, 46, .25); }
.market-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14.5px; margin-bottom: 8px; }
.market-head-icon { display: flex; align-items: center; line-height: 1; }
.market-rows { display: flex; flex-direction: column; gap: 5px; }
.market-row { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px; padding: 6px 9px; }
.market-row:hover { background: rgba(255, 255, 255, .16); }
.market-icon { display: flex; align-items: center; justify-content: center; width: 22px; flex-shrink: 0; line-height: 1; }
.market-icon svg, .market-head-icon svg { display: block; }
.market-name { flex: 1; font-size: 12px; font-weight: 700; opacity: .95; }
.market-price { font-size: 13px; font-weight: 800; direction: rtl; white-space: nowrap; }
.market-price small { font-size: 10px; font-weight: 500; opacity: .8; }
.market-diff { font-size: 10.5px; font-weight: 800; min-width: 58px; text-align: left; direction: ltr; }
.market-diff.up { color: #7dffa8; }
.market-diff.down { color: #ffb3b3; }
.market-diff.flat { color: rgba(255, 255, 255, .65); }
.market-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.market-time { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; opacity: .85; }
.market-refresh { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); color: #fff; border-radius: 8px; padding: 3px 10px; cursor: pointer; font-size: 11.5px; font-weight: 700; transition: background .2s, transform .25s; }
.market-refresh:hover { background: rgba(255, 255, 255, .3); }
.market-refresh.is-spin { animation: wx-spin .8s linear infinite; }
.market-empty { font-size: 12.5px; text-align: center; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
html[data-theme="dark"] .market-widget { background: linear-gradient(160deg, #0d2f26, #12583f); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .market-refresh { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .35); }

/* ===== ویجت اوقات شرعی ===== */
.prayer-widget { border-radius: 12px; background: linear-gradient(160deg, #1e3a5f, #155f9e); color: #fff; padding: 12px 14px; box-shadow: 0 4px 14px rgba(30, 58, 95, .25); }
.prayer-head { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14.5px; margin-bottom: 6px; }
.prayer-head-icon { font-size: 17px; }
.prayer-head-title { flex: 1; }
.prayer-head-title b { font-weight: 800; }
.prayer-city-wrap { margin-left: auto; position: relative; }
/* دراپ‌دان سفارشی گرافیکی شهر: منو هم‌عرض فیلد، رادیوس کم فیلد و فقط گوشه‌های پایین منو */
.prayer-dd { position: relative; }
.prayer-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px 10px 0 0; padding: 3px 10px; font-size: 11.5px; font-weight: 700; font-family: inherit; cursor: pointer; outline: none; max-width: 165px; line-height: 1.7; }
.prayer-dd-btn:hover { background: rgba(255, 255, 255, .32); }
.prayer-dd-btn:focus-visible { border-color: #fff; }
.prayer-dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prayer-dd-arrow { display: inline-flex; flex-shrink: 0; transition: transform .18s; }
.prayer-dd.open .prayer-dd-arrow { transform: rotate(180deg); }
.prayer-dd-menu { position: absolute; top: 100%; right: 0; left: 0; width: 100%; background: #fff; color: #1f2937; border: 1px solid #d1d5db; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); padding: 5px; display: none; z-index: 9999; }
.prayer-dd.open .prayer-dd-menu { display: block; }
.prayer-dd-item { display: flex; align-items: center; width: 100%; border: 1.5px solid transparent; background: none; color: inherit; font: inherit; font-size: 11.5px; font-weight: 700; text-align: right; padding: 4.5px 8.5px; border-radius: 8px; cursor: pointer; }
.prayer-dd-item:hover { background: #eef2f7; }
.prayer-dd-item.on { border-color: #eef2f7; background: #155f9e; color: #fff; }
html[data-theme="dark"] .prayer-dd-menu { background: #1f2937; color: #f3f4f6; border-color: #374151; }
html[data-theme="dark"] .prayer-dd-item:hover { background: #2d3748; }
html[data-theme="dark"] .prayer-dd-item.on { border-color: #2d3748; background: #124d7a; color: #fff; }
/* منوی دراپ‌دان باید از لبه باکس بیرون بزند و روی همه لایه‌ها باشد */
.sidebar-box.pr-shell { overflow: visible; }
.prayer-city { background: rgba(255, 255, 255, .22); color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; font-family: inherit; cursor: pointer; outline: none; max-width: 118px; }
.prayer-city option { color: #222; background: #fff; }
.prayer-city:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .32); }
.prayer-city:hover { background: rgba(255, 255, 255, .32); }
/* سلکت شهر در صفحه تقویم/ادمین (زمینه روشن) */
.prayer-cal-cityrow, .prayer-city-form { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.prayer-cal-cityrow label, .prayer-city-form label { font-size: 12.5px; color: var(--muted); }
.prayer-city-form .prayer-city, .prayer-cal-cityrow .prayer-city { background: var(--bg); color: var(--text); border: 1px solid var(--border); max-width: 170px; padding: 5px 8px; }
.prayer-cal-cityrow { justify-content: flex-end; margin-top: -4px; }
.prayer-date { font-size: 11.5px; opacity: .85; margin-bottom: 10px; }
.prayer-next { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; padding: 8px 10px; text-align: center; margin-bottom: 9px; }
.prayer-next-name { display: block; font-size: 12.5px; font-weight: 800; }
.prayer-next-count { display: block; font-size: 21px; font-weight: 900; font-family: 'Vazirmatn', Tahoma, sans-serif; letter-spacing: 1px; direction: ltr; margin: 2px 0; }
.prayer-next-hint { display: block; font-size: 10.5px; opacity: .8; }
.prayer-rows { display: flex; flex-direction: column; gap: 4px; }
.prayer-row { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 5px 9px; }
.prayer-row.next { background: rgba(255, 220, 130, .22); border-color: #ffd882; box-shadow: inset 0 0 10px 2px rgba(255, 216, 130, .5); transition: border-color .3s, box-shadow .3s; }
.prayer-row.next.pr-dim { border-color: rgba(255, 216, 130, .25); box-shadow: inset 0 0 10px 2px rgba(255, 216, 130, 0); }
.prayer-icon { font-size: 14px; width: 20px; text-align: center; }
.prayer-name { flex: 1; font-size: 12px; font-weight: 700; opacity: .95; }
.prayer-time { font-size: 12.5px; font-weight: 800; direction: ltr; }
.prayer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 6px; }
.prayer-cal-link { font-size: 11.5px; font-weight: 700; color: #ffe9a8; text-decoration: none; }
.prayer-cal-link:hover { text-decoration: underline; }
.prayer-tgls { display: flex; gap: 4px; }
.prayer-tgl { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 8px; width: 28px; height: 26px; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; }
.prayer-tgl:hover { background: rgba(255, 255, 255, .3); }
html[data-theme="dark"] .prayer-widget { background: linear-gradient(160deg, #14283f, #124d7a); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

/* ===== تقویم ماهانه اوقات شرعی ===== */
.prayer-cal { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.prayer-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.prayer-cal-title { font-size: 16px; font-weight: 800; }
.prayer-cal-nav { background: var(--soft); border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; text-decoration: none; }
.prayer-cal-nav:hover { background: var(--accent, #2563eb); color: #fff; }
.prayer-cal-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.prayer-cal-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.prayer-cal table { width: 100%; border-collapse: collapse; }
.prayer-cal th { background: var(--soft); font-size: 12px; padding: 7px 4px; border: 1px solid var(--border); }
.prayer-cal td { text-align: center; padding: 6px 3px; border: 1px solid var(--border); font-size: 12px; white-space: nowrap; direction: ltr; }
.prayer-cal td.prayer-cal-day { direction: rtl; font-weight: 700; }
.prayer-cal-wday { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-bottom: 1px; }
.prayer-cal-dnum { font-size: 13px; }
.prayer-cal-occ { font-size: 10px; font-weight: 400; color: var(--muted); line-height: 1.6; margin-top: 2px; white-space: normal; }
.prayer-cal-occ-holy { color: #b91c1c; }
.prayer-cal td.prayer-cal-major { background: rgba(37, 99, 235, .08); font-weight: 700; }
.prayer-cal tr.is-today td { background: rgba(37, 99, 235, .16); }
.prayer-cal tr.is-today td.prayer-cal-day { font-weight: 900; color: var(--accent, #2563eb); }
.prayer-cal tr.is-friday td.prayer-cal-day { color: #b91c1c; }
.prayer-cal tr.is-friday td.prayer-cal-day .prayer-cal-wday { color: #b91c1c; }
.prayer-cal tr.is-friday td.prayer-cal-day .prayer-cal-dnum { font-weight: 900; }
.prayer-cal tr.is-holiday td { background: rgba(220, 38, 38, .09); }
.prayer-cal tr.is-holiday td.prayer-cal-day { color: #b91c1c; }
.prayer-cal tr.is-holiday td.prayer-cal-day .prayer-cal-wday { color: #b91c1c; }
.prayer-cal tr.is-holiday td.prayer-cal-day .prayer-cal-dnum { font-weight: 900; }
.prayer-cal tr.is-holiday.is-today td { background: rgba(220, 38, 38, .14); }
.prayer-cal tr.is-holiday td .prayer-cal-occ-holy { font-weight: 800; }
@media (max-width: 640px) {
    .prayer-cal td { font-size: 10.5px; padding: 4px 2px; }
}
html[data-theme="dark"] .iranwx-side-ph { background: var(--soft); border-color: var(--border); }
@media (max-width: 900px) {
    .iranwx-body { flex-direction: column; align-items: stretch; }
    .iranwx-side { width: 100%; }
}

/* ===== بنر هشدار آب‌وهوا (بالای سایت) ===== */
.alerts-bar { position: sticky; top: 0; z-index: 900; }
.alert-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: #fff; }
.alert-item + .alert-item { border-top: 1px solid rgba(255, 255, 255, .2); }
.alert-warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.alert-danger { background: linear-gradient(90deg, #b91c1c, #dc2626); }
.alert-ic { font-size: 16px; flex-shrink: 0; }
.alert-txt { flex: 1; line-height: 1.7; }
.alert-txt b { font-weight: 800; }
.alert-val { background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; }
.alert-x { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4); color: #fff; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 11px; line-height: 1; flex-shrink: 0; }
.alert-x:hover { background: rgba(255, 255, 255, .35); }


.sidebar-list { list-style: none; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { font-size: 13.5px; color: var(--text); display: block; line-height: 1.7; }
.sidebar-list a:hover { color: var(--red); }
.sidebar-list .rank {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 5px;
    background: var(--soft);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 11px;
    margin-left: 6px;
}
.sidebar-list .sub-count { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- ÙˆÛŒØ¬Øªâ€ŒÙ‡Ø§ÛŒ Ù‡ÙˆØ´Ù…Ù†Ø¯ (Ù¾Ø±Ø¨Ø­Ø«â€ŒØªØ±ÛŒÙ† / Ø¯Ø± Ø­Ø§Ù„ Ø±Ø´Ø¯) ---------- */
.smart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.smart-item { position: relative; }
.smart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    background: var(--soft);
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    text-decoration: none;
}
.smart-link:hover {
    background: #fff;
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
[data-theme="dark"] .smart-link:hover { background: var(--soft); border-color: var(--border); }

.smart-rank {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 8px;
    background: #e2e8f0;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
}
.smart-item:nth-child(1) .smart-rank {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}
.smart-item:nth-child(2) .smart-rank {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    color: #fff;
    box-shadow: 0 2px 6px rgba(148, 163, 184, .35);
}
.smart-item:nth-child(3) .smart-rank {
    background: linear-gradient(135deg, #d97706, #ea9a5b);
    color: #fff;
    box-shadow: 0 2px 6px rgba(217, 119, 6, .3);
}

.smart-thumb-wrap { flex: 0 0 auto; }
.smart-thumb {
    width: 58px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: var(--border);
}
.smart-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, var(--soft), var(--border));
    color: var(--muted);
}

/* باکس پربحث: ردیف‌های تمام‌عرض داخل باکس مادر — پس‌زمینه گرادیانی، هرچه بالاتر پربحث‌تر و تیره‌تر */
.smart-disc {
gap: 10px;
margin: 0;
background: linear-gradient(180deg, #14336b 0%, #aec9ef 100%);
border-radius: 10px;
}
html[data-theme="dark"] .smart-disc {
    background: linear-gradient(180deg, #2b4a7f 0%, #9db4e8 100%);
}
.smart-disc .smart-link,
.smart-disc .smart-link:hover {
    border-radius: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.smart-disc .smart-link:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-2px);
    filter: brightness(1.12) saturate(1.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .22);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
html[data-theme="dark"] .smart-disc .smart-link:hover {
    filter: brightness(1.22) saturate(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .4);
}
.smart-disc .smart-thumb,
.smart-disc .smart-thumb-ph { transition: transform .15s ease; }
.smart-disc .smart-link:hover .smart-thumb,
.smart-disc .smart-link:hover .smart-thumb-ph { transform: scale(1.06); }
.smart-disc .smart-cat,
.smart-disc .smart-title,
.smart-disc .smart-link:hover .smart-title { color: var(--sc-txt, var(--text)); }
.smart-disc .smart-meta { color: var(--sc-txt, var(--muted)); opacity: .8; }
.smart-disc .smart-thumb-ph {
    background: rgba(255, 255, 255, .18);
    color: var(--sc-txt, var(--muted));
}
html[data-theme="dark"] .smart-disc .smart-cat,
html[data-theme="dark"] .smart-disc .smart-title,
html[data-theme="dark"] .smart-disc .smart-link:hover .smart-title { color: var(--scd-txt, var(--text)); }
html[data-theme="dark"] .smart-disc .smart-meta { color: var(--scd-txt, var(--muted)); opacity: .8; }
html[data-theme="dark"] .smart-disc .smart-thumb-ph {
    background: rgba(255, 255, 255, .18);
    color: var(--scd-txt, var(--muted));
}

.smart-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.smart-cat {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smart-title {
    font-size: 13px;
    color: var(--text);
    line-height: 1.55;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.smart-link:hover .smart-title { color: var(--red); transition: color .2s ease; }

.smart-meta {
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
}
.smart-growth {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.smart-growth.up { color: #059669; }
.smart-growth.down { color: #dc2626; }

.smart-bar {
    display: block;
    height: 4px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
    margin-top: 2px;
}
.smart-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    transition: width .4s ease;
}
.smart-bar i.up { background: linear-gradient(90deg, #10b981, #059669); }
.smart-bar i.down { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* ---------- ÙˆÛŒØ¬Øª Ú†Ù†Ø¯Ø±Ø³Ø§Ù†Ù‡â€ŒØ§ÛŒ (ÙˆÛŒØ¯Ø¦ÙˆÙ‡Ø§) ---------- */
.media-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.media-item { display: flex; gap: 10px; align-items: center; }
.media-thumb {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb-ph { background: linear-gradient(135deg, var(--blue-dark), var(--blue-light)); color: #fff; }
.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(211, 47, 47, .92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    transition: transform .15s ease;
    pointer-events: none;
}
.media-item:hover .media-play { transform: translate(-50%, -50%) scale(1.12); }
.media-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.media-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-item:hover .media-title { color: var(--red); }
.media-meta { font-size: 11px; color: var(--muted); }

/* ---------- Ù„Ø§ÛŒØªâ€ŒØ¨Ø§Ú©Ø³ ÙˆÛŒØ¯Ø¦Ùˆ ---------- */
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.media-lightbox.is-open { opacity: 1; visibility: visible; }
.media-lightbox-inner {
    width: min(860px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
.media-lightbox-close {
    position: absolute;
    top: -40px;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}
.media-lightbox-close:hover { background: var(--red); }
.media-lightbox-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.media-lightbox-frame .video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
    border-radius: 0;
}
.media-lightbox-frame video { width: 100%; height: 100%; background: #000; display: block; }
.media-lightbox-title {
    color: #fff;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}
.media-lightbox-title a { color: #fff; }
.media-lightbox-title a:hover { color: #ffd3d3; }

.latest-media-list li { padding: 8px 0; }
.latest-media-list a { display: flex; align-items: flex-start; gap: 7px; }
.latest-media-list .wg-media-txt { flex: 1; }
.wg-media-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 3px;
}
.wg-media-icon.wg-media-video { background: #fee2e2; }
.wg-media-icon.wg-media-photo { background: #dbeafe; }
.wg-media-icon.wg-media-audio { background: #dcfce7; }
.wg-media-icon.wg-media-album { background: #fef3c7; }
html[data-theme="dark"] .wg-media-icon.wg-media-video { background: #46292e; color: #fca5a5; }
html[data-theme="dark"] .wg-media-icon.wg-media-photo { background: #243349; color: #93c5fd; }
html[data-theme="dark"] .wg-media-icon.wg-media-audio { background: #1e3a2f; color: #86efac; }
html[data-theme="dark"] .wg-media-icon.wg-media-album { background: #3b3222; color: #fcd34d; }
.wg-media-dot {
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-mid);
    flex-shrink: 0;
    margin-top: 7px;
}

.most-viewed li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.most-viewed .rank {
    font-size: 18px;
    font-weight: 800;
    color: var(--red);
    width: 24px;
    flex-shrink: 0;
}

.cat-list { list-style: none; }
.cat-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text);
}
.cat-list a:hover { color: var(--red); }
.cat-list .count { background: var(--bg); padding: 0 9px; border-radius: 10px; font-size: 12px; }

/* ---------- Single post ---------- */
.post-page { max-width: 850px; }

/* ---------- Ø¨Ù‡â€ŒØ±ÙˆØ²Ø±Ø³Ø§Ù†ÛŒ Ù„Ø­Ø¸Ù‡â€ŒØ§ÛŒ (SSE) ---------- */
@keyframes live-flash {
    0%   { box-shadow: 0 0 0 3px rgba(37, 99, 235, .38); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.news-card.is-live-new {
    animation: live-flash 3s ease-out;
}
.live-toast-box {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 36px));
}
.live-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}
.live-toast.is-in { opacity: 1; transform: translateY(0); }
.live-toast-ico {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 15px;
    background: var(--soft);
}
.live-toast.is-breaking .live-toast-ico { background: var(--red); }
.live-toast.is-breaking { border-color: rgba(211, 47, 47, .45); }
.live-toast-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.live-toast-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
}
.live-toast.is-news .live-toast-tag { color: var(--blue-mid); }
.live-toast-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 640px) {
    .live-toast-box { bottom: 12px; left: 12px; max-width: calc(100vw - 24px); }
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.7;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
a.breadcrumb-item:hover {
    background: var(--blue-mid);
    border-color: var(--blue-mid);
    color: #fff;
}
.breadcrumb-item .bc-icon {
    font-size: 12px;
    line-height: 1;
}
.breadcrumb-sep {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--muted);
    opacity: .5;
}
.breadcrumb-item.bc-current {
    background: transparent;
    border-color: transparent;
    color: var(--text);
    font-weight: 700;
    padding: 5px 6px;
}

.post-header h1 { font-size: 26px; line-height: 1.6; margin-bottom: 12px; }

.post-kicker {
display: inline-block;
color: var(--text-dark, var(--text));
font-size: 14px;
font-weight: 700;
padding: 0;
margin-bottom: 4px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--muted);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.post-meta .badge { color: var(--red); font-weight: 700; }

.post-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 22px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 22px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.video-embed iframe,
.video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}
.video-poster {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 4px;
    pointer-events: auto;
    z-index: 2;
    transition: transform .15s, background .15s;
}
.video-play-btn:hover { background: rgba(15, 23, 42, .8); transform: translate(-50%, -50%) scale(1.08); }
/* تصویر پیش‌فرض «فاقد تصویر» — پرکردن جعبهٔ والد؛ در سایدبار مودال قانون 88×52 (با ویژگی بالاتر) اعمال می‌شود */
.video-ph-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- پلیر سفارشی یکپارچه (صوتی/تصویری) ---------- */
.ghp {
    --ghp-accent: var(--blue-mid, #2f6fed);
    --ghp-fg: var(--text, #222831);
    --ghp-muted: var(--muted, #6b7280);
    --ghp-surface: var(--card, #ffffff);
    --ghp-track: rgba(127, 127, 127, .3);
    --ghp-border: var(--border, rgba(127, 127, 127, .25));
}
.audio-embed {
    margin: 14px 0;
}
.ghp-audio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--ghp-surface);
    border: 1px solid var(--ghp-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.ghp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
}
.ghp-video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 24px 10px 8px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
    color: #fff;
}
.ghp-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .15s, transform .15s;
    padding: 0;
    line-height: 1;
}
.ghp-btn:hover { background: rgba(127, 127, 127, .22); }
.ghp-btn:active { transform: scale(.92); }
.ghp-audio .ghp-btn { color: var(--ghp-fg); }
.ghp-audio .ghp-btn:hover { background: rgba(127, 127, 127, .14); }
.ghp-seek,
.ghp-vseek {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    border-radius: 99px;
    background: var(--ghp-track);
    cursor: pointer;
    touch-action: none;
    outline: none;
}
.ghp-vseek { flex: 0 0 56px; width: 56px; }
.ghp-seek:focus-visible,
.ghp-vseek:focus-visible { box-shadow: 0 0 0 2px var(--ghp-accent); }
.ghp-buf,
.ghp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 99px;
    pointer-events: none;
}
.ghp-buf { background: rgba(127, 127, 127, .35); }
.ghp-fill { background: var(--ghp-accent); }
.ghp-knob {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ghp-accent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform .15s;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.ghp-seek:hover .ghp-knob,
.ghp-seek:active .ghp-knob,
.ghp-vseek:hover .ghp-knob,
.ghp-vseek:active .ghp-knob { transform: translate(-50%, -50%) scale(1); }
.ghp-time {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: inherit;
    opacity: .85;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
}
.ghp-vol {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
@media (max-width: 560px) {
    .ghp-vol { display: none; }
    .ghp-video-controls { padding: 18px 8px 6px; }
}

.toolbar-btn.like-btn:hover { background: #fee2e2; color: var(--red); }
.toolbar-btn.save-btn:hover { background: #dbeafe; color: var(--blue); }
.toolbar-btn.like-btn.is-active { background: #fee2e2; color: var(--red); border-color: var(--red); }
.toolbar-btn.save-btn.is-active { background: #dbeafe; color: var(--blue); border-color: var(--blue); }
a.toolbar-btn { text-decoration: none; }

.post-content {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 2.1;
    overflow-wrap: anywhere;
}
.post-content p { margin-bottom: 15px; }
.post-content h2, .post-content h3 { margin: 20px 0 10px; color: var(--blue-dark); }
.post-content ul, .post-content ol { margin: 0 25px 15px 0; }
.post-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-right: 4px solid var(--blue-mid);
    background: var(--soft);
    border-radius: 6px;
    color: var(--muted);
}
.post-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13.5px;
    line-height: 1.8;
    margin: 18px 0;
}
.post-content code { background: var(--soft); color: var(--blue-dark); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post-content pre code { background: transparent; color: inherit; padding: 0; }
.post-content img { max-width: 100%; border-radius: 8px; }
.post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.post-content table td, .post-content table th { border: 1px solid var(--border); padding: 8px 12px; text-align: right; }
.post-content table th { background: var(--soft); color: var(--blue-dark); font-weight: 800; }
.post-content .rte-video {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 18px auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}
.post-content .rte-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- آمار عمومی ---------- */
.stats-page,
.stats-page > *,
.stats-page .news-card {
    min-width: 0;
    max-width: 100%;
}
.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stats-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 18px;
}

@media (max-width: 640px) {
    .post-content iframe,
    .post-content video,
    .post-content object,
    .post-content embed {
        max-width: 100%;
    }
    .post-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------- Post toolbar (print / share / font size) ---------- */
.post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    margin: 20px 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.toolbar-btn:hover {
    background: var(--soft);
    color: var(--blue-dark);
}

.toolbar-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.post-content[data-text-size="1"] { font-size: 17.5px; }
.post-content[data-text-size="-1"] { font-size: 14.5px; }
.post-content { transition: font-size 0.15s; }

/* ---------- Share box ---------- */
.share-box {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0 0 20px;
}

.share-box.is-open {
    display: flex;
}

.share-title { font-size: 13px; font-weight: 700; color: var(--text); }

.share-link {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.share-link:hover { color: #fff; }

.share-telegram:hover { background: #229ed9; border-color: #229ed9; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }
.share-twitter:hover { background: #000; border-color: #000; }
.share-mail:hover { background: #ea4335; border-color: #ea4335; }
.share-copy:hover { background: var(--blue-mid); border-color: var(--blue-mid); }

/* ---------- ویدیوی پیوستی پایین خبر ---------- */
.post-video {
    margin: 24px 0 6px;
}
.post-video .video-embed {
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

/* ---------- برچسب‌های پایان مطلب ---------- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0 4px;
    padding: 12px 0;
    border-top: 1px dashed var(--border);
}
.post-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---------- ردیف اشتراک پایان مطلب ---------- */
.post-share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 22px;
    padding: 14px 16px;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.post-share-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}
.post-share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 600px) {
    .post-share-row { justify-content: center; }
    .post-share-links { flex-wrap: wrap; justify-content: center; }
}
.share-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: color .15s, background .15s, border-color .15s, transform .15s;
}
.share-circle:hover {
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}
.share-circle-tg:hover { background: #229ed9; }
.share-circle-wa:hover { background: #25d366; }
.share-circle-x:hover { background: #000; }
.share-circle-mail:hover { background: #ea4335; }
.share-circle-copy:hover { background: var(--blue-mid); }
.share-circle-eitaa:hover { background: #f97316; }
.share-circle-bale:hover { background: #50b948; }
.share-circle-rubika:hover { background: #7d2ae8; }
.share-circle svg { display: block; }
.share-txt {
font-size: 8.5px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}

/* ---------- تصویر جایگزین (خبر بدون عکس) ---------- */
.post-image-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--soft), var(--card));
    border: 1px dashed var(--border);
    color: var(--muted);
}
.post-image-ph-ic { opacity: .7; }
.post-image-ph-txt {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
}

/* ---------- خبر قبلی / بعدی ---------- */
.post-prevnext {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.pn-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
a.pn-card:hover {
    border-color: var(--blue-mid);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}
.pn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--blue-mid);
    flex-shrink: 0;
}
.pn-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--soft);
}
.pn-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pn-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.pn-prev {
direction: ltr;
}
.pn-prev .pn-body {
direction: rtl;
text-align: left;
}
.pn-prev .pn-date {
direction: rtl;
}
.pn-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--blue-mid);
}
.pn-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.pn-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
}
.pn-card.pn-prev { text-align: left; }
.pn-empty { visibility: hidden; }

@media (max-width: 640px) {
    .post-prevnext {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .pn-card {
        width: 100%;
        padding: 12px;
        gap: 10px;
    }
    .pn-empty { display: none; }
    .pn-arrow {
        width: 30px;
        height: 30px;
    }
    .pn-thumb {
        width: 52px;
        height: 52px;
    }
    .pn-date { flex-wrap: wrap; }
}

/* ---------- باکس نویسنده ---------- */
.author-box {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 18px;
    background: linear-gradient(135deg, var(--card), var(--soft));
    border: 1px solid var(--border);
    border-radius: 14px;
}
.author-avatar-wrap { position: relative; flex-shrink: 0; margin-bottom: 28px; }
.author-role-badge {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-mid);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    border: 2px solid var(--card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.author-info { flex: 1; min-width: 0; }
.author-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.author-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--blue-dark);
    text-decoration: none;
}
.author-name:hover { color: var(--blue-mid); }
.author-since {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}
.author-bio {
    margin: 8px 0 12px;
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.8;
}
.author-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.author-stat b {
    font-size: 15px;
    color: var(--blue-dark);
}
.author-stat span {
    font-size: 11px;
    color: var(--muted);
}
.author-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: center;
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-mid);
    text-decoration: none;
    border: 1px solid var(--blue-mid);
    border-radius: 20px;
    padding: 6px 14px;
    transition: background .15s, color .15s;
}
.author-more:hover { background: var(--blue-mid); color: #fff; }

/* ---------- اکشن‌های کامنت ---------- */
.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}
.comment-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 12.5px;
    font-family: inherit;
    padding: 3px 6px;
    border-radius: 6px;
    transition: color .15s, background .15s;
}
.comment-actions button:hover { color: var(--blue-mid); background: var(--soft); }
.comment-actions .reply-btn { color: var(--blue); font-weight: 700; }

/* ---------- گالری خبر ---------- */
.gallery-slider { margin-top: 15px; }
.gallery-track {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}
.gallery-thumb {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.gallery-thumb.active { border-color: var(--primary, var(--blue-mid)); }

/* ---------- نوار ابزار خبر ---------- */
#post-toolbar form { display: inline; }

/* ---------- بخش‌های پایان خبر ---------- */
.related-posts { margin: 22px 0; }
.comments-intro { color: var(--muted); margin-bottom: 15px; }
.comment-head .avatar-circle { width: 32px; height: 32px; }
.reply-comment .comment-head .avatar-circle { width: 28px; height: 28px; }
.comment-ajax-msg { display: none; margin-bottom: 12px; }
.comment-alert { margin-bottom: 12px; }
.reply-hint {
    display: none;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--blue-dark);
    background: var(--soft);
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 8px 12px;
}
.reply-cancel-link {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    padding: 0;
}
.reply-cancel-link:hover { text-decoration: underline; }

/* ---------- Comments ---------- */
.comments-section { margin-top: 35px; }

.comment {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-right: 4px solid var(--blue-mid);
}

.comment .comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.comment .comment-name { font-weight: 800; color: var(--blue-dark); }
.comment .comment-head > span:last-of-type { margin-inline-start: auto; }
.comment p { font-size: 14px; }
.reply-comment {
    margin: 14px 30px 0 0;
    background: var(--soft);
    border-right-color: var(--red);
}
.reply-badge {
    background: var(--red);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-right: 8px;
}

.comment-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.comment-form h3 { margin-bottom: 15px; color: var(--blue-dark); }

.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-row input { flex: 1; }

.form-group { margin-bottom: 12px; }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.form-card {
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 25px;
}

.form-card label {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 6px;
    color: var(--blue-dark);
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: var(--card);
}

input:focus, textarea:focus, select:focus { border-color: var(--blue-mid); }

textarea { min-height: 100px; resize: vertical; }

.btn {
    display: inline-block;
    background: var(--blue-mid);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
}

.btn:hover { background: var(--red); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.form-card label.btn-upload,
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 2px dashed var(--blue-mid);
    background: #eff6ff;
    color: var(--blue-dark);
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.form-card label.btn-upload:hover,
.btn-upload:hover { background: #dbeafe; border-style: solid; }
.upload-file-name { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.btn-gray { background: var(--muted); color: #fff; }
.btn-gray:hover { background: var(--red); }
.btn-active { background: var(--blue-mid); color: #fff; border-color: var(--blue-mid); }
.btn-active:hover { background: var(--blue-mid); }

/* ---------- Ø¯Ø§Øºâ€ŒØªØ±ÛŒÙ† Ø§Ø®Ø¨Ø§Ø± ---------- */
.hot-range-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.hot-range-tabs .btn { text-decoration: none; }

.hot-card-wrap { position: relative; display: flex; }
.hot-card-wrap .news-card { flex: 1; min-width: 0; }
.hot-rank {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--muted);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.hot-rank-top { width: 36px; height: 36px; font-size: 19px; border: none; box-shadow: none; }
.hot-rank-top1 { background: #fef3c7; border: 2px solid #f59e0b; }
.hot-rank-top2 { background: #f1f5f9; border: 2px solid #94a3b8; }
.hot-rank-top3 { background: #ffedd5; border: 2px solid #d97706; }

.related-item { position: relative; }
.related-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-dark);
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.save-list-select {
    width: auto;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
}

.link-delete {
    background: none;
    border: none;
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-family: inherit;
}

.active-link { font-weight: 800; color: var(--blue-dark) !important; }

.label-count {
    background: var(--soft);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--muted);
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- Empty ---------- */
.empty-state {
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 50px 20px;
    color: var(--muted);
}
.empty-state .icon { font-size: 50px; margin-bottom: 10px; }

/* ---------- Tag chips & avatars ---------- */
.tag-chip {
    background: var(--soft);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12.5px;
    color: var(--blue-dark);
    display: inline-block;
    border: 1px solid var(--border);
}
.tag-chip:hover { background: var(--blue-mid); color: #fff; }

.avatar-circle {
    border-radius: 50%;
    background: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.avatar-placeholder {
    box-shadow: inset 0 0 0 1.5px rgba(148, 163, 184, .45);
}

/* ---------- Ù†ÛŒÙˆØ²ØªÛŒÚ©Ø± Ø§Ø®Ø¨Ø§Ø± ÙÙˆØ±ÛŒ ---------- */
.breaking-bar {
    background: var(--bar-color, #d32f2f);
    color: #fff;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    max-width: 1200px;
    margin: 12px auto 0;
    border-radius: 10px;
}
.breaking-label {
    background: var(--bar-color, #d32f2f);
    filter: brightness(.85);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}
.breaking-bolt { animation: boltPulse 1.1s ease-in-out infinite; }
@keyframes boltPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.breaking-viewport { flex: 1; overflow: hidden; position: relative; display: block; }
.breaking-bar[data-effect="feed"] .breaking-viewport {
    -webkit-mask-image: linear-gradient(to left, #000 80%, transparent 100%);
    mask-image: linear-gradient(to left, #000 80%, transparent 100%);
}
.breaking-bar[data-effect="feed"] .breaking-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(to right, var(--bar-color, #d32f2f), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .3s ease;
}
.breaking-bar.feed-on .breaking-viewport::after { opacity: 1; }
.breaking-track { position: relative; width: 100%; height: 100%; min-height: 40px; }
.breaking-item {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 9px 22px;
    font-size: 14px;
    direction: rtl;
    opacity: 0;
    transform: translateX(60px);
    transition: transform .9s ease, opacity .9s ease;
    will-change: transform, opacity;
    white-space: nowrap;
    overflow: hidden;
}
.breaking-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.breaking-item.is-pinned { background: rgba(255, 255, 255, .1); }
.breaking-bar.feed-on .breaking-track { position: relative; }
@keyframes brDriftOut {
    0% { transform: translateX(0); opacity: 1; }
    55% { transform: translateX(calc(var(--br-vw, 800px) * -0.55)); opacity: 1; }
    100% { transform: translateX(calc(var(--br-vw, 800px) * -1)); opacity: 0; }
}
.breaking-track.is-static { display: flex; align-items: center; overflow: hidden; }
.breaking-track.is-static .breaking-item {
    position: relative;
    right: auto;
    left: auto;
    opacity: 1;
    transform: none;
    flex-shrink: 0;
    transition: none;
}
.b-badge {
    background: #fff;
    color: #d32f2f;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.b-cat {
    background: var(--bcat, rgba(255, 255, 255, .25));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.b-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.breaking-bar.feed-on .breaking-item { transform: translateX(0); }

@media (max-width: 640px) {
    .breaking-bar { margin: 8px auto 0; border-radius: 8px; }
    .breaking-label { padding: 8px 10px; font-size: 12px; }
    .breaking-item { padding: 8px 12px; font-size: 12.5px; }
    .breaking-label-txt { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue-dark);
    color: #cbd5e1;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 26px;
    padding: 14px 0;
}

.footer-col h4 {
    color: #fff;
    font-size: 13.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--red);
}

.footer-col p { font-size: 12.5px; line-height: 1.8; }

.footer-col ul { list-style: none; }
.footer-col.fc-cols ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 20px;
}
.footer-col li { padding: 2.5px 0; }
.footer-col a { color: #cbd5e1; font-size: 12.5px; }
.footer-col a:hover { color: #fff; }

.copyright {
    background: rgba(0,0,0,0.3);
    padding: 12px 0;
    font-size: 13px;
    text-align: center;
}

.footer-socials {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
    --sc: #38bdf8;
}
.social-chip .sc-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.social-chip .sc-ico svg { width: 16px; height: 16px; display: block; }
.social-chip:hover {
    background: var(--sc);
    border-color: var(--sc);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}
.social-telegram { --sc: #229ed9; }
.social-instagram { --sc: #d62976; }
.social-x { --sc: #8893a0; }
.social-whatsapp { --sc: #25d366; }
.social-eitaa { --sc: #EF7F1A; }
.social-bale { --sc: #00b894; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .main-content { flex-direction: column; }
    .sidebar { width: 100%; }
    .hero { flex-direction: column; }
    .cat-sections { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
.top-bar { gap: 10px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .news-grid[data-view="list"] .news-card .card-thumb,
    .news-grid[data-view="list"] .news-card .card-img,
    .news-grid[data-view="list"] .news-card .card-img-placeholder {
        width: 160px;
        min-height: 110px;
    }

    /* ---------- منوی موبایل: همبرگری + آکاردئون ---------- */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 8px;
        padding: 8px 14px;
        background: rgba(255, 255, 255, .16);
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
        margin-inline-start: auto;
    }
    .site-header:not(.is-scrolled) .nav-toggle { margin-inline-start: 0; }
    .site-header:not(.is-scrolled) .nav-theme-btn { margin-inline-start: auto; }
    .nav-toggle-bars {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .nav-toggle-bar {
        display: block;
        height: 2px;
        width: 16px;
        background: #fff;
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .nav-toggle-label {
        font-size: 13px;
        font-weight: 700;
        font-family: inherit;
        color: #fff;
        white-space: nowrap;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .nav-toggle:hover { background: rgba(255, 255, 255, .3); border-color: #fff; }
    .nav-theme-btn { border-radius: 8px; }
    .nav-toggle, .nav-theme-btn { margin-block: 6px; }
    .main-nav .container { flex-wrap: nowrap; }
    .nav-logo { min-width: 0; flex: 0 1 auto; overflow: hidden; }
    .nav-logo-text { text-overflow: ellipsis; overflow: hidden; }
    .site-header.is-scrolled .nav-logo { max-width: 190px; margin-inline-end: 8px; }

    /* هنگام اسکرول در موبایل: دکمه‌ها کوچک‌تر، سمت چپ، با فاصلهٔ عمودی و رادیوس یکسان */
    .site-header.is-scrolled .nav-toggle { margin-inline-start: auto; }
    .site-header.is-scrolled .nav-toggle,
    .site-header.is-scrolled .nav-theme-btn {
        padding: 5px 10px;
        border-radius: 8px;
        margin-block: 6px;
        gap: 5px;
        font-size: 12px;
    }
    .site-header.is-scrolled .nav-toggle { gap: 5px; }
    .site-header.is-scrolled .nav-toggle-bars { gap: 3px; }
    .site-header.is-scrolled .nav-toggle-bar { width: 13px; height: 2px; }
    .site-header.is-scrolled .nav-toggle[aria-expanded="true"] .nav-toggle-bars .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .site-header.is-scrolled .nav-toggle[aria-expanded="true"] .nav-toggle-bars .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    .site-header.is-scrolled .nav-toggle-label { font-size: 11px; }
    .site-header.is-scrolled .nav-theme-btn svg { width: 14px; height: 14px; }
    .site-header.is-scrolled .nav-theme-label { font-size: 11px; }

    .main-nav .container { position: relative; flex-wrap: nowrap; }
    .main-nav ul#main-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
        border-top: 1px solid rgba(255, 255, 255, .14);
        box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 900;
    }
    .main-nav.nav-open #main-menu { display: flex; }
    .main-nav #main-menu li { flex: 0 0 auto; }
    .main-nav #main-menu > li > a,
    .main-nav .nav-acc-head {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 13px 16px;
        font-size: 14px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, .12);
        text-align: right;
        background: transparent;
        color: #fff;
        font-family: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .main-nav .nav-acc-head { justify-content: flex-start; }
    .main-nav .nav-acc-chev {
        margin-inline-start: auto;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        padding: 3px;
        transform: rotate(45deg);
        transition: transform .2s ease;
    }
    .main-nav .nav-acc.open .nav-acc-chev { transform: rotate(-135deg); }
    .main-nav .nav-acc-body {
        display: none;
        background: rgba(0, 0, 0, .18);
    }
    .main-nav .nav-acc.open .nav-acc-body { display: block; }
    .main-nav .nav-acc-body li a {
        display: block;
        padding: 11px 16px 11px 16px;
        font-size: 13.5px;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, .08);
        color: #e8eefc;
    }
    .main-nav .nav-acc-body li a.active,
    .main-nav .nav-acc-body li a:hover { background: var(--red); color: #fff; }
    .main-nav .nav-acc-body li a.active { font-weight: 800; }
}

@media (max-width: 600px) {
.footer-grid { grid-template-columns: 1fr; }
    .hero-slide .hero-img, .hero-slide, .hero-main { min-height: 220px; }
    .hero-slide .hero-img { height: 220px; }
    .hero-nav { opacity: 1; width: 32px; height: 32px; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
    .hero-dots { bottom: 8px; }
    .hero-counter { bottom: 30px; left: 8px; font-size: 11.5px; }
    .hero-lead { font-size: 12.5px; }
    .cat-section-grid { grid-template-columns: 1fr; }
    .cat-section-lead { min-height: 200px; }
    .cat-section-img { height: 200px; }

    .top-bar { flex-direction: column; align-items: stretch; }
    .logo { text-align: center; }
    .logo a { justify-content: center; }
    .tagline { padding-right: 0; text-align: center; }
    .user-area { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
    .user-btn { padding: 6px 12px; font-size: 12.5px; }
    .user-name { max-width: 90px; }

    .main-nav ul { justify-content: center; }
    .main-nav li a { padding: 11px 12px; font-size: 13.5px; border-right: none; }

    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news-grid[data-view="list"] .news-card {
        flex-direction: row;
    }
    .news-grid[data-view="list"] .news-card .card-thumb,
    .news-grid[data-view="list"] .news-card .card-img,
    .news-grid[data-view="list"] .news-card .card-img-placeholder {
        width: 110px;
        min-height: 90px;
    }
    .news-grid[data-view="list"] .news-card .card-body { padding: 12px; }
    .news-grid[data-view="list"] .news-card p { display: none; }
    .post-toolbar { justify-content: center; }
    .toolbar-group { flex-wrap: wrap; justify-content: center; }

    .comment { padding: 12px; }
    .comment-form, .form-card { padding: 18px 14px; }
    .form-row { flex-direction: column; gap: 12px; }
    .main-content { padding: 15px 12px; }
    .section-title h1,
    .section-title h2 { font-size: 18px; }
    .pagination .dots { display: none; }

    .footer-grid { gap: 20px; }
    .breaking-label { font-size: 12px; padding: 8px 10px; }
}

/* ---------- Ø­Ø§Ù„Øª Ù…Ø·Ø§Ù„Ø¹Ù‡ ---------- */
body.reading-mode {
    background: #fff;
}
body.reading-mode header.site-header,
body.reading-mode .main-nav,
body.reading-mode .breaking,
body.reading-mode .breadcrumb,
body.reading-mode .post-toolbar,
body.reading-mode .share-box,
body.reading-mode .sidebar,
body.reading-mode .author-box,
body.reading-mode .poll-card,
body.reading-mode .related-posts,
body.reading-mode .comments-section,
body.reading-mode .comment-form,
body.reading-mode footer.site-footer,
body.reading-mode .site-footer {
    display: none !important;
}
body.reading-mode .main-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 16px;
}
body.reading-mode .post-page { width: 100%; }
body.reading-mode .post-content {
    font-size: 17px;
    line-height: 2.1;
    color: #1f2937;
}
body.reading-mode .post-content img,
body.reading-mode .post-content iframe,
body.reading-mode .post-content video {
    border-radius: 10px;
}
body.reading-mode .post-header h1 {
    font-size: 26px;
    line-height: 1.6;
}
body.reading-mode .post-meta { font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
    body.reading-mode { transition: none; }
}

/* ---------- Print ---------- */
@media print {
    header.site-header,
    .main-nav,
    .breaking,
    .breaking-bar,
    footer.site-footer,
    .sidebar,
    .r3-sidebar,
    .post-toolbar,
    .share-box,
    .comments-section,
    .comment-form,
    .related-posts,
    .author-box,
    .breadcrumb,
    .post-tags,
    .post-share-row,
    .post-prevnext,
    .post-video,
    .poll-box,
    .audio-embed,
    .no-print,
    .post-meta { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .container { max-width: 100%; padding: 0; }
    .main-content { display: block; padding: 0; }
    .content-main { width: 100%; }
.post-content { font-size: 14px !important; line-height: 2 !important; }
    a { color: #000 !important; }

    /* تقویم اوقات شرعی: فقط جدول چاپ شود */
    .prayer-print-btn,
    .section-title,
    .prayer-cal-nav,
    .prayer-cal-meta { display: none !important; }
    .prayer-cal { border: none !important; padding: 0 !important; margin: 0 !important; }
    .prayer-cal-head { margin-bottom: 6px !important; }
    .prayer-cal th,
    .prayer-cal td { color: #000 !important; border-color: #999 !important; background: #fff !important; }
    .prayer-cal tr.is-today td { background: #eee !important; }
    .prayer-cal td.prayer-cal-major { background: #f2f6ff !important; }
}

/* ---------- Ù†Ø¸Ø±Ø³Ù†Ø¬ÛŒ ---------- */
.poll-option {
    --opt-color: var(--blue-mid);
    transition: background .25s, border-color .25s, color .25s;
}
.poll-option input[type="radio"] {
    accent-color: var(--opt-color);
}
.poll-option:hover {
    background: var(--opt-color);
    border-color: var(--opt-color);
    color: #fff;
}
.poll-option:hover span:first-child {
    background: #fff !important;
}

/* ---------- Ø¯Ø³ØªØ±Ø³â€ŒÙ¾Ø°ÛŒØ±ÛŒ ---------- */

/* Ù„ÛŒÙ†Ú© Ù¾Ø±Ø´ Ø¨Ù‡ Ù…Ø­ØªÙˆØ§ â€” ÙÙ‚Ø· Ù‡Ù†Ú¯Ø§Ù… ÙÙˆÚ©ÙˆØ³ Ú©ÛŒØ¨ÙˆØ±Ø¯ Ø¯ÛŒØ¯Ù‡ Ø´ÙˆØ¯ */
.skip-link {
    position: absolute;
    top: -48px;
    right: 12px;
    z-index: 9999;
    background: var(--blue-dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
    outline: none;
}

/* Ø¨Ø±Ú†Ø³Ø¨ Ù…Ø®ÙÛŒ â€” Ø¨Ø±Ø§ÛŒ Ø§Ø³Ú©Ø±ÛŒÙ†â€ŒØ±ÛŒØ¯Ø±Ù‡Ø§ØŒ Ø¨Ø¯ÙˆÙ† ØªØºÛŒÛŒØ± Ú†ÛŒØ¯Ù…Ø§Ù† */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Ø­Ù„Ù‚Ù‡ ÙÙˆÚ©ÙˆØ³ ÙˆØ§Ø¶Ø­ Ø¨Ø±Ø§ÛŒ Ú©ÛŒØ¨ÙˆØ±Ø¯ (Ø¨Ø¯ÙˆÙ† Ù…Ø²Ø§Ø­Ù…Øª Ø¨Ø±Ø§ÛŒ Ù…Ø§ÙˆØ³) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 2px;
    border-radius: 6px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-offset: 0;
    border-color: var(--blue-mid);
}

/* Ø§Ø³Ú©Ù„ØªÙˆÙ† Ø¨Ø±Ø§ÛŒ ØªØµØ§ÙˆÛŒØ± Ø¯Ø± Ø­Ø§Ù„ Ø¨Ø§Ø±Ú¯Ø°Ø§Ø±ÛŒ â€” Ø¬Ù„ÙˆÚ¯ÛŒØ±ÛŒ Ø§Ø² jump layout */
.card-img,
.hero-img,
.gallery-thumb {
    background:
        linear-gradient(100deg,
            var(--soft) 40%,
            var(--border) 50%,
            var(--soft) 60%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    min-height: 120px;
}
.card-img:not([src]),
.hero-img:not([src]),
.gallery-thumb:not([src]) {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 40px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Ø§Ø­ØªØ±Ø§Ù… Ø¨Ù‡ Ú©Ø§Ù‡Ø´ Ø­Ø±Ú©Øª Ú©Ø§Ø±Ø¨Ø± */
@media (prefers-reduced-motion: reduce) {
    .card-img, .hero-img, .gallery-thumb {
        animation: none;
        background: var(--soft);
    }

/* Ø§Ø³Ù„Ø§ÛŒØ¯Ø± Ù‡ÛŒØ±Ùˆ: Ø¨Ù‡ Ø¬Ø§ÛŒ Ø­Ø±Ú©Øª Ø§ÙÙ‚ÛŒØŒ Ø§Ø³Ù„Ø§ÛŒØ¯Ù‡Ø§ Ø±ÙˆÛŒ Ù‡Ù… Ø¨Ø§ fade ØªØ¹ÙˆÛŒØ¶ Ø´ÙˆÙ†Ø¯ */
        .hero-track { transform: none !important; transition: none !important; }
        .hero-slide { position: absolute !important; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
        .hero-slide.is-active { position: relative !important; opacity: 1; }
        .hero-slider { min-height: 320px; }
    }

    @media (max-width: 600px) {
        @media (prefers-reduced-motion: reduce) {
            .hero-slider { min-height: 220px; }
        }
    }

/* ===== Ù‡Ø§Ø¨ Ù¾ÙˆØ´Ø´ Ø²Ù†Ø¯Ù‡ (live.php) ===== */
.live-hub { display: flex; flex-direction: column; gap: 14px; }
.live-hub-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.live-hub-card.is-hot { border-color: rgba(211, 47, 47, .45); box-shadow: 0 2px 12px rgba(211, 47, 47, .08); }
.live-hub-card.is-updated {
    background: #fff7f7;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, .12);
}
.live-hub-main { flex: 1; min-width: 0; }
.live-hub-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.live-hub-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}
.live-hub-status .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: hub-pulse 1.2s ease-in-out infinite;
}
@keyframes hub-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}
.live-hub-title { font-size: 17px; line-height: 1.55; margin: 0 0 8px; }
.live-hub-title a { color: var(--text); }
.live-hub-title a:hover { color: var(--blue); }
.live-hub-preview {
    background: var(--soft);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.live-hub-preview .live-time { color: var(--muted); font-size: 12px; }
.live-hub-preview p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.8; color: #374151; }
.live-hub-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
}
.live-hub-meta { color: var(--muted); }
.live-hub-foot .btn { margin-inline-start: auto; }
.live-hub-thumb {
    flex: 0 0 170px;
    width: 170px;
    border-radius: 10px;
    overflow: hidden;
    align-self: center;
}
.live-hub-thumb .live-hub-img { width: 100%; height: 110px; object-fit: cover; display: block; }
@media (max-width: 640px) {
    .live-hub-card { flex-direction: column; }
    .live-hub-thumb { flex-basis: auto; width: 100%; }
    .live-hub-thumb .live-hub-img { height: 170px; }
    .live-hub-foot .btn { margin-inline-start: 0; }
}

/* ---------- گزارش تصویری (Photo Report) ---------- */
.pr-slideshow { margin-bottom: 22px; }
.pr-stage {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.pr-main-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.pr-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.pr-slide.is-active { opacity: 1; visibility: visible; }
.pr-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}
.pr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 5;
}
.pr-nav:hover { background: rgba(0, 0, 0, .8); }
.pr-prev { right: 12px; }
.pr-next { left: 12px; }
.pr-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.pr-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.pr-thumb {
    flex: 0 0 auto;
    width: 86px;
    height: 58px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--soft);
    opacity: .65;
    transition: opacity .2s, border-color .2s;
}
.pr-thumb:hover { opacity: 1; }
.pr-thumb.is-active { border-color: var(--primary, var(--blue-mid)); opacity: 1; }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* لایت‌باکس */
.pr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
body.pr-lb-open { overflow: hidden; }
.pr-lightbox[hidden] { display: none; }
.pr-lb-stage { position: relative; max-width: min(1200px, 94vw); max-height: 92vh; }
.pr-lb-img {
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    user-select: none;
    -webkit-user-drag: none;
}
.pr-lb-close {
    position: absolute;
    top: -48px;
    left: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    z-index: 6;
}
.pr-lb-close:hover { background: rgba(255, 255, 255, .3); }
.pr-lb-stage .pr-nav { background: rgba(255, 255, 255, .15); }
.pr-lb-stage .pr-nav:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 560px) {
    .pr-main-wrap { aspect-ratio: 4 / 3; }
    .pr-nav { width: 34px; height: 34px; font-size: 15px; }
    .pr-thumb { width: 72px; height: 50px; }
}

/* ---------- آرشیو گزارش‌های تصویری ---------- */
.prg-cat-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.prg-cat-chip:hover { background: rgba(255, 255, 255, .25); }
.prg-cat-chip.active { background: #fff; color: #14213d; font-weight: 700; }
.prg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.prg-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
}
.prg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.prg-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.prg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prg-thumb-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--muted);
}
.prg-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 14px;
}
.prg-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prg-body h3 { margin: 0; font-size: 15px; line-height: 1.7; }
.prg-body a, .prg-body h3 { color: var(--text); }
.prg-card:hover .prg-body h3 { color: var(--blue-mid); }
.prg-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
    margin-top: auto;
}

/* ---------- جدول لیگ برتر فوتبال (ویجت سایدبار) ---------- */
.lg-shell .box-body { padding: 0; }
.league-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.league-table th {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    padding: 8px 3px 6px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.league-table th:first-child, .league-table th:nth-child(2) { text-align: right; }
.league-table td { padding: 5px 3px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.league-table tbody tr:last-child td { border-bottom: none; }
.league-table tbody tr:hover { background: var(--soft); }
.lg-rank { color: var(--muted); width: 22px; }
.lg-team { text-align: right !important; font-weight: 600; }
.lg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.lg-gd { direction: ltr; }
.lg-gd-pos { color: #15803d; font-weight: 600; }
.lg-gd-neg { color: var(--red); font-weight: 600; }
.lg-gd-zero { color: var(--muted); }
.lg-pts { font-weight: 800; }

/* ============================================================
   کارت‌های اختصاصی تبلیغاتی و خبری (custom_cards)
   استایل‌ها: list (سایدبار) · grid (ستون وسط) · inline (داخل متن)
   رادیوس ۱۰px هماهنگ با پنل‌ها · فاصله‌ها هماهنگ با گریت صفحه (.9rem)
   ============================================================ */
.cc-wrap { display: grid; gap: 10px; }
.cc-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--cc-radius, 10px);
    background-image: linear-gradient(225deg, var(--cc-l) 0%, var(--cc-d) 100%);
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    --cc-a: #dc2626;
    --cc-radius: 10px;
}
a.cc-card:hover { border-color: var(--cc-line); box-shadow: 0 6px 16px rgba(15, 23, 42, .14); }
.cc-img {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 10px 10px 0;
    border: 4px solid var(--cc-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}
.cc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-img-ph {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}
.cc-badge {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    background: var(--cc-a);
    padding: 2px 10px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.7;
}
/* هماهنگ با فونت‌های سایدبار: روتیتر کوچک و کمرنگ، تیتر درشت و توپُر، لید عادی */
.cc-kicker { display: block; color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 500; line-height: 1.7; }
.cc-title { display: block; color: #fff; font-size: 13px; font-weight: 750; line-height: 1.7; }
.cc-sub { display: block; color: rgba(255, 255, 255, .85); font-size: 11.5px; font-weight: 400; line-height: 1.8; }
.cc-lead {
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.85;
}
/* متن داخل کارت: راست‌به‌چپ و تراز به دو سو */
.cc-body { direction: rtl; text-align: justify; text-align-last: right; }
.cc-btn {
    display: inline-block;
    width: max-content;
    border-radius: 7px;
    border: 1px solid var(--cc-line);
    background: var(--cc-btn);
    padding: 4px 13px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    transition: filter .15s;
}
.cc-btn:hover { filter: brightness(1.18); }
/* شکل تصویر در حالت بزرگ: باکس تصویر تابع شکل کارت است */
.cc-grid.cc-as-circle .cc-img { width: 150px; height: 150px; border-radius: 50%; }
.cc-grid.cc-as-square .cc-img { width: 150px; height: 150px; }
.cc-grid.cc-as-portrait .cc-img { width: 128px; height: 160px; }
/* سمت دکمه: راست (پیش‌فرض RTL) یا چپ */
.cc-card.cc-btn-right .cc-btn { margin-inline-end: auto; }
.cc-card.cc-btn-left .cc-btn { margin-inline-start: auto; }
/* سمت تصویر: پیش‌فرض راست؛ چپ/بالا/پایین با کلاس‌های cc-imgl/cc-imgt/cc-imgb.
   تصویر شناور است تا چند خط اول کنار آن بپیچد و ادامه متن تمام‌عرض زیر آن برود. */
.cc-list.cc-imgl { flex-direction: row-reverse; }
.cc-list.cc-imgt { flex-direction: column; }
.cc-list.cc-imgb { flex-direction: column-reverse; }
.cc-grid.cc-imgl .cc-img { float: left; margin: 10px; }
.cc-list.cc-imgl .cc-img { margin: 8px 0 8px 8px; }
.cc-grid.cc-imgt .cc-img { float: none; width: auto; aspect-ratio: auto; height: 150px; margin: 10px 10px 0; }
.cc-grid.cc-imgb { display: flex; flex-direction: column-reverse; }
.cc-grid.cc-imgb .cc-img { float: none; flex: 0 0 auto; align-self: stretch; width: auto; aspect-ratio: auto; height: 150px; margin: 0 10px 10px; }
.cc-list.cc-imgt .cc-img, .cc-list.cc-imgb .cc-img { flex: 0 0 auto; align-self: stretch; width: auto; height: 100px; margin: 8px 8px 0; }
.cc-list.cc-imgb .cc-img { margin: 0 8px 8px; }
.cc-inline .cc-inline-card.cc-imgb { flex-direction: column-reverse; }

/* ---- شکل تصویر (دایره/مربع/ایستاده/خوابیده) ---- */
.cc-as-landscape .cc-img { aspect-ratio: 16 / 10; }
.cc-as-square .cc-img { aspect-ratio: 1 / 1; }
.cc-as-portrait .cc-img { aspect-ratio: 3 / 4; }
.cc-as-circle .cc-img { aspect-ratio: 1 / 1; border-radius: 50%; }
.cc-as-circle .cc-img-ph { border-radius: 50%; }

/* ---- حالت فشرده (سایدبار) ---- */
.cc-list-wrap { display: grid; gap: 8px; }
.cc-list { flex-direction: row; align-items: stretch; border-radius: 10px; }
.cc-list .cc-img { flex: 0 0 88px; width: 88px; margin: 8px 8px 8px 0; }
.cc-list .cc-as-landscape .cc-img { aspect-ratio: 16 / 10; }
.cc-list .cc-as-square .cc-img, .cc-list .cc-as-circle .cc-img { aspect-ratio: 1 / 1; }
.cc-list .cc-as-portrait .cc-img { aspect-ratio: 3 / 4; }
.cc-list .cc-img img { position: absolute; inset: 0; }
.cc-list .cc-img-ph { font-size: 19px; }
.cc-list .cc-body { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 3px; padding: 7px 6px 8px 10px; }
.cc-list .cc-title { font-size: 13px; font-weight: 700; }
.cc-list .cc-kicker { font-size: 10.5px; }
.cc-list .cc-lead { font-size: 11.5px; }
.cc-list .cc-btn { margin-top: auto; padding: 2.5px 11px; font-size: 10.5px; }
.cc-list .cc-card.cc-btn-left .cc-btn { align-self: flex-end; margin-inline-start: auto; }

/* ---- حالت بزرگ (ستون وسط): دو ستون — یک کارت تمام‌عرض، دو کارت کنار هم،
   کارت سوم زیر کارت اول و چهارم زیر کارت دوم؛ تصویر سمت راست، متن سمت چپ تصویر ---- */
.cc-grid-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.cc-grid-wrap > .cc-card:only-child { grid-column: 1 / -1; }
.cc-grid { display: block; border-radius: var(--cc-radius, 10px); }
.cc-grid .cc-img-ph { font-size: 40px; }
.cc-grid .cc-img { float: right; width: 150px; height: 110px; margin: 10px; border-radius: 8px; }
.cc-grid .cc-body { display: block; padding: 11px 13px 13px; }
.cc-grid .cc-body > * + * { margin-top: 5px; }
.cc-grid .cc-btn { display: block; width: max-content; margin-top: 8px; clear: both; }
.cc-grid .cc-title { font-size: 15px; font-weight: 800; }
.cc-grid .cc-kicker { font-size: 12px; }
.cc-grid .cc-lead { font-size: 12.5px; text-align: justify; text-align-last: right; }

/* ---- داخل متن خبر ---- */
.cc-inline { margin: 1.5rem auto; max-width: 460px; }
.cc-inline.cc-inline-side { max-width: 380px; }
.cc-inline.cc-inline-left { float: left; margin: 10px 16px 14px 0; }
.cc-inline.cc-inline-right { float: right; margin: 10px 0 14px 16px; }
.cc-inline-card { border-radius: 10px; box-shadow: 0 8px 22px rgba(15, 23, 42, .12); }
.cc-inline .cc-img { margin: 10px; }
.cc-inline .cc-as-landscape .cc-img { aspect-ratio: 16 / 10; }
.cc-inline .cc-as-square .cc-img, .cc-inline .cc-as-circle .cc-img { aspect-ratio: 1 / 1; }
.cc-inline .cc-as-portrait .cc-img { aspect-ratio: 3 / 4; }
.cc-inline .cc-body { display: flex; flex-direction: column; gap: 5px; padding: 0 13px 13px; }
.cc-inline .cc-title { font-size: 15px; font-weight: 800; }
.cc-inline .cc-kicker { font-size: 12px; }
.cc-inline .cc-lead { font-size: 12.5px; }

/* ---- دارک ---- */
html[data-theme="dark"] .cc-card {
    background-image: linear-gradient(225deg, var(--cc-l2) 0%, var(--cc-d2) 100%);
    border-color: rgba(255, 255, 255, .14);
}
html[data-theme="dark"] a.cc-card:hover { border-color: var(--cc-line2); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
html[data-theme="dark"] .cc-title { color: #f8fafc; }
html[data-theme="dark"] .cc-kicker { color: rgba(255, 255, 255, .58); }
html[data-theme="dark"] .cc-sub { color: rgba(255, 255, 255, .66); }
html[data-theme="dark"] .cc-lead { color: rgba(255, 255, 255, .62); }
html[data-theme="dark"] .cc-img { border-color: var(--cc-line2); background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .cc-btn { border-color: var(--cc-line2); background: var(--cc-btn2); }

@media (max-width: 600px) {
    .cc-grid-wrap { grid-template-columns: 1fr; }
    .cc-grid .cc-img { width: 110px; height: 84px; }
    .cc-grid.cc-as-circle .cc-img, .cc-grid.cc-as-square .cc-img { width: 110px; height: 110px; }
    .cc-grid.cc-as-portrait .cc-img { width: 88px; height: 110px; }
    .cc-grid.cc-imgt .cc-img, .cc-grid.cc-imgb .cc-img { aspect-ratio: auto; height: 110px; }
    .cc-list .cc-img { flex-basis: 78px; width: 78px; }
    .cc-inline.cc-inline-side { float: none; max-width: 460px; margin: 1rem auto; }
}

/* ---- جداسازی کارت داخل متن خبر از تایپوگرافی و چینش متن ----
   .post-content خط‌فاصله ۲.۱ و اندازه ۱۶px را به ارث می‌دهد و اگر کارت
   کنار پاراگراف ترازشده (justify) یا متن LTR بیفتد، اجزای کارت نباید
   تابع آن چینش باشند؛ ریشه خود کارت این‌جا بازنشانی می‌شود. */
.post-content .cc-inline { line-height: 1.5; }
.post-content .cc-inline .cc-inline-card {
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    direction: rtl;
    unicode-bidi: isolate;
    color: #fff;
    text-decoration: none;
}
.post-content .cc-inline .cc-inline-card a,
.post-content .cc-inline .cc-inline-card a:hover { color: #fff; text-decoration: none; }
.post-content .cc-inline .cc-inline-card img { max-width: none; border-radius: 0; }
.post-content .cc-inline .cc-inline-card p { margin: 0; }

/* ---------- کمپین‌های تبلیغاتی ---------- */
.ad-slot {
    position: relative;
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
    direction: rtl;
}
.ad-slot-article_top,
.ad-slot-article_bottom { width: 100%; margin: 18px auto; }
.ad-label {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 9px;
    line-height: 1.7;
}
.ad-campaign { display: flex; align-items: center; min-height: 54px; color: var(--text); }
.ad-campaign:hover { color: var(--red); }
.ad-campaign img { display: block; width: 100%; max-height: 190px; object-fit: cover; }
.ad-campaign img + .ad-title {
    position: absolute;
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(15, 23, 42, .76);
    color: #fff;
}
.ad-title { display: block; padding: 12px 18px; font-size: 14px; font-weight: 800; }
html[data-theme="dark"] .ad-slot { box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }

@media (max-width: 600px) {
    .ad-slot { width: calc(100% - 20px); margin: 10px auto; border-radius: 9px; }
    .ad-slot-article_top,
    .ad-slot-article_bottom { width: 100%; margin: 14px 0; }
    .ad-campaign img { max-height: 120px; }
    .ad-title { padding: 10px 12px; font-size: 12.5px; }
    .ad-campaign img + .ad-title { right: 8px; bottom: 7px; max-width: calc(100% - 16px); }
}
