/* =========================================================================
 * Streamit Child — Hub pages (Programmatic SEO)
 * Uses the same asp-* CSS variables defined in streamit-redesign.css.
 * ========================================================================= */

.ash-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 9, 20, .08), transparent 60%),
        var(--asp-bg, #07090f);
    color: var(--asp-text, #e9ecf2);
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
    padding: 22px 0 60px;
    min-height: 75vh;
}
.ash-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Breadcrumbs ===== */
.ash-breadcrumbs {
    margin-bottom: 14px;
}
.ash-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    font-size: 13px;
}
.ash-breadcrumbs li {
    color: var(--asp-muted, #8d93a3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ash-breadcrumbs li + li::before {
    content: '‹';
    color: var(--asp-border-2, #2f3548);
    font-size: 14px;
}
.ash-breadcrumbs a {
    color: var(--asp-muted, #8d93a3);
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all .15s;
}
.ash-breadcrumbs a:hover {
    color: var(--asp-yellow, #f4c542);
    background: var(--asp-surface-2, #1b202b);
}
.ash-breadcrumbs [aria-current="page"] span {
    color: var(--asp-text, #e9ecf2);
    font-weight: 700;
}

/* ===== Hero ===== */
.ash-hero {
    background: linear-gradient(135deg, var(--asp-surface, #13171f), var(--asp-surface-2, #1b202b));
    border: 1px solid var(--asp-border, #252b3a);
    border-radius: var(--asp-radius, 16px);
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: var(--asp-shadow, 0 16px 40px rgba(0, 0, 0, .55));
    position: relative;
    overflow: hidden;
}
.ash-hero::before {
    content: '';
    position: absolute;
    inset-block-start: -50%;
    inset-inline-end: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, .12), transparent 60%);
    pointer-events: none;
}
.ash-h1 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
    color: #fff;
    position: relative;
    z-index: 1;
}
.ash-intro {
    color: var(--asp-text, #e9ecf2);
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
}
.ash-intro strong {
    color: var(--asp-yellow, #f4c542);
    font-weight: 700;
}
.ash-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.ash-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--asp-bg, #07090f);
    border: 1px solid var(--asp-border, #252b3a);
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--asp-text, #e9ecf2);
    font-size: 13px;
    font-weight: 600;
}
.ash-stat i { color: var(--asp-yellow, #f4c542); }
.ash-stat strong {
    color: var(--asp-red-2, #ff333d);
    font-weight: 900;
    font-size: 16px;
}

/* ===== Grid ===== */
.ash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.ash-card {
    background: var(--asp-surface, #13171f);
    border: 1px solid var(--asp-border, #252b3a);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--asp-text, #e9ecf2);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    display: block;
}
.ash-card:hover {
    transform: translateY(-5px);
    border-color: var(--asp-yellow, #f4c542);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .55);
    color: var(--asp-text, #e9ecf2);
}
.ash-card-poster {
    aspect-ratio: 2/3;
    position: relative;
    background: var(--asp-bg, #07090f);
    overflow: hidden;
}
.ash-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.ash-card:hover .ash-card-poster img { transform: scale(1.06); }
.ash-card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--asp-surface-3, #232a39), var(--asp-bg, #07090f));
    color: var(--asp-muted, #8d93a3);
    font-size: 40px;
}
.ash-card-rating {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    background: linear-gradient(135deg, var(--asp-yellow, #f4c542), #d8a833);
    color: #1a1300;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.ash-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .25s;
}
.ash-card-play i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--asp-red, #e50914), var(--asp-red-2, #ff333d));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 22px rgba(229, 9, 20, .55);
}
.ash-card:hover .ash-card-play { opacity: 1; }
.ash-card-body {
    padding: 10px 12px;
}
.ash-card-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: var(--asp-text, #e9ecf2);
    line-height: 1.35;
    margin-bottom: 2px;
}
.ash-card-body em {
    color: var(--asp-muted, #8d93a3);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

/* ===== Pagination ===== */
.ash-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px 0 30px;
}
.ash-page-btn,
.ash-page-num {
    background: var(--asp-surface-2, #1b202b);
    border: 1px solid var(--asp-border, #252b3a);
    color: var(--asp-text, #e9ecf2);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    min-width: 38px;
    text-align: center;
    transition: all .15s;
}
.ash-page-num:hover,
.ash-page-btn:hover {
    border-color: var(--asp-yellow, #f4c542);
    color: var(--asp-yellow, #f4c542);
    transform: translateY(-1px);
}
.ash-page-num.is-current {
    background: linear-gradient(135deg, var(--asp-red, #e50914), var(--asp-red-2, #ff333d));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--asp-shadow-red, 0 8px 28px rgba(229, 9, 20, .35));
}
.ash-page-gap {
    color: var(--asp-muted, #8d93a3);
    padding: 0 4px;
}

/* ===== Related ===== */
.ash-related {
    background: var(--asp-surface, #13171f);
    border: 1px solid var(--asp-border, #252b3a);
    border-radius: var(--asp-radius, 16px);
    padding: 22px 24px;
    margin-bottom: 22px;
}
.ash-related-title {
    color: var(--asp-yellow, #f4c542);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--asp-border, #252b3a);
    width: 100%;
}
.ash-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.ash-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--asp-surface-2, #1b202b);
    border: 1px solid var(--asp-border, #252b3a);
    color: var(--asp-text, #e9ecf2);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.ash-related-link i {
    color: var(--asp-yellow, #f4c542);
    font-size: 11px;
    transition: transform .25s;
}
.ash-related-link:hover {
    background: linear-gradient(135deg, var(--asp-red, #e50914), var(--asp-red-2, #ff333d));
    border-color: transparent;
    color: #fff;
    transform: translateX(-3px);
}
.ash-related-link:hover i { color: #fff; transform: translateX(-4px); }

/* ===== Footer text ===== */
.ash-footer-text {
    background: var(--asp-surface, #13171f);
    border: 1px solid var(--asp-border, #252b3a);
    border-radius: var(--asp-radius, 16px);
    padding: 22px 24px;
    color: var(--asp-text, #e9ecf2);
}
.ash-footer-text h3 {
    color: var(--asp-yellow, #f4c542);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
}
.ash-footer-text p {
    margin: 0 0 12px;
    line-height: 1.85;
    font-size: 13px;
    color: var(--asp-muted, #8d93a3);
}
.ash-footer-text p:last-child { margin-bottom: 0; }
.ash-footer-text strong { color: var(--asp-text, #e9ecf2); }
.ash-footer-text a {
    color: var(--asp-yellow, #f4c542);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color .15s;
}
.ash-footer-text a:hover { border-bottom-color: var(--asp-yellow, #f4c542); }

/* ===== Empty state ===== */
.ash-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--asp-surface, #13171f);
    border: 1px dashed var(--asp-border-2, #2f3548);
    border-radius: var(--asp-radius, 16px);
    margin-bottom: 22px;
}
.ash-empty i {
    font-size: 50px;
    color: var(--asp-yellow, #f4c542);
    margin-bottom: 16px;
}
.ash-empty h2 {
    color: var(--asp-text, #e9ecf2);
    font-size: 22px;
    margin: 0 0 10px;
}
.ash-empty p {
    color: var(--asp-muted, #8d93a3);
    margin: 0 0 18px;
}
.ash-empty-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--asp-red, #e50914), var(--asp-red-2, #ff333d));
    color: #fff !important;
    padding: 10px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .ash-hero { padding: 18px 18px; }
    .ash-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .ash-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .ash-grid { grid-template-columns: 1fr 1fr; }
    .ash-related-grid { grid-template-columns: 1fr; }
}
