@import url('https://fonts.googleapis.com/css2?family=Estedad:wght@700&family=Vazirmatn:wght@400;500;600&display=swap');

:root {
    --bg: #021426;
    --bg-deep: #00101f;
    --surface: #061a2e;
    --surface-2: #09223a;
    --surface-soft: rgba(7, 29, 50, .88);
    --text: #f7ead5;
    --muted: #b9ac9b;
    --gold: #e2a552;
    --gold-light: #f2ce8e;
    --gold-dark: #9a6028;
    --border: rgba(226, 165, 82, .72);
    --border-soft: rgba(226, 165, 82, .22);
    --danger: #d64558;
    --success: #2fa573;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 28px 70px rgba(0, 0, 0, .32);
    --container: 1380px;
    --header-height: 92px;
    --accent: var(--custom-accent, #e2a552);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 13% 12%, rgba(28, 82, 124, .18), transparent 32%),
        radial-gradient(circle at 92% 28%, rgba(170, 98, 31, .08), transparent 24%),
        linear-gradient(180deg, var(--bg-deep), var(--bg));
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.8;
    direction: rtl;
}

body.theme-celebration {
    --bg: #f8f1df;
    --bg-deep: #fffaf0;
    --surface: #fffdf8;
    --surface-2: #f5ead4;
    --surface-soft: rgba(255, 253, 248, .92);
    --text: #3c3021;
    --muted: #796b59;
    --gold: #b67724;
    --gold-light: #d99a3d;
    --gold-dark: #865115;
    --border: rgba(182, 119, 36, .65);
    --border-soft: rgba(182, 119, 36, .20);
}

body.theme-ramadan {
    --bg: #071d18;
    --bg-deep: #03120f;
    --surface: #0c2a22;
    --surface-2: #123a2e;
    --surface-soft: rgba(12, 42, 34, .9);
    --text: #f5f2e8;
    --muted: #aec1b6;
    --gold: #d9b45f;
    --gold-light: #f1d48c;
    --gold-dark: #866a27;
    --border: rgba(217, 180, 95, .7);
    --border-soft: rgba(217, 180, 95, .2);
}

body.theme-fatemiyeh {
    --bg: #11101a;
    --bg-deep: #080711;
    --surface: #1c1928;
    --surface-2: #272237;
    --surface-soft: rgba(28, 25, 40, .9);
    --text: #f3edf8;
    --muted: #b7adbf;
    --gold: #b69bd3;
    --gold-light: #d7c5e9;
    --gold-dark: #70558b;
    --border: rgba(182, 155, 211, .68);
    --border-soft: rgba(182, 155, 211, .2);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

.site-container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-deep) 96%, transparent), color-mix(in srgb, var(--bg-deep) 74%, transparent), transparent);
    backdrop-filter: blur(12px);
}

.header-shell {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 12px 20px;
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 280px;
    margin-left: auto;
}

.site-brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.5;
}

.brand-copy strong {
    color: var(--text);
    font-family: Georgia, "Times New Roman", Tahoma, serif;
    font-size: 27px;
    font-weight: 700;
}

.brand-copy small {
    color: var(--muted);
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.main-nav a {
    position: relative;
    padding: 12px 14px 17px;
    color: var(--text);
    white-space: nowrap;
    font-size: 13px;
    transition: color .2s ease, background .2s ease;
    border-radius: 12px;
}

.main-nav a:hover {
    color: var(--gold-light);
    background: rgba(255, 255, 255, .03);
}

.main-nav a.active {
    color: var(--gold);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    right: 28%;
    left: 28%;
    bottom: 7px;
    height: 2px;
    border-radius: 3px;
    background: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text);
    background: rgba(255, 255, 255, .025);
    cursor: pointer;
    transition: .2s ease;
}

.icon-button:hover {
    color: var(--gold-light);
    border-color: var(--border);
    transform: translateY(-2px);
}

.icon-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mobile-menu-button {
    display: none;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: start center;
    padding: 140px 20px 20px;
    background: rgba(0, 8, 17, .78);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-panel {
    width: min(720px, 100%);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    color: var(--text);
    border: 1px solid var(--border-soft);
    border-radius: 13px;
    outline: none;
    background: var(--surface-2);
}

.search-form button {
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    color: #10141a;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    cursor: pointer;
    font-weight: 700;
}

.hero-section {
    padding: 24px 0 0;
}

.hero-slider {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: .96fr 1.04fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 65px;
    background:
        linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--surface) 34%, transparent) 16%, color-mix(in srgb, var(--surface) 96%, transparent) 58%),
        radial-gradient(circle at 85% 20%, rgba(218, 155, 72, .07), transparent 35%);
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .2;
    background-image:
        linear-gradient(30deg, transparent 24%, var(--border-soft) 25%, transparent 26%),
        linear-gradient(150deg, transparent 24%, var(--border-soft) 25%, transparent 26%);
    background-size: 44px 76px;
    mask-image: linear-gradient(to left, #000, transparent 78%);
}

.hero-content h1 {
    margin: 0;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", Tahoma, serif;
    font-size: clamp(46px, 5vw, 78px);
    line-height: 1.42;
    font-weight: 700;
}

.hero-content p {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 2;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 24px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, .025);
    transition: .25s ease;
}

.primary-button:hover {
    color: #071522;
    background: var(--gold-light);
    transform: translateY(-2px);
}

.hero-media {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--surface) 94%, transparent), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 40%);
    pointer-events: none;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    border-radius: 999px;
    color: #17100a;
    background: linear-gradient(135deg, var(--gold-light), #e3b66f);
    font-size: 12px;
    font-weight: 700;
}

.live-badge::before {
    content: "◉";
    font-size: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(3, 18, 33, .72);
    cursor: pointer;
}

.slider-arrow:hover {
    border-color: var(--border);
}

.slider-arrow.prev {
    right: 18px;
}

.slider-arrow.next {
    left: 18px;
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.slider-dots {
    position: absolute;
    right: 50%;
    bottom: 26px;
    z-index: 12;
    display: flex;
    gap: 10px;
    transform: translateX(50%);
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.slider-dots button.active {
    width: 24px;
    background: var(--gold);
}

.info-bars {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.info-bar {
    min-height: 78px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 2% 50%, rgba(226, 165, 82, .08), transparent 17%),
        var(--surface-soft);
}

.info-bar-title {
    min-width: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 22px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    border-left: 1px solid var(--border-soft);
}

.info-bar-title svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.info-items {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    flex: 1;
    overflow-x: auto;
    scrollbar-width: thin;
}

.info-item {
    min-width: 165px;
    display: grid;
    place-content: center;
    gap: 2px;
    padding: 10px 18px;
    text-align: center;
    border-left: 1px solid var(--border-soft);
}

.info-item:last-child {
    border-left: 0;
}

.info-item span {
    color: var(--muted);
    font-size: 11px;
}

.info-item strong {
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.section {
    padding: 86px 0;
}

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", Tahoma, serif;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.4;
}

.section-heading h2::before,
.section-heading h2::after {
    content: "";
    width: min(240px, 18vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.video-row + .video-row {
    margin-top: 42px;
}

.row-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.row-heading h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--gold);
    font-size: 23px;
    white-space: nowrap;
}

.row-heading h3::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("../images/ornament.svg") center / contain no-repeat;
}

.row-heading::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--border-soft));
}

.view-all-button {
    order: 3;
    min-width: 72px;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-align: center;
    color: var(--gold-light);
    background: transparent;
    font-size: 11px;
    transition: .2s ease;
}

.view-all-button:hover {
    color: var(--bg-deep);
    background: var(--gold-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-light);
    box-shadow: var(--shadow);
}

.video-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.video-card:hover .video-cover img {
    transform: scale(1.045);
}

.video-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 48%);
}

.play-button {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: auto;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(3, 15, 27, .72);
    box-shadow: 0 0 0 8px rgba(0, 0, 0, .18);
}

.play-button svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transform: translateX(-1px);
}

.duration-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    padding: 2px 7px;
    direction: ltr;
    border-radius: 7px;
    color: #fff;
    background: rgba(0, 0, 0, .75);
    font-size: 10px;
}

.type-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 4;
    padding: 4px 9px;
    border-radius: 999px;
    color: #14100a;
    background: var(--gold-light);
    font-size: 9px;
    font-weight: 700;
}

.video-card-body {
    padding: 15px 16px 17px;
    text-align: center;
}

.video-card-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.8;
}

.video-card-body p {
    min-height: 25px;
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 9px;
}

.short-grid .video-cover {
    aspect-ratio: 9 / 11.2;
}

.short-grid .video-card-body h3 {
    font-size: 18px;
}

.empty-card {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 30px;
    border: 1px dashed var(--border-soft);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, .015);
}

.page-hero {
    padding: 68px 0 38px;
    text-align: center;
}

.page-hero h1 {
    margin: 0;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", Tahoma, serif;
    font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.archive-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding-bottom: 80px;
}

.filter-sidebar {
    position: sticky;
    top: 125px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.filter-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 4px 14px;
    border-bottom: 1px solid var(--border-soft);
}

.filter-sidebar-head h2 {
    margin: 0;
    color: var(--gold);
    font-size: 17px;
}

.filter-close {
    display: none;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.filter-all,
.filter-year-button,
.filter-occasion-button,
.filter-tree a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border: 0;
    border-radius: 11px;
    color: var(--muted);
    background: transparent;
    text-align: right;
    cursor: pointer;
    font-size: 12px;
}

.filter-all {
    margin-top: 10px;
}

.filter-all:hover,
.filter-tree a:hover,
.filter-tree a.active {
    color: var(--gold-light);
    background: rgba(226, 165, 82, .08);
}

.filter-year {
    border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.filter-year-button {
    color: var(--text);
}

.filter-year-button b,
.filter-occasion-button b {
    color: var(--gold);
    transition: transform .2s ease;
}

.filter-year.open > .filter-year-button b {
    transform: rotate(-90deg);
}

.filter-year-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-right: 10px;
    border-right: 1px solid var(--border-soft);
    transition: max-height .35s ease, opacity .2s ease;
}

.filter-year.open > .filter-year-content {
    max-height: 1200px;
    opacity: 1;
}

.filter-occasion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-right: 10px;
    transition: max-height .3s ease, opacity .2s ease;
}

.filter-occasion.open > .filter-occasion-content {
    max-height: 600px;
    opacity: 1;
}

.archive-results {
    min-width: 0;
}

.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.archive-toolbar h2 {
    margin: 0;
    font-size: 22px;
}

.archive-toolbar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.mobile-filter-button {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--gold-light);
    background: var(--surface);
    cursor: pointer;
}

.filter-backdrop {
    display: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--muted);
}

.pagination .active {
    color: var(--bg-deep);
    border-color: var(--gold);
    background: var(--gold-light);
}

.single-video {
    width: min(1100px, calc(100% - 32px));
    margin: 50px auto 90px;
}

.media-player {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
}

.media-player.short {
    max-width: 500px;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
}

.media-player.audio {
    min-height: 220px;
    aspect-ratio: auto;
    display: grid;
    place-items: center;
    padding: 35px;
    background: var(--surface);
}

.media-player video,
.media-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.media-player audio {
    width: min(760px, 100%);
}

.video-details {
    padding: 28px 0;
}

.video-details h1 {
    margin: 0;
    color: var(--gold-light);
    font-size: clamp(28px, 4vw, 48px);
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.video-tags span {
    padding: 5px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(226, 165, 82, .06);
    font-size: 10px;
}

.video-details p {
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 80px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-card:hover img {
    transform: scale(1.045);
}

.gallery-card figcaption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 35px 16px 14px;
    color: var(--text);
    background: linear-gradient(0deg, rgba(0, 0, 0, .84), transparent);
}

.gallery-card h3 {
    margin: 0;
    font-size: 15px;
}

.gallery-card p {
    margin: 3px 0 0;
    color: #d0c6b8;
    font-size: 10px;
}

.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-bottom: 90px;
}

.about-page-image {
    position: relative;
}

.about-page-image::before {
    content: "";
    position: absolute;
    inset: 22px -18px -18px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
}

.about-page-image img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.about-page-copy h2 {
    margin: 0 0 15px;
    color: var(--gold);
    font-size: clamp(30px, 4vw, 50px);
}

.about-page-copy p {
    color: var(--muted);
}

.about-points {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.about-point {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--surface);
}

.about-point span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #0a1621;
    background: var(--gold-light);
    font-weight: 700;
}

.about-point p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
}

.site-footer {
    padding: 20px 0 22px;
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, .12)),
        radial-gradient(circle at 85% 60%, rgba(213, 145, 62, .07), transparent 23%);
}

.footer-panel {
    display: grid;
    grid-template-columns: 1.15fr .95fr 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.footer-column {
    min-height: 380px;
    padding: 45px 45px;
    border-left: 1px solid var(--border-soft);
}

.footer-column:last-child {
    border-left: 0;
}

.footer-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.footer-brand::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -30px;
    left: 0;
    height: 180px;
    opacity: .28;
    background: url("../images/demo/footer-shrine.jpg") center bottom / cover no-repeat;
    mask-image: linear-gradient(to top, #000, transparent);
}

.footer-brand img {
    position: relative;
    z-index: 2;
    width: 100px;
}

.footer-brand h3 {
    position: relative;
    z-index: 2;
    margin: 16px 0 0;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", Tahoma, serif;
    font-size: 36px;
}

.footer-brand p {
    position: relative;
    z-index: 2;
    margin: 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-title {
    margin: 0 0 25px;
    color: var(--gold);
    font-size: 21px;
    text-align: center;
}

.footer-title::after {
    content: "";
    width: 80px;
    height: 1px;
    display: block;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.quick-links,
.contact-links {
    display: grid;
    gap: 3px;
}

.quick-links a,
.contact-links a,
.contact-links span {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 2px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    font-size: 12px;
    transition: color .2s ease;
}

.quick-links a:hover,
.contact-links a:hover {
    color: var(--gold-light);
}

.quick-links a::before {
    content: "‹";
    color: var(--gold);
    font-size: 20px;
}

.contact-links a::after,
.contact-links span::after {
    content: "‹";
    margin-right: auto;
    color: var(--gold);
    font-size: 20px;
}

.contact-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gold-light);
}

.contact-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.copyright {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 15px 25px;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    background: rgba(255, 255, 255, .012);
}

.copyright strong {
    color: var(--gold);
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .header-shell {
        gap: 14px;
    }

    .site-brand {
        min-width: 235px;
    }

    .main-nav a {
        padding-inline: 9px;
        font-size: 11px;
    }

    .hero-slider {
        min-height: 550px;
    }

    .hero-content {
        padding: 55px 45px;
    }

    .archive-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }

    .footer-column {
        padding-inline: 28px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 74px;
    }

    .site-header {
        padding-top: 10px;
    }

    .header-shell {
        min-height: var(--header-height);
        padding: 8px 13px;
        border-radius: 22px;
    }

    .site-brand {
        min-width: 0;
        flex: 1;
    }

    .site-brand img {
        width: 51px;
        height: 51px;
    }

    .brand-copy strong {
        font-size: 20px;
    }

    .brand-copy small {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 210;
        width: min(330px, 86vw);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 3px;
        padding: 90px 18px 25px;
        overflow-y: auto;
        border-left: 1px solid var(--border);
        background: var(--surface);
        transform: translateX(105%);
        transition: transform .3s ease;
    }

    .main-nav.open {
        transform: none;
    }

    .main-nav a {
        min-height: 50px;
        display: flex;
        align-items: center;
        padding: 10px 13px;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
        border-radius: 10px;
        font-size: 13px;
    }

    .main-nav a.active::after {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 205;
        display: block;
        background: rgba(0, 6, 12, .68);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
    }

    .mobile-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        grid-template-rows: 54% 46%;
    }

    .hero-content {
        grid-row: 2;
        align-items: center;
        padding: 30px 25px 55px;
        text-align: center;
        background: var(--surface);
    }

    .hero-content h1 {
        font-size: clamp(38px, 9vw, 58px);
    }

    .hero-content p {
        margin-top: 10px;
        font-size: 14px;
    }

    .hero-media {
        grid-row: 1;
    }

    .hero-media::after {
        background: linear-gradient(0deg, var(--surface), transparent 40%);
    }

    .live-badge {
        right: 18px;
        bottom: 18px;
    }

    .slider-arrow {
        top: 27%;
    }

    .slider-dots {
        bottom: 17px;
    }

    .info-bar {
        min-width: 0;
        flex-direction: column;
    }

    .info-bar-title {
        min-width: 0;
        justify-content: flex-start;
        border-left: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .info-items {
        width: 100%;
        grid-auto-columns: minmax(145px, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-layout {
        display: block;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 240;
        width: min(335px, 88vw);
        overflow-y: auto;
        border-radius: 0;
        transform: translateX(105%);
        transition: transform .3s ease;
    }

    .filter-sidebar.open {
        transform: none;
    }

    .filter-close {
        display: block;
    }

    .mobile-filter-button {
        display: inline-flex;
    }

    .filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 230;
        background: rgba(0, 6, 12, .68);
    }

    .filter-backdrop.show {
        display: block;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-page-grid {
        grid-template-columns: 1fr;
    }

    .footer-panel {
        grid-template-columns: 1fr;
    }

    .footer-column {
        min-height: auto;
        border-left: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .footer-column:last-child {
        border-bottom: 0;
    }

    .footer-brand {
        min-height: 350px;
    }
}

@media (max-width: 620px) {
    .site-container {
        width: min(100% - 20px, var(--container));
    }

    .header-shell {
        gap: 8px;
    }

    .site-brand img {
        width: 45px;
        height: 45px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .icon-button {
        width: 42px;
        height: 42px;
    }

    .hero-section {
        padding-top: 16px;
    }

    .hero-slider {
        min-height: 690px;
        border-radius: 22px;
    }

    .hero-slide {
        grid-template-rows: 49% 51%;
    }

    .hero-content {
        padding: 22px 17px 48px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .primary-button {
        margin-top: 15px;
        padding: 9px 17px;
        font-size: 11px;
    }

    .slider-arrow {
        width: 42px;
        height: 42px;
    }

    .slider-arrow.prev {
        right: 10px;
    }

    .slider-arrow.next {
        left: 10px;
    }

    .info-bar {
        border-radius: 17px;
    }

    .info-bar-title {
        font-size: 15px;
        padding: 10px 14px;
    }

    .info-items {
        grid-auto-columns: 135px;
    }

    .info-item {
        min-width: 135px;
        padding-inline: 11px;
    }

    .info-item strong {
        font-size: 15px;
    }

    .section {
        padding: 62px 0;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .section-heading h2 {
        gap: 10px;
        font-size: 32px;
    }

    .section-heading h2::before,
    .section-heading h2::after {
        width: 48px;
    }

    .row-heading {
        gap: 9px;
    }

    .row-heading h3 {
        font-size: 17px;
    }

    .row-heading::after {
        display: none;
    }

    .view-all-button {
        margin-right: auto;
        min-width: 62px;
        padding-inline: 13px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .short-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .short-grid .video-card {
        min-width: 72vw;
        scroll-snap-align: start;
    }

    .archive-toolbar {
        align-items: flex-start;
    }

    .archive-toolbar h2 {
        font-size: 18px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-column {
        padding: 30px 22px;
    }

    .footer-title {
        text-align: right;
    }

    .footer-title::after {
        margin-right: 0;
    }

    .quick-links {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .quick-links a {
        min-width: max-content;
        min-height: 42px;
        padding: 7px 13px;
        border: 1px solid var(--border-soft);
        border-radius: 999px;
    }

    .quick-links a::before {
        display: none;
    }

    .footer-brand h3 {
        font-size: 30px;
    }
}

/* =========================================
   Typography system — Hosseiniye Mirza
   Menu: Vazirmatn SemiBold (600)
   Text: Vazirmatn Regular (400)
   Headings: Estedad Bold (700)
   Buttons: Vazirmatn Medium (500)
   ========================================= */

:root {
    --font-text: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
    --font-menu: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
    --font-heading: "Estedad", "Vazirmatn", Tahoma, sans-serif;
    --font-button: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
}

html,
body {
    font-family: var(--font-text);
    font-weight: 400;
}

p,
span,
small,
li,
label,
input,
select,
textarea,
table,
td,
th,
.video-meta,
.card-meta,
.prayer-item,
.date-item,
.contact-list,
.footer-bottom {
    font-family: var(--font-text);
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading h2,
.row-heading h3,
.page-hero h1,
.hero-content h1,
.video-details h1,
.about-page-copy h2,
.footer-title,
.footer-brand h3,
.brand-copy strong {
    font-family: var(--font-heading);
    font-weight: 700;
}

.main-nav a,
.quick-links a,
.mobile-nav a,
.filter-tree a,
.filter-year-button,
.filter-occasion-button {
    font-family: var(--font-menu);
    font-weight: 600;
}

button,
.button,
.primary-button,
.secondary-button,
.icon-button,
.row-heading > a,
.section-heading > a,
.search-form button,
.filter-mobile-button,
.archive-toolbar button,
input[type="submit"],
input[type="button"] {
    font-family: var(--font-button);
    font-weight: 500;
}

.brand-copy small {
    font-family: var(--font-text);
    font-weight: 400;
}

/* BLACK RED WHITE MAIN THEME
   تم اصلی سایت: مشکی، قرمز و سفید
   فقط تم mourning را تغییر می‌دهد و سایر تم‌های مناسبتی حفظ می‌شوند.
*/
body.theme-mourning {
    --bg: #070707 !important;
    --bg-deep: #000000 !important;
    --surface: #0d0d0f !important;
    --surface-2: #17171a !important;
    --surface-soft: rgba(12, 12, 14, .92) !important;

    --text: #ffffff !important;
    --muted: #b9b9bf !important;

    --gold: #df1835 !important;
    --gold-light: #ff536c !important;
    --gold-dark: #8c0b20 !important;

    --border: rgba(223, 24, 53, .76) !important;
    --border-soft: rgba(223, 24, 53, .25) !important;

    --accent: #df1835 !important;
    --custom-accent: #df1835 !important;
    --danger: #ff334f !important;
}

body.theme-mourning {
    background:
        radial-gradient(circle at 14% 10%, rgba(223, 24, 53, .16), transparent 31%),
        radial-gradient(circle at 91% 30%, rgba(255, 255, 255, .035), transparent 25%),
        linear-gradient(180deg, #000000 0%, #080808 55%, #030303 100%) !important;
}

/* هدر مشکی با درخشش قرمز کنترل‌شده */
body.theme-mourning .site-header {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .97),
            rgba(0, 0, 0, .84),
            transparent
        ) !important;
}

body.theme-mourning .header-shell,
body.theme-mourning .hero-shell,
body.theme-mourning .date-strip,
body.theme-mourning .prayer-strip,
body.theme-mourning .video-card,
body.theme-mourning .short-card,
body.theme-mourning .footer-shell,
body.theme-mourning .filter-sidebar,
body.theme-mourning .content-panel {
    border-color: rgba(223, 24, 53, .58) !important;
}

/* متن‌های اصلی سفید و موارد تأکیدی قرمز */
body.theme-mourning .main-nav a,
body.theme-mourning .quick-links a,
body.theme-mourning .video-card h3,
body.theme-mourning .short-card h3,
body.theme-mourning .footer-links a {
    color: #ffffff;
}

body.theme-mourning .main-nav a:hover,
body.theme-mourning .main-nav a.active,
body.theme-mourning .section-heading h2,
body.theme-mourning .row-heading h3,
body.theme-mourning .date-strip-title,
body.theme-mourning .prayer-strip-title {
    color: #ff536c !important;
}

/* دکمه‌ها قرمز و نوشته سفید */
body.theme-mourning .primary-button,
body.theme-mourning .button-primary,
body.theme-mourning button[type="submit"],
body.theme-mourning input[type="submit"] {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f12644, #a90822) !important;
    border-color: rgba(255, 83, 108, .72) !important;
    box-shadow: 0 14px 34px rgba(223, 24, 53, .24) !important;
}

body.theme-mourning .primary-button:hover,
body.theme-mourning .button-primary:hover {
    background: linear-gradient(135deg, #ff3d59, #c10d29) !important;
}

/* نشان‌ها و آیکن‌های تأکیدی */
body.theme-mourning .play-icon,
body.theme-mourning .live-badge,
body.theme-mourning .active-dot,
body.theme-mourning .menu-toggle:hover,
body.theme-mourning .filter-mobile-button {
    color: #ffffff !important;
    border-color: rgba(255, 83, 108, .72) !important;
}

/* کاهش رنگ‌های گرم قبلی در تصاویر و تزئینات بدون دستکاری عکس‌ها */
body.theme-mourning .ornament,
body.theme-mourning .section-ornament,
body.theme-mourning .divider-ornament {
    color: #df1835 !important;
}

/* FINAL COMPACT MOBILE LAYOUT
   منوی مستقل، اسلایدر 16:9، نوارهای بدون اسکرول،
   کارت‌های دو ستونه و فوتر دو ستونه
*/
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.mobile-nav-drawer,
.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 900px) {
    :root {
        --header-height: 68px;
    }

    .site-container {
        width: min(var(--container), calc(100% - 18px));
    }

    .site-header {
        padding-top: 8px;
    }

    .header-shell {
        min-height: 68px;
        gap: 7px;
        padding: 7px 8px;
        border-radius: 18px;
    }

    .site-brand {
        min-width: 0;
        flex: 1 1 auto;
        margin-left: 0;
        overflow: hidden;
    }

    .site-brand img {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong {
        display: block;
        overflow: hidden;
        max-width: 170px;
        font-size: 16px;
        line-height: 1.5;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .brand-copy small {
        display: none;
    }

    .desktop-main-nav {
        display: none !important;
    }

    .header-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-button {
        display: grid !important;
    }

    /* منوی موبایل مستقل؛ آیتم‌ها همیشه داخل آن رندر می‌شوند */
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        width: min(330px, 88vw);
        display: block;
        padding: max(14px, env(safe-area-inset-top)) 13px
                 max(20px, env(safe-area-inset-bottom));
        overflow-y: auto;
        border-left: 1px solid rgba(223, 24, 53, .55);
        background:
            radial-gradient(circle at 100% 0, rgba(223, 24, 53, .20), transparent 32%),
            #08080a;
        box-shadow: -26px 0 70px rgba(0, 0, 0, .55);
        transform: translate3d(105%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform .27s ease, visibility 0s linear .27s;
    }

    .mobile-nav-drawer.open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .27s ease, visibility 0s;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 5px 3px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .mobile-nav-brand {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .mobile-nav-brand img {
        width: 49px;
        height: 49px;
        object-fit: contain;
        flex: 0 0 49px;
    }

    .mobile-nav-brand span {
        min-width: 0;
        display: grid;
    }

    .mobile-nav-brand strong {
        color: #fff;
        font-family: var(--font-heading);
        font-size: 16px;
        line-height: 1.5;
    }

    .mobile-nav-brand small {
        color: #aaa;
        font-size: 9px;
    }

    .mobile-nav-close {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(223, 24, 53, .4);
        border-radius: 50%;
        color: #fff;
        background: rgba(223, 24, 53, .10);
    }

    .mobile-nav-close svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .mobile-nav-links {
        display: grid;
        gap: 6px;
        padding-top: 13px;
    }

    .mobile-nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 13px;
        border: 1px solid rgba(255, 255, 255, .065);
        border-radius: 11px;
        color: #fff;
        background: rgba(255, 255, 255, .025);
        font-family: var(--font-menu);
        font-size: 12px;
        font-weight: 600;
    }

    .mobile-nav-links a.active,
    .mobile-nav-links a:hover {
        border-color: rgba(223, 24, 53, .48);
        color: #fff !important;
        background: rgba(223, 24, 53, .15);
    }

    .mobile-nav-links svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: #ff536c;
        stroke-width: 2;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: block;
        background: rgba(0, 0, 0, .72);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .24s ease, visibility 0s linear .24s;
    }

    .mobile-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .24s ease, visibility 0s;
    }

    /* اسلایدر جمع‌وجور 16:9؛ متن روی تصویر قرار می‌گیرد */
    .hero-section {
        padding-top: 11px;
    }

    .hero-slider {
        width: 100%;
        min-height: 0 !important;
        aspect-ratio: 16 / 9;
        border-radius: 17px;
    }

    .hero-slide {
        display: block;
        grid-template-columns: none;
        grid-template-rows: none;
    }

    .hero-media {
        position: absolute;
        inset: 0;
        min-height: 0 !important;
    }

    .hero-media img {
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        object-fit: cover;
    }

    .hero-media::after {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .10) 66%),
            linear-gradient(0deg, rgba(0, 0, 0, .72), transparent 55%);
    }

    .hero-content {
        position: absolute;
        inset: 0;
        z-index: 3;
        min-height: 0 !important;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 14px 14px 24px 42%;
        text-align: right;
        background: none;
    }

    .hero-content::before {
        display: none;
    }

    .hero-content h1 {
        max-width: 100%;
        font-size: clamp(20px, 6.2vw, 31px);
        line-height: 1.45;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
    }

    .hero-content p {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        margin-top: 3px;
        color: #eee;
        font-size: 8.5px;
        line-height: 1.75;
        text-shadow: 0 1px 7px rgba(0, 0, 0, .9);
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .primary-button {
        min-height: 30px;
        margin-top: 7px;
        padding: 5px 10px;
        border-radius: 999px;
        font-size: 8px;
    }

    /* لایو همیشه بالا سمت چپ تصویر و لینک‌دار */
    .live-badge {
        top: 9px !important;
        left: 9px !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 7;
        gap: 5px;
        padding: 5px 8px;
        color: #fff !important;
        background: rgba(202, 12, 40, .92) !important;
        border: 1px solid rgba(255, 255, 255, .26);
        font-size: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    }

    .live-badge::before {
        font-size: 10px;
    }

    .slider-arrow {
        top: 50%;
        width: 31px;
        height: 31px;
        background: rgba(0, 0, 0, .48);
    }

    .slider-arrow.prev {
        right: 6px;
    }

    .slider-arrow.next {
        left: 6px;
    }

    .slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .slider-dots {
        bottom: 7px;
        gap: 5px;
    }

    .slider-dots button {
        width: 6px;
        height: 6px;
    }

    .slider-dots button.active {
        width: 16px;
    }

    /* تاریخ و اوقات شرعی بدون هیچ اسکرول افقی */
    .info-bars {
        gap: 7px;
        padding-top: 8px;
        overflow: visible !important;
    }

    .info-bar {
        min-width: 0 !important;
        min-height: 0;
        display: block;
        overflow: hidden;
        border-radius: 13px;
    }

    .info-bar-title {
        min-width: 0 !important;
        min-height: 31px;
        justify-content: center;
        gap: 5px;
        padding: 4px 7px;
        border-left: 0;
        border-bottom: 1px solid var(--border-soft);
        font-size: 10px;
        line-height: 1.3;
    }

    .info-bar-title svg,
    .info-bar-title img {
        width: 16px !important;
        height: 16px !important;
    }

    .info-items {
        width: 100%;
        display: grid !important;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        overflow: visible !important;
        scrollbar-width: none;
    }

    .date-info-bar .info-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .prayer-info-bar .info-items {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .info-item {
        min-width: 0 !important;
        min-height: 43px;
        gap: 0;
        padding: 4px 2px;
        overflow: hidden;
    }

    .info-item span {
        overflow: hidden;
        color: #bdbdc3;
        font-size: 6.5px;
        line-height: 1.35;
        white-space: normal;
        text-overflow: ellipsis;
    }

    .info-item strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 8.5px;
        line-height: 1.45;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* کارت‌ها نصف عرض صفحه و فقط اسکرول عمودی عادی */
    .section {
        padding: 43px 0;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading h2 {
        gap: 8px;
        font-size: 25px;
    }

    .section-heading h2::before,
    .section-heading h2::after {
        width: 35px;
    }

    .section-heading p {
        font-size: 8px;
    }

    .video-row + .video-row {
        margin-top: 29px;
    }

    .row-heading {
        gap: 7px;
        margin-bottom: 10px;
    }

    .row-heading h3 {
        font-size: 14px;
    }

    .row-heading h3::before {
        width: 16px;
        height: 16px;
    }

    .row-heading::after {
        display: block;
    }

    .view-all-button {
        min-width: 48px;
        padding: 4px 10px;
        font-size: 8px;
    }

    .video-grid,
    .archive-results > .video-grid,
    .short-grid,
    .archive-results > .short-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
        overflow: visible !important;
        padding: 0;
    }

    .video-card,
    .short-grid .video-card {
        min-width: 0 !important;
        width: auto !important;
        border-radius: 12px;
        scroll-snap-align: none;
    }

    .video-card:hover {
        transform: none;
    }

    .video-cover {
        aspect-ratio: 16 / 9;
    }

    .short-grid .video-cover {
        aspect-ratio: 9 / 13.5;
    }

    .play-button {
        width: 34px;
        height: 34px;
        box-shadow: 0 0 0 4px rgba(0, 0, 0, .18);
    }

    .play-button svg {
        width: 14px;
        height: 14px;
    }

    .duration-badge {
        right: 5px;
        bottom: 5px;
        padding: 1px 4px;
        font-size: 7px;
    }

    .type-badge {
        left: 5px;
        top: 5px;
        padding: 2px 5px;
        font-size: 6px;
    }

    .video-card-body {
        padding: 7px 7px 8px;
    }

    .video-card-body h3,
    .short-grid .video-card-body h3 {
        display: -webkit-box;
        overflow: hidden;
        min-height: 31px;
        font-size: 10px;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .video-card-body p {
        display: none;
    }

    .video-meta {
        gap: 5px;
        margin-top: 4px;
        font-size: 6.5px;
    }

    .empty-card {
        min-height: 130px;
        padding: 13px;
        font-size: 9px;
    }

    /* آرشیو و صفحات داخلی */
    .archive-layout {
        display: block;
    }

    .filter-sidebar {
        z-index: 1012;
    }

    .filter-backdrop {
        z-index: 1011;
    }

    /* فوتر: لوگو بالا، دو ستون کوچک زیر آن */
    .footer-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .footer-column {
        min-height: 0;
        padding: 16px 9px;
        border-bottom: 0;
        border-left: 1px solid var(--border-soft);
    }

    .footer-column:last-child {
        border-left: 0;
    }

    .footer-brand {
        grid-column: 1 / -1;
        min-height: 190px;
        padding: 20px 15px;
        border-left: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .footer-brand img {
        width: 62px;
    }

    .footer-brand h3 {
        font-size: 21px;
    }

    .footer-brand p {
        font-size: 8px;
    }

    .footer-title {
        margin-bottom: 10px;
        text-align: right;
        font-size: 13px;
    }

    .footer-title::after {
        width: 34px;
        margin-right: 0;
    }

    .quick-links,
    .contact-links {
        display: grid !important;
        gap: 3px;
        overflow: visible;
        padding: 0;
    }

    .quick-links a,
    .contact-links a,
    .contact-links span {
        min-width: 0;
        min-height: 30px;
        gap: 5px;
        padding: 3px 2px;
        overflow: hidden;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
        border-radius: 0;
        color: #ddd;
        font-size: 7.5px;
        line-height: 1.45;
        white-space: normal;
        word-break: break-word;
    }

    .quick-links a::before,
    .contact-links a::after,
    .contact-links span::after {
        display: none;
    }

    .contact-icon {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .contact-icon svg {
        width: 12px;
        height: 12px;
    }

    .copyright {
        min-height: 48px;
        margin-top: 8px;
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 7px;
        line-height: 1.7;
    }
}

@media (max-width: 390px) {
    .brand-copy strong {
        max-width: 112px;
        font-size: 14px;
    }

    .hero-content {
        padding-right: 12px;
        padding-left: 38%;
    }

    .hero-content h1 {
        font-size: 19px;
    }

    .hero-content p {
        -webkit-line-clamp: 1;
    }

    .info-item span {
        font-size: 6px;
    }

    .info-item strong {
        font-size: 7.5px;
    }

    .video-grid,
    .archive-results > .video-grid,
    .short-grid,
    .archive-results > .short-grid {
        gap: 7px;
    }
}

/* SLIDER ONLY 25 PERCENT SMALLER UPDATE
   فقط اسلایدر در لپ‌تاپ ۲۵٪ کوچک‌تر شده است.
   اندازه هدر، منو، متن‌های سایت، نوارها و فوتر به حالت اصلی برگشته‌اند.
*/

/* دکمه پخش زنده بیرون اسلایدر و بین هدر و اسلایدر */
.live-toolbar {
    position: relative;
    z-index: 15;
    padding: 12px 0 0;
}

.live-toolbar-inner {
    display: flex;
    justify-content: flex-end;
    direction: ltr;
}

.live-top-button {
    min-width: 126px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 80, 101, .58);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ef2948, #970a24);
    box-shadow: 0 11px 28px rgba(180, 12, 38, .23);
    font-family: var(--font-button);
    font-size: 12px;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease;
}

.live-top-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(180, 12, 38, .31);
}

.live-top-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .10);
}

/* آیکون‌های آماده کاربر در فوتر */
.social-contact-icon img {
    width: 58%;
    height: 58%;
    object-fit: contain;
}

.social-contact-icon.icon-missing::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

/* شش ویدیو در هر ردیف صفحه اصلی */
.home-video-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.home-video-grid .video-card {
    min-width: 0;
    border-radius: 13px;
}

.home-video-grid .video-card-body {
    padding: 9px 10px 11px;
}

.home-video-grid .video-card-body h3 {
    min-height: 40px;
    font-size: 11px;
    line-height: 1.75;
}

.home-video-grid .video-card-body p {
    display: none;
}

.home-video-grid .video-meta {
    margin-top: 5px;
    font-size: 8px;
}

.home-video-grid .play-button {
    width: 40px;
    height: 40px;
}

.home-video-grid .play-button svg {
    width: 16px;
    height: 16px;
}

.home-video-grid .duration-badge {
    right: 7px;
    bottom: 7px;
    padding: 2px 6px;
    font-size: 8px;
}

.home-video-grid .type-badge {
    top: 7px;
    left: 7px;
    padding: 2px 6px;
    font-size: 7px;
}

.home-short-grid .video-cover {
    aspect-ratio: 9 / 14;
}

/* فقط اسلایدر لپ‌تاپ:
   عرض ۱۳۸۰ ← ۱۰۳۵ پیکسل
   ارتفاع ۶۱۰ ← حدود ۴۵۸ پیکسل
*/
@media (min-width: 901px) {
    .hero-section > .site-container {
        width: min(1035px, calc(100% - 32px));
    }

    .hero-slider {
        min-height: 458px;
    }

    .hero-content {
        padding: 48px 46px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 4vw, 59px);
    }

    .hero-content p {
        max-width: 430px;
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.95;
    }

    .hero-content .primary-button {
        margin-top: 20px;
        padding: 9px 19px;
        font-size: 11px;
    }

    .slider-arrow {
        width: 41px;
        height: 41px;
    }

    .slider-dots {
        bottom: 18px;
    }
}

/* تبلت و گوشی همان ساختار قبلی را حفظ می‌کنند */
@media (min-width: 621px) and (max-width: 900px) {
    .home-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .live-toolbar {
        padding-top: 7px;
    }

    .live-top-button {
        min-width: 96px;
        min-height: 32px;
        padding: 5px 12px;
        border-radius: 11px;
        font-size: 9px;
    }

    .live-top-dot {
        width: 7px;
        height: 7px;
        flex-basis: 7px;
    }

    .home-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* DESKTOP SLIDER 75 PERCENT UPDATE
   اسلایدر لپ‌تاپ برابر با ۷۵٪ ابعاد ۱۴۴۰×۸۱۰:
   حداکثر ۱۰۸۰×۶۰۸ پیکسل
*/
@media (min-width: 901px) {
    .hero-section > .site-container {
        width: min(1080px, calc(100% - 32px));
        max-width: 1080px;
    }

    .hero-slider {
        width: 100%;
        min-height: 0 !important;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-xl);
    }

    .hero-slide {
        display: block;
        grid-template-columns: none;
    }

    .hero-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0 !important;
    }

    .hero-media img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        object-fit: cover;
        object-position: center;
    }

    .hero-media::after {
        background:
            linear-gradient(
                to left,
                rgba(0, 0, 0, .86) 0%,
                rgba(0, 0, 0, .55) 36%,
                rgba(0, 0, 0, .14) 70%,
                rgba(0, 0, 0, .05) 100%
            ),
            linear-gradient(
                to top,
                rgba(0, 0, 0, .38),
                transparent 42%
            );
    }

    .hero-content {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        width: min(56%, 610px);
        min-height: 0 !important;
        padding: clamp(38px, 4.5vw, 68px);
        background: transparent;
    }

    .hero-content h1 {
        max-width: 520px;
        font-size: clamp(36px, 4vw, 58px);
        text-shadow: 0 3px 20px rgba(0, 0, 0, .82);
    }

    .hero-content p {
        max-width: 520px;
        font-size: 14px;
        line-height: 1.95;
        text-shadow: 0 2px 13px rgba(0, 0, 0, .86);
    }

    /* پخش زنده بین منو و اسلایدر، سمت چپ */
    .live-toolbar-inner {
        justify-content: flex-start !important;
        direction: ltr;
    }

    /* اوقات شرعی همان حالت قبلی */
    .prayer-info-bar {
        min-height: 78px;
        display: flex;
        align-items: stretch;
        overflow: hidden;
        border-radius: 22px;
    }

    .prayer-info-bar .info-bar-title {
        min-width: 245px;
        padding: 12px 22px;
        border-left: 1px solid var(--border-soft);
        border-bottom: 0;
        font-size: 18px;
    }

    .prayer-info-bar .info-items {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 1fr);
        flex: 1;
        overflow: hidden;
    }

    .prayer-info-bar .info-item {
        min-width: 0;
        min-height: 78px;
        padding: 10px 18px;
    }

    .prayer-info-bar .info-item span {
        font-size: 11px;
    }

    .prayer-info-bar .info-item strong {
        font-size: 18px;
    }
}

/* LIVE BUTTON INSIDE SLIDER AND CLEAN ICONS FIX */

/* نوار بیرونی قبلی دیگر نمایش داده نشود */
.live-toolbar {
    display: none !important;
}

/* دکمه ثابت پخش زنده داخل خود اسلایدر، بالا سمت چپ */
.hero-slider > .live-badge-fixed {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 30 !important;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 110, 126, .72);
    border-radius: 999px;
    color: #fff !important;
    background: linear-gradient(135deg, #f22d4b, #9c0a25) !important;
    box-shadow: 0 10px 27px rgba(160, 7, 31, .34);
    font-family: var(--font-button);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transform: none !important;
}

.hero-slider > .live-badge-fixed::before {
    display: none !important;
}

.live-badge-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .10);
}

.hero-slider > .live-badge-fixed:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #ff3d59, #b50b2b) !important;
    box-shadow: 0 13px 32px rgba(180, 8, 37, .42);
}

/* آیکون‌های فوتر: تصویر پر و تمیز به‌جای خطوط قرمز */
.contact-icon-image {
    overflow: hidden;
    border-color: rgba(223, 24, 53, .65);
    color: #fff;
    background: linear-gradient(145deg, #e51e3b, #88091f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.contact-icon-image img {
    width: 56%;
    height: 56%;
    display: block;
    object-fit: contain;
}

.contact-icon-image::after {
    display: none;
}

.contact-icon-image img[style*="display: none"] + *,
.contact-icon-image:empty::after {
    content: attr(data-fallback);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.contact-icon svg {
    display: none;
}

@media (max-width: 620px) {
    .hero-slider > .live-badge-fixed {
        top: 10px !important;
        left: 10px !important;
        min-height: 31px;
        gap: 6px;
        padding: 6px 10px;
        font-size: 8px;
    }

    .live-badge-dot {
        width: 7px;
        height: 7px;
        flex-basis: 7px;
        border-width: 1px;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, .10);
    }

    .contact-icon-image img {
        width: 54%;
        height: 54%;
    }
}

/* USER ICONS ONLY IN FOOTER FIX
   قبل از متن فقط فایل آیکونی که کاربر قرار می‌دهد نمایش داده می‌شود.
*/

/* حذف فلش‌ها و علامت‌های تزئینی قرمز */
.quick-links a::before,
.quick-links a::after,
.contact-links a::before,
.contact-links a::after,
.contact-links span::before,
.contact-links span::after {
    content: none !important;
    display: none !important;
}

/* حذف قاب، دایره، زمینه قرمز، خط و fallback ساختگی آیکون‌ها */
.contact-icon,
.contact-icon-image,
.user-contact-icon,
.social-contact-icon {
    width: 28px;
    height: 28px;
    display: flex;
    place-items: initial;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    overflow: visible;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    color: inherit;
    background: transparent !important;
    box-shadow: none !important;
}

/* فقط خود فایل تصویری کاربر */
.contact-icon img,
.contact-icon-image img,
.user-contact-icon img,
.social-contact-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
}

/* هیچ متن، نقطه، دایره یا نماد جایگزینی تولید نشود */
.contact-icon::before,
.contact-icon::after,
.contact-icon-image::before,
.contact-icon-image::after,
.user-contact-icon::before,
.user-contact-icon::after,
.social-contact-icon::before,
.social-contact-icon::after,
.contact-icon-image:empty::after,
.social-contact-icon.icon-missing::after {
    content: none !important;
    display: none !important;
}

/* SVGهای قدیمی به‌طور کامل غیرفعال باشند */
.contact-icon svg {
    display: none !important;
}

/* فاصله استاندارد بین آیکون واقعی و متن */
.contact-links a,
.contact-links > span {
    gap: 9px;
}

@media (max-width: 620px) {
    .contact-icon,
    .contact-icon-image,
    .user-contact-icon,
    .social-contact-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .contact-links a,
    .contact-links > span {
        gap: 6px;
    }
}

/* ADMIN UPLOADED CONTACT ICONS FIX */

/* تمام علامت‌ها، خطوط و فلش‌های ساختگی کنار اطلاعات تماس حذف می‌شوند */
.contact-links a::before,
.contact-links a::after,
.contact-links > span::before,
.contact-links > span::after,
.contact-address-row::before,
.contact-address-row::after {
    content: none !important;
    display: none !important;
}

/* ردیف تماس */
.contact-links a,
.contact-links > span,
.contact-address-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* فقط خود فایل آپلودشده نمایش داده شود */
.footer-contact-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: block;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* پیش‌نمایش آیکون‌ها در پنل مدیریت */
.contact-icon-upload-grid {
    margin-top: 12px;
}

.contact-icon-upload-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.contact-icon-current {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
}

.contact-icon-current img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.contact-icon-current small {
    color: var(--muted);
}

@media (max-width: 620px) {
    .footer-contact-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .contact-links a,
    .contact-links > span,
    .contact-address-row {
        gap: 7px;
    }
}

/* ALADHAN API BAR AND ADMIN PREVIEW */
.api-time-preview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.api-time-preview.is-online {
    border-color: rgba(41, 170, 100, .48);
}

.api-time-preview.is-fallback {
    border-color: rgba(223, 24, 53, .48);
}

.api-time-preview small {
    grid-column: 1 / -1;
    color: var(--muted);
}

@media (max-width: 620px) {
    .date-info-bar .info-items {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .date-info-bar .info-item {
        padding-inline: 1px;
    }

    .date-info-bar .info-item span {
        font-size: 5.8px;
    }

    .date-info-bar .info-item strong {
        font-size: 7.7px;
    }
}

/* DATE BAR NO SCROLL FIX
   حذف اسکرول افقی نوار بالایی تاریخ و ساعت
*/
.date-info-bar .info-items {
    min-width: 0;
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
}

.date-info-bar .info-items::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.date-info-bar .info-item {
    min-width: 0 !important;
    padding-inline: clamp(4px, 1vw, 14px);
    overflow: hidden;
}

.date-info-bar .info-item span,
.date-info-bar .info-item strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 901px) {
    .date-info-bar .info-bar-title {
        min-width: 205px;
        padding-inline: 14px;
        font-size: 15px;
    }

    .date-info-bar .info-item {
        min-height: 78px;
    }

    .date-info-bar .info-item span {
        font-size: 9px;
    }

    .date-info-bar .info-item strong {
        font-size: 14px;
        white-space: nowrap;
    }
}

@media (max-width: 900px) {
    .date-info-bar {
        overflow: hidden !important;
    }

    .date-info-bar .info-items {
        width: 100%;
    }

    .date-info-bar .info-item {
        min-height: 43px;
        padding-inline: 1px;
    }
}

/* LONG VIDEO LIBRARY 6x6 DESKTOP 3x3 MOBILE */
.long-library-page {
    padding-bottom: 72px;
}

.long-library-hero {
    padding-bottom: 30px;
}

.long-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: rgba(8, 8, 10, .72);
}

.long-library-toolbar h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.long-library-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.long-library-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
}

.long-library-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    font-family: var(--font-button);
    font-size: 10px;
}

.long-library-tabs a:hover,
.long-library-tabs a.active {
    color: #fff;
    border-color: rgba(223, 24, 53, .72);
    background: rgba(223, 24, 53, .18);
}

.long-library-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
}

.long-library-grid .video-card {
    width: 100%;
    min-width: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.long-library-grid .video-cover {
    aspect-ratio: 16 / 9;
}

.long-library-grid .video-card-body {
    padding: 8px 9px 9px;
}

.long-library-grid .video-card-body h3 {
    min-height: 36px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.long-library-grid .video-card-body p {
    display: none;
}

.long-library-grid .video-meta {
    margin-top: 5px;
    font-size: 7px;
}

.long-library-grid .play-button {
    width: 34px;
    height: 34px;
}

.long-library-grid .play-button svg {
    width: 14px;
    height: 14px;
}

.long-library-grid .duration-badge {
    right: 5px;
    bottom: 5px;
    padding: 2px 5px;
    font-size: 7px;
}

.long-library-empty {
    margin-top: 12px;
}

.long-library-pagination {
    margin-top: 28px;
}

.long-library-pagination a,
.long-library-pagination span {
    width: 38px;
    height: 38px;
}

.long-library-pagination .pagination-arrow {
    font-size: 20px;
}

@media (min-width: 621px) and (max-width: 900px) {
    .long-library-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .long-library-page {
        width: calc(100% - 12px);
        padding-bottom: 45px;
    }

    .long-library-hero {
        padding: 30px 0 18px;
    }

    .long-library-hero h1 {
        font-size: 27px;
    }

    .long-library-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 12px;
    }

    .long-library-toolbar h2 {
        font-size: 15px;
    }

    .long-library-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .long-library-tabs a {
        min-width: 0;
        min-height: 30px;
        padding: 4px 3px;
        font-size: 8px;
    }

    .long-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .long-library-grid .video-card {
        border-radius: 8px;
    }

    .long-library-grid .video-card-body {
        padding: 5px 5px 6px;
    }

    .long-library-grid .video-card-body h3 {
        min-height: 29px;
        font-size: 8px;
        line-height: 1.8;
    }

    .long-library-grid .video-meta {
        margin-top: 3px;
        font-size: 6px;
    }

    .long-library-grid .video-meta span:last-child {
        display: none;
    }

    .long-library-grid .play-button {
        width: 25px;
        height: 25px;
    }

    .long-library-grid .play-button svg {
        width: 10px;
        height: 10px;
    }

    .long-library-grid .duration-badge {
        right: 3px;
        bottom: 3px;
        padding: 1px 3px;
        font-size: 6px;
    }

    .long-library-pagination {
        gap: 4px;
        margin-top: 18px;
    }

    .long-library-pagination a,
    .long-library-pagination span {
        width: 31px;
        height: 31px;
        font-size: 9px;
    }
}

/* SHORT VIDEO LIBRARY AND VERTICAL FEED */

/* آرشیو شورت‌ها */
.short-library-page {
    padding-bottom: 72px;
}

.short-library-hero {
    padding-bottom: 30px;
}

.short-library-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: rgba(8, 8, 10, .72);
}

.short-library-toolbar h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.short-library-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.short-feed-open-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px;
    border: 1px solid rgba(223, 24, 53, .65);
    border-radius: 999px;
    color: #fff;
    background: rgba(223, 24, 53, .16);
    font-family: var(--font-button);
    font-size: 10px;
}

.short-feed-open-button:hover {
    background: rgba(223, 24, 53, .28);
}

.short-library-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
}

.short-library-grid .video-card {
    width: 100%;
    min-width: 0 !important;
    border-radius: 12px;
    overflow: hidden;
}

.short-library-grid .video-cover {
    aspect-ratio: 9 / 16;
}

.short-library-grid .video-card-body {
    padding: 8px 9px 9px;
}

.short-library-grid .video-card-body h3 {
    min-height: 36px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.short-library-grid .video-card-body p {
    display: none;
}

.short-library-grid .video-meta {
    margin-top: 5px;
    font-size: 7px;
}

.short-library-grid .play-button {
    width: 34px;
    height: 34px;
}

.short-library-grid .play-button svg {
    width: 14px;
    height: 14px;
}

.short-library-grid .duration-badge {
    right: 5px;
    bottom: 5px;
    padding: 2px 5px;
    font-size: 7px;
}

.short-library-grid .type-badge {
    top: 5px;
    left: 5px;
    padding: 2px 5px;
    font-size: 7px;
}

.short-library-empty {
    margin-top: 12px;
}

.short-library-pagination {
    margin-top: 28px;
}

/* صفحه نمایش پیوسته شورت‌ها */
.short-feed-page-body {
    height: 100svh;
    overflow: hidden;
    background: #000;
}

.short-feed-page-body main {
    height: calc(100svh - 96px);
    overflow: hidden;
}

.short-feed-shell {
    width: 100%;
    height: 100%;
    padding: 8px 12px 12px;
    background:
        radial-gradient(circle at 50% 10%, rgba(223, 24, 53, .08), transparent 34%),
        #000;
}

.short-feed-stream {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.short-feed-stream::-webkit-scrollbar {
    display: none;
}

.short-feed-item {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.short-feed-stage {
    position: relative;
    height: min(100%, 820px);
    max-width: min(100%, 462px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 22px;
    background: #070707;
    box-shadow: 0 28px 80px rgba(0,0,0,.58);
}

.short-native-video,
.short-feed-placeholder,
.short-embed-wrap,
.short-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.short-native-video,
.short-feed-placeholder {
    object-fit: cover;
    background: #000;
}

.short-embed-wrap iframe {
    border: 0;
    background: #000;
}

.short-feed-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(0,0,0,.86), transparent 44%),
        linear-gradient(to right, rgba(0,0,0,.30), transparent 30%);
}

.short-feed-caption {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 4;
    width: calc(100% - 105px);
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 14px rgba(0,0,0,.9);
}

.short-feed-caption h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.65;
}

.short-feed-caption strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.short-feed-caption p {
    margin: 7px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255,255,255,.84);
    font-size: 11px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.short-feed-actions {
    position: absolute;
    left: 12px;
    bottom: 76px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.short-action-button {
    width: 62px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 0;
    color: #fff;
    background: transparent;
    font-family: var(--font-button);
    font-size: 8px;
    cursor: pointer;
}

.short-action-button:disabled {
    opacity: .55;
    cursor: wait;
}

.short-action-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 50%;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

.short-action-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.short-like-button .short-action-icon svg {
    fill: rgba(255,255,255,.08);
}

.short-like-button.is-liked {
    color: #ff3956;
}

.short-like-button.is-liked .short-action-icon {
    border-color: rgba(255,57,86,.60);
    background: rgba(75,0,14,.62);
}

.short-like-button.is-liked .short-action-icon svg {
    fill: currentColor;
}

.short-like-button.has-error {
    animation: short-like-error .28s linear 2;
}

@keyframes short-like-error {
    50% { transform: translateX(4px); }
}

.short-play-toggle {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 5;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    transition: opacity .18s ease, transform .18s ease;
}

.short-play-toggle svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
    stroke: none;
    transform: translateX(2px);
}

.short-play-toggle.is-playing {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.82);
}

.short-feed-item:not(.is-active) .short-play-toggle {
    opacity: 1;
}

.short-feed-meta {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    gap: 6px;
}

.short-feed-meta span {
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(8px);
    font-size: 8px;
}

.short-unavailable {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #fff;
    background: rgba(0,0,0,.64);
    text-align: center;
}

.short-feed-loader {
    min-height: 32%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    scroll-snap-align: end;
    font-size: 10px;
}

.short-feed-loader.is-finished .short-feed-spinner {
    display: none;
}

.short-feed-loader.has-error {
    color: #ff6b7f;
}

.short-feed-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.16);
    border-top-color: #e51e3b;
    border-radius: 50%;
    animation: short-spin .7s linear infinite;
}

@keyframes short-spin {
    to { transform: rotate(360deg); }
}

.single-video-download {
    width: max-content;
    margin-top: 16px;
}

@media (min-width: 621px) and (max-width: 900px) {
    .short-library-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .short-feed-page-body main {
        height: calc(100svh - 82px);
    }
}

@media (max-width: 620px) {
    .short-library-page {
        width: calc(100% - 12px);
        padding-bottom: 45px;
    }

    .short-library-hero {
        padding: 30px 0 18px;
    }

    .short-library-hero h1 {
        font-size: 27px;
    }

    .short-library-toolbar {
        gap: 8px;
        margin-bottom: 10px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .short-library-toolbar h2 {
        font-size: 14px;
    }

    .short-library-toolbar p {
        font-size: 8px;
    }

    .short-feed-open-button {
        min-height: 30px;
        padding: 4px 9px;
        font-size: 7px;
    }

    .short-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .short-library-grid .video-card {
        border-radius: 8px;
    }

    .short-library-grid .video-card-body {
        padding: 5px 5px 6px;
    }

    .short-library-grid .video-card-body h3 {
        min-height: 29px;
        font-size: 8px;
        line-height: 1.8;
    }

    .short-library-grid .video-meta {
        margin-top: 3px;
        font-size: 6px;
    }

    .short-library-grid .video-meta span:last-child {
        display: none;
    }

    .short-library-grid .play-button {
        width: 25px;
        height: 25px;
    }

    .short-library-grid .play-button svg {
        width: 10px;
        height: 10px;
    }

    .short-library-grid .duration-badge,
    .short-library-grid .type-badge {
        padding: 1px 3px;
        font-size: 6px;
    }

    .short-library-pagination {
        gap: 4px;
        margin-top: 18px;
    }

    .short-library-pagination a,
    .short-library-pagination span {
        width: 31px;
        height: 31px;
        font-size: 9px;
    }

    .short-feed-page-body .site-header {
        padding-top: max(5px, env(safe-area-inset-top));
    }

    .short-feed-page-body main {
        height: calc(100svh - 73px - env(safe-area-inset-top));
    }

    .short-feed-shell {
        padding: 0;
    }

    .short-feed-stage {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .short-feed-caption {
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: calc(100% - 88px);
    }

    .short-feed-caption h2 {
        font-size: 15px;
    }

    .short-feed-caption strong,
    .short-feed-caption p {
        font-size: 9px;
    }

    .short-feed-actions {
        left: 5px;
        bottom: calc(58px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .short-action-button {
        width: 54px;
        min-height: 50px;
        font-size: 7px;
    }

    .short-action-icon {
        width: 38px;
        height: 38px;
    }

    .short-action-icon svg {
        width: 18px;
        height: 18px;
    }

    .short-feed-meta {
        top: 9px;
        right: 9px;
    }

    .short-feed-meta span {
        padding: 3px 6px;
        font-size: 6px;
    }

    .short-play-toggle {
        width: 54px;
        height: 54px;
    }
}

/* SHORT MAIN ARCHIVE FILTER FIX */
.short-library-layout {
    padding-bottom: 80px;
}

.short-library-layout .short-library-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
}

.short-library-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.short-library-toolbar-actions .mobile-filter-button {
    margin: 0;
}

.short-library-layout .filter-sidebar {
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 900px) {
    .short-library-layout .filter-sidebar {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .short-library-layout {
        width: calc(100% - 12px);
    }

    .short-library-layout .short-library-page {
        width: 100%;
    }

    .short-library-toolbar-actions {
        gap: 5px;
    }

    .short-library-toolbar-actions .mobile-filter-button,
    .short-library-toolbar-actions .short-feed-open-button {
        min-height: 30px;
        padding: 4px 8px;
        font-size: 7px;
    }
}

/* LONG VIDEO MAIN ARCHIVE FILTER */
.long-library-layout {
    padding-bottom: 80px;
}

.long-library-layout .long-library-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
}

.long-library-layout .filter-sidebar {
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.long-library-toolbar-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.long-library-toolbar-head > div {
    min-width: 0;
}

.long-library-toolbar-head .mobile-filter-button {
    flex: 0 0 auto;
}

@media (min-width: 901px) {
    .long-library-toolbar-head {
        flex: 1 1 auto;
    }
}

@media (max-width: 900px) {
    .long-library-layout .filter-sidebar {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .long-library-layout {
        width: calc(100% - 12px);
    }

    .long-library-layout .long-library-page {
        width: 100%;
    }

    .long-library-toolbar-head {
        width: 100%;
    }

    .long-library-toolbar-head .mobile-filter-button {
        min-height: 30px;
        padding: 4px 8px;
        font-size: 7px;
    }
}

/* LONG VIDEO MOBILE FILTER BUTTON FINAL FIX */

/* سه تب بالای صفحه دیگر نمایش داده نمی‌شوند. */
.long-library-tabs {
    display: none !important;
}

/* بعد از حذف تب‌ها، هدر فهرست تمام عرض را می‌گیرد. */
.long-library-toolbar,
.long-library-toolbar-head {
    width: 100%;
}

@media (max-width: 620px) {
    .long-library-toolbar {
        display: block !important;
        padding: 11px !important;
    }

    .long-library-toolbar-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .long-library-toolbar-head > div {
        width: 100%;
        text-align: right;
    }

    .long-library-toolbar-head .mobile-filter-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        overflow: visible !important;
        border-radius: 10px !important;
        font-family: var(--font-button) !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

/* SHORT VIDEO MOBILE FILTER BUTTON FINAL FIX */
@media (max-width: 620px) {
    .short-library-toolbar {
        width: 100%;
        display: block !important;
        padding: 11px !important;
    }

    .short-library-toolbar > div:first-child {
        width: 100%;
        margin-bottom: 10px;
        text-align: right;
    }

    .short-library-toolbar-actions {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .short-library-toolbar-actions .mobile-filter-button,
    .short-library-toolbar-actions .short-feed-open-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 9px 7px !important;
        overflow: visible !important;
        border-radius: 10px !important;
        font-family: var(--font-button) !important;
        font-size: 10px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .short-library-toolbar-actions .mobile-filter-button {
        border-color: rgba(223, 24, 53, .65) !important;
        color: #fff !important;
        background: rgba(223, 24, 53, .16) !important;
    }
}

@media (max-width: 360px) {
    .short-library-toolbar-actions .mobile-filter-button,
    .short-library-toolbar-actions .short-feed-open-button {
        padding-inline: 4px !important;
        font-size: 9px !important;
    }
}

/* AUDIO GALLERY FILTERED ARCHIVES AND DOWNLOAD BUTTONS */

.media-library-layout {
    padding-bottom: 80px;
}

.media-library-layout .media-library-results {
    width: 100%;
    min-width: 0;
}

.media-library-layout .filter-sidebar {
    max-height: calc(100vh - 145px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.media-library-toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: rgba(8, 8, 10, .72);
}

.media-library-toolbar h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
}

.media-library-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

/* 36 cards per desktop page */
.media-library-grid,
.gallery-library-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    overflow: visible !important;
}

/* Audio cards */
.audio-library-grid .video-card {
    width: 100%;
    min-width: 0 !important;
    overflow: hidden;
    border-radius: 12px;
}

.audio-library-grid .video-cover {
    aspect-ratio: 1 / 1;
}

.audio-library-grid .video-card-body {
    padding: 8px;
}

.audio-library-grid .video-card-body h3 {
    min-height: 36px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audio-library-grid .video-card-body > p {
    display: -webkit-box;
    min-height: 28px;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audio-library-grid .video-meta {
    margin-top: 5px;
    font-size: 7px;
}

.audio-library-grid .play-button {
    width: 34px;
    height: 34px;
}

.audio-library-grid .play-button svg {
    width: 14px;
    height: 14px;
}

/* Download button below short video and audio cards */
.media-card-actions {
    margin-top: 7px;
}

.media-download-button {
    width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid rgba(223, 24, 53, .58);
    border-radius: 8px;
    color: #fff;
    background: rgba(223, 24, 53, .15);
    font-family: var(--font-button);
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.media-download-button:hover {
    border-color: rgba(223, 24, 53, .92);
    background: rgba(223, 24, 53, .28);
    transform: translateY(-1px);
}

.short-library-grid .media-card-actions,
.home-short-grid .media-card-actions {
    margin-top: 6px;
}

.short-library-grid .media-download-button {
    min-height: 27px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 7px;
}

/* Gallery cards */
.gallery-library-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.gallery-library-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #050505;
}

.gallery-library-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease;
}

.gallery-library-card:hover .gallery-library-image img {
    transform: scale(1.035);
}

.gallery-library-body {
    padding: 8px;
}

.gallery-library-body h3 {
    min-height: 35px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-library-body p {
    min-height: 28px;
    margin: 4px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-library-meta {
    min-height: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 7px;
}

.gallery-library-body .media-download-button {
    margin-top: 7px;
}

.media-library-pagination {
    margin-top: 28px;
}

@media (min-width: 621px) and (max-width: 1100px) {
    .media-library-grid,
    .gallery-library-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .media-library-layout .filter-sidebar {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .media-library-layout {
        width: calc(100% - 12px);
        padding-bottom: 48px;
    }

    .media-library-layout .media-library-results {
        width: 100%;
    }

    .audio-library-hero,
    .gallery-library-hero {
        padding: 30px 0 18px;
    }

    .audio-library-hero h1,
    .gallery-library-hero h1 {
        font-size: 27px;
    }

    .media-library-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 11px !important;
    }

    .media-library-toolbar > div {
        width: 100%;
        text-align: right;
    }

    .media-library-toolbar h2 {
        font-size: 14px;
    }

    .media-library-toolbar p {
        font-size: 8px;
    }

    .media-library-toolbar .mobile-filter-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 9px 12px !important;
        overflow: visible !important;
        border-radius: 10px !important;
        font-family: var(--font-button) !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    /* 9 cards per mobile page */
    .media-library-grid,
    .gallery-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .audio-library-grid .video-card,
    .gallery-library-card {
        border-radius: 8px;
    }

    .audio-library-grid .video-card-body,
    .gallery-library-body {
        padding: 5px;
    }

    .audio-library-grid .video-card-body h3,
    .gallery-library-body h3 {
        min-height: 29px;
        font-size: 8px;
        line-height: 1.8;
    }

    .audio-library-grid .video-card-body > p,
    .gallery-library-body p {
        display: none;
    }

    .audio-library-grid .video-meta,
    .gallery-library-meta {
        min-height: 14px;
        margin-top: 3px;
        font-size: 6px;
    }

    .audio-library-grid .video-meta span:last-child,
    .gallery-library-meta span:nth-child(n+2) {
        display: none;
    }

    .audio-library-grid .play-button {
        width: 25px;
        height: 25px;
    }

    .audio-library-grid .play-button svg {
        width: 10px;
        height: 10px;
    }

    .audio-library-grid .duration-badge,
    .audio-library-grid .type-badge {
        padding: 1px 3px;
        font-size: 6px;
    }

    .media-download-button,
    .short-library-grid .media-download-button {
        min-height: 27px;
        padding: 4px 3px;
        border-radius: 6px;
        font-size: 7px;
    }

    .media-card-actions,
    .gallery-library-body .media-download-button {
        margin-top: 4px;
    }

    .media-library-pagination {
        gap: 4px;
        margin-top: 18px;
    }

    .media-library-pagination a,
    .media-library-pagination span {
        width: 31px;
        height: 31px;
        font-size: 9px;
    }
}

/* INLINE AUDIO CARDS AND INSTAGRAM IMAGE POST */

/* کارت صوت با پخش در همان صفحه */
.audio-inline-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.audio-inline-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #050505;
}

.audio-inline-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-inline-cover-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .76), transparent 58%),
        radial-gradient(circle at center, rgba(0, 0, 0, .08), rgba(0, 0, 0, .36));
    pointer-events: none;
}

.audio-inline-main-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .52);
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.audio-inline-main-play:hover {
    background: rgba(223, 24, 53, .72);
    transform: translate(-50%, -50%) scale(1.05);
}

.audio-inline-main-play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.audio-inline-main-play .audio-play-icon {
    transform: translateX(1px);
}

.audio-pause-icon {
    display: none;
}

.audio-inline-card.is-playing .audio-play-icon {
    display: none;
}

.audio-inline-card.is-playing .audio-pause-icon {
    display: block;
}

.audio-inline-card.is-playing .audio-inline-main-play {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(223, 24, 53, .78);
}

.audio-inline-cover .type-badge {
    top: 6px;
    left: 6px;
}

.audio-inline-cover .duration-badge {
    right: 6px;
    bottom: 7px;
}

.audio-wave {
    position: absolute;
    right: 9px;
    bottom: 9px;
    left: 62px;
    z-index: 3;
    height: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    opacity: .82;
    pointer-events: none;
}

.audio-wave i {
    width: 3px;
    height: calc(5px + (var(--wave-index) % 6) * 3px);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    transform-origin: bottom;
}

.audio-inline-card.is-playing .audio-wave i {
    animation: audio-wave-pulse .75s ease-in-out infinite alternate;
    animation-delay: calc(var(--wave-index) * -35ms);
}

@keyframes audio-wave-pulse {
    from {
        transform: scaleY(.42);
        opacity: .48;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.audio-inline-body {
    padding: 9px;
}

.audio-inline-body h3 {
    min-height: 36px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audio-inline-body h3 a {
    color: inherit;
}

.audio-inline-body > p {
    min-height: 27px;
    margin: 4px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.audio-inline-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 7px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.audio-inline-small-play {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(223, 24, 53, .55);
    border-radius: 50%;
    color: #fff;
    background: rgba(223, 24, 53, .15);
    cursor: pointer;
}

.audio-inline-small-play svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.audio-inline-small-play .audio-play-icon {
    transform: translateX(1px);
}

.audio-inline-card.is-playing .audio-inline-small-play {
    background: rgba(223, 24, 53, .78);
}

.audio-inline-timeline {
    min-width: 0;
    flex: 1 1 auto;
}

.audio-inline-timeline input[type="range"] {
    width: 100%;
    height: 4px;
    display: block;
    margin: 0;
    padding: 0;
    accent-color: #e51e3b;
    cursor: pointer;
}

.audio-inline-time {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 6px;
    direction: ltr;
}

.audio-inline-meta {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 7px;
}

.audio-inline-body .media-download-button {
    margin-top: 7px;
}

.audio-open-detail {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-button);
    font-size: 8px;
}

/* صفحه نمایش عکس شبیه پست اینستاگرام */
.instagram-image-page {
    padding: 42px 0 76px;
}

.instagram-image-container {
    max-width: 1120px;
}

.instagram-post-shell {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #080808;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.instagram-post-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, .018);
}

.instagram-post-profile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.instagram-post-profile img,
.instagram-post-caption-profile img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    border: 2px solid rgba(223, 24, 53, .78);
    border-radius: 50%;
    background: #000;
    padding: 3px;
}

.instagram-post-profile span {
    min-width: 0;
}

.instagram-post-profile strong,
.instagram-post-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instagram-post-profile strong {
    font-size: 12px;
}

.instagram-post-profile small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

.instagram-post-back {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-button);
    font-size: 8px;
}

.instagram-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    direction: ltr;
}

.instagram-post-media {
    position: relative;
    min-height: 650px;
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    border-right: 1px solid var(--border-soft);
    background: #000;
}

.instagram-post-media img {
    width: 100%;
    height: 100%;
    max-height: 820px;
    object-fit: contain;
}

.instagram-post-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(8px);
    font-size: 27px;
    line-height: 1;
    transform: translateY(-50%);
}

.instagram-post-prev {
    left: 12px;
}

.instagram-post-next {
    right: 12px;
}

.instagram-post-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    direction: rtl;
    padding: 18px;
}

.instagram-post-caption {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.instagram-post-caption-profile img {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

.instagram-post-caption h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.75;
}

.instagram-post-caption p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    line-height: 2;
}

.instagram-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0;
}

.instagram-post-tags span {
    padding: 5px 8px;
    border: 1px solid rgba(223, 24, 53, .34);
    border-radius: 999px;
    color: #fff;
    background: rgba(223, 24, 53, .09);
    font-size: 8px;
}

.instagram-post-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.instagram-post-download,
.instagram-post-related {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    font-family: var(--font-button);
    font-size: 10px;
}

.instagram-post-download {
    border: 1px solid rgba(223, 24, 53, .7);
    color: #fff;
    background: rgba(223, 24, 53, .2);
}

.instagram-post-download svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.instagram-post-related {
    border: 1px solid var(--border-soft);
    color: #fff;
    background: rgba(255, 255, 255, .025);
}

.instagram-post-bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.instagram-post-bottom-nav a {
    color: var(--muted);
    font-size: 8px;
}

.gallery-library-body h3 a {
    color: inherit;
}

@media (max-width: 900px) {
    .instagram-post-layout {
        grid-template-columns: 1fr;
    }

    .instagram-post-media {
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .instagram-post-media img {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .audio-inline-card {
        border-radius: 8px;
    }

    .audio-inline-main-play {
        width: 36px;
        height: 36px;
    }

    .audio-inline-main-play svg {
        width: 15px;
        height: 15px;
    }

    .audio-wave {
        right: 5px;
        bottom: 5px;
        left: 46px;
        height: 18px;
        gap: 1px;
    }

    .audio-wave i {
        width: 2px;
    }

    .audio-inline-body {
        padding: 5px;
    }

    .audio-inline-body h3 {
        min-height: 29px;
        font-size: 8px;
        line-height: 1.8;
    }

    .audio-inline-body > p {
        display: none;
    }

    .audio-inline-controls {
        gap: 4px;
        margin-top: 5px;
        padding: 4px;
        border-radius: 6px;
    }

    .audio-inline-small-play {
        flex-basis: 25px;
        width: 25px;
        height: 25px;
    }

    .audio-inline-small-play svg {
        width: 10px;
        height: 10px;
    }

    .audio-inline-time {
        margin-top: 2px;
        font-size: 5px;
    }

    .audio-inline-meta {
        margin-top: 4px;
        font-size: 6px;
    }

    .audio-inline-meta span:last-child {
        display: none;
    }

    .audio-inline-body .media-download-button {
        margin-top: 4px;
    }

    .instagram-image-page {
        padding: 8px 0 45px;
    }

    .instagram-image-container {
        width: 100%;
    }

    .instagram-post-shell {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .instagram-post-header {
        min-height: 58px;
        padding: 8px 10px;
    }

    .instagram-post-profile {
        gap: 7px;
    }

    .instagram-post-profile img {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .instagram-post-profile strong {
        font-size: 10px;
    }

    .instagram-post-profile small {
        font-size: 7px;
    }

    .instagram-post-back {
        padding: 6px 8px;
        font-size: 7px;
    }

    .instagram-post-media {
        aspect-ratio: auto;
        min-height: 420px;
        max-height: 70svh;
    }

    .instagram-post-media img {
        height: auto;
        max-height: 70svh;
    }

    .instagram-post-nav {
        width: 35px;
        height: 35px;
        font-size: 23px;
    }

    .instagram-post-prev {
        left: 7px;
    }

    .instagram-post-next {
        right: 7px;
    }

    .instagram-post-details {
        padding: 13px;
    }

    .instagram-post-caption {
        gap: 8px;
        padding-bottom: 13px;
    }

    .instagram-post-caption-profile img {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .instagram-post-caption h1 {
        font-size: 14px;
    }

    .instagram-post-caption p {
        font-size: 9px;
        line-height: 1.95;
    }

    .instagram-post-tags {
        padding: 12px 0;
    }

    .instagram-post-download,
    .instagram-post-related {
        min-height: 40px;
        font-size: 9px;
    }
}

/* ABOUT PAGE 2026 REDESIGN */
.about-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 62px;
}

.about-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -260px;
    left: 50%;
    border: 1px solid rgba(223, 24, 53, .22);
    border-radius: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.about-hero-kicker,
.about-section-label {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--custom-accent, #df1835);
    font-family: var(--font-button);
    font-size: 10px;
    font-weight: 500;
}

.about-intro-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding-top: 70px;
    padding-bottom: 78px;
}

.about-intro-image {
    position: relative;
    min-height: 520px;
}

.about-intro-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    filter: saturate(.88) contrast(1.03);
}

.about-image-frame {
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border: 1px solid rgba(223, 24, 53, .32);
    border-radius: 22px;
}

.about-intro-copy h2,
.about-history-title h2,
.about-section-head h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

.about-intro-copy h2 {
    max-width: 680px;
    font-size: clamp(28px, 3.2vw, 45px);
    line-height: 1.55;
}

.about-rich-text {
    margin-top: 21px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 2.25;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.about-value-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 13px;
    background: rgba(255,255,255,.018);
}

.about-value-card > span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(223, 24, 53, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(223,24,53,.12);
    font-family: var(--font-heading);
    font-size: 12px;
}

.about-value-card strong,
.about-value-card small {
    display: block;
}

.about-value-card strong {
    font-size: 11px;
}

.about-value-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.7;
}

.about-history-section {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background:
        linear-gradient(135deg, rgba(223,24,53,.045), transparent 35%),
        rgba(255,255,255,.012);
}

.about-history-inner {
    display: grid;
    grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
    gap: clamp(30px, 7vw, 100px);
    padding-top: 58px;
    padding-bottom: 58px;
}

.about-history-title h2 {
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1.6;
}

.about-history-copy {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    line-height: 2.35;
}

.about-gallery-section {
    padding-top: 78px;
    padding-bottom: 86px;
}

.about-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.about-section-head h2 {
    font-size: clamp(25px, 3vw, 38px);
}

.about-section-head > p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.9;
}

.about-photo-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 10px;
}

.about-photo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: #050505;
}

.about-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.about-photo-card:hover img {
    transform: scale(1.035);
    filter: brightness(1.05);
}

.about-photo-card-1,
.about-photo-card-4 {
    grid-column: span 7;
    grid-row: span 2;
}

.about-photo-card-2,
.about-photo-card-3,
.about-photo-card-5,
.about-photo-card-6 {
    grid-column: span 5;
}

.about-founders-section {
    padding: 78px 0 92px;
    border-top: 1px solid var(--border-soft);
    background: rgba(255,255,255,.008);
}

.about-founders-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-founder-card {
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: #090909;
    transition: transform .2s ease, border-color .2s ease;
}

.about-founder-card:hover {
    transform: translateY(-3px);
    border-color: rgba(223,24,53,.34);
}

.about-founder-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #040404;
}

.about-founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82);
}

.about-founder-body {
    padding: 14px;
}

.about-founder-body h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 15px;
}

.about-founder-body > span {
    display: block;
    margin-top: 4px;
    color: var(--custom-accent, #df1835);
    font-size: 8px;
}

.about-founder-body p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.9;
}

.about-founders-empty {
    padding: 30px;
    border: 1px dashed var(--border-soft);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    font-size: 10px;
}

@media (max-width: 980px) {
    .about-intro-section {
        grid-template-columns: 1fr;
    }

    .about-intro-image {
        min-height: 470px;
    }

    .about-founders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .about-hero {
        padding-bottom: 38px;
    }

    .about-intro-section {
        gap: 30px;
        padding-top: 42px;
        padding-bottom: 50px;
    }

    .about-intro-image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .about-image-frame {
        inset: 9px -7px -9px 7px;
        border-radius: 15px;
    }

    .about-intro-image img {
        border-radius: 15px;
    }

    .about-intro-copy h2 {
        font-size: 25px;
    }

    .about-rich-text,
    .about-history-copy {
        font-size: 11px;
        line-height: 2.15;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        min-height: 64px;
    }

    .about-history-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .about-gallery-section {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .about-section-head {
        display: block;
        margin-bottom: 18px;
    }

    .about-section-head > p {
        margin-top: 9px;
    }

    .about-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        gap: 6px;
    }

    .about-photo-card-1,
    .about-photo-card-2,
    .about-photo-card-3,
    .about-photo-card-4,
    .about-photo-card-5,
    .about-photo-card-6 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .about-photo-card:first-child,
    .about-photo-card:nth-child(4) {
        grid-row: span 2;
    }

    .about-founders-section {
        padding: 52px 0 58px;
    }

    .about-founders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .about-founder-card {
        border-radius: 10px;
    }

    .about-founder-body {
        padding: 8px;
    }

    .about-founder-body h3 {
        font-size: 11px;
    }

    .about-founder-body > span {
        font-size: 7px;
    }

    .about-founder-body p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 7px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
}

/* FOOTER BRAND TOP + EXACT HORMUJ MAP */
.footer-brand {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 18px 18px 16px !important;
    text-align: center;
}

.footer-brand-intro {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.footer-brand-intro img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    margin: 0 auto !important;
    object-fit: contain;
}

.footer-brand-intro h3 {
    margin: 8px 0 0 !important;
    font-family: var(--font-heading);
    font-size: 27px !important;
    line-height: 1.45;
}

.footer-brand-intro p {
    margin: 3px 0 0 !important;
    color: var(--muted);
    font-size: 10px !important;
    line-height: 1.8;
}

.footer-map-wrap {
    position: relative;
    width: 100%;
    height: 235px;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid rgba(223, 24, 53, .42);
    border-radius: 14px;
    background: #090909;
}

.footer-map {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    filter: grayscale(.72) contrast(1.06) brightness(.80);
}

.footer-map-open {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 3;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(223, 24, 53, .65);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
    font-family: var(--font-button);
    font-size: 8px;
}

.footer-map-open:hover {
    background: rgba(223, 24, 53, .72);
}

@media (max-width: 900px) {
    .footer-brand {
        padding: 14px !important;
    }

    .footer-brand-intro img {
        width: 62px !important;
        height: 62px !important;
    }

    .footer-brand-intro h3 {
        font-size: 22px !important;
    }

    .footer-map-wrap {
        height: 190px;
        margin-top: 12px;
    }
}

@media (max-width: 620px) {
    .footer-brand {
        padding: 12px !important;
    }

    .footer-brand-intro img {
        width: 54px !important;
        height: 54px !important;
    }

    .footer-brand-intro h3 {
        margin-top: 6px !important;
        font-size: 19px !important;
    }

    .footer-brand-intro p {
        font-size: 8px !important;
    }

    .footer-map-wrap {
        height: 165px;
        margin-top: 10px;
        border-radius: 10px;
    }

    .footer-map-open {
        min-height: 27px;
        padding: 4px 8px;
        font-size: 7px;
    }
}

/* ADMIN-CONTROLLED HEADER SUBMENUS */
.main-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.main-nav-item > .main-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.submenu-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform .2s ease;
}

.desktop-submenu {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    z-index: 160;
    width: max-content;
    min-width: 190px;
    max-width: 290px;
    display: grid;
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(223, 24, 53, .34);
    border-radius: 13px;
    background: rgba(8, 8, 10, .98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.main-nav-item.has-submenu:hover > .desktop-submenu,
.main-nav-item.has-submenu:focus-within > .desktop-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.main-nav-item.has-submenu:hover > .main-nav-link .submenu-chevron,
.main-nav-item.has-submenu:focus-within > .main-nav-link .submenu-chevron {
    transform: rotate(180deg);
}

.desktop-submenu a {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 11px !important;
    border-radius: 8px !important;
    color: #f3f3f3;
    font-size: 11px !important;
    line-height: 1.6;
    white-space: nowrap;
}

.desktop-submenu a:hover,
.desktop-submenu a.active {
    color: #fff !important;
    background: rgba(223, 24, 53, .16) !important;
}

.desktop-submenu a::after {
    display: none !important;
}

@media (max-width: 900px) {
    .mobile-nav-item {
        display: grid;
        gap: 5px;
    }

    .mobile-nav-parent-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 6px;
    }

    .mobile-nav-parent-row > .mobile-nav-parent-link {
        min-width: 0;
    }

    .mobile-submenu-toggle {
        width: 46px;
        min-height: 48px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .065);
        border-radius: 11px;
        color: #ff536c;
        background: rgba(255, 255, 255, .025);
        cursor: pointer;
    }

    .mobile-submenu-toggle svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        transition: transform .2s ease;
    }

    .mobile-nav-item.open .mobile-submenu-toggle {
        border-color: rgba(223, 24, 53, .48);
        background: rgba(223, 24, 53, .12);
    }

    .mobile-nav-item.open .mobile-submenu-toggle svg {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        display: grid;
        gap: 5px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .25s ease, opacity .2s ease;
    }

    .mobile-nav-item.open > .mobile-submenu {
        max-height: 520px;
        opacity: 1;
    }

    .mobile-nav-links .mobile-submenu a {
        min-height: 42px;
        margin-right: 17px;
        padding: 7px 11px;
        border-color: rgba(223, 24, 53, .16);
        color: #ddd;
        background: rgba(223, 24, 53, .045);
        font-size: 11px;
    }

    .mobile-nav-links .mobile-submenu a.active,
    .mobile-nav-links .mobile-submenu a:hover {
        border-color: rgba(223, 24, 53, .42);
        background: rgba(223, 24, 53, .13);
    }
}

/* LIVE PAGE - HOSSEINIYE MIRZA */
.live-page-body {
    background:
        radial-gradient(circle at 15% 22%, rgba(210, 10, 38, .11), transparent 32%),
        #050505;
}

.live-page-hero {
    padding: 42px 0 22px;
}

.live-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.live-page-heading > div {
    min-width: 0;
}

.live-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    font-size: 9px;
}

.live-page-kicker i,
.live-player-status i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: #737373;
}

.live-page-kicker.is-live {
    border-color: rgba(229,30,59,.42);
    color: #fff;
    background: rgba(229,30,59,.10);
}

.live-page-kicker.is-live i,
.live-player-status.is-live i {
    background: #ff2949;
    box-shadow: 0 0 0 5px rgba(255,41,73,.13);
    animation: live-page-pulse 1.25s ease-in-out infinite;
}

@keyframes live-page-pulse {
    50% {
        box-shadow: 0 0 0 9px rgba(255,41,73,0);
    }
}

.live-page-heading h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.35;
}

.live-page-heading p {
    max-width: 690px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

.live-archive-link {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid rgba(229,30,59,.48);
    border-radius: 999px;
    color: #fff;
    background: rgba(229,30,59,.10);
    font-family: var(--font-button);
    font-size: 9px;
}

.live-archive-link:hover {
    background: rgba(229,30,59,.23);
}

.live-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 18px;
    align-items: start;
    padding-bottom: 30px;
}

.live-player-column,
.live-sidebar {
    min-width: 0;
}

.live-player-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(229,30,59,.46);
    border-radius: 21px;
    background: #000;
    box-shadow:
        0 26px 70px rgba(0,0,0,.45),
        inset 0 0 0 1px rgba(255,255,255,.015);
}

.live-player-shell.is-live {
    box-shadow:
        0 26px 70px rgba(0,0,0,.48),
        0 0 45px rgba(229,30,59,.07);
}

.live-native-player,
.live-embed-player,
.live-offline-poster {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.live-native-player,
.live-offline-poster {
    object-fit: cover;
}

.live-offline-poster {
    filter: brightness(.58) saturate(.88);
}

.live-offline-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(0,0,0,.05), rgba(0,0,0,.46) 75%),
        linear-gradient(to top, rgba(0,0,0,.55), transparent 58%);
}

.live-offline-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 50%;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
}

.live-offline-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-offline-overlay strong {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 27px);
}

.live-offline-overlay p {
    margin: 7px 0 0;
    color: rgba(255,255,255,.74);
    font-size: 10px;
}

.live-player-topbar {
    position: absolute;
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.live-player-status,
.live-player-brand {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    color: #fff;
    background: rgba(0,0,0,.48);
    backdrop-filter: blur(9px);
    font-size: 8px;
}

.live-broadcast-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 11px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: rgba(255,255,255,.018);
}

.live-broadcast-note-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229,30,59,.36);
    border-radius: 10px;
    color: #ff3b57;
    background: rgba(229,30,59,.08);
}

.live-broadcast-note-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-broadcast-note strong {
    font-size: 10px;
}

.live-broadcast-note p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.8;
}

.live-sidebar {
    display: grid;
    gap: 10px;
}

.live-info-card {
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: rgba(9,9,11,.78);
}

.live-info-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.live-info-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229,30,59,.30);
    border-radius: 10px;
    color: #ff3854;
    background: rgba(229,30,59,.07);
}

.live-info-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-info-card-head strong,
.live-info-card-head small {
    display: block;
}

.live-info-card-head strong {
    font-size: 10px;
}

.live-info-card-head small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7px;
}

.live-clock-box {
    margin-top: 13px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255,255,255,.025);
}

.live-clock-box strong {
    display: block;
    direction: ltr;
    font-family: var(--font-heading);
    font-size: 27px;
    letter-spacing: 1px;
    text-align: right;
}

.live-clock-box span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.live-schedule-box {
    margin-top: 13px;
}

.live-schedule-box b {
    display: block;
    color: #fff;
    font-size: 10px;
    line-height: 1.9;
}

.live-schedule-box b.is-live {
    color: #ff3854;
}

.live-schedule-box p,
.live-address {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.9;
}

.live-quick-section {
    padding-top: 18px;
    padding-bottom: 76px;
}

.live-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.live-section-heading span {
    color: #ff3854;
    font-size: 8px;
}

.live-section-heading h2 {
    margin: 4px 0 0;
    font-family: var(--font-heading);
    font-size: 22px;
}

.live-section-heading p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.9;
}

.live-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.live-quick-grid > a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 135px;
    padding: 15px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(229,30,59,.05), transparent 52%),
        rgba(255,255,255,.018);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.live-quick-grid > a:hover {
    transform: translateY(-3px);
    border-color: rgba(229,30,59,.42);
    background:
        linear-gradient(145deg, rgba(229,30,59,.11), transparent 52%),
        rgba(255,255,255,.022);
}

.live-quick-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border: 1px solid rgba(229,30,59,.28);
    border-radius: 10px;
    color: #ff3854;
    background: rgba(229,30,59,.06);
}

.live-quick-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.live-quick-grid strong {
    margin-top: 16px;
    font-size: 10px;
}

.live-quick-grid small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7px;
}

.live-poster-admin-preview {
    max-width: 330px;
}

.live-poster-admin-preview img {
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: cover;
    border-radius: 10px;
}

.live-status-admin-row {
    margin: 8px 0 18px;
}

@media (max-width: 980px) {
    .live-page-layout {
        grid-template-columns: 1fr;
    }

    .live-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .live-page-hero {
        padding: 26px 0 14px;
    }

    .live-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .live-page-heading h1 {
        font-size: 28px;
    }

    .live-page-heading p {
        font-size: 9px;
    }

    .live-archive-link {
        min-height: 36px;
        padding: 6px 11px;
        font-size: 8px;
    }

    .live-page-layout {
        width: calc(100% - 12px);
        gap: 10px;
    }

    .live-player-shell {
        border-radius: 12px;
    }

    .live-player-topbar {
        top: 7px;
        right: 7px;
        left: 7px;
    }

    .live-player-status,
    .live-player-brand {
        min-height: 25px;
        padding: 4px 7px;
        font-size: 6px;
    }

    .live-offline-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }

    .live-offline-icon svg {
        width: 22px;
        height: 22px;
    }

    .live-offline-overlay {
        padding: 16px;
    }

    .live-offline-overlay strong {
        font-size: 14px;
    }

    .live-offline-overlay p {
        font-size: 7px;
    }

    .live-broadcast-note {
        gap: 8px;
        margin-top: 7px;
        padding: 8px 9px;
        border-radius: 9px;
    }

    .live-broadcast-note-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 8px;
    }

    .live-broadcast-note strong {
        font-size: 8px;
    }

    .live-broadcast-note p {
        font-size: 6px;
    }

    .live-sidebar {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .live-info-card {
        padding: 10px;
        border-radius: 10px;
    }

    .live-clock-box strong {
        font-size: 23px;
    }

    .live-quick-section {
        width: calc(100% - 12px);
        padding-top: 12px;
        padding-bottom: 46px;
    }

    .live-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .live-section-heading h2 {
        font-size: 18px;
    }

    .live-section-heading p {
        font-size: 7px;
    }

    .live-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .live-quick-grid > a {
        min-height: 112px;
        padding: 10px;
        border-radius: 10px;
    }

    .live-quick-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .live-quick-icon svg {
        width: 16px;
        height: 16px;
    }

    .live-quick-grid strong {
        margin-top: 12px;
        font-size: 8px;
    }

    .live-quick-grid small {
        font-size: 6px;
    }
}

/* SHORT CARD REDESIGN - NO DOWNLOAD BUTTON */

/*
 * فقط کارت‌های شورت را تغییر می‌دهد.
 * دکمه دانلود عمداً روی کارت آرشیو نمایش داده نمی‌شود؛
 * دانلود داخل صفحه پخش شورت باقی می‌ماند.
 */
.short-media-card {
    position: relative;
    min-width: 0;
    overflow: hidden !important;
    border: 1px solid rgba(255, 54, 84, .58) !important;
    border-radius: 15px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(225, 25, 54, .065), transparent 42%),
        linear-gradient(180deg, #111113 0%, #0a0a0c 100%) !important;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .26),
        inset 0 0 0 1px rgba(255, 255, 255, .012);
    transform: none;
    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease;
}

.short-media-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 54, 84, .92) !important;
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .34),
        0 0 22px rgba(225, 25, 54, .08);
}

.short-card-cover {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 9 / 12.8;
    background: #080808;
}

.short-card-cover > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.short-media-card:hover .short-card-cover > img {
    transform: scale(1.035);
}

.short-card-image-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .52), transparent 34%),
        radial-gradient(circle at 50% 48%, transparent 30%, rgba(0, 0, 0, .09) 68%, rgba(0, 0, 0, .24) 100%);
}

.short-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #bd1631, #ef3451);
    box-shadow: 0 7px 16px rgba(211, 20, 50, .22);
    font-size: 7px;
    font-weight: 700;
}

.short-card-play {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin: auto;
    border: 1.5px solid rgba(255, 44, 76, .88);
    border-radius: 50%;
    color: #ff3654;
    background: rgba(3, 3, 4, .63);
    box-shadow:
        0 0 0 5px rgba(0, 0, 0, .14),
        0 0 18px rgba(255, 44, 76, .11);
    backdrop-filter: blur(5px);
    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.short-media-card:hover .short-card-play {
    transform: scale(1.07);
    background: rgba(22, 4, 8, .76);
    box-shadow:
        0 0 0 6px rgba(0, 0, 0, .12),
        0 0 25px rgba(255, 44, 76, .19);
}

.short-card-play svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transform: translateX(-1px);
}

.short-card-duration {
    position: absolute;
    left: 7px;
    bottom: 7px;
    z-index: 4;
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    direction: ltr;
    border: 1px solid rgba(255, 54, 84, .44);
    border-radius: 7px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(6px);
    font-size: 7px;
    font-weight: 700;
}

.short-card-body {
    padding: 9px 8px 11px;
    text-align: center;
}

.short-card-ornament {
    width: 76%;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: -1px auto 5px;
}

.short-card-ornament > span {
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 54, 84, .58)
    );
}

.short-card-ornament > span:last-child {
    background: linear-gradient(
        90deg,
        rgba(255, 54, 84, .58),
        transparent
    );
}

.short-card-ornament > i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border: 1px solid rgba(255, 54, 84, .82);
    transform: rotate(45deg);
}

.short-card-body h3 {
    min-height: 35px;
    margin: 0 !important;
    display: -webkit-box;
    overflow: hidden;
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.8 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.short-card-body h3 a {
    color: inherit;
}

.short-card-meta {
    min-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    color: rgba(255, 255, 255, .52);
    font-size: 6px;
    line-height: 1.5;
}

.short-card-meta > i {
    width: 3px;
    height: 3px;
    flex: 0 0 3px;
    border-radius: 50%;
    background: rgba(255, 54, 84, .74);
}

/* استایل آرشیو شورت‌ها */
.short-library-grid .short-media-card {
    width: 100%;
}

.short-library-grid .short-card-cover {
    aspect-ratio: 9 / 13;
}

/*
 * کارت‌های کوتاه صفحه اصلی نیز همین ظاهر را می‌گیرند،
 * ولی اندازه شبکه اصلی سایت تغییر نمی‌کند.
 */
.short-grid .short-card-cover {
    aspect-ratio: 9 / 12.2;
}

/* دانلود روی کارت شورت به‌هیچ‌وجه نمایش داده نشود */
.short-media-card .media-card-actions,
.short-media-card .media-download-button {
    display: none !important;
}

/* تبلت */
@media (min-width: 621px) and (max-width: 1000px) {
    .short-card-badge {
        font-size: 7px;
    }

    .short-card-play {
        width: 42px;
        height: 42px;
    }

    .short-card-play svg {
        width: 15px;
        height: 15px;
    }

    .short-card-body h3 {
        font-size: 9px !important;
    }
}

/* موبایل: ۳ کارت در ردیف فعلی سایت حفظ می‌شود */
@media (max-width: 620px) {
    .short-media-card {
        border-radius: 9px !important;
    }

    .short-card-cover,
    .short-library-grid .short-card-cover {
        aspect-ratio: 9 / 13;
    }

    .short-card-badge {
        top: 5px;
        right: 5px;
        min-height: 17px;
        padding: 2px 5px;
        font-size: 5.5px;
    }

    .short-card-play {
        width: 30px;
        height: 30px;
        border-width: 1px;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, .13);
    }

    .short-card-play svg {
        width: 11px;
        height: 11px;
    }

    .short-card-duration {
        left: 4px;
        bottom: 4px;
        min-height: 16px;
        padding: 2px 4px;
        border-radius: 5px;
        font-size: 5.5px;
    }

    .short-card-body {
        padding: 5px 4px 6px;
    }

    .short-card-ornament {
        width: 70%;
        height: 5px;
        gap: 2px;
        margin-bottom: 3px;
    }

    .short-card-ornament > i {
        width: 4px;
        height: 4px;
        flex-basis: 4px;
    }

    .short-card-body h3 {
        min-height: 27px;
        font-size: 7px !important;
        line-height: 1.8 !important;
    }

    .short-card-meta {
        min-height: 12px;
        gap: 3px;
        margin-top: 3px;
        font-size: 5px;
    }

    .short-card-meta > i {
        width: 2px;
        height: 2px;
        flex-basis: 2px;
    }
}
