/* Movies catalog — nt-* design system */

.nt-movies {
    position: relative;
    padding-bottom: 48px;
}

.nt-movies::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 10% 0%, color-mix(in oklab, var(--nt-accent) 10%, transparent), transparent 55%),
        radial-gradient(ellipse 55% 40% at 90% 12%, color-mix(in oklab, var(--nt-vip) 8%, transparent), transparent 50%);
    z-index: 0;
}

.nt-movies > .nt-container {
    position: relative;
    z-index: 1;
}

.nt-movies-head {
    margin-bottom: 20px;
    padding: 28px 24px;
}

.nt-movies-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nt-accent-hover);
    background: var(--nt-accent-soft);
    border: 1px solid color-mix(in oklab, var(--nt-accent) 30%, transparent);
    border-radius: 999px;
}

.nt-movies-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--nt-text);
}

.nt-movies-lead {
    margin: 10px 0 0;
    max-width: 62ch;
    color: var(--nt-muted);
    font-size: 15px;
    line-height: 1.55;
}

.nt-movies-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: var(--nt-radius-lg);
    background: var(--nt-glass);
    border: 1px solid var(--nt-glass-border);
    box-shadow: var(--nt-softshadow);
}

.nt-movies-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nt-movies-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nt-text);
    background: color-mix(in oklab, var(--nt-elevated) 85%, transparent);
    border: 1px solid var(--nt-border);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.nt-movies-chip:hover,
.nt-movies-chip.is-active {
    color: var(--nt-text);
    border-color: color-mix(in oklab, var(--nt-accent) 40%, var(--nt-border));
    background: var(--nt-accent-soft);
    text-decoration: none;
    transform: translateY(-1px);
}

.nt-movies-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nt-movies-count {
    font-size: 13px;
    color: var(--nt-muted);
    white-space: nowrap;
}

.nt-movies-sort select {
    appearance: none;
    background: var(--nt-elevated);
    border: 1px solid var(--nt-border);
    border-radius: 999px;
    color: var(--nt-text);
    font-size: 13px;
    padding: 9px 32px 9px 14px;
    cursor: pointer;
}

.nt-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Video card — wrapper only; visual card is .nt-video-card-link (avoids double border vs style2.css) */
.nt-movies .nt-video-card {
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}

.nt-movies .nt-video-card:hover {
    transform: none;
    box-shadow: none;
}

.nt-video-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: var(--nt-glass);
    border: 1px solid var(--nt-glass-border);
    border-radius: var(--nt-radius-lg);
    overflow: hidden;
    box-shadow: var(--nt-softshadow);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nt-video-card-link:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklab, var(--nt-accent) 28%, var(--nt-border));
    box-shadow: 0 12px 36px rgba(0, 0, 0, .5), var(--nt-glow-accent);
    text-decoration: none;
    color: inherit;
}

.nt-video-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--nt-elevated);
}

.nt-video-card-cover,
.nt-video-card-preview,
.nt-video-card-preview-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease;
}

.nt-video-card-preview,
.nt-video-card-preview-video {
    opacity: 0;
    display: none;
}

.nt-video-card-duration,
.nt-video-card-series {
    position: absolute;
    z-index: 4;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

.nt-video-card-duration {
    right: 10px;
    bottom: 10px;
    left: auto;
    background: rgba(0, 0, 0, .88);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .14);
    font-variant-numeric: tabular-nums;
}

.nt-video-card-series {
    top: 10px;
    left: 10px;
    background: var(--nt-accent);
    color: #fff;
    border: 1px solid color-mix(in oklab, #fff 18%, var(--nt-accent));
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.nt-video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .45) 100%);
}

.nt-video-card-play svg {
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--nt-accent) 88%, #000);
    color: #fff;
    box-shadow: 0 0 20px color-mix(in oklab, var(--nt-accent) 50%, transparent);
}

.nt-video-card-link:hover .nt-video-card-play {
    opacity: 1;
}

.nt-video-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nt-video-card-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 650;
    color: var(--nt-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nt-video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--nt-muted);
}

.nt-video-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nt-video-card-meta svg {
    width: 13px;
    height: 13px;
    color: var(--nt-accent);
}

.nt-movies-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--nt-muted);
}

.nt-movies-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.nt-movies-pagination a,
.nt-movies-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: var(--nt-text);
    background: color-mix(in oklab, var(--nt-elevated) 80%, transparent);
    border: 1px solid var(--nt-border);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.nt-movies-pagination a:hover {
    border-color: color-mix(in oklab, var(--nt-accent) 40%, var(--nt-border));
    color: var(--nt-accent-hover);
}

.nt-movies-pagination .is-active {
    color: #fff;
    background: var(--nt-accent);
    border-color: var(--nt-accent);
}

.nt-movies-pagination .is-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.nt-movies-pagination .is-nav {
    min-width: 40px;
    padding: 0;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .nt-movies-head {
        padding: 20px 16px;
    }

    .nt-movies-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .nt-movies-chips {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -2px;
        padding: 2px 2px 4px;
    }

    .nt-movies-chips::-webkit-scrollbar {
        display: none;
    }

    .nt-movies-chip {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 12px;
    }

    .nt-movies-toolbar-right {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding-top: 2px;
        border-top: 1px solid color-mix(in oklab, var(--nt-border) 70%, transparent);
    }

    .nt-movies-count {
        font-size: 12px;
        min-width: 0;
    }

    .nt-movies-sort {
        flex: 0 1 auto;
        min-width: 0;
    }

    .nt-movies-sort select {
        max-width: 100%;
        min-width: 128px;
    }

    .nt-movies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .nt-video-card-title {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .nt-movies-toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .nt-movies-sort select {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nt-video-card-link:hover {
        transform: none;
    }
}
