.row { margin: 3vw 0; position: relative; z-index: 2; }
.row-title { font-size: 1.4vw; margin-left: 4%; margin-bottom: 0.5vw; font-weight: bold; color: #e5e5e5; }
.row-posters {
    display: flex;
    overflow-x: scroll;
    overflow-y: visible;
    padding: 28px 4%;
    gap: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 4%;
}
.row-posters::-webkit-scrollbar { display: none; }
.row-posters:focus { outline: none; }
.row-posters:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }

.row-arrow {
    position: absolute;
    top: 0;
    height: 100%;
    width: 4%;
    min-width: 48px;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    user-select: none;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
}
.row-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 70px;
    background: rgba(20, 20, 20, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: background 0.18s ease;
    pointer-events: none;
}
.row-arrow span { font-size: 26px; line-height: 1; position: relative; z-index: 1; }
.row-arrow.left  { left: 0; }
.row-arrow.right { right: 0; }
.row:hover > .row-arrow,
.row--focused > .row-arrow    { opacity: 1; pointer-events: auto; }
.row-arrow:hover::before      { background: rgba(229, 9, 20, 0.9); }
.row-arrow:focus-visible      { opacity: 1; pointer-events: auto; outline: none; }
.row-arrow:focus-visible::before { outline: 2px solid var(--primary-color); background: rgba(229, 9, 20, 0.9); }
.row-arrow.row-arrow--hidden  { opacity: 0 !important; pointer-events: none !important; }

.poster-wrapper {
    position: relative;
    flex: 0 0 auto;
    width: var(--poster-width);
    scroll-snap-align: start;
}
.poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; cursor: pointer; }
@media (hover: hover) { .poster-wrapper:has(.home-card):hover { z-index: 500; } }

.home-card {
    position: relative;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.35s cubic-bezier(0.2, 1, 0.2, 1), box-shadow 0.35s ease;
    transform-origin: center;
    scroll-snap-align: start;
}
@media (hover: hover) {
    .home-card:hover {
        transform: scale(1.18);
        box-shadow: 0 12px 30px rgba(0,0,0,0.75);
        z-index: 500;
        transition-delay: 0.08s;
    }
}
.home-card:focus {
    outline: none;
    transform: scale(1.18);
    box-shadow: 0 0 0 3px var(--primary-color), 0 12px 30px rgba(0,0,0,0.75);
    z-index: 500;
}
.home-card:focus .home-card-overlay { opacity: 1; }

.home-card-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.home-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0) 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 9px;
    gap: 6px;
}
@media (hover: hover) { .home-card:hover .home-card-overlay { opacity: 1; } }
.home-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.68rem; }
.home-card-type {
    background: var(--primary-color);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.home-card-year { color: #bbb; }
.home-card-actions { display: flex; gap: 4px; }

.top10-wrapper {
    width: 240px;
    display: flex;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.top10-number {
    font-size: 13rem;
    font-weight: 900;
    color: #141414;
    -webkit-text-stroke: 4px #595959;
    line-height: 1;
    position: absolute;
    left: 0;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
.top10-wrapper .poster { width: 130px; margin-left: 110px; position: relative; z-index: 1; }
.top10-wrapper .home-card { width: 130px !important; margin-left: 110px !important; flex-shrink: 0; position: relative; z-index: 1; }

.genre-card-row {
    flex: 0 0 auto;
    width: 250px; height: 120px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    scroll-snap-align: start;
}
.genre-card-row::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); }
.genre-card-row span { position: relative; z-index: 1; }
@media (hover: hover) { .genre-card-row:hover { transform: scale(1.1); } }
.genre-card-row:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    transform: scale(1.1);
}

.poster-skeleton {
    flex: 0 0 auto;
    width: var(--poster-width);
    aspect-ratio: 2/3;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}

.rc-btn {
    flex: 1;
    padding: 5px 0;
    border: none;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s;
}
.rc-btn-play { background: #fff; color: #000; }
.rc-btn-play:hover { background: rgba(255,255,255,0.82); }
.rc-btn-info { background: rgba(109,109,110,0.65); color: #fff; }
.rc-btn-info:hover { background: rgba(109,109,110,0.9); }
.rc-btn:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

@media (max-width: 768px) {
    .row-arrow { display: none !important; }
}