/* ==========================================================================
   Astro Horoscope Pro 2.0 — Public Styles
   Aesthetic: Celestial Nocturne — deep cosmos, gold leaf, glass morphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --ahp-primary: #6C3CE1;
    --ahp-secondary: #D4A017;
    --ahp-bg: #080614;
    --ahp-surface: rgba(255,255,255,0.03);
    --ahp-surface-hover: rgba(255,255,255,0.06);
    --ahp-glass: rgba(255,255,255,0.04);
    --ahp-glass-border: rgba(255,255,255,0.08);
    --ahp-text: #e8e6f0;
    --ahp-text-dim: #8b87a8;
    --ahp-glow: rgba(108,60,225,0.25);
    --ahp-gold: #D4A017;
    --ahp-fire: #ef4444;
    --ahp-earth: #22c55e;
    --ahp-air: #38bdf8;
    --ahp-water: #818cf8;
    --ahp-wood: #84cc16;
    --ahp-metal: #a8a29e;
    --ahp-radius: 20px;
    --ahp-radius-sm: 12px;
    --ahp-font-display: 'Playfair Display', Georgia, serif;
    --ahp-font-body: 'DM Sans', system-ui, sans-serif;
    --ahp-shadow: 0 8px 40px rgba(0,0,0,0.3);
    --ahp-transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================================================
   CATEGORY SHOWCASE
   ======================================================================== */

.ahp-categories-wrapper {
    font-family: var(--ahp-font-body);
    color: var(--ahp-text);
    position: relative;
}

.ahp-categories {
    display: grid;
    grid-template-columns: repeat(var(--ahp-cat-cols, 3), 1fr);
    gap: 24px;
    padding: 8px 0 40px;
}

@media (max-width: 1024px) { .ahp-categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ahp-categories { grid-template-columns: 1fr; } }

/* ---- CATEGORY CARD ---- */
.ahp-cat-card {
    position: relative;
    border-radius: var(--ahp-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 10;
    transition: transform 0.45s var(--ahp-transition), box-shadow 0.45s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.ahp-cat-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 50px var(--cat-accent, var(--ahp-primary));
}

.ahp-cat-card__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ahp-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ahp-transition), filter 0.4s;
}

.ahp-cat-card:hover .ahp-cat-card__img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.ahp-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,6,20,0.92) 0%,
        rgba(8,6,20,0.6) 40%,
        rgba(8,6,20,0.2) 70%,
        transparent 100%
    );
    z-index: 1;
}

.ahp-cat-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(212,160,23,0.06) 50%, transparent 70%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s;
}

.ahp-cat-card:hover .ahp-cat-card__shine {
    opacity: 1;
}

.ahp-cat-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.ahp-cat-card__icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    line-height: 1;
}

.ahp-cat-card__title {
    font-family: var(--ahp-font-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgb(0 0 0);
}

.ahp-cat-card__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ahp-cat-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ahp-cat-card__count {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ahp-cat-card__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cat-accent, var(--ahp-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.ahp-cat-card:hover .ahp-cat-card__arrow {
    transform: translateX(4px);
    box-shadow: 0 4px 20px var(--cat-accent, var(--ahp-glow));
}

/* No cover fallback */
.ahp-cat-card:not(:has(.ahp-cat-card__img)) .ahp-cat-card__cover {
    background: linear-gradient(135deg, var(--cat-accent, var(--ahp-primary)), rgba(8,6,20,0.9));
}

/* ========================================================================
   SIGNS PANEL (opened when clicking a category)
   ======================================================================== */

.ahp-signs-panel {
    animation: ahpSlideUp 0.5s var(--ahp-transition);
    padding: 8px 0 40px;
}

.ahp-signs-panel__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ahp-signs-panel__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ahp-glass);
    border: 1px solid var(--ahp-glass-border);
    border-radius: 40px;
    padding: 10px 20px;
    color: var(--ahp-text);
    font-family: var(--ahp-font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(12px);
}

.ahp-signs-panel__back:hover {
    background: var(--ahp-surface-hover);
    border-color: var(--ahp-primary);
    color: #6C3CE1 !important;
}

.ahp-signs-panel__title {
    font-family: var(--ahp-font-display);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.ahp-signs-panel__grid {
    animation: ahpFadeUp 0.4s ease;
}

/* ---- SIGN BUTTON (in the panel) ---- */
.ahp-signs-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) { .ahp-signs-grid-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ahp-signs-grid-inner { grid-template-columns: repeat(2, 1fr); } }

.ahp-sign-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 12px;
    border-radius: var(--ahp-radius-sm);
    border: 1px solid var(--ahp-glass-border);
    background: var(--ahp-glass);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s var(--ahp-transition);
    font-family: var(--ahp-font-body);
    position: relative;
    overflow: hidden;
}

.ahp-sign-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(108,60,225,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ahp-sign-btn:hover::before { opacity: 1; }

.ahp-sign-btn:hover {
    border-color: var(--ahp-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(108,60,225,0.2), 0 0 30px rgba(108,60,225,0.08);
}

.ahp-sign-btn__symbol {
    font-size: 36px;
    filter: drop-shadow(0 0 10px var(--ahp-glow));
    transition: transform 0.3s;
}

.ahp-sign-btn__img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.ahp-sign-btn__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ahp-sign-btn:hover .ahp-sign-btn__symbol {
    transform: scale(1.15);
}

.ahp-sign-btn:hover .ahp-sign-btn__img {
    transform: scale(1.1);
    border-color: var(--ahp-primary);
    box-shadow: 0 6px 24px rgba(108,60,225,0.25);
}

.ahp-sign-btn__name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.ahp-sign-btn__dates {
    font-size: 11px;
    color: var(--ahp-text-dim);
    letter-spacing: 0.05em;
}

.ahp-sign-btn__empty {
    font-size: 10px;
    color: var(--ahp-text-dim);
    font-style: italic;
    margin-top: 4px;
}

.ahp-sign-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ahp-sign-btn--disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--ahp-glass-border);
}

/* Element accent on sign buttons */
.ahp-sign-btn.ahp-element-fire  { border-bottom: 3px solid var(--ahp-fire); }
.ahp-sign-btn.ahp-element-earth { border-bottom: 3px solid var(--ahp-earth); }
.ahp-sign-btn.ahp-element-air   { border-bottom: 3px solid var(--ahp-air); }
.ahp-sign-btn.ahp-element-water { border-bottom: 3px solid var(--ahp-water); }
.ahp-sign-btn.ahp-element-wood  { border-bottom: 3px solid var(--ahp-wood); }
.ahp-sign-btn.ahp-element-metal { border-bottom: 3px solid var(--ahp-metal); }

/* ---- SIGN DETAIL (card only — full content is on single page) ---- */
.ahp-signs-panel__detail {
    animation: ahpFadeUp 0.4s ease;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 0 8px;
}

.ahp-signs-panel__detail .ahp-card--detail {
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 40px rgba(108,60,225,0.1);
}


/* ========================================================================
   HOROSCOPE CARD (shared between grid / slideshow / detail)
   ======================================================================== */

.ahp-grid {
    display: grid;
    grid-template-columns: repeat(var(--ahp-columns, 3), 1fr);
    gap: 24px;
    padding: 32px 0;
}
@media (max-width: 1024px) { .ahp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ahp-grid { grid-template-columns: 1fr; } }

.ahp-card {
    background: var(--ahp-glass);
    border: 1px solid var(--ahp-glass-border);
    border-radius: var(--ahp-radius);
    overflow: hidden;
    transition: transform 0.4s var(--ahp-transition), box-shadow 0.4s ease, border-color 0.3s;
    position: relative;
    font-family: var(--ahp-font-body);
    color: var(--ahp-text);
    backdrop-filter: blur(10px);
}

.ahp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(108,60,225,0.06), transparent 55%);
    pointer-events: none;
}

.ahp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(108,60,225,0.18), 0 0 35px rgba(108,60,225,0.06);
    border-color: rgba(108,60,225,0.25);
}

.ahp-element-fire  { border-top: 3px solid var(--ahp-fire); }
.ahp-element-earth { border-top: 3px solid var(--ahp-earth); }
.ahp-element-air   { border-top: 3px solid var(--ahp-air); }
.ahp-element-water { border-top: 3px solid var(--ahp-water); }
.ahp-element-wood  { border-top: 3px solid var(--ahp-wood); }
.ahp-element-metal { border-top: 3px solid var(--ahp-metal); }

.ahp-card__header {
    position: relative;
    text-align: center;
    padding: 24px 20px 14px;
    z-index: 1;
}

.ahp-card__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid var(--ahp-glass-border);
    box-shadow: 0 4px 20px rgba(108,60,225,0.15);
}

.ahp-card__img { width: 100%; height: 100%; object-fit: cover; }

.ahp-card__symbol {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 8px var(--ahp-glow));
}

.ahp-card__name {
    font-family: var(--ahp-font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #2b2b2b !important;
}

.ahp-card__dates {
    font-size: 11px;
    color: var(--ahp-text-dim);
    display: block;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ahp-card__element {
    display: inline-block;
    margin-top: 7px;
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.ahp-el-fire  { background: rgba(239,68,68,0.12); color: var(--ahp-fire); }
.ahp-el-earth { background: rgba(34,197,94,0.12); color: var(--ahp-earth); }
.ahp-el-air   { background: rgba(56,189,248,0.12); color: var(--ahp-air); }
.ahp-el-water { background: rgba(129,140,248,0.12); color: var(--ahp-water); }
.ahp-el-wood  { background: rgba(132,204,22,0.12); color: var(--ahp-wood); }
.ahp-el-metal { background: rgba(168,162,158,0.12); color: var(--ahp-metal); }

.ahp-card__body { padding: 0 20px 14px; position: relative; z-index: 1; }

.ahp-card__excerpt {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ahp-text-dim);
    margin-bottom: 14px;
}

.ahp-card__ratings { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.ahp-rating-bar { display: flex; align-items: center; gap: 8px; }
.ahp-rating-bar__icon { font-size: 13px; flex-shrink: 0; width: 20px; text-align: center; }
.ahp-rating-bar__track { flex: 1; height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.ahp-rating-bar__fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ahp-primary), var(--ahp-secondary)); transition: width 0.7s var(--ahp-transition); }

.ahp-card__extras { display: flex; flex-wrap: wrap; gap: 6px; }

.ahp-tag {
    font-size: 13px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--ahp-glass-border);
    padding: 3px 10px;
    border-radius: 20px;
    color: var(--ahp-text-dim);
}

.ahp-card__footer {
    padding: 12px 20px;
    border-top: 1px solid var(--ahp-glass-border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.ahp-card__link {
    font-family: var(--ahp-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ahp-primary) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.ahp-card__link:hover { color: var(--ahp-secondary); }

/* Single / Detail variants */
.ahp-card--single, .ahp-card--detail { max-width: 520px; margin: 0 auto; }


/* ========================================================================
   SLIDESHOW
   ======================================================================== */

.ahp-slideshow { position: relative; overflow: hidden; padding: 40px 0; }

.ahp-slideshow__header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; padding: 0 4px;
}

.ahp-slideshow__title {
    font-family: var(--ahp-font-display); font-size: 30px; font-weight: 700; color: #fff; margin: 0;
}

.ahp-slideshow__type-tabs {
    display: flex; gap: 4px; background: var(--ahp-glass); border: 1px solid var(--ahp-glass-border); border-radius: var(--ahp-radius-sm); padding: 4px; flex-wrap: wrap; backdrop-filter: blur(10px);
}

.ahp-tab-btn {
    font-family: var(--ahp-font-body); font-size: 13px; font-weight: 500; padding: 8px 16px; border: none; border-radius: 8px; background: transparent; color: var(--ahp-text-dim); cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.ahp-tab-btn:hover { color: #fff; background: var(--ahp-surface-hover); }
.ahp-tab-btn.active { background: var(--ahp-primary); color: #fff; box-shadow: 0 4px 14px rgba(108,60,225,0.4); }

.ahp-slideshow__viewport { overflow: hidden; border-radius: var(--ahp-radius); }
.ahp-slideshow__track { display: flex; transition: transform 0.5s var(--ahp-transition); will-change: transform; }
.ahp-slideshow__slide { flex: 0 0 100%; max-width: 100%; padding: 0 6px; box-sizing: border-box; }
@media (min-width:768px)  { .ahp-slideshow__slide { flex:0 0 50%;  max-width:50%; } }
@media (min-width:1024px) { .ahp-slideshow__slide { flex:0 0 33.333%; max-width:33.333%; } }

.ahp-slideshow__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }

.ahp-slideshow__btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ahp-glass-border); background: var(--ahp-glass); color: var(--ahp-text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s; backdrop-filter: blur(10px);
}
.ahp-slideshow__btn:hover { background: var(--ahp-primary); border-color: var(--ahp-primary); color: #fff; box-shadow: 0 4px 16px rgba(108,60,225,0.4); }

.ahp-slideshow__dots { display: flex; gap: 8px; }
.ahp-slideshow__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.12); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.ahp-slideshow__dot.active { background: var(--ahp-primary); transform: scale(1.35); box-shadow: 0 0 12px var(--ahp-glow); }


/* ========================================================================
   SELECTOR WHEEL
   ======================================================================== */

.ahp-selector { padding: 40px 0; text-align: center; }
.ahp-selector__title { font-family: var(--ahp-font-display); font-size: 30px; font-weight: 700; color: #fff; margin: 0 0 32px; }

.ahp-selector__wheel {
    display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; max-width: 760px; margin: 0 auto 32px;
}
@media (max-width:768px) { .ahp-selector__wheel { grid-template-columns: repeat(4,1fr); } }
@media (max-width:480px) { .ahp-selector__wheel { grid-template-columns: repeat(3,1fr); } }

.ahp-selector__sign {
    display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 18px 8px; border-radius: var(--ahp-radius-sm); border: 1px solid var(--ahp-glass-border); background: var(--ahp-glass); cursor: pointer; transition: all 0.3s; font-family: var(--ahp-font-body);
}
.ahp-selector__sign:hover, .ahp-selector__sign.active {
    border-color: var(--ahp-primary); background: rgba(108,60,225,0.1); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,60,225,0.2);
}
.ahp-selector__symbol { font-size: 28px; filter: drop-shadow(0 0 6px var(--ahp-glow)); }
.ahp-selector__name { font-size: 12px; font-weight: 500; color: var(--ahp-text-dim); }
.ahp-selector__sign.active .ahp-selector__name { color: #fff; }
.ahp-selector__result { min-height: 80px; position: relative; }
.ahp-selector__result .ahp-card { max-width: 500px; margin: 0 auto; animation: ahpFadeUp 0.4s ease; }


/* ========================================================================
   ARTICLE CARDS (freeform categories — no signs)
   ======================================================================== */

.ahp-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    animation: ahpFadeUp 0.4s ease;
}

.ahp-article-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--ahp-radius);
    overflow: hidden;
    background: var(--ahp-glass);
    border: 1px solid var(--ahp-glass-border);
    text-decoration: none;
    color: var(--ahp-text);
    font-family: var(--ahp-font-body);
    transition: transform 0.35s var(--ahp-transition), box-shadow 0.35s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.ahp-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.25), 0 0 30px rgba(108,60,225,0.08);
    border-color: rgba(108,60,225,0.2);
}

.ahp-article-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ahp-article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ahp-transition);
}

.ahp-article-card:hover .ahp-article-card__img img {
    transform: scale(1.06);
}

.ahp-article-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ahp-article-card__title {
    font-family: var(--ahp-font-display);
    font-size: 19px;
    font-weight: 700;
    color: #363434 !important;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ahp-article-card__excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ahp-text-dim);
    margin: 0 0 14px;
    flex: 1;
}

.ahp-article-card__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--ahp-primary);
    transition: color 0.2s;
}

.ahp-article-card:hover .ahp-article-card__link {
    color: var(--ahp-secondary);
}

@media (max-width: 600px) {
    .ahp-articles-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   VIDEO GALLERY (video categories)
   ======================================================================== */

.ahp-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: ahpFadeUp 0.4s ease;
}

.ahp-video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--ahp-radius);
    overflow: hidden;
    background: var(--ahp-glass);
    border: 1px solid var(--ahp-glass-border);
    text-decoration: none;
    color: var(--ahp-text);
    font-family: var(--ahp-font-body);
    transition: transform 0.35s var(--ahp-transition), box-shadow 0.35s, border-color 0.3s;
    backdrop-filter: blur(10px);
}

.ahp-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 40px rgba(236,72,153,0.1);
    border-color: rgba(236,72,153,0.3);
}

.ahp-video-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.ahp-video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ahp-transition);
}

.ahp-video-card:hover .ahp-video-card__thumb img {
    transform: scale(1.08);
}

.ahp-video-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    opacity: 0.3;
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
}

.ahp-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    padding-left: 4px;
}

.ahp-video-card:hover .ahp-video-card__play {
    transform: translate(-50%, -50%) scale(1.12);
    background: #EC4899;
    border-color: #EC4899;
    box-shadow: 0 8px 30px rgba(236,72,153,0.5);
}

.ahp-video-card__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.03em;
}

.ahp-video-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ahp-video-card__sign {
    font-size: 12px;
    color: var(--ahp-text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ahp-video-card__title {
    font-family: var(--ahp-font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .ahp-videos-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   GALLERY MOSAIC (image categories)
   ======================================================================== */

.ahp-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 10px;
    animation: ahpFadeUp 0.4s ease;
}

.ahp-gallery-tile {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: var(--ahp-surface);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s var(--ahp-transition), box-shadow 0.35s;
}

.ahp-gallery-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 30px rgba(245,158,11,0.15);
    z-index: 2;
}

.ahp-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ahp-transition);
}

.ahp-gallery-tile:hover img {
    transform: scale(1.08);
}

.ahp-gallery-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ahp-gallery-tile:hover .ahp-gallery-tile__overlay {
    opacity: 1;
}

.ahp-gallery-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Varied tile sizes — mosaic effect */
.ahp-gallery-tile:nth-child(7n+1) { grid-row: span 2; }
.ahp-gallery-tile:nth-child(11n+4) { grid-column: span 2; }

@media (max-width: 600px) {
    .ahp-gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .ahp-gallery-tile:nth-child(n) { grid-row: auto; grid-column: auto; }
}

/* ========================================================================
   LIGHTBOX
   ======================================================================== */

.ahp-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 20, 0.92);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    animation: ahpFadeIn 0.3s ease;
}

.ahp-lightbox.active { display: flex; }

.ahp-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 2;
}

.ahp-lightbox__close:hover {
    background: var(--ahp-primary);
    transform: rotate(90deg) scale(1.1);
}

.ahp-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 2;
}

.ahp-lightbox__nav:hover {
    background: var(--ahp-primary);
    transform: translateY(-50%) scale(1.1);
}

.ahp-lightbox__nav--prev { left: 20px; }
.ahp-lightbox__nav--next { right: 20px; }

.ahp-lightbox__content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: ahpLightboxIn 0.4s var(--ahp-transition);
}

@keyframes ahpLightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.ahp-lightbox__image-wrap {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    background: #000;
}

.ahp-lightbox__image-wrap img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
}

.ahp-lightbox__info {
    color: #fff;
    font-family: var(--ahp-font-body);
    text-align: center;
    max-width: 700px;
}

.ahp-lightbox__title {
    font-family: var(--ahp-font-display);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.ahp-lightbox__sign {
    display: inline-block;
    font-size: 13px;
    color: var(--ahp-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ahp-lightbox__caption {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ahp-text-dim);
    margin: 0 0 12px;
}

.ahp-lightbox__link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--ahp-primary);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s;
}

.ahp-lightbox__link:hover {
    background: var(--ahp-secondary);
    color: #1e1b4b !important;
    transform: translateY(-2px);
}

.ahp-lightbox__counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-family: var(--ahp-font-body);
    font-size: 13px;
    letter-spacing: 0.05em;
}

@keyframes ahpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .ahp-lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
    .ahp-lightbox__nav--prev { left: 10px; }
    .ahp-lightbox__nav--next { right: 10px; }
}


/* ========================================================================
   LOADING & EMPTY
   ======================================================================== */

.ahp-loading { display: flex; align-items: center; justify-content: center; padding: 50px; }
.ahp-spinner { width: 40px; height: 40px; border: 3px solid var(--ahp-glass-border); border-top-color: var(--ahp-primary); border-radius: 50%; animation: ahpSpin 0.7s linear infinite; }
.ahp-empty { text-align: center; color: var(--ahp-text-dim); font-family: var(--ahp-font-body); padding: 40px; font-style: italic; }


/* ========================================================================
   ANIMATIONS
   ======================================================================== */

@keyframes ahpFadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes ahpSlideUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes ahpSpin { to { transform:rotate(360deg); } }

.ahp-grid .ahp-card { animation: ahpFadeUp 0.5s ease both; }
.ahp-grid .ahp-card:nth-child(1)  { animation-delay:.04s; }
.ahp-grid .ahp-card:nth-child(2)  { animation-delay:.08s; }
.ahp-grid .ahp-card:nth-child(3)  { animation-delay:.12s; }
.ahp-grid .ahp-card:nth-child(4)  { animation-delay:.16s; }
.ahp-grid .ahp-card:nth-child(5)  { animation-delay:.20s; }
.ahp-grid .ahp-card:nth-child(6)  { animation-delay:.24s; }
.ahp-grid .ahp-card:nth-child(7)  { animation-delay:.28s; }
.ahp-grid .ahp-card:nth-child(8)  { animation-delay:.32s; }
.ahp-grid .ahp-card:nth-child(9)  { animation-delay:.36s; }
.ahp-grid .ahp-card:nth-child(10) { animation-delay:.40s; }
.ahp-grid .ahp-card:nth-child(11) { animation-delay:.44s; }
.ahp-grid .ahp-card:nth-child(12) { animation-delay:.48s; }

.ahp-categories .ahp-cat-card { animation: ahpFadeUp 0.55s ease both; }
.ahp-categories .ahp-cat-card:nth-child(1) { animation-delay:.05s; }
.ahp-categories .ahp-cat-card:nth-child(2) { animation-delay:.12s; }
.ahp-categories .ahp-cat-card:nth-child(3) { animation-delay:.19s; }
.ahp-categories .ahp-cat-card:nth-child(4) { animation-delay:.26s; }
.ahp-categories .ahp-cat-card:nth-child(5) { animation-delay:.33s; }
.ahp-categories .ahp-cat-card:nth-child(6) { animation-delay:.40s; }
.ahp-categories .ahp-cat-card:nth-child(7) { animation-delay:.47s; }
.ahp-categories .ahp-cat-card:nth-child(8) { animation-delay:.54s; }

.ahp-signs-grid-inner .ahp-sign-btn { animation: ahpFadeUp 0.45s ease both; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(1)  { animation-delay:.03s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(2)  { animation-delay:.06s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(3)  { animation-delay:.09s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(4)  { animation-delay:.12s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(5)  { animation-delay:.15s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(6)  { animation-delay:.18s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(7)  { animation-delay:.21s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(8)  { animation-delay:.24s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(9)  { animation-delay:.27s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(10) { animation-delay:.30s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(11) { animation-delay:.33s; }
.ahp-signs-grid-inner .ahp-sign-btn:nth-child(12) { animation-delay:.36s; }


/* ========================================================================
   LIGHT THEME OVERRIDE
   ======================================================================== */

@media (prefers-color-scheme: light) {
    .ahp-categories-wrapper,
    .ahp-grid,
    .ahp-slideshow,
    .ahp-selector,
    .ahp-single {
        --ahp-glass: rgba(0,0,0,0.02);
        --ahp-glass-border: rgba(0,0,0,0.08);
        --ahp-surface: rgba(0,0,0,0.02);
        --ahp-text: #1e1b4b !important;
        --ahp-text-dim: #64748b;
    }
    .ahp-card__name, .ahp-slideshow__title, .ahp-selector__title, .ahp-signs-panel__title { color: #1e1b4b !important; }
    .ahp-sign-btn__name { color: #1e1b4b !important; }
}
