/* meetsmedia.com — the whole look of the site.
   Flat surfaces, one accent, square-ish corners. Nothing here moves or blurs
   while the page scrolls: a card that scales or a bar that blurs is what makes
   a long grid stutter on a phone. */

@font-face {
  font-family: "MsSans";
  src: url("/font/sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MsSans";
  src: url("/font/sans-400-thai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "MsSans";
  src: url("/font/sans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MsSans";
  src: url("/font/sans-600-thai.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --bg: #0a0e18;
  --surf: #111726;
  --surf2: #171f32;
  --line: #222b42;
  --line2: #2d3752;
  --ink: #e9edf7;
  --dim: #929cb6;
  --dim2: #6f7995;
  --vio: #7d5cff;
  --vio2: #a695ff;
  --wide: 1280px;
  --gap: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 "MsSans", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-wrap: break-word;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--vio2); }

h1, h2, h3 { font-weight: 600; line-height: 1.3; margin: 0; }

:focus-visible { outline: 2px solid var(--vio2); outline-offset: 2px; }

.ms-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vio);
  color: #fff;
  padding: 10px 14px;
  z-index: 90;
}
.ms-skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- the bar */

.ms-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ms-bar__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ms-logo { display: flex; align-items: center; gap: 9px; flex: none; }
.ms-logo:hover { color: var(--ink); }
.ms-mark { color: var(--vio); flex: none; }
.ms-logo__word { font-weight: 600; font-size: 17px; letter-spacing: .2px; }
.ms-logo__b { color: var(--vio); }

.ms-nav { flex: none; }
.ms-nav__l { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ms-nav__a { color: var(--dim); font-size: 14px; }
.ms-nav__a:hover { color: var(--ink); }

.ms-find { position: relative; margin-left: auto; flex: 0 1 300px; display: flex; }
.ms-find__lab { position: absolute; left: -9999px; }
.ms-find__in {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  padding: 8px 38px 8px 12px;
  min-height: 40px;
}
.ms-find__in::placeholder { color: var(--dim2); }
.ms-find__in:focus { border-color: var(--line2); outline-offset: 0; }
.ms-find__go {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--dim);
  cursor: pointer;
}
.ms-find__go:hover { color: var(--vio2); }

.ms-burger {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.ms-burger__i, .ms-burger__i::before, .ms-burger__i::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  content: "";
}
.ms-burger__i::before { transform: translateY(-6px); }
.ms-burger__i::after { transform: translateY(4px); }
.ms-burger[aria-expanded="true"] { border-color: var(--vio); color: var(--vio2); }

/* the menu on a phone: the whole screen, rows big enough to hit */
.ms-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  padding: 16px;
}
.ms-sheet[hidden] { display: none; }
.ms-sheet__in { max-width: 560px; margin: 0 auto; padding-top: 8px; }
.ms-sheet__find { position: relative; display: flex; margin-bottom: 18px; }
.ms-sheet__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ms-sheet__l a {
  display: block;
  padding: 14px 14px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 600;
}
.ms-sheet__l a:hover { border-color: var(--vio); }

/* --------------------------------------------------------------- the pages */

.ms-main { max-width: var(--wide); margin: 0 auto; padding: 0 16px 48px; }

.ms-lead { padding: 26px 0 10px; }
.ms-lead__h { font-size: clamp(22px, 3.2vw, 31px); }
.ms-lead__p { color: var(--dim); margin: 10px 0 0; max-width: 66ch; }

.ms-head { padding: 24px 0 4px; }
.ms-head__h { font-size: clamp(20px, 2.8vw, 27px); }
.ms-head__sub { color: var(--dim); font-size: 13px; margin: 8px 0 0; }

.ms-sect { margin: 26px 0; }
.ms-sect__h { font-size: 16px; margin-bottom: 12px; }

.ms-band { margin: 30px 0; }
.ms-band__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: var(--gap);
}
.ms-band__h { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.ms-band__h::before {
  content: "";
  width: 4px; height: 15px;
  background: var(--vio);
  flex: none;
}
.ms-band__all { font-size: 13px; color: var(--dim); flex: none; }

/* ---------------------------------------------------------------- the card */

.ms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px var(--gap);
}

.ms-c { display: grid; align-content: start; gap: 7px; }
.ms-c__art {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.ms-c__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ms-c__gap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 600;
  color: var(--line2);
}
.ms-c__flag {
  position: absolute;
  left: 0; top: 0;
  background: var(--vio);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
}
.ms-c__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-c__meta { font-size: 12px; color: var(--dim); }
.ms-c__line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ms-c:hover .ms-c__art { border-color: var(--vio); }
.ms-c:hover .ms-c__name { color: var(--vio2); }

/* --------------------------------------------------------- one film or set */

.ms-stage { background: #05070d; border-bottom: 1px solid var(--line); }
.ms-stage__in {
  max-width: var(--wide);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
}
.ms-stage__in > div { width: 100%; height: 100%; }
.ms-stage__none {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--dim);
  margin: 0;
}

.ms-crumb { padding: 14px 0 0; }
.ms-crumb__l {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0; padding: 0;
  font-size: 12px;
  color: var(--dim2);
}
.ms-crumb__i + .ms-crumb__i::before { content: "›"; margin-right: 7px; color: var(--line2); }
.ms-crumb__i a { color: var(--dim); }

.ms-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  margin: 20px 0 10px;
}
.ms-item--ep { grid-template-columns: minmax(0, 1fr); }
.ms-item__h { font-size: clamp(20px, 3vw, 28px); }
.ms-item__when { color: var(--dim2); font-size: 12.5px; margin: 10px 0 0; }
.ms-item__when a { color: var(--dim); }
.ms-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.ms-item__facts > * {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--dim);
}
.ms-item__facts a { color: var(--vio2); }
.ms-item__story { margin-top: 20px; max-width: 72ch; }
.ms-item__h2 { font-size: 15px; color: var(--dim); margin-bottom: 6px; }
.ms-item__story p { margin: 0; color: #cfd6e8; }
.ms-item__go { margin: 22px 0 0; }
.ms-btn {
  display: inline-block;
  background: var(--vio);
  color: #fff;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 3px;
  min-height: 44px;
  line-height: 22px;
}
.ms-btn:hover { background: #6c48ff; color: #fff; }

.ms-item__side { display: grid; gap: 14px; align-content: start; }
.ms-item__art {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: block;
}
.ms-item__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 0;
  font-size: 13px;
}
.ms-item__list dt { color: var(--dim2); }
.ms-item__list dd { margin: 0; }

.ms-step { display: flex; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; }
.ms-step__a, .ms-step__x {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13.5px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.ms-step__a:hover { border-color: var(--vio); }
.ms-step__x { color: var(--dim2); }

.ms-eps { margin: 30px 0; }
.ms-eps__h {
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.ms-eps__n { color: var(--dim2); font-size: 12.5px; font-weight: 400; }
.ms-eps__l {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 9px;
}
.ms-ep {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  min-height: 46px;
}
.ms-ep:hover { border-color: var(--vio); color: var(--ink); }
.ms-ep__n { color: var(--vio); font-weight: 600; min-width: 22px; font-size: 14px; }
.ms-ep__t {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.ms-ep__m { color: var(--dim2); font-size: 12px; flex: none; }
.ms-ep--now { border-color: var(--vio); background: var(--surf2); }

/* --------------------------------------------------------------- the lists */

.ms-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.ms-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line2);
  border-radius: 2px;
  padding: 9px 13px;
  font-size: 13.5px;
  min-height: 42px;
  background: var(--surf);
}
.ms-chip:hover { border-left-color: var(--vio); color: var(--ink); }
.ms-chip__n { color: var(--dim2); font-size: 12px; }

.ms-pg { margin: 30px 0 10px; }
.ms-pg__l { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.ms-pg__l a, .ms-pg__now, .ms-pg__skip {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  padding: 0 10px;
}
.ms-pg__skip { border-color: transparent; color: var(--dim2); }
.ms-pg__l a:hover { border-color: var(--vio); }
.ms-pg__now { background: var(--vio); border-color: var(--vio); color: #fff; font-weight: 600; }
.ms-pg__step { font-weight: 600; }

.ms-again { display: flex; gap: 9px; margin: 18px 0 26px; max-width: 520px; }
.ms-again__in {
  flex: 1;
  background: var(--surf2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  min-height: 44px;
}
.ms-again__go {
  background: var(--vio);
  border: 0;
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0 18px;
  min-height: 44px;
  cursor: pointer;
}

.ms-empty { color: var(--dim); padding: 24px 0; }

/* -------------------------------------------------------------- the footer */

.ms-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.ms-foot__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  gap: 14px;
}
.ms-foot__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.ms-foot__note { color: var(--dim); margin: 0; max-width: 60ch; font-size: 13.5px; }
.ms-foot__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0; padding: 0;
  font-size: 13.5px;
}
.ms-foot__nav a { color: var(--dim); }
.ms-foot__fine { color: var(--dim2); font-size: 12px; margin: 0; }

/* ------------------------------------------------------------ narrow first */

@media (max-width: 1100px) {
  .ms-nav__l { gap: 15px; }
  .ms-find { flex-basis: 240px; }
}

@media (max-width: 980px) {
  .ms-nav, .ms-find { display: none; }
  .ms-burger { display: grid; place-items: center; margin-left: auto; }
  .ms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ms-item { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ms-item__side { grid-template-columns: 130px 1fr; }
  .ms-item__art { grid-row: span 2; }
}

@media (max-width: 680px) {
  .ms-bar__in { height: 56px; gap: 10px; padding: 0 14px; }
  .ms-main { padding: 0 14px 40px; }
  .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .ms-band { margin: 24px 0; }
  .ms-stage__in { max-height: none; }
  .ms-eps__l { grid-template-columns: 1fr; }
  .ms-item__side { grid-template-columns: 110px 1fr; }
  .ms-c__line { -webkit-line-clamp: 2; font-size: 11.5px; }
  .ms-foot__in { padding: 24px 14px 34px; }
}

@media (max-width: 380px) {
  .ms-logo__word { font-size: 15px; }
  .ms-grid { gap: 16px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ms-c__art, .ms-ep, .ms-chip, .ms-pg__l a, .ms-step__a { transition: border-color .15s ease; }
}

/* The visit counter is kept, but it takes no space and shows nothing: the
   element it wants to draw in, and the image its no-script fallback loads, are
   both out of the layout. Hidden with display, not with a size of zero, so it
   never reserves a line or shifts what is around it. */
#histats_counter,
#histats_counter *,
img[src*="histats"],
a[href*="histats"] {
  display: none !important;
}
