/* TVFL Athlete Spotlight Shortcode */

.tvfl-athlete-spotlight {
    display: flex;
    gap: 5px;
    width: 100%;
    align-items: flex-start;
}

/* ── LEFT PANEL (65%) ──────────────────────────────────────────────── */

.tvfl-spotlight-main {
    flex: 0 0 65%;
    width: 65%;
    min-width: 0;
}

.tvfl-spotlight-panel {
    display: none;
}

.tvfl-spotlight-panel.active {
    display: block;
    position: relative;
    border: 1px solid #ffffff14;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 9 / 13;
}

/* Image fills the full panel */
.tvfl-spotlight-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tvfl-spotlight-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom-to-top shadow overlay */
.tvfl-spotlight-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 100%
    );
    z-index: 1;
}

/* Category badge inside content, above athlete name */
.tvfl-spotlight-category {
    display: inline-block;
    align-self: flex-start;
    background-color: #074A96;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    line-height: 1;
}

/* Content overlaid on the shadow */
.tvfl-spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tvfl-spotlight-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.tvfl-spotlight-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.tvfl-spotlight-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 7px 16px;
    background-color: transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    transition: border-color 0.2s, background-color 0.2s;
}

.tvfl-spotlight-btn:hover {
    border-color: var( --e-global-color-primary );
    background-color: var( --e-global-color-primary );
    color: #ffffff;
}

/* ── RIGHT LIST (35%) ──────────────────────────────────────────────── */

.tvfl-spotlight-list {
    flex: 0 0 35%;
    width: 35%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.tvfl-spotlight-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ffffff14;
    transition: border-color 0.15s;
    padding: 5px 0;
}

.tvfl-spotlight-list-item:first-child {
    padding-top: 0;
}

.tvfl-spotlight-list-item:last-child {
    border-bottom: none;
}

.tvfl-spotlight-list-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.tvfl-spotlight-list-item.active {
    /*border-bottom: none;*/
    /*border-left: 3px solid var(--e-global-color-primary);*/
    /*padding-left: 9px;*/
}

.tvfl-spotlight-list-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px !important;
}

.tvfl-spotlight-list-thumb-placeholder {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.06);
}

.tvfl-spotlight-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tvfl-spotlight-list-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--e-global-color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tvfl-spotlight-list-club,
.tvfl-spotlight-list-game {
    display: block;
    font-size: 11px;
    color: rgba(224, 224, 224, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .tvfl-athlete-spotlight {
        flex-direction: column;
        gap: 5px;
    }

    .tvfl-spotlight-main,
    .tvfl-spotlight-list {
        flex: none;
        width: 100%;
    }

    .tvfl-spotlight-panel.active {
        aspect-ratio: 9 / 13;
    }

    .tvfl-spotlight-name {
        font-size: 17px;
    }
}
