:root {
    --hp-ink: #141827;
    --hp-muted: #4b5563;
    --hp-brand: #f59e0b;
    --hp-brand-2: #d97706;
    --hp-brand-dark: #b45309;
    --yt-red: #ff0000;
    --yt-red-soft: #ffe7e7;
    --hp-surface: #ffffff;
    --hp-border: #e5e7eb;
    --hp-shadow: 0 14px 42px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

body.hp-body {
    margin: 0;
    font-family: "Vazirmatn", system-ui, sans-serif;
    color: var(--hp-ink);
    background:
        radial-gradient(900px 320px at 10% -20%, color-mix(in srgb, var(--hp-brand) 22%, transparent), transparent 70%),
        radial-gradient(700px 220px at 88% -12%, color-mix(in srgb, var(--hp-brand-2) 18%, transparent), transparent 72%),
        linear-gradient(180deg, #fffef9 0%, #f8fafc 46%, #f3f4f6 100%);
    min-height: 100vh;
}

.hp-body a {
    color: inherit;
    text-decoration: none;
}

.hp-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.hp-topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.hp-brand-main,
.hp-brand-ulanish {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hp-brand-main i,
.hp-kicker i,
.hp-btn i,
.hp-sub i,
.hp-brand-ulanish i {
    line-height: 1;
}

.hp-brand-main img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--hp-brand) 35%, transparent);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--hp-brand) 25%, transparent);
}

.hp-brand-main .t1 {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.hp-brand-main .t2 {
    color: var(--hp-muted);
    font-size: 0.88rem;
}

.hp-brand-ulanish {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #cfd8e3;
    border-radius: 16px;
    padding: 8px 12px 8px 8px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hp-brand-ulanish:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.13);
}

.hp-brand-ulanish img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 3px;
}

.hp-brand-ulanish .name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    white-space: nowrap;
}

.hp-brand-ulanish .sub {
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 2px;
}

.hp-brand-ulanish .txt {
    display: flex;
    flex-direction: column;
}

.hp-brand-ulanish .ud-mark {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f0ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.8rem;
}

.hp-hero {
    padding: 28px 0 14px;
}

.hp-hero-box {
    background:
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--hp-brand) 8%, #fff9eb) 55%, color-mix(in srgb, var(--hp-brand-2) 10%, #ffffff) 100%);
    border: 1px solid color-mix(in srgb, var(--hp-brand) 22%, var(--hp-border));
    border-radius: 26px;
    box-shadow: var(--hp-shadow);
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hp-hero-box::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    left: -60px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--hp-brand) 32%, transparent), transparent 70%);
    z-index: -1;
}

.hp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid color-mix(in srgb, var(--hp-brand) 45%, transparent);
    background: color-mix(in srgb, var(--hp-brand) 12%, #fff);
    color: #78350f;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
}

.hp-kicker i {
    color: var(--hp-brand-dark);
}

.hp-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.6;
}

.hp-hero p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.98rem;
    line-height: 1.9;
}

.hp-full-desc {
    margin: 0 0 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hp-full-desc p {
    margin: 0;
    color: var(--hp-muted);
    font-size: 0.98rem;
    line-height: 1.9;
}

.hp-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.hp-btn-primary {
    background: var(--hp-brand);
    color: #111827;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--hp-brand) 35%, transparent);
}

.hp-btn-primary:hover {
    filter: brightness(1.05);
}

.hp-btn-youtube {
    border: 1px solid #ffb9b9;
    background: var(--yt-red-soft);
    color: #991b1b;
}

.hp-btn-youtube:hover {
    border-color: #ff8b8b;
    background: #ffd4d4;
}

.hp-btn-youtube-dark {
    border: 1px solid #ffd0d0;
    background: var(--yt-red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.30);
}

.hp-btn-youtube-dark:hover {
    background: #dc0000;
}

.hp-grid {
    list-style: none;
    margin: 18px 0 28px;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}

.hp-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 18px;
    box-shadow: 0 7px 20px rgba(2, 6, 23, 0.06);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    animation: hpCardIn 0.55s ease forwards;
}

.hp-card:nth-child(3n + 1) { animation-delay: 0.05s; }
.hp-card:nth-child(3n + 2) { animation-delay: 0.12s; }
.hp-card:nth-child(3n + 3) { animation-delay: 0.18s; }

@keyframes hpCardIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(2, 6, 23, 0.12);
    border-color: rgba(255, 0, 0, 0.35);
}

.hp-link {
    display: block;
}

.hp-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

.hp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.hp-card:hover .hp-thumb img {
    transform: scale(1.04);
}

.hp-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.84);
    backdrop-filter: blur(2px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hp-play::before {
    content: "";
    position: absolute;
    right: 22px;
    top: 19px;
    border-right: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.hp-card:hover .hp-play {
    background: #d50000;
    transform: scale(1.06);
}

.hp-idx {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hp-brand);
    color: #111827;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--hp-brand) 42%, transparent);
}

.hp-meta {
    padding: 12px;
}

.hp-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-title i {
    color: var(--yt-red);
    margin-left: 6px;
    font-size: 0.88rem;
}

.hp-sub {
    margin-top: 7px;
    color: #b91c1c;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hp-topbar-inner {
        min-height: 70px;
    }

    .hp-brand-main img {
        width: 46px;
        height: 46px;
    }

    .hp-brand-main .t1 {
        font-size: 0.96rem;
    }

    .hp-brand-main .t2 {
        font-size: 0.8rem;
    }

    .hp-brand-ulanish {
        padding: 7px 10px 7px 7px;
    }

    .hp-brand-ulanish img {
        width: 28px;
        height: 28px;
    }
}
