/* Bảng màu: giấy ngà, mực sân khấu, đỏ nhung màn, vàng đèn */
.mgz-root {
  --mgz-ink: #16130f;
  --mgz-paper: #f5f0e7;
  --mgz-red: #a3221b;
  --mgz-gold: #c9a24f;
  --mgz-muted: #574f46;
  --mgz-line: #d9cfbf;
  background: var(--mgz-paper);
  color: var(--mgz-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Reset tối thiểu */
.mgz-root figure { margin: 0; }
.mgz-root picture { display: block; }
.mgz-root img { display: block; max-width: 100%; height: auto; }
.mgz-root h2 { margin: 0; }
.mgz-root p { margin: 0; }

/* Cột chữ chuẩn */
.mgz-root .mgz-col { box-sizing: content-box; max-width: 44rem; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.mgz-col p { margin: 0 0 1.25em; }

.mgz-root a { color: var(--mgz-red); text-decoration: underline; text-underline-offset: 3px; }
.mgz-root a:hover { text-decoration-thickness: 2px; }
.mgz-root a:focus-visible { outline: 3px solid var(--mgz-red); outline-offset: 3px; border-radius: 2px; }

/* Mở đầu: điện thoại xếp ảnh trọn khung rồi chữ bên dưới */
.mgz-hero { background: var(--mgz-ink); color: var(--mgz-paper); }
.mgz-hero-media img { width: 100%; height: auto; }
.mgz-hero-text { padding: 28px 20px 40px; max-width: 64rem; margin: 0 auto; }
.mgz-hero-text::before { content: ""; display: block; width: 64px; height: 4px; background: var(--mgz-red); margin-bottom: 22px; }
.mgz-title { font-size: clamp(2rem, 6.4vw, 4.1rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; }
.mgz-sapo { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.08rem; line-height: 1.6; color: #e9dfcf; margin-top: 20px; max-width: 46rem; }

@media (min-width: 768px) {
  .mgz-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; }
  .mgz-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
  .mgz-hero-media picture { height: 100%; }
  .mgz-hero-media img { width: 100%; height: 100%; object-fit: cover; }
  .mgz-hero-media::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(22, 19, 15, 0.95) 0%, rgba(22, 19, 15, 0.6) 38%, rgba(22, 19, 15, 0.05) 78%); }
  .mgz-hero-text { position: relative; z-index: 1; box-sizing: border-box; width: 100%; max-width: 72rem; padding: 0 40px 64px; }
}

/* Dữ kiện then chốt */
.mgz-brief { max-width: 72rem; margin: 0 auto; padding: 44px 20px 8px; display: grid; gap: 20px; }
.mgz-brief-card { background: #fffdf8; border: 1px solid var(--mgz-line); border-top: 6px solid var(--mgz-red); padding: 26px 24px; }
.mgz-brief-text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: clamp(1.15rem, 2.3vw, 1.45rem); line-height: 1.55; font-weight: 500; }
.mgz-big { font-family: Georgia, serif; font-size: 2.1em; line-height: 1; font-weight: 700; color: var(--mgz-red); white-space: nowrap; }
.mgz-count { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.mgz-hero-cap { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; line-height: 1.55; color: var(--mgz-muted); border-left: 2px solid var(--mgz-gold); padding-left: 14px; }
.mgz-hero-cap::before { content: "\25B2"; color: var(--mgz-gold); margin-right: 8px; font-size: 0.75em; }

@media (min-width: 900px) {
  .mgz-brief { grid-template-columns: minmax(0, 1fr) 18rem; align-items: end; }
}

/* Chương: số thứ tự đứng riêng trên tiêu đề, không dính vào chữ của tiêu đề */
.mgz-chapter { padding: 56px 0 16px; }
.mgz-chapter--tight { padding-top: 32px; }
.mgz-col .mgz-num { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.78rem; line-height: 1.4; font-weight: 700; letter-spacing: 0.22em; color: var(--mgz-red); padding-top: 22px; border-top: 1px solid var(--mgz-line); margin: 0 0 14px; }
.mgz-num::after { content: ""; display: inline-block; width: 48px; height: 2px; background: var(--mgz-red); vertical-align: middle; margin-left: 12px; }
.mgz-h2 { font-size: clamp(1.6rem, 3.8vw, 2.25rem); line-height: 1.2; font-weight: 700; margin-bottom: 26px; }
.mgz-kicker { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.5em; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgz-muted); margin-bottom: 6px; }
.mgz-play-line { display: block; font-size: 1.12em; line-height: 1.15; }
.mgz-sub { display: block; font-size: 0.7em; font-weight: 400; line-height: 1.4; color: var(--mgz-muted); margin-top: 12px; }

.mgz-col .mgz-pull { font-size: 1.32rem; line-height: 1.5; font-style: italic; color: var(--mgz-ink); border-left: 4px solid var(--mgz-red); padding-left: 20px; margin: 1.7em 0; }
.mgz-col .mgz-key { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.02rem; line-height: 1.6; background: #fffdf8; border: 1px solid var(--mgz-line); border-left: 4px solid var(--mgz-gold); padding: 16px 18px; }
.mgz-col .mgz-key strong { color: var(--mgz-red); }
.mgz-col .mgz-voice { font-size: 1.2rem; line-height: 1.6; }

/* Ảnh */
.mgz-gallery { max-width: 72rem; margin: 40px auto; padding: 0 20px; display: grid; gap: 12px; }
.mgz-gallery img { width: 100%; height: auto; }
.mgz-root figcaption { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.88rem; line-height: 1.5; color: var(--mgz-muted); margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--mgz-gold); }
.mgz-root .mgz-figure { max-width: 60rem; margin: 40px auto; padding: 0 20px; }
.mgz-root .mgz-figure--wide { max-width: 72rem; }
.mgz-figure img { width: 100%; height: auto; }

@media (min-width: 761px) {
  .mgz-gallery--three { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .mgz-gallery--three .mgz-g-a { grid-column: 1; grid-row: 1; }
  .mgz-gallery--three .mgz-g-b { grid-column: 1; grid-row: 2; }
  .mgz-gallery--three .mgz-g-main { grid-column: 2; grid-row: 1 / span 2; }
  .mgz-gallery--three .mgz-g-a picture, .mgz-gallery--three .mgz-g-b picture { height: 100%; }
  .mgz-gallery--three .mgz-g-a img, .mgz-gallery--three .mgz-g-b img { height: 100%; object-fit: cover; }
  .mgz-gallery--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .mgz-gallery--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Kết luận */
.mgz-conclude { background: #ebe3d5; padding: 44px 0 20px; margin-top: 24px; border-top: 3px solid var(--mgz-ink); }
.mgz-conclude p { font-size: 1.2rem; line-height: 1.65; }

/* Lịch biểu diễn kiểu vé */
.mgz-ticket-wrap { padding: 48px 20px 64px; }
.mgz-ticket { background: var(--mgz-ink); color: var(--mgz-paper); max-width: 64rem; margin: 0 auto; padding: 32px 24px; border-top: 6px solid var(--mgz-red); }
.mgz-ticket-head { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mgz-gold); }
.mgz-shows { display: grid; gap: 12px; margin: 20px 0 24px; }
.mgz-root .mgz-show { border: 1px dashed rgba(245, 240, 231, 0.35); border-radius: 6px; padding: 18px; margin: 0; }
.mgz-show-name { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.mgz-dash { color: var(--mgz-gold); }
.mgz-show-time { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.95rem; line-height: 1.5; color: #ddd1bd; margin-top: 10px; }
.mgz-show-time strong { color: #ffffff; }
.mgz-ticket-note { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; color: #e9dfcf; }
.mgz-ticket a { display: inline-block; padding: 10px 2px; color: var(--mgz-gold); }
.mgz-ticket a:focus-visible { outline: 3px solid var(--mgz-gold); outline-offset: 2px; }

@media (min-width: 761px) {
  .mgz-shows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mgz-ticket { padding: 40px 36px; }
}

/* Bố cục riêng cho điện thoại */
@media (max-width: 760px) {
  .mgz-root { font-size: 1.0625rem; }
  .mgz-chapter { padding: 40px 0 8px; }
  .mgz-gallery { grid-template-columns: 1fr; margin: 28px auto; }
  .mgz-shows { grid-template-columns: 1fr; }
  .mgz-root .mgz-figure { margin: 28px auto; }
  .mgz-col .mgz-pull { font-size: 1.18rem; }
  .mgz-ticket-wrap { padding: 36px 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .mgz-root * { transition: none; animation: none; }
}

@media print {
  .mgz-root { background: #ffffff; color: #000000; }
  .mgz-hero { background: #ffffff; color: #000000; }
  .mgz-sapo { color: #000000; }
  .mgz-ticket { background: #ffffff; color: #000000; border: 1px solid #000000; }
  .mgz-show-time { color: #000000; }
  .mgz-ticket-note { color: #000000; }
}