.tab-content { display: none; }
.tab-content.active { display: block; }
.home-showcase { position: relative; margin: 14px 0 34px; padding-bottom: 30px; border-bottom: 1px solid #292729; }
.showcase-slider { position: relative; padding: 0 42px; }
.showcase-arrow { position: absolute; top: 42px; z-index: 3; display: grid; place-items: center; width: 32px; height: 86px; border: 0; border-radius: 5px; background: #1b1b1b; color: #bbb3b7; cursor: pointer; font-size: 13px; transition: color .2s ease, background .2s ease; }
.showcase-prev { left: 0; }
.showcase-next { right: 0; }
.showcase-arrow:hover { background: #292226; color: #fff; }
.showcase-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase-track { display: flex; gap: 12px; min-height: 202px; }
.showcase-loading { display: grid; place-items: center; width: 100%; color: var(--accent-color); }
.showcase-item { flex: 0 0 102px; min-width: 0; color: inherit; text-decoration: none; }
.showcase-poster { position: relative; display: block; width: 102px; height: 153px; overflow: hidden; border: 1px solid #2d2d2d; border-radius: 3px; background: #171717; transition: border-color .2s ease; }
.showcase-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.22); color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s ease; }
.showcase-play i { display: grid; place-items: center; width: 32px; height: 32px; padding-left: 2px; border-radius: 50%; background: var(--accent-color); }
.showcase-item:hover .showcase-poster { border-color: var(--accent-color); }
.showcase-item:hover .showcase-play { opacity: 1; }
.showcase-item strong { display: -webkit-box; min-height: 31px; margin-top: 6px; overflow: hidden; color: #d8d3d6; font-size: 11px; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.showcase-item small { display: block; margin-top: 2px; overflow: hidden; color: #756d71; font-size: 9.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.catalog-shelf { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border-color); }
.catalog-shelf-main, .shelf-controls, .content-tabs, .view-controls { display: flex; align-items: center; }
.catalog-shelf-main { width: 100%; justify-content: space-between; gap: 24px; }
.catalog-shelf-main .view-controls { margin-left: auto; }
.catalog-shelf-title, .catalog-shelf-title h1 { color: var(--text-primary); font-size: 23px; font-weight: 700; line-height: 1.2; }
.catalog-shelf-title h1 { display: flex; align-items: center; }
.catalog-shelf-title i { margin-right: 10px !important; }
.shelf-controls { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.content-tabs { gap: 22px; width: auto; padding: 0; }
.content-tab, .view-btn { border: 0; background: none; color: var(--text-secondary); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; }
.content-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-secondary); }
.content-tab:hover { color: #fff; }
.content-tab.active { color: #fff; border-bottom-color: var(--accent-color); }
.view-controls { gap: 2px; padding: 3px; border: 1px solid var(--border-color); border-radius: 6px; background: #151515; }
.view-btn { width: 34px; height: 34px; border-radius: 4px; }
.view-btn.active { color: #fff; background: var(--accent-color); }

.movies-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.movie-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #2a2a2a; border-radius: 5px; background: #111; cursor: pointer; transform: translateY(0); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.movie-card::before { display: none; }
.movie-card:hover { transform: translateY(-6px); border-color: var(--accent-color); box-shadow: 0 12px 26px rgba(0,0,0,.42), 0 0 0 1px rgba(237,79,145,.14); }
.movie-poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #111; }
.movie-poster::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .25s ease; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.018); }
.movie-card:hover .movie-poster::after { opacity: 1; }
.movie-preview { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--accent-color); box-shadow: 0 6px 18px rgba(0,0,0,.34); color: #fff; font-size: 16px; opacity: 0; transform: translate(-50%, -50%) scale(.82); transition: opacity .22s ease, transform .25s ease; }
.movie-preview i { margin-left: 3px; }
.movie-card:hover .movie-preview { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-rating { border: 1px solid rgba(255,255,255,.18) !important; border-radius: 4px !important; background: rgba(15,15,15,.9) !important; }
.card-rating i { color: #f6bd60; margin-right: 4px; }
.movie-info { display: flex; flex: 1; flex-direction: column; padding: 13px 13px 14px; }
.movie-title { min-height: 40px; overflow: hidden; color: var(--text-primary); font-size: 13.5px; font-weight: 600; line-height: 1.42; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .2s ease; }
.movie-card:hover .movie-title { color: #f5b1d1; }
.movie-meta { margin-top: auto; padding-top: 9px; border-top: 1px solid #272727; color: #aa98a3; font-size: 12px; }
.movies-grid.list-view { grid-template-columns: 1fr; }
.movies-grid.list-view .movie-card { display: grid; grid-template-columns: 116px 1fr; min-height: 160px; }
.movies-grid.list-view .movie-poster { height: 160px; }
.movies-grid.list-view .movie-info { display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.movies-grid.list-view .movie-title { min-height: auto; font-size: 16px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 0; }
.pagination-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border-color); border-radius: 50%; background: transparent; color: #c3bac0; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.pagination-btn:hover:not(.disabled) { color: #fff; border-color: var(--accent-color); background: rgba(237,79,145,.1); }
.pagination-btn.disabled { opacity: .28; cursor: default; }
.pagination-jump { display: inline-flex; align-items: center; gap: 7px; color: #968990; font-size: 12px; }
.pagination-jump input { width: 38px; height: 28px; border: 1px solid var(--border-color); border-radius: 4px; background: #141414; color: #fff; font-family: inherit; font-size: 12px; font-weight: 600; text-align: center; outline: none; }
.pagination-jump input:focus { border-color: var(--accent-color); }
.loading, .empty-state, .catalog-loader { grid-column: 1 / -1; min-height: 280px; display: grid; place-items: center; color: var(--text-secondary); }
.loading i, .empty-state i { color: var(--accent-color); font-size: 32px; }
.catalog-loader { align-content: center; gap: 12px; color: #9b8e95; font-size: 12px; }
.catalog-dino-scene { position: relative; width: 160px; height: 68px; }
.catalog-ground { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: rgba(255,255,255,.1); }
.catalog-dino { position: absolute; bottom: 2px; left: 50%; width: 56px; transform: translateX(-50%); image-rendering: pixelated; }
.catalog-dino-walk { animation: catalog-dino-steps .45s steps(1, end) infinite; }
.catalog-dino-still { animation: catalog-dino-steps .45s steps(1, end) infinite reverse; }
@keyframes catalog-dino-steps { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.empty-state { align-content: center; gap: 10px; }
.empty-refresh { border: 1px solid var(--border-color); border-radius: 4px; background: #181818; color: #ddd; padding: 9px 13px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 600; }
.empty-refresh:hover { border-color: var(--accent-color); color: #fff; }
@media (max-width: 1500px) { .movies-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1240px) { .movies-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .movies-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .home-showcase { margin-top: 10px; padding-bottom: 24px; } .showcase-slider { padding: 0 34px; } .showcase-arrow { width: 27px; } .showcase-item { flex-basis: 96px; } .showcase-poster { width: 96px; height: 144px; } .showcase-track { min-height: 194px; } .catalog-shelf, .catalog-shelf-main { align-items: flex-start; flex-direction: column; } .shelf-controls { justify-content: space-between; width: 100%; margin-left: 0; } .content-tabs { gap: 12px; max-width: 100%; } .content-tab { font-size: 12px; } .movies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .movies-grid.list-view .movie-card { grid-template-columns: 100px 1fr; min-height: 140px; } .movies-grid.list-view .movie-poster { height: 140px; } }
