.ts-top-movies {
    --cinema-text: #f5f7ff;
    --cinema-muted: #a8b7d0;
    --cinema-accent: #66e5c6;
    --cinema-line: rgb(166 185 215 / 18%);
    --cinema-panel: #081c38;
    margin-top: 130px;
    color: var(--cinema-text);
}
.ts-top-movies.ts-top-movies--convers { margin-top: 20px; }
.ts-top-movies *, .ts-top-movies *::before, .ts-top-movies *::after { box-sizing: border-box; }
.ts-top-movies__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ts-top-movies__heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ts-top-movies__mark { display: grid; place-items: center; flex: 0 0 36px; height: 44px; color: var(--cinema-accent); }
.ts-top-movies__mark svg { width: 26px; height: 26px; }
.ts-top-movies .ts-top-movies__title { margin: 0; color: var(--cinema-text); font-size: clamp(23px, 2.2vw, 30px); font-weight: 750; line-height: 1.25; letter-spacing: -.02em; }
.ts-top-movies__subtitle { margin: 4px 0 0; color: var(--cinema-muted); font-size: 13px; line-height: 1.5; }
.ts-top-movies__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ts-top-movies .ts-top-movies__all { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 8px 12px; color: var(--cinema-accent); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: 12px; }
.ts-top-movies .ts-top-movies__all:hover { color: var(--cinema-text); background: rgb(102 229 198 / 9%); }
.ts-top-movies__all svg { width: 16px; height: 16px; }
.ts-top-movies .ts-top-movies__nav { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: rgb(166 185 215 / 7%); color: var(--cinema-text); cursor: pointer; }
.ts-top-movies .ts-top-movies__nav:hover:not(:disabled) { background: var(--cinema-accent); border-color: var(--cinema-accent); color: #052b23; }
.ts-top-movies .ts-top-movies__nav:disabled { opacity: .35; cursor: default; }
.ts-top-movies__nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ts-top-movies__screen {
    position: relative;
    padding: 0;
}
.ts-top-movies__list { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 5px 3px 3px; scroll-snap-type: x mandatory; scroll-padding-inline: 3px; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.ts-top-movies__list::-webkit-scrollbar { display: none; }
.ts-top-movies .ts-top-movie { display: block; flex: 0 0 calc((100% - 80px) / 6); min-width: 0; color: var(--cinema-text); text-decoration: none; scroll-snap-align: start; border-radius: 12px; }
.ts-top-movies .ts-top-movie:hover { color: var(--cinema-text); text-decoration: none; }
.ts-top-movies .ts-top-movie__poster { display: block; position: relative; width: 100%; aspect-ratio: 1494 / 1920; overflow: hidden; border: 0; border-radius: 12px; background: #132a46; box-shadow: 0 5px 12px rgb(0 0 0 / 15%); transition: transform .2s ease; }
.ts-top-movie__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ts-top-movie__showtimes { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 26px 12px 12px; background: linear-gradient(transparent, rgb(0 11 29 / 88%)); color: #fff; font-size: 12px; line-height: 1.4; font-weight: 700; opacity: 0; transition: opacity .2s ease; }
.ts-top-movie__showtimes svg { flex: 0 0 20px; width: 20px; height: 20px; }
.ts-top-movie:hover .ts-top-movie__poster, .ts-top-movie:focus-visible .ts-top-movie__poster { border-color: var(--cinema-accent); transform: translateY(-3px); }
.ts-top-movie:hover img { transform: scale(1.025); }
.ts-top-movie:hover .ts-top-movie__showtimes, .ts-top-movie:focus-visible .ts-top-movie__showtimes { opacity: 1; }
.ts-top-movies .ts-top-movie__name { display: -webkit-box; overflow: hidden; min-height: 2.9em; margin: 10px 2px 0; color: var(--cinema-text); font-size: 14px; line-height: 1.45; font-weight: 650; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ts-top-movies .ts-top-movie:hover .ts-top-movie__name { color: var(--cinema-accent); }
.ts-top-movies .ts-top-movies__track { height: 3px; margin: 0 3px; overflow: hidden; border-radius: 3px; background: var(--cinema-line); }
.ts-top-movies .ts-top-movies__thumb { display: block; height: 100%; border-radius: inherit; background: var(--cinema-accent); }
.ts-top-movies :focus-visible { outline: 2px solid var(--cinema-accent); outline-offset: 2px; }
html.white-mode .ts-top-movies { --cinema-text: #18283e; --cinema-muted: #52627a; --cinema-accent: #126b56; --cinema-line: rgb(67 92 128 / 20%); --cinema-panel: #edf1f8; }
html.white-mode .ts-top-movies .ts-top-movies__all { color: var(--cinema-accent); }
html.white-mode .ts-top-movies .ts-top-movies__all:hover { color: #0b5745; background: rgb(18 107 86 / 7%); }
html.white-mode .ts-top-movies .ts-top-movie__poster { background: #dce4f0; }
html.white-mode .ts-top-movies .ts-top-movies__nav { background: #fff; color: var(--cinema-text); border-color: var(--cinema-line); }
html.white-mode .ts-top-movies .ts-top-movies__nav:hover:not(:disabled) { background: var(--cinema-accent); color: #fff; }
@media (max-width: 1199px) { .ts-top-movies .ts-top-movie { flex-basis: calc((100% - 48px) / 4); } }
@media (max-width: 767px) {
    .ts-top-movies { margin-top: 110px; }
    .ts-top-movies__head { gap: 8px; margin-bottom: 12px; }
    .ts-top-movies__heading { gap: 8px; }
    .ts-top-movies__mark { flex-basis: 30px; height: 34px; border: 0; background: transparent; }
    .ts-top-movies__mark svg { width: 26px; height: 26px; }
    .ts-top-movies .ts-top-movies__title { font-size: 21px; }
    .ts-top-movies__subtitle, .ts-top-movies .ts-top-movies__nav { display: none; }
    .ts-top-movies .ts-top-movies__all { padding: 8px 0 8px 8px; font-size: 12px; gap: 4px; }
    .ts-top-movies__screen { padding: 0; }
    .ts-top-movies__list { gap: 11px; }
    .ts-top-movies .ts-top-movie { flex-basis: min(43vw, 180px); }
    .ts-top-movies .ts-top-movie__name { font-size: 13px; margin-top: 8px; }
    .ts-top-movie__showtimes { opacity: 1; padding: 22px 9px 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-top-movie__poster, .ts-top-movie__poster img, .ts-top-movie__showtimes { transition: none !important; }
    .ts-top-movie:hover .ts-top-movie__poster, .ts-top-movie:focus-visible .ts-top-movie__poster, .ts-top-movie:hover img { transform: none; }
}
