/* TGW MEGASITE - scene page (custom_includes/mega_scene.tpl) and channel page (custom_includes/mega_channel.tpl).
   Uses the variables and components of css/mega.css. */

/* ---------- scene page ---------- */
.mg_scene { padding-top: 34px; }
.mg_scene_grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: stretch; }
.mg_scene_media { position: relative; min-width: 0; }
.mg_scene_video, .mg_scene_cover { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.mg_scene_video { object-fit: contain; }
.mg_scene_cover { position: relative; }
.mg_scene_cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .3s; }
.mg_scene_cover .mg_play { opacity: 1; transform: none; width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.mg_scene_cover .mg_play::after { left: 34px; top: 26px; border-width: 16px 0 16px 24px; }
.mg_scene_cover:hover img { filter: brightness(.8); }
.mg_scene_cover_label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; font: 700 18px/1 var(--mg-display); text-align: center; letter-spacing: .5px; }
.mg_trailer_note { margin: 12px 2px 0; color: var(--mg-muted); font-size: 14px; }
.mg_trailer_note a { color: var(--mg-accent); font-weight: 700; }
.mg_scene_panel { display: flex; flex-direction: column; min-width: 0; padding: 26px 30px; border-radius: 14px; background: linear-gradient(160deg, var(--mg-panel-2), var(--mg-panel)); border: 1px solid var(--mg-line); }
.mg_scene_ch { align-self: flex-start; line-height: 0; margin-bottom: 14px; color: var(--mg-accent); }
.mg_scene_ch img { height: 40px; width: auto; max-width: 220px; }
.mg_scene_title { margin: 0 0 10px; font: 700 clamp(24px, 1.9vw, 38px)/1.12 var(--mg-display); color: var(--mg-text); }
.mg_scene_meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; color: var(--mg-muted); }
.mg_scene_star > span { color: #6f7891; }
.mg_scene_star a { color: var(--mg-text); text-decoration: none; }
.mg_scene_star a:hover { color: var(--mg-accent); }
.mg_scene_len::before { content: "\25B6"; font-size: 10px; margin-right: 6px; color: var(--mg-accent); }
.mg_scene_desc { margin: 0 0 18px; color: #c9cfdd; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mg_scene_net { margin: 4px 0 18px; }
.mg_scene_net p { margin: 0 0 10px; font: 700 11.5px/1 var(--mg-body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--mg-muted); }
.mg_scene_net ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mg_scene_net li a { display: flex; align-items: center; justify-content: center; height: 44px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--mg-line); transition: border-color .2s; }
.mg_scene_net li a:hover { border-color: rgba(254, 204, 34, .6); }
.mg_scene_net img { max-height: 28px; max-width: 100%; width: auto; object-fit: contain; }
@media (min-width: 2000px) { .mg_scene_net li a { height: 62px; } .mg_scene_net img { max-height: 40px; } .mg_scene_net p { font-size: 15px; } }
.mg_scene_cta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--mg-line); }
.mg_scene_cta h2 { margin: 0 0 12px; font: 700 22px/1.2 var(--mg-display); color: var(--mg-text); }
.mg_points { list-style: none; margin: 0 0 18px; padding: 0; }
.mg_points li { position: relative; padding: 5px 0 5px 26px; font-size: 14.5px; color: #d5dae6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg_points li::before { content: "\2713"; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--mg-accent); color: var(--mg-accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mg_btn_main { width: 100%; background: var(--mg-accent); color: var(--mg-accent-ink); }
.mg_scene_fine { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--mg-muted); }

/* ---------- membership options block (Tour Sales Blocks footer, every tour page) ----------
   TPM's grid was fixed at 4 columns for its 4 plans; TGW sells 3, which left an empty column.
   The columns now follow the number of plans, and stack on phones. */
.tsb_plans_list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important; }
.tsb_plans_list li:first-child a { border-color: var(--mg-accent) !important; }

/* sticky join bar button: the core pulse animation is keyed to TPM's orange; steady TGW yellow instead */
.sfooter .sfooter_btn { animation: none !important; background-color: var(--mg-accent) !important; color: var(--mg-accent-ink) !important; }
.sfooter .sfooter_btn:hover { background-color: #fff !important; }

/* ---------- channel page ---------- */
.mg_ch_hero { position: relative; overflow: hidden; padding: 54px 0; background: radial-gradient(900px 340px at 18% 30%, rgba(43, 71, 255, .35), transparent 70%), radial-gradient(700px 300px at 85% 80%, rgba(254, 204, 34, .14), transparent 70%), var(--mg-bg-2); border-bottom: 1px solid var(--mg-line); }
.mg_ch_hero_in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 48px; }
.mg_ch_hero_brand { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 170px; padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mg-line); }
.mg_ch_hero_brand img { width: min(72%, 440px); max-height: 150px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6)); }
.mg_ch_hero_brand h1 { margin: 14px 0 0; font: 700 18px/1 var(--mg-body); text-transform: uppercase; letter-spacing: 3px; color: var(--mg-muted); }
.mg_ch_hero_pitch { margin: 0 0 12px; font: 700 clamp(24px, 2vw, 40px)/1.2 var(--mg-display); color: var(--mg-text); }
.mg_ch_hero_net { margin: 0 0 22px; font-size: 16px; color: var(--mg-muted); }
.mg_ch_hero_actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mg_ch_hero_actions .mg_btn_main { width: auto; }
/* channel with its own promo trailer: trailer left, logo + copy right (Tony 2026-11-08) */
.mg_ch_hero_in.has-video { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mg_ch_hero_video { min-width: 0; }
.mg_ch_hero_video .mg_trailer_wrap, .mg_ch_hero_video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.mg_ch_hero_video video { object-fit: cover; }
.mg_ch_hero_video .mg_trailer_wrap video { border-radius: 0; }
.mg_ch_hero_video .mg_trailer_cta { border-radius: 0 0 14px 14px; }
.mg_ch_hero_brand_inline { align-items: flex-start; min-height: 0; margin: 0 0 18px; padding: 0; background: none; border: 0; }
.mg_ch_hero_brand_inline img { width: min(70%, 320px); max-height: 90px; }
.mg_ch_hero_brand_inline h1 { margin-top: 10px; }
@media (max-width: 960px) {
	.mg_ch_hero_in.has-video { grid-template-columns: 1fr; gap: 24px; }
}
.mg_page_no { font: 600 16px/1 var(--mg-body); color: var(--mg-muted); margin-left: 10px; }
.mg_pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.mg_pager a, .mg_pager span { min-width: 42px; padding: 10px 14px; border-radius: 8px; text-align: center; font: 600 14px/1 var(--mg-body); text-decoration: none; }
.mg_pager a { background: var(--mg-panel); color: var(--mg-text); border: 1px solid var(--mg-line); }
.mg_pager a:hover { border-color: var(--mg-accent); color: var(--mg-accent); }
.mg_pager .is-on { background: var(--mg-accent); color: var(--mg-accent-ink); }
.mg_pager .mg_pager_gap { color: var(--mg-muted); min-width: 0; padding: 10px 2px; }
.mg_strip_tile.is-current { border-color: var(--mg-accent); }

@media (min-width: 2000px) {
	.mg_scene_title { font-size: 46px; }
	.mg_scene_meta, .mg_points li { font-size: 18px; }
	.mg_scene_desc { font-size: 19px; }
	.mg_scene_cta h2 { font-size: 30px; }
	.mg_scene_ch img { height: 56px; max-width: 300px; }
	.mg_ch_hero { padding: 80px 0; }
	.mg_ch_hero_brand { min-height: 240px; }
	.mg_ch_hero_brand img { width: min(72%, 620px); max-height: 210px; }
	.mg_ch_hero_net { font-size: 21px; }
	.mg_pager a, .mg_pager span { font-size: 17px; }
}
@media (max-width: 960px) {
	.mg_scene_grid, .mg_ch_hero_in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.mg_ch_hero_brand { min-height: 120px; }
}
@media (max-width: 640px) {
	.mg_scene { padding-top: 16px; }
	.mg_scene_panel { padding: 20px 18px; }
	.mg_points li { white-space: normal; }
	.mg_ch_hero { padding: 26px 0; }
	.mg_ch_hero_actions .mg_btn_main { width: 100%; }
}
