/**
 * Homepage skeleton layers — shapes match real header video, spotlight,
 * featured pick, and category scroll cards (loaded from index.php only).
 */

/* ── Shared shimmer bars / pills ─────────────────────────────────────────── */
.tl-sk-line {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: var(--bg-elev-3);
    position: relative;
    overflow: hidden;
}

.tl-sk-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.35s ease-in-out infinite;
}

.tl-sk-line--pill {
    height: 26px;
    border-radius: 999px;
    width: auto;
    display: inline-flex;
}

.tl-sk-line--pill-sm {
    height: 22px;
    width: 72px;
    border-radius: 999px;
}

.tl-sk-line--pill-wide {
    height: 26px;
    width: 110px;
    border-radius: 999px;
}

.tl-sk-line--title {
    height: clamp(22px, 4vw, 34px);
    width: 72%;
    max-width: 520px;
    border-radius: 10px;
}

.tl-sk-line--title-sub {
    height: clamp(18px, 3vw, 26px);
    width: 46%;
    max-width: 280px;
    border-radius: 8px;
    margin-top: 10px;
}

.tl-sk-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-elev-3);
    border: 2px solid rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
}

.tl-sk-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.35s ease-in-out infinite;
    animation-delay: 0.1s;
}

.tl-sk-line--name {
    height: 14px;
    width: 140px;
    border-radius: 8px;
}

.tl-sk-line--cta-pill {
    height: 46px;
    width: 118px;
    border-radius: 12px;
}

/* ── Header video (matches tl-home-header-video*) ───────────────────────── */
.tl-sk-hv-card {
    position: relative;
    overflow: hidden;
}

.tl-sk-hv-frame {
    background: linear-gradient(145deg, #0a0a12 0%, #12121c 50%, #0d0d14 100%);
}

.tl-sk-hv-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 88%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.45s ease-in-out infinite;
}

/* ── Spotlight faux banner ───────────────────────────────────────────────── */
.tl-sk-spotlight-faux .tl-spotlight__shade {
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(5, 6, 12, 0.82) 0%, rgba(5, 6, 12, 0.35) 42%, rgba(5, 6, 12, 0.92) 100%),
        linear-gradient(90deg, rgba(5, 6, 12, 0.45) 0%, transparent 52%);
}

html[dir='rtl'] .tl-sk-spotlight-faux .tl-spotlight__shade {
    background:
        linear-gradient(180deg, rgba(5, 6, 12, 0.82) 0%, rgba(5, 6, 12, 0.35) 42%, rgba(5, 6, 12, 0.92) 100%),
        linear-gradient(270deg, rgba(5, 6, 12, 0.45) 0%, transparent 52%);
}

.tl-sk-spotlight-faux-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tl-sk-spotlight-faux-pills .tl-sk-line--pill-sm:first-child {
    width: 78px;
}

.tl-sk-spotlight-faux-pills .tl-sk-line--pill-sm:last-child {
    width: 96px;
}

.tl-sk-spotlight-faux-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6px;
    min-height: 0;
}

.tl-sk-spotlight-faux-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 4px;
}

.tl-sk-spotlight-faux-who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tl-sk-spotlight-faux-views {
    width: 88px;
    height: 28px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.tl-sk-spotlight-faux-views::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.35s ease-in-out infinite;
    animation-delay: 0.2s;
}

.tl-sk-spotlight-faux-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 10, 16, 0.48);
    z-index: 6;
    pointer-events: none;
}

.tl-sk-spotlight-faux-nav--prev {
    left: 14px;
}

.tl-sk-spotlight-faux-nav--next {
    right: 14px;
}

html[dir='rtl'] .tl-sk-spotlight-faux-nav--prev {
    left: auto;
    right: 14px;
}

html[dir='rtl'] .tl-sk-spotlight-faux-nav--next {
    right: auto;
    left: 14px;
}

.tl-sk-spotlight-faux-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 6;
    pointer-events: none;
}

.tl-sk-spotlight-faux-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.tl-sk-spotlight-faux-dot.is-active {
    background: rgba(255, 255, 255, 0.85);
    width: 22px;
    border-radius: 999px;
}

/* ── Featured pick faux ─────────────────────────────────────────────────── */
.tl-sk-hfp-glow {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.28), rgba(180, 83, 9, 0.22));
}

.tl-sk-hfp-glow .tl-hfp__glow-spin {
    display: none;
}

.tl-sk-line--hfp-tab {
    height: 30px;
    width: min(220px, 55%);
    border-radius: 999px;
    margin-bottom: 12px;
}

.tl-sk-hfp-card-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.tl-sk-hfp-thumb-faux {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: linear-gradient(165deg, #2a2215 0%, #151210 100%);
    position: relative;
    overflow: hidden;
}

.tl-sk-hfp-thumb-faux::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(251, 191, 36, 0.08) 45%,
        transparent 88%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.45s ease-in-out infinite;
}

.tl-sk-hfp-thumb-cap {
    position: absolute;
    left: 8px;
    bottom: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.tl-sk-hfp-cap-live {
    width: 52px;
    height: 22px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.tl-sk-hfp-cap-eye {
    width: 56px;
    height: 22px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
}

.tl-sk-hfp-meta-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tl-sk-line--hfp-cat {
    height: 11px;
    width: 42%;
    border-radius: 6px;
}

.tl-sk-line--hfp-title {
    height: 18px;
    width: 88%;
    border-radius: 8px;
}

.tl-sk-line--hfp-title2 {
    height: 16px;
    width: 62%;
    border-radius: 8px;
}

.tl-sk-hfp-who {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.tl-sk-hfp-cta-faux {
    width: 92px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    position: relative;
    overflow: hidden;
}

.tl-sk-hfp-cta-faux::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(30, 86, 245, 0.12) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.35s ease-in-out infinite;
}

@media (max-width: 768px) {
    .tl-sk-hfp-card-row {
        grid-template-columns: 1fr;
    }

    .tl-sk-hfp-cta-faux {
        justify-self: start;
    }
}

/* ── Category scroll faux cards ───────────────────────────────────────────── */
.tl-sk-cat-faux {
    pointer-events: none;
    scroll-snap-align: start;
}

.tl-sk-cat-faux-art {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(30, 86, 245, 0.14), rgba(30, 86, 245, 0.05));
    position: relative;
    overflow: hidden;
}

.tl-sk-cat-faux-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.07) 45%,
        transparent 88%
    );
    transform: translateX(-100%);
    animation: tl-stream-sk-shimmer 1.35s ease-in-out infinite;
}

.tl-sk-line--cat-title {
    height: 11px;
    width: 82%;
    margin: 0 0 4px;
}

.tl-sk-line--cat-sub {
    height: 9px;
    width: 58%;
}

@media (prefers-reduced-motion: reduce) {
    .tl-sk-line::after,
    .tl-sk-circle::after,
    .tl-sk-hv-frame::after,
    .tl-sk-hfp-thumb-faux::after,
    .tl-sk-hfp-cta-faux::after,
    .tl-sk-cat-faux-art::after,
    .tl-sk-spotlight-faux-views::after {
        animation: none !important;
    }
}
