/* =========================================================
   MESSAGES pages — builds on styles.css
   ========================================================= */
.mpage { padding-top: clamp(120px, 14vw, 170px); }
.mhero h1 { margin-bottom: 18px; }
.mhero .lede { max-width: 50ch; }

/* latest message */
.mlatest { margin-top: clamp(30px, 4vw, 50px); }
.mlatest__frame, .wplayer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); box-shadow: 0 30px 60px rgba(37, 39, 35, .18); }
.mlatest__frame iframe, .wplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* series browser */
.mseries { background: var(--white); }
.mseries__head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.mbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: clamp(28px, 4vw, 44px); }
.mtabs { display: flex; border-bottom: 1px solid var(--line); flex: 1 1 420px; }
.mtabs button {
  flex: 1; background: none; border: 0; cursor: pointer; padding: 14px 10px; margin-bottom: -1px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.mtabs button[aria-selected="true"] { color: var(--charcoal); border-bottom-color: var(--forest); }
.msearch { flex: 0 1 340px; position: relative; }
.msearch input {
  width: 100%; padding: 14px 18px 14px 46px; border-radius: 14px; border: 1px solid var(--stone);
  background: var(--ivory); font: inherit; font-size: 15px; color: var(--charcoal);
}
.msearch input:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.msearch svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.sgroup { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; margin: 34px 0 16px; }
.sgroup:first-child { margin-top: 0; }
.scard { display: block; text-decoration: none; color: inherit; }
.scard__img { display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--cream); box-shadow: 0 14px 30px rgba(37, 39, 35, .12); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.04); }
.scard__title { display: block; margin-top: 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.scard__meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.mempty { text-align: center; color: var(--ink-soft); padding: 30px 0; }
.mempty a { color: var(--forest); font-weight: 600; }

/* series view */
.sbanner { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-height: 560px; width: 100%; box-shadow: 0 30px 60px rgba(37, 39, 35, .15); }
.sbanner img { width: 100%; height: 100%; object-fit: cover; }
.shead { text-align: center; max-width: 760px; margin: clamp(30px, 4vw, 50px) auto clamp(30px, 4vw, 48px); }
.shead .eyebrow { justify-content: center; display: flex; }
.shead h1 { margin-bottom: 18px; }
.shead .lede { margin: 0 auto; max-width: 60ch; }

/* message rows */
.mlist { display: grid; gap: clamp(16px, 2vw, 24px); }
.mrow { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: center; text-decoration: none; color: inherit; padding: 10px; margin: -10px; border-radius: 18px; transition: background .25s; }
.mrow:hover { background: var(--cream); }
.mrow__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--charcoal); }
.mrow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mplay { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(37, 39, 35, .85); transition: background .25s, transform .3s var(--ease); }
.mplay::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.mrow:hover .mplay { background: var(--forest); transform: scale(1.08); }
.mrow__text strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.2; margin-bottom: 6px; }
.mrow__text span { color: var(--muted); font-size: 15px; }

/* watch view */
.whead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: clamp(22px, 3vw, 34px) 0 clamp(40px, 5vw, 64px); }
.whead__title { font-weight: 900; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; max-width: 26ch; margin-bottom: 12px; }
.whead__meta { margin: 0; color: var(--muted); }
.whead__meta a { color: var(--forest); font-weight: 600; }
.wactions { display: flex; gap: 18px; flex-shrink: 0; }
.wbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--charcoal); text-decoration: none; }
.wbtn__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; transition: background .25s, color .25s; }
.wbtn__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wbtn:hover .wbtn__icon { background: var(--forest); color: var(--white); }
.mmore { margin-bottom: 20px; }
.mmore strong { color: var(--charcoal); }

@media (max-width: 900px) { .sgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .sgrid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 136px 1fr; gap: 14px; }
  .mplay { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .mplay::after { left: 15px; top: 11px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
  .mrow__text span { font-size: 13.5px; }
  .whead { flex-direction: column; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mback { display: inline-flex; gap: 8px; margin-bottom: clamp(20px, 3vw, 30px); font-weight: 600; }
.mback span { display: inline-block; }
.mhero .section__head { align-items: flex-end; }

.page-messages .closing { background: var(--cream); }

.page-messages .message__load img { filter: brightness(.88); }
.page-messages .message__load:hover img { filter: brightness(.75); }
.wsummary { margin: 18px 0 0; max-width: 62ch; color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.page-messages .message__load img.mthumb { opacity: 0; transition: opacity .35s ease, transform 1s var(--ease), filter .5s; }
.page-messages .message__load img.mthumb.is-loaded { opacity: 1; }
@media (max-width: 640px) { .msearch { flex: 1 1 100%; } }
