/* Mobilskalet (js/mobile.js, js/m-player.js, MOBIL-PLAN.md 2026-10-23).

   Galler bara html[data-mobile] (telefon i webbklienten, js/web.js) och
   klasser som bara mobilskalet anvander - TV-apparaterna traffas aldrig.
   Darfor far filen anvanda flex-gap och backdrop-filter, som TV-reglerna
   i style.css undviker (telefoner fran 2021 och senare har dem).

   Utseendet foljer iOS och UHF (JB:s skarmbilder): svart botten, ytor i
   iOS-graskalan (#1a1c1f, #24272b), sekundar text rgba(235,235,245,.6),
   glasknappar med ljus kant och hojdpunkt, ljusa logotyprutor.

   Matten ar layoutpixlar pa en yta som ar 640 bred staende (1280
   liggande) och skalas till telefonen: pa en 375 px-telefon ar 1 CSS-
   pixel ~1,7 har. Text minst ~26 (15 pt), tryckytor minst ~76 (44 pt). */

.m-shell {
  width: var(--stage-w); height: var(--stage-h);
  overflow: hidden;
  background: #111315;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.m-shell button, .m-pui button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-shell .icon, .m-pui .icon { display: inline-flex; }
.m-shell .icon svg, .m-pui .icon svg { width: 100%; height: 100%; }
.m-flex { flex: 1; }

/* Glas: genomskinligt, suddigt bakom, ljus kant och en hojdpunkt overst. */
.m-glass, .m-circle, .m-title-pill, .m-search, .m-tabbar {
  background: rgba(58,58,64,.52);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 24px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
}

/* ---------- topp ---------- */

.m-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: 18px 28px 14px;
  transition: background-color .25s;
}
.m-header.solid {
  background: rgba(17,19,21,.84);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
}
.m-bar { display: flex; align-items: center; height: 66px; gap: 14px; }
.m-title-pill {
  height: 64px; padding: 0 30px; line-height: 64px; box-sizing: border-box;
  border-radius: 32px;
  font-size: 34px; font-weight: 700; letter-spacing: -.5px;
}
.m-sub-title {
  flex: 1; min-width: 0; text-align: center;
  font-size: 32px; font-weight: 700; letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-circle, .m-circle-gap { flex: none; width: 64px; height: 64px; box-sizing: border-box; }
.m-circle {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; padding: 0;
}
.m-circle .icon { width: 30px; height: 30px; }
.m-search {
  display: flex; align-items: center; gap: 14px;
  height: 62px; margin-top: 14px; padding: 0 24px; box-sizing: border-box;
  border-radius: 31px;
  color: rgba(235,235,245,.6); font-size: 28px;
}
.m-search .icon { width: 28px; height: 28px; flex: none; }

/* ---------- rullande yta och flikrad ---------- */

.m-scroll {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 186px 0 60px;
}
.m-scroll.sub { padding-top: 108px; }
.m-scroll.flush { padding-top: 0; }
.m-scroll.with-tabs { padding-bottom: 176px; }
.m-scroll::-webkit-scrollbar, .m-hscroll::-webkit-scrollbar, .m-chips::-webkit-scrollbar, .m-pbelow::-webkit-scrollbar { display: none; }

.m-tabbar {
  position: absolute; left: 0; right: 0; bottom: 24px; z-index: 6;
  width: calc(100% - 72px); max-width: 680px; margin: 0 auto; box-sizing: border-box;
  height: 104px; padding: 6px;
  display: flex;
  border-radius: 52px;
  background: rgba(44,44,48,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 40px rgba(0,0,0,.55);
}
.m-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 46px; background: transparent;
  color: #fff; font-size: 18px; font-weight: 600;
}
.m-tab .icon { width: 36px; height: 36px; }
.m-tab.on { color: #35c6ff; background: rgba(0,0,0,.32); }

/* ---------- sektioner och kort ---------- */

.m-section { margin-top: 48px; }
.m-scroll > .m-section:first-child { margin-top: 14px; }
.m-section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 30px; margin-bottom: 18px; }
.m-section-title { font-size: 38px; font-weight: 700; letter-spacing: -.4px; color: rgba(235,235,245,.6); }
.m-more { border: 0; background: none; color: #fff; font-size: 29px; font-weight: 600; padding: 8px 0 8px 20px; }
.m-note { color: rgba(235,235,245,.6); font-size: 26px; padding: 10px 30px; }

.m-hscroll {
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 30px;
  scrollbar-width: none;
}
.m-card { flex: none; width: 210px; }
.m-card-img {
  position: relative; height: 315px;
  border-radius: 20px; overflow: hidden;
  background: #1a1c1f center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.m-card-title {
  margin-top: 12px; padding: 0 4px; font-size: 25px; line-height: 31px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-card-sub { padding: 0 4px; font-size: 23px; line-height: 29px; color: rgba(235,235,245,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rating {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 12px;
  background: rgba(30,30,32,.72); color: #fff; font-size: 22px; font-weight: 600;
}
.m-seen {
  position: absolute; top: 12px; left: 12px;
  width: 40px; height: 40px; line-height: 40px; border-radius: 50%;
  background: #35c6ff; color: #000; font-size: 24px; font-weight: 700; text-align: center;
}
.m-wcard { flex: none; width: 420px; }
.m-wcard-img {
  position: relative; height: 236px;
  border-radius: 20px; overflow: hidden;
  background: #1a1c1f center 25% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
}
.m-wcard-img .m-bar-track { position: absolute; left: 22px; right: 22px; bottom: 16px; margin: 0; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); }
.m-wcard-img .m-bar-fill { background: #fff; }
.m-left {
  position: absolute; right: 14px; top: 14px;
  padding: 4px 12px; border-radius: 12px;
  background: rgba(30,30,32,.72); font-size: 21px; font-weight: 600;
}
.m-ccard { flex: none; width: 420px; }
.m-ccard-logo { height: 236px; border-radius: 20px; }

.m-bar-track { height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.18); }
.m-bar-fill { height: 100%; background: #35c6ff; }

/* Logotyprutor: ljusa som i UHF, loggan hel och centrerad. Utan logga:
   namnet i kanalens farg (hueBg i js/mobile.js satter bakgrunden). */
.m-logo, .m-glogo, .m-ccard-logo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background-color: #f2f2f7;
  color: #fff;
}
.m-logo-img { position: absolute; top: 16%; bottom: 16%; left: 14%; right: 14%; background: center / contain no-repeat; }
.m-logo-name {
  padding: 8px 14px; text-align: center;
  font-size: 23px; font-weight: 700; line-height: 28px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- tablarader ---------- */

.m-guide { display: flex; flex-direction: column; gap: 14px; padding: 0 30px; }
.m-vguide, .m-vgrid, .m-veps { margin: 0 30px; }
.m-grow { position: relative; height: 114px; }
.m-glogo {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 176px; height: 114px; border-radius: 22px;
  box-shadow: 4px 0 14px rgba(0,0,0,.35);
}
.m-gtrack { position: absolute; left: 150px; right: 0; top: 0; bottom: 0; overflow: hidden; }
.m-prog {
  position: absolute; top: 0; bottom: 0;
  box-sizing: border-box; padding: 16px 22px;
  border-radius: 22px; overflow: hidden;
  background: #1a1c1f;
}
.m-prog.first { padding-left: 50px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.m-prog-past { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.09); }
.m-prog.past { opacity: .75; }
.m-prog.past:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.09); }
.m-prog-top, .m-prog-title { position: relative; }
.m-prog-top { font-size: 21px; color: rgba(235,235,245,.6); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.m-prog-ch { margin-right: 14px; font-weight: 600; letter-spacing: .2px; }
.m-prog-title {
  margin-top: 6px; font-size: 29px; font-weight: 500; color: #fff; letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.m-prog-title.dim { color: rgba(235,235,245,.45); font-size: 25px; }
.m-grow.playing .m-glogo:after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.28); }
.m-playing {
  position: absolute; left: 50%; top: 50%; z-index: 1; margin: -30px 0 0 -30px;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.m-playing .icon { width: 26px; height: 26px; margin-left: 4px; }

/* ---------- kategorier ---------- */

.m-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 30px; }
html[data-landscape] .m-cats { grid-template-columns: 1fr 1fr 1fr 1fr; }
.m-cat {
  min-height: 122px; box-sizing: border-box; padding: 26px 28px;
  border-radius: 24px; background: #1a1c1f;
  font-size: 28px; font-weight: 600; line-height: 34px; color: #fff;
  word-break: break-word;
}
.m-cat.pinned { background: #24272b; }
.m-cat-star { color: #ffc94d; margin-right: 10px; }

.m-filter { margin: 4px 30px 10px; }
.m-filter-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  color: #fff; font-size: 30px; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  -webkit-user-select: text; user-select: text;
}
.m-filter-input::-webkit-input-placeholder { color: rgba(235,235,245,.6); }
.m-count { color: rgba(235,235,245,.6); font-size: 24px; padding: 8px 30px 18px; }
.m-vgrid .m-card { width: auto; }
.m-vgrid .m-card-img { height: auto; padding-top: 150%; }
.m-vgrid .m-card-img .hue-tile-name { position: absolute; top: 40%; left: 8px; right: 8px; }

/* ---------- hem: hjalteyta och valkomst ---------- */

.m-hero { position: relative; height: 820px; }
.m-hero-art { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: center 20% / cover no-repeat; }
.m-hero-shade {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.15) 52%, rgba(17,19,21,.85) 85%, #111315 100%);
}
.m-hero-text { position: absolute; left: 30px; right: 30px; bottom: 26px; text-align: center; }
.m-chip {
  display: inline-block; padding: 6px 18px; border-radius: 14px;
  background: rgba(30,30,32,.6); border: 1px solid rgba(255,255,255,.18);
  font-size: 22px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.m-hero-title {
  margin: 16px 0 8px; font-size: 62px; font-weight: 800; line-height: 1.04; letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.m-hero-facts { font-size: 27px; color: rgba(255,255,255,.85); }
.m-hero-btns { display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.m-hero-btns .m-btn { flex: 1; padding: 0 20px; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 76px; padding: 0 34px; border: 0; border-radius: 38px; box-sizing: border-box;
  font-size: 28px; font-weight: 600; white-space: nowrap;
}
.m-btn .icon { width: 26px; height: 26px; }
.m-btn.m-primary { background: #fff; color: #000; }
.m-btn.m-ghost {
  background: rgba(58,58,64,.52); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
}
.m-btn.wide { display: flex; width: 100%; }

.m-welcome { padding: 40px 30px; }
.m-welcome-title { font-size: 46px; font-weight: 800; letter-spacing: -.6px; }
.m-welcome-text { margin: 12px 0 30px; font-size: 27px; line-height: 1.4; color: rgba(235,235,245,.6); }
.m-start {
  display: flex; align-items: center; gap: 22px;
  height: 124px; margin-bottom: 16px; padding: 0 30px;
  border-radius: 26px; background: #1a1c1f;
  font-size: 32px; font-weight: 600;
}
.m-start .icon { width: 46px; height: 46px; color: #35c6ff; }

/* ---------- detaljsidan ---------- */

.m-dhero { position: relative; height: 680px; overflow: hidden; }
.m-dhero-bg {
  position: absolute; top: -60px; left: -60px; right: -60px; bottom: -60px;
  background: center / cover no-repeat;
  -webkit-filter: blur(36px) brightness(.55) saturate(1.3); filter: blur(36px) brightness(.55) saturate(1.3);
}
.m-dhero-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 40%, #111315 100%); }
.m-dposter {
  position: absolute; left: 50%; top: 130px; margin-left: -155px;
  width: 310px; height: 465px; border-radius: 22px;
  background: #1a1c1f center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.m-dbody { position: relative; padding: 0 30px 60px; }
.m-dtitle { font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -.8px; text-align: center; }
.m-dfacts { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 18px; font-size: 27px; color: rgba(235,235,245,.75); }
.m-dstar { padding: 4px 16px; border-radius: 14px; background: #24272b; color: #fff; font-weight: 600; }
.m-dgenre { margin-top: 12px; text-align: center; font-size: 27px; font-weight: 600; }
.m-dactions { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.m-dplot { margin-top: 28px; font-size: 29px; line-height: 1.45; color: rgba(255,255,255,.88); }
.m-deps { margin-top: 34px; }
.m-chips { display: flex; gap: 14px; overflow-x: auto; margin: 0 -30px 20px; padding: 0 30px; scrollbar-width: none; }
.m-schip {
  flex: none; height: 62px; padding: 0 26px; border: 0; border-radius: 20px;
  background: #1a1c1f; color: rgba(235,235,245,.6); font-size: 28px; font-weight: 600;
}
.m-schip.on { background: #24272b; color: #fff; }
.m-ep {
  display: flex; align-items: center; gap: 18px;
  min-height: 104px; padding: 12px 0; box-sizing: border-box;
  border-bottom: 1px solid rgba(84,84,88,.45);
}
.m-veps .m-ep { height: 104px; min-height: 0; }
.m-ep-num { flex: none; width: 56px; text-align: center; font-size: 28px; font-weight: 600; color: rgba(235,235,245,.6); }
.m-ep.playing .m-ep-num, .m-ep.playing .m-ep-title { color: #35c6ff; }
.m-ep-main { flex: 1; min-width: 0; }
.m-ep-title {
  font-size: 28px; line-height: 34px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-ep-sub { margin-top: 4px; font-size: 23px; color: rgba(235,235,245,.6); }
.m-ep-main .m-bar-track { margin-top: 10px; }
.m-ep-play {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #24272b; color: #fff;
}
.m-ep-play .icon { width: 26px; height: 26px; }

/* ---------- ark ---------- */

.m-sheet-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: flex-end;
  background: rgba(0,0,0,.5);
}
.m-sheet {
  width: 100%; box-sizing: border-box; padding: 22px 30px 50px;
  border-radius: 36px 36px 0 0; background: #1a1c1f;
}
.m-sheet-title { padding: 10px 0 18px; text-align: center; font-size: 26px; color: rgba(235,235,245,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sheet-btn {
  display: block; width: 100%; height: 82px; margin-top: 10px;
  border: 0; border-radius: 24px; background: #24272b;
  color: #fff; font-size: 30px; font-weight: 600;
}
.m-sheet-btn.danger { color: #ff453a; }
.m-sheet-btn.cancel { background: transparent; color: rgba(235,235,245,.6); }

/* ---------- spelaren pa telefon, staende ---------- */

#web-bar.m-hide { display: none !important; }

html[data-mobile]:not([data-landscape]) #html5-player { top: 104px; height: 360px; }
html[data-mobile]:not([data-landscape]) .ctl { display: none !important; }
html[data-mobile]:not([data-landscape]) #player-spinner { top: 284px; }
html[data-mobile]:not([data-landscape]) .subtitle { top: 384px; bottom: auto; }
html[data-mobile]:not([data-landscape]) .player-error {
  top: 474px; left: 30px; right: 30px; width: auto; transform: none; z-index: 40;
  max-height: calc(var(--stage-h) - 500px); overflow-y: auto; box-sizing: border-box;
  padding: 28px 30px; border-radius: 24px; font-size: 26px; line-height: 1.4;
}
html[data-mobile]:not([data-landscape]) .nextcard { top: 320px; bottom: auto; left: auto; right: 20px; width: 380px; }
html:not([data-mobile]) .m-pui { display: none !important; }

.m-pui {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.m-pheader {
  position: absolute; top: 0; left: 0; right: 0; height: 104px;
  box-sizing: border-box; padding: 18px 28px 20px;
  display: flex; align-items: center;
  background: #111315;
}
.m-phit { position: absolute; top: 104px; left: 0; right: 0; height: 360px; overflow: hidden; }
.m-pov {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  padding: 18px 18px 10px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.28) 60%, rgba(0,0,0,.55));
  transition: opacity .25s;
}
.m-pov.out { opacity: 0; pointer-events: none; }
.m-pov-row { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.m-pill { display: flex; padding: 3px 6px; border-radius: 42px; }
.m-pbtn {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; padding: 0; border: 0; background: none; color: #fff;
}
.m-pbtn .icon { width: 34px; height: 34px; }
.m-pbtn.m-circle, .m-pbtn.m-glass {
  background: rgba(58,58,64,.52);
  border: 1px solid rgba(255,255,255,.14);
}
.m-pheader .m-pbtn { width: 60px; height: 60px; }
.m-pheader .m-pbtn .icon { width: 30px; height: 30px; }
.m-pheader .m-circle { width: 64px; height: 64px; }
.m-pov-mid { display: flex; align-items: center; gap: 16px; }
.m-pround { width: 66px; height: 66px; border-radius: 50%; }
.m-pround .icon { width: 32px; height: 32px; }
.m-pround.big { width: 92px; height: 92px; }
.m-pround.big .icon { width: 40px; height: 40px; }

.m-pline { padding: 0 6px; }
.m-ptrack { position: relative; height: 40px; }
.m-prail {
  position: absolute; left: 0; right: 0; top: 14px; height: 12px;
  border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,.28);
}
.m-pfill { height: 100%; background: rgba(255,255,255,.92); }
.m-pknob {
  position: absolute; top: 6px; width: 28px; height: 28px; margin-left: -14px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform .15s;
}
.m-ptrack.drag .m-pknob { transform: scale(1.35); }
.m-ptrack.live .m-pfill { background: #ff453a; }
.m-ptrack.live .m-pknob { display: none; }
.m-ptimes { display: flex; justify-content: space-between; margin-top: 2px; font-size: 22px; font-weight: 500; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; }
.m-live { color: #ff453a; font-weight: 700; font-size: 22px; letter-spacing: .5px; }
.m-live:before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%; background: #ff453a; vertical-align: 1px; }

.m-pbelow {
  position: absolute; top: 464px; left: 0; right: 0; bottom: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-bottom: 70px;
  background: #111315;
}
.m-pinfo { padding: 30px 30px 6px; }
.m-ptitle { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.m-tag {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px; border-radius: 12px; box-sizing: border-box;
  background: #24272b; color: #fff; font-size: 23px; font-weight: 600;
}
.m-tag-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(235,235,245,.6); }
.m-tag.live { background: rgba(255,69,58,.18); color: #ff6961; }
.m-tag.live .m-tag-dot { background: #ff453a; }
.m-psub { margin-top: 16px; font-size: 28px; color: #fff; }
.m-pplot {
  margin-top: 12px; font-size: 26px; line-height: 1.45; color: rgba(235,235,245,.6);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.m-pnow { margin-top: 22px; }
.m-pnow-time { font-size: 23px; color: rgba(235,235,245,.6); font-weight: 500; }
.m-pnow-title { margin-top: 6px; font-size: 31px; font-weight: 600; letter-spacing: -.2px; }
.m-pnext { margin-top: 10px; font-size: 24px; color: rgba(235,235,245,.6); }
.m-plist-title { padding: 34px 30px 18px; }

/* ---------- sok ---------- */

.m-sinput { flex: 1; min-width: 0; margin-top: 0; }
.m-sinput .m-filter-input { font-size: 28px; }
.m-results { padding-bottom: 40px; }
.m-empty { padding: 60px 50px; text-align: center; font-size: 27px; line-height: 1.45; color: rgba(235,235,245,.6); }
.m-recent { margin: 0 30px; border-radius: 22px; overflow: hidden; background: #1a1c1f; }
.m-recent-row {
  display: flex; align-items: center; gap: 18px;
  height: 84px; padding: 0 26px;
  font-size: 28px; color: #fff;
  border-bottom: 1px solid rgba(84,84,88,.45);
}
.m-recent-row:last-child { border-bottom: 0; }
.m-recent-row .icon { width: 26px; height: 26px; color: rgba(235,235,245,.6); flex: none; }
.m-sgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 16px; padding: 0 30px; }
html[data-landscape] .m-sgrid { grid-template-columns: repeat(6, 1fr); }
.m-sgrid .m-card { width: auto; }
.m-sgrid .m-card-img { height: auto; padding-top: 150%; }
.m-count-inline { font-size: 24px; color: rgba(235,235,245,.6); }

/* ---------- overgangar och tryck ----------
   Ett steg in glider in fran hoger, tillbaka fran vanster, som i iOS.
   Allt man kan trycka pa trycks ner lite - utan det kanns ytan dod. */

@keyframes m-in { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes m-out { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
.m-scroll.m-in { animation: m-in .26s cubic-bezier(.2,.8,.2,1); }
.m-scroll.m-out { animation: m-out .26s cubic-bezier(.2,.8,.2,1); }
.m-header.m-in, .m-header.m-out { animation: m-fade .2s ease-out; }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

.m-card, .m-wcard, .m-ccard, .m-grow, .m-cat, .m-btn, .m-circle, .m-tab, .m-ep, .m-schip,
.m-sheet-btn, .m-recent-row, .m-start, .m-pbtn, .m-search, .m-more {
  transition: transform .14s ease, opacity .14s ease;
}
.m-card:active, .m-wcard:active, .m-ccard:active, .m-grow:active, .m-cat:active, .m-start:active { transform: scale(.97); }
.m-btn:active, .m-circle:active, .m-schip:active, .m-sheet-btn:active, .m-pbtn:active, .m-search:active { transform: scale(.95); opacity: .85; }
.m-tab:active, .m-ep:active, .m-recent-row:active, .m-more:active { opacity: .6; }

/* ---------- installningar (iOS: grupperad lista) ---------- */

.m-group { margin: 14px 30px 34px; border-radius: 22px; overflow: hidden; background: #1a1c1f; }
.m-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 88px; padding: 16px 26px; box-sizing: border-box;
  border-bottom: 1px solid rgba(84,84,88,.45);
}
.m-row:last-child { border-bottom: 0; }
.m-row:active { background: #24272b; }
.m-row-main { flex: 1; min-width: 0; }
.m-row-label { font-size: 28px; color: #fff; }
.m-row-hint { margin-top: 4px; font-size: 22px; line-height: 1.35; color: rgba(235,235,245,.6); }
.m-row-value { flex: none; max-width: 50%; font-size: 27px; color: rgba(235,235,245,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row-chev { width: 22px; height: 22px; flex: none; color: rgba(235,235,245,.35); }
.m-row.danger { justify-content: center; }
.m-row.danger .m-row-label { color: #ff453a; text-align: center; }
.m-switch {
  flex: none; position: relative; width: 86px; height: 52px; border-radius: 26px;
  background: #39393d; transition: background-color .2s;
}
.m-switch span {
  position: absolute; top: 4px; left: 4px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
  transition: transform .2s cubic-bezier(.3,.7,.3,1);
}
.m-switch.on { background: #34c759; }
.m-switch.on span { transform: translateX(34px); }

/* ---------- spelaren liggande ----------
   Bilden fyller skarmen (style.css), telefonens knappar ligger over den
   som staende, och Tillbaka/hjartat tonas fram och bort med dem. TV:ns
   kontrollfalt anvands inte pa telefon. */

html[data-landscape] .ctl { display: none !important; }
html[data-landscape] .m-pheader {
  z-index: 3; background: transparent; padding: 26px 40px;
  transition: opacity .25s;
}
html[data-landscape] .m-pui.ov-off .m-pheader { opacity: 0; pointer-events: none; }
html[data-landscape] .m-phit { top: 0; bottom: 0; height: auto; }
html[data-landscape] .m-pov { padding: 120px 44px 28px; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.6)); }
html[data-landscape] .m-pbelow { display: none; }

/* Skalet liggande: hjalteytan far inte ta hela skarmen, texten centreras
   i en lagom bredd. */
html[data-landscape] .m-hero { height: calc(var(--stage-h) - 140px); }
html[data-landscape] .m-hero-text { left: 50%; right: auto; width: 760px; margin-left: -380px; }
html[data-landscape] .m-dhero { height: 560px; }
html[data-landscape] .m-dbody { max-width: 900px; margin: 0 auto; }
html[data-landscape] .m-hero .m-chip { display: none; }

/* ---------- inloggningen pa telefon ----------
   Ingen QR att skanna (man star med telefonen), inga fjarrtips och inget
   "Link this TV": en stor knapp till portalen, koden som reserv for en
   annan apparat. Knappen och telefontexterna finns i index.html och ar
   dolda pa TV:n och i vanliga fonster. */

.pair-go, .pair-cant-m { display: none; }
html[data-mobile] .pair-cant { display: none; }
html[data-mobile] .pair-cant-m { display: inline; }
html[data-mobile] #screen-login { background: #111315; }
html[data-mobile] .login-box {
  background: transparent; box-shadow: none; border: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-mobile] .pair-box { background: #1a1c1f; border: 0; border-radius: 28px; }
html[data-mobile] .pair-left,
html[data-mobile] #login-hint,
html[data-mobile] #btn-pair,
html[data-mobile] .login-box .hint,
html[data-mobile] .pair-web,
html[data-mobile] .pay-qr,
html[data-mobile] .pay-scan,
html[data-mobile] .pay-alt,
html[data-mobile] #web-bar .login-only { display: none !important; }
html[data-mobile] .pair-step { font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
html[data-mobile] .pair-lead { font-size: 27px; line-height: 1.45; color: rgba(235,235,245,.6); }
html[data-mobile] .pair-go {
  display: flex; align-items: center; justify-content: center;
  height: 84px; margin: 26px 0 8px; border-radius: 42px;
  background: #fff; color: #000; text-decoration: none;
  font-size: 30px; font-weight: 700;
}
html[data-mobile] .pair-go:active { transform: scale(.97); opacity: .9; }
html[data-mobile] .pair-manual { font-size: 24px; color: rgba(235,235,245,.6); }
html[data-mobile] .pair-url a { color: #35c6ff; }

/* Arket glider upp och bakgrunden tonas in, som i iOS. */
@keyframes m-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.m-sheet-bg { animation: m-fade .2s ease-out; }
.m-sheet { animation: m-sheet-up .28s cubic-bezier(.2,.8,.2,1); }
