

.nep-slot:empty {
    display: none;
}

.nep-badge,
.nep-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;

    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.72);

    background: rgba(10, 10, 16, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: opacity 0.2s ease-out;
}

.nep-flag {
    top: 12px;
    left: 12px;
}

.nep-badge b,
.nep-flag b {
    flex: none;
    font-weight: 800;
    color: #fff;
}

.nep-ep {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.nep-ep::before {
    content: '·';
    margin-right: 5px;
    opacity: 0.6;
}

.nep-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-sizing: border-box;
}

.nep-tone--new {
    border-color: rgba(var(--primary-rgb), 0.38);
    border-top-color: rgba(var(--primary-rgb), 0.55);
}

.nep-tone--new .nep-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.22), 0 0 8px rgba(var(--primary-rgb), 0.65);
}

.nep-tone--soon .nep-dot {
    border: 1.5px solid rgba(255, 255, 255, 0.62);
}

.nep-row .release-badge {
    display: none;
}

@media (hover: hover) {
    .nep-card.nep-has-play:hover .nep-badge,
    .row__poster-container:hover > .nep-flag {
        opacity: 0;
    }
}

.nep-card:focus-within .nep-play {
    opacity: 1;
    transform: scale(1);
}

.nep-card.nep-has-play:focus-within .nep-badge {
    opacity: 0;
}

.nep-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.nep-play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .nep-badge {
        top: 7px;
        left: 7px;
        max-width: calc(100% - 14px);
        gap: 5px;
        padding: 4px 8px 4px 7px;
        font-size: 0.62rem;
    }

    .nep-flag {
        top: 10px;
        left: 10px;
        font-size: 0.64rem;
    }

    .nep-badge .nep-ep::before {
        margin-right: 4px;
    }

    .nep-badge .nep-dot {
        width: 5px;
        height: 5px;
    }
}

html.no-gpu .nep-badge,
html.no-gpu .nep-flag {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 16, 0.92);
}

html.reduce-motion .nep-badge,
html.reduce-motion .nep-flag {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .nep-badge,
    .nep-flag {
        transition: none;
    }
}
