/* Movies tab (movies.js) — genre chips, poster grid, theater view */

#mvBrowse.hidden, #mvWatch.hidden { display: none; }

.mv-app { color: var(--neo-text, #f5f5f7); }
.mv-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.mv-search {
    display: flex; align-items: center; gap: 10px; padding: 10px 16px;
    background: var(--neo-surface, rgba(22,22,28,.55));
    border: 1px solid var(--neo-line-hi, rgba(255,255,255,.16)); border-radius: 999px;
}
.mv-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 15px; }

.mv-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mv-chips::-webkit-scrollbar { display: none; }
.mv-chip {
    flex: none; border: 1px solid var(--neo-line, rgba(255,255,255,.08)); background: rgba(255,255,255,.05);
    color: inherit; padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer;
}
.mv-chip:hover { background: rgba(255,255,255,.1); }
.mv-chip.active { background: #f5f5f7; color: #0a0a0d; border-color: transparent; font-weight: 600; }

.mv-section { margin-bottom: 26px; }
.mv-section h2 { font-size: 19px; margin: 0 0 12px; }
.mv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#mvCount { font-size: 13px; color: var(--neo-dim, rgba(235,235,245,.6)); }

.mv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 14px; }
.mv-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; padding-bottom: 6px; }

.mv-card { background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.mv-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #15151c; }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--neo-ease, ease); }
.mv-card:hover .mv-thumb img { transform: scale(1.05); }
.mv-dur {
    position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
    background: rgba(0,0,0,.78); font-size: 12px; font-weight: 600;
}
.mv-play {
    position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: rgba(255,255,255,.9); color: #0a0a0d; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.mv-card:hover .mv-play { opacity: 1; transform: scale(1); }
.mv-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.mv-prog div { height: 100%; background: #e50914; }
.mv-name { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv-src { font-size: 12px; color: var(--neo-dim, rgba(235,235,245,.6)); margin-top: 2px; }
.mv-status { grid-column: 1 / -1; padding: 40px 10px; text-align: center; color: var(--neo-dim, rgba(235,235,245,.6)); }

.mv-more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.mv-more, .mv-back {
    border: 1px solid var(--neo-line-hi, rgba(255,255,255,.16)); background: rgba(255,255,255,.06); color: inherit;
    padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mv-more:hover, .mv-back:hover { background: rgba(255,255,255,.12); }

.mv-back { margin-bottom: 14px; }
.mv-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mv-player iframe, .mv-player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-info { margin-top: 16px; }
.mv-info h2 { margin: 0 0 4px; font-size: 22px; }
.mv-sub { font-size: 13px; color: var(--neo-dim, rgba(235,235,245,.6)); }
.mv-info p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--neo-dim, rgba(235,235,245,.6)); white-space: pre-line; }

@media (max-width: 600px) {
    .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .mv-row { grid-auto-columns: 70%; }
}
