/* GRID */
.grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px}
.movie-card{
  background:linear-gradient(180deg, rgba(18,25,42,.98), rgba(10,14,26,.98));
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position:relative;
}
.movie-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:rgba(255,255,255,.12)}
.movie-poster{aspect-ratio:2/3;background:#020617;position:relative}
.movie-poster::after{content:"";position:absolute;inset:auto 0 0 0;height:44%;background:linear-gradient(180deg,transparent,rgba(5,9,18,.26),rgba(5,9,18,.72));pointer-events:none}
.movie-poster img{width:100%;height:100%;object-fit:cover}
.movie-open-page{position:absolute;top:12px;right:12px;z-index:3;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(7,12,22,.78);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#29b6f6;text-decoration:none;box-shadow:0 10px 24px rgba(0,0,0,.22);transition:transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease}
.movie-open-page:hover,.movie-open-page:focus-visible{transform:translateY(-2px);border-color:rgba(41,182,246,.5);background:rgba(10,18,32,.94);box-shadow:0 14px 28px rgba(0,0,0,.28)}
.movie-open-page svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.movie-body{padding:16px;display:flex;flex-direction:column;min-height:0;gap:10px}
.movie-title{font-size:16px;font-weight:800;line-height:1.2;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:-.01em}
.movie-overview{font-size:12px;line-height:1.65;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:58px}
.movie-footer{display:grid;grid-template-columns:auto auto 1fr;gap:10px;align-items:center;min-height:34px}
.badge{background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:999px;padding:6px 10px;font-size:12px;color:var(--text);white-space:nowrap}
.badge.muted{color:var(--muted)}
.card-controls{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.mini-select{height:32px;padding:0 8px;border-radius:10px;border:1px solid var(--border);background:var(--panel-2);color:var(--text);font-size:12px;outline:none;max-width:120px}
.mini-select:focus{border-color:rgba(255,77,90,.45);box-shadow:0 0 0 3px rgba(255,77,90,.10)}

.bottom-pager{margin-top:22px;display:flex;align-items:center;justify-content:center;gap:12px}
.pager-info{color:var(--muted);font-size:12px}.pager-info strong{color:var(--text)}

.reco{margin:8px 0 22px;padding:18px;border-radius:26px;border:1px solid var(--border);background:linear-gradient(180deg, rgba(14,20,36,.84), rgba(8,12,22,.92));box-shadow:var(--shadow-md)}
.reco-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 12px}
.reco-title{font-weight:800;font-size:18px}
.reco-sub{font-size:12px;color:var(--muted)}
.reco-row{display:flex;gap:16px;overflow:auto;padding-bottom:8px;scroll-snap-type:x mandatory}
.reco-row .movie-card{min-width:210px;scroll-snap-align:start}

.movie-actions{margin-top:auto;display:flex;align-items:center;gap:8px;min-width:0;width:100%}
.movie-actions > .mini-select{height:32px;min-width:0;width:auto;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.movie-actions > .mini-select:first-child{flex:1 1 0;min-width:0;padding:0 10px}
.movie-actions > .mini-select:nth-child(2){flex:0 0 60px;width:60px;min-width:60px;padding:0;text-align:center}
.movie-actions > .mini-select:nth-child(3){flex:0 0 44px;width:44px;min-width:44px;padding:0;text-align:center;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-position:center}
.movie-actions > .mini-select:nth-child(2){appearance:none;-webkit-appearance:none;-moz-appearance:none}
