/* Címlapok: the "A mozik műsorán" page (film cards with posters, trailer dialog). */
/* Light yellow for the premiere row (a dimmed amber in dark mode) */
:root{--mv-imdb:#f5c518; --mv-date-bg:#fff6d6; --mv-date-label:#8a6500}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){--mv-date-bg:#3a3320; --mv-date-label:#e3b94a} }
:root[data-theme="dark"]{--mv-date-bg:#3a3320; --mv-date-label:#e3b94a}

.mv-head{margin:20px 0 10px}
.mv-head h1{font:600 clamp(26px, 3vw, 34px)/1.15 var(--serif); margin:0}
.mv-sub{margin:4px 0 0; color:var(--muted)}

.mv-bar{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px}
.mv-sort{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted)}
.mv-sort[hidden]{display:none}
/* Own arrow, so it sits inside the box with the same padding as the text */
.mv-sort select{height:36px; padding:0 34px 0 12px; font-size:14px; color:var(--ink); border:1px solid var(--line); border-radius:8px; cursor:pointer;
  -webkit-appearance:none; appearance:none; background:var(--surface) no-repeat right 12px center / 12px 8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.mv-sort select:hover{border-color:var(--muted)}
.mv-genres{display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; margin:12px 0 0; padding-bottom:2px}
.mv-genres::-webkit-scrollbar{display:none}
.mv-chip{flex:0 0 auto; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:999px; padding:6px 14px; font-size:14px; cursor:pointer}
.mv-chip:hover{border-color:var(--muted)}
.mv-chip[aria-pressed="true"]{background:var(--accent); border-color:var(--accent); color:var(--accent-ink)}

.mv-list{margin-top:16px}
.mv-loading{padding:40px; text-align:center; color:var(--muted)}

/* Cards: a big poster on top, the details under it */
/* Masonry: each card as tall as its content; mozi.js sets how many 2px rows it spans (its height + the 22px gap) */
.mv-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows:2px; column-gap:18px; align-items:start}
.mv-card{display:flex; flex-direction:column; min-width:0; margin-bottom:22px; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow:hidden}
.mv-poster{position:relative; display:block; padding:0; border:0; background:var(--line); cursor:pointer; aspect-ratio:2/3; overflow:hidden}
.mv-poster:disabled{cursor:default}
.mv-poster img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s}
.mv-poster:not(:disabled):hover img{transform:scale(1.03)}
.mv-imdb{position:absolute; left:10px; top:10px; display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:6px;
  background:rgba(0,0,0,.78); color:#fff; font:600 14px/1 var(--sans)}
.mv-imdb b{background:var(--mv-imdb); color:#000; font:800 10px/1 var(--sans); padding:3px 4px; border-radius:3px; letter-spacing:.02em}
.mv-play{position:absolute; left:50%; top:50%; width:64px; height:64px; margin:-32px 0 0 -32px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:24px; padding-left:4px; box-sizing:border-box; opacity:0; transition:opacity .2s}
.mv-poster:hover .mv-play, .mv-poster:focus-visible .mv-play{opacity:1}

.mv-info{display:flex; flex-direction:column; gap:6px; padding:14px 14px 16px; flex:1}
.mv-info p{margin:0}
.mv-title{font:600 20px/1.2 var(--serif); margin:0}
.mv-orig{font-size:13px; color:var(--muted)}
.mv-orig:empty{display:none}
.mv-release{position:relative; display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:2px 10px;
  font-size:13px; color:var(--ink); background:var(--mv-date-bg); border-radius:8px; padding:9px 12px; margin:4px 0 !important}
.mv-rel-l{color:var(--mv-date-label); font-weight:600}
.mv-rel-d{text-align:right; white-space:nowrap}
.mv-release b{font-weight:500; color:var(--muted)}
.mv-release .vh{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}   /* for screen readers */
.mv-release.soon b{font-weight:600; color:var(--accent)}
.mv-meta{font-size:13px; color:var(--muted)}
.mv-fmts{position:absolute; left:0; right:0; bottom:0; display:flex; flex-wrap:wrap; gap:4px; padding:28px 10px 10px;
  background:linear-gradient(to top, rgba(0,0,0,.75), transparent); pointer-events:none}
.mv-fmts span{font:600 11px/1 var(--mono); color:#fff; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.55); border-radius:4px; padding:4px 6px; letter-spacing:.03em}
.mv-crew{display:flex; flex-direction:column; gap:4px; padding:8px 0; margin:2px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.mv-cast{font-size:14px}
.mv-cast span{color:var(--muted)}
/* Synopsis: three lines with the last ones fading out; a click shows the whole text */
.mv-syn{--lines:3; font-size:13px; line-height:1.5; color:var(--muted); max-height:calc(1.5em * var(--lines)); overflow:hidden; cursor:pointer;
  -webkit-mask-image:linear-gradient(to bottom, #000 40%, transparent); mask-image:linear-gradient(to bottom, #000 40%, transparent);
  border-radius:4px}
.mv-syn:hover{color:var(--ink)}
.mv-syn:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.mv-syn.open{max-height:none; -webkit-mask-image:none; mask-image:none; color:var(--ink)}
.mv-syn.short{-webkit-mask-image:none; mask-image:none; cursor:auto}
.mv-syn.short:hover{color:var(--muted)}
.mv-actions{display:flex; flex-wrap:wrap; gap:6px; padding-top:8px}
.mv-actions .btn{display:inline-flex; align-items:center; height:36px; padding:0 12px; font-size:14px; text-decoration:none; color:var(--ink)}
.mv-actions .btn.primary{color:var(--accent-ink)}
.mv-revs{border-top:1px solid var(--line); margin-top:6px; padding-top:10px}
.mv-revs-h{font:500 11px var(--mono); color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px !important}
.mv-revs ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.mv-revs li{display:flex; flex-direction:column; gap:1px}
/* The review's title as a clear link, the publication's name under it */
.mv-revs a{font-size:14px; line-height:1.3; color:var(--accent); text-decoration:underline; text-underline-offset:2px; text-decoration-thickness:1px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.mv-revs a:hover{text-decoration-thickness:2px}
.mv-revs a:visited{color:color-mix(in srgb, var(--accent) 70%, var(--ink))}
.mv-rev-site{font:500 11px var(--mono); color:var(--muted)}

/* Premiere calendar ("Hamarosan"): month headings, then each premiere day with its films */
.mv-cal{display:flex; flex-direction:column; gap:14px}
.mv-month{font:600 22px/1.2 var(--serif); margin:14px 0 0; padding-bottom:8px; border-bottom:2px solid var(--ink)}
.mv-month:first-child{margin-top:0}
.mv-day{display:grid; grid-template-columns:96px minmax(0, 1fr); gap:16px; align-items:start; padding:12px 0; border-bottom:1px solid var(--line)}
.mv-date{position:sticky; top:72px; display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; border-radius:10px;
  background:var(--mv-date-bg); text-align:center}
.mv-date em{font:600 11px var(--sans); font-style:normal; text-transform:uppercase; letter-spacing:.06em; color:var(--mv-date-label)}
.mv-date b{font:600 34px/1 var(--serif)}
.mv-date span{font:600 12px var(--sans); color:var(--mv-date-label)}
.mv-date small{font:400 11px/1.3 var(--mono); color:var(--muted)}
.mv-day.week .mv-date{outline:2px solid var(--mv-date-label); outline-offset:-2px}
.mv-day-films{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(360px, 1fr)); gap:12px}
.mv-cc{display:grid; grid-template-columns:110px minmax(0, 1fr); gap:14px; padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:12px}
.mv-cc-poster{position:relative; align-self:start; padding:0; border:0; border-radius:8px; overflow:hidden; aspect-ratio:2/3; background:var(--line); cursor:pointer}
.mv-cc-poster:disabled{cursor:default}
.mv-cc-poster img{display:block; width:100%; height:100%; object-fit:cover}
.mv-cc-poster .mv-play{width:40px; height:40px; margin:-20px 0 0 -20px; font-size:15px}
.mv-cc-poster:hover .mv-play, .mv-cc-poster:focus-visible .mv-play{opacity:1}
.mv-cc-info{display:flex; flex-direction:column; gap:5px; min-width:0}
.mv-cc-info p{margin:0}
.mv-cc-title{font:600 18px/1.2 var(--serif); margin:0}
.mv-cc-cast{font-size:13px}
.mv-cc-cast span{color:var(--muted)}
.mv-cc .mv-syn{--lines:2}
.mv-cc .mv-actions{padding-top:4px}
.mv-cc .mv-actions .btn{height:32px; padding:0 10px; font-size:13px}
.mv-cc-revs{font-size:12px; color:var(--muted)}
.mv-cc-revs a{color:var(--accent)}

/* Trailer dialog */
.mv-dialog{width:min(980px, calc(100vw - 24px)); padding:0; border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink);
  box-shadow:0 20px 60px rgba(0,0,0,.35)}
.mv-dialog::backdrop{background:rgba(10,14,20,.7)}
.mv-dlg-head{display:flex; align-items:center; gap:12px; padding:12px 14px}
.mv-dlg-head h2{flex:1; font:600 18px/1.2 var(--serif); margin:0}
.mv-dlg-x{flex:0 0 auto; width:34px; height:34px; border-radius:8px; border:1px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer}
.mv-yt{position:relative; aspect-ratio:16/9; background:#000}
.mv-yt iframe{position:absolute; inset:0; width:100%; height:100%; border:0}
.mv-yt-off{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:20px; text-align:center; color:#ddd}
.mv-yt-off a{color:#fff}
.mv-yt-cap{margin:0; padding:10px 14px 14px; font-size:13px; color:var(--muted)}

.mv-credit{margin:22px 0 0; font-size:12px; color:var(--muted)}
.mv-credit a{color:inherit}

/* Phones: poster on the left, details on the right; the actions and reviews under both */
@media (max-width:640px){
  /* Phones: the poster above the details, like on larger screens */
  .mv-card{margin-bottom:14px}
  .mv-info{padding:12px 14px 14px; gap:5px}
  .mv-title{font-size:18px}
  .mv-syn{--lines:4}
  .mv-imdb{left:6px; top:6px; font-size:13px; padding:3px 6px}
  .mv-play{opacity:.9; width:48px; height:48px; margin:-24px 0 0 -24px; font-size:18px}
  .mv-actions .btn{height:34px; padding:0 10px; font-size:13px}
  .mv-bar{flex-direction:column; align-items:stretch}
  .mv-bar .seg{display:flex}
  .mv-bar .seg button{flex:1; white-space:nowrap; padding:7px 8px; font-size:14px}
  /* Calendar: the date above its films, cards one per row */
  .mv-day{grid-template-columns:1fr; gap:10px}
  .mv-date{position:static; flex-direction:row; justify-content:flex-start; gap:10px; padding:8px 12px}
  .mv-date b{font-size:24px}
  .mv-day-films{grid-template-columns:1fr}
  .mv-cc{grid-template-columns:96px minmax(0, 1fr); gap:12px; padding:10px}
}
@media (prefers-reduced-motion: reduce){ .mv-poster img{transition:none} }

/* ---------- Skeleton placeholders while the list loads (static in the HTML, replaced by the real list) ---------- */
.sk-wrap{position:relative}
.sk-label{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.sk{display:block; position:relative; overflow:hidden; background:var(--line); border-radius:6px}
.sk::after{content:""; position:absolute; inset:0; transform:translateX(-100%);
  background:linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 55%, transparent), transparent);
  animation:sk-shine 1.4s ease-in-out infinite}
@keyframes sk-shine{to{transform:translateX(100%)}}
.sk-line{height:12px}
.sk-title{height:20px; width:75%}
.sk-btn{height:32px; width:96px; border-radius:8px}
.sk-row{display:flex; gap:6px; flex-wrap:wrap}
.sk-poster{aspect-ratio:2/3; border-radius:0}
/* cinema cards */
.sk-grid{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:22px 18px; align-items:start}
.sk-grid .mv-card{margin:0}
.sk-grid .mv-info{gap:9px}
/* calendar cards */
.sk-cc .mv-cc-info{gap:9px}
.sk-cc .sk-poster{border-radius:8px}
.sk-date{height:84px; border-radius:10px}
.sk-month{height:26px; width:180px; margin-bottom:10px}
/* streaming "Felkapott" row */
.sk-hot .st-hot-item .sk-poster{border-radius:10px}
.sk-hot .sk-h{height:24px; width:min(420px, 80%); margin-bottom:14px}
@media (max-width:640px){
  .sk-date{height:42px}
  .sk-hot .sk-h{margin-left:14px}
}
@media (prefers-reduced-motion: reduce){ .sk::after{animation:none; display:none} }
