/* ============================================================
   MEDIA HUB SPECIFIC STYLES
   ============================================================ */
.mh-wrap {
  --mh-line: rgba(255,255,255,.08);
  --mh-line2: rgba(255,255,255,.05);
  --mh-text: #eef5ff;
  --mh-muted: #9db0c4;
  --mh-soft: #cad8e7;
  --mh-orange: #ff6600;
  --mh-orange2: #ff8a33;
  --mh-shadow: 0 28px 80px rgba(0,0,0,.42);

  color: var(--mh-text);
  line-height: 1.58;
  padding-bottom: 80px;
}

.mh-wrap .mh-brand { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.mh-wrap .mh-logo {
  width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(135deg,var(--mh-orange),var(--mh-orange2));
  box-shadow: 0 14px 34px rgba(255,102,0,.28); position: relative;
}
.mh-wrap .mh-logo:before, .mh-wrap .mh-logo:after {
  content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.35); border-radius: 10px;
}
.mh-wrap .mh-logo:after { inset: 13px; border-width: 1px; opacity: .9; }
.mh-wrap .mh-brand small { display: block; color: var(--mh-muted); font-size: 12px; font-weight: 600; }
.mh-wrap .mh-nav { display: flex; gap: 10px; flex-wrap: wrap; }

.mh-wrap .mh-section, .mh-wrap .mh-hero { scroll-margin-top: 160px; }
.mh-wrap .mh-hero { padding: 30px 0 24px; }
.mh-wrap .mh-hero-grid {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; align-items: stretch; min-height: calc(100vh - 124px); min-height: calc(100dvh - 124px);
}

.mh-wrap .mh-glass, .mh-wrap .mh-panel, .mh-wrap .mh-metric, .mh-wrap .mh-mini, 
.mh-wrap .mh-toc-card, .mh-wrap .mh-playlist-card, .mh-wrap .mh-video-card, 
.mh-wrap .mh-detail-card, .mh-wrap .mh-feature-card, .mh-wrap .mh-meta-card, .mh-wrap .mh-schema-card {
  background: linear-gradient(180deg, rgba(14,26,40,.92), rgba(8,17,28,.96));
  border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow);
}

.mh-wrap h1 { font-size: clamp(34px,5vw,68px); line-height: .98; letter-spacing: -.05em; margin: 0 0 12px; }
.mh-wrap h2 { font-size: clamp(28px,3vw,44px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 12px; }
.mh-wrap h3 { font-size: 22px; line-height: 1.18; margin: 0 0 12px; }
.mh-wrap h4 { font-size: 16px; line-height: 1.2; margin: 0 0 12px; }
.mh-wrap .mh-lead { font-size: 18px; color: var(--mh-soft); max-width: 850px; }

/* Buttons & Hovers matching global physics */

.mh-wrap .mh-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 28px; }
.mh-wrap .mh-metric { border-radius: 20px; padding: 18px; }
.mh-wrap .mh-metric .k { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.04em; margin-bottom: 6px; }
.mh-wrap .mh-metric .l { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mh-muted); font-weight: 700; }
.mh-wrap .mh-right-stack { display: grid; gap: 18px; }
.mh-wrap .mh-toc-card { border-radius: 30px; padding: 24px; position: relative; overflow: hidden; }
.mh-wrap .mh-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 16px; }
.mh-wrap .mh-mini { border-radius: 18px; padding: 16px; background: rgba(255,255,255,.03); box-shadow: none; border-color: var(--mh-line2); }
.mh-wrap .mh-mini strong { display: block; font-size: 15px; }
.mh-wrap .mh-mini span { display: block; color: var(--mh-muted); font-size: 13px; margin-top: 4px; }
.mh-wrap .mh-toc-list { display: grid; gap: 10px; margin-top: 16px; }
.mh-wrap .mh-toc-list a {
  padding: 13px 14px; border-radius: 16px; border: 1px solid var(--mh-line);
  background: rgba(255,255,255,.03); color: #d9e5f0; font-weight: 700; font-size: 14px; text-decoration: none;
}
.mh-wrap .mh-toc-list a:hover { border-color: rgba(255,102,0,.32); color: #fff; }

.mh-wrap .mh-media-map {
  border-radius: 30px; padding: 24px; min-height: 340px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent 42%), linear-gradient(180deg, rgba(12,24,38,.95), rgba(7,16,27,.96));
  border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow); height: 100%;
}
.mh-wrap .mh-media-map:before {
  content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
}
.mh-wrap .mh-media-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,102,0,.24), rgba(255,102,0,.08)); border: 1px solid rgba(255,102,0,.28);
  box-shadow: 0 0 0 26px rgba(255,255,255,.015), 0 0 0 54px rgba(255,255,255,.01);
  display: grid; place-items: center; text-align: center; padding: 18px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #ffd9bf;
}
.mh-wrap .mh-node {
  position: absolute; padding: 10px 12px; border-radius: 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #d9e6f2;
}
.mh-wrap .mh-node.n1 { left: 8%; top: 18%; }
.mh-wrap .mh-node.n2 { right: 8%; top: 18%; }
.mh-wrap .mh-node.n3 { left: 8%; bottom: 18%; }
.mh-wrap .mh-node.n4 { right: 8%; bottom: 18%; }
.mh-wrap .mh-node.n5 { left: 50%; top: 8%; transform: translateX(-50%); }

.mh-wrap .mh-section { padding: 40px 0 8px; }
.mh-wrap .mh-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.mh-wrap .mh-section-head p { max-width: 860px; color: var(--mh-muted); margin: 0; }
.mh-wrap .mh-chip-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-wrap .mh-chip-nav a, .mh-wrap .mh-filter-chip {
  padding: 11px 14px; border-radius: 999px; border: 1px solid var(--mh-line); background: rgba(255,255,255,.03); color: #d6e2ed; font-size: 14px; text-decoration: none; cursor: pointer;
}
.mh-wrap .mh-chip-nav a:hover, .mh-wrap .mh-filter-chip.active { border-color: rgba(255,102,0,.32); color: #fff; background: rgba(255,102,0,.08); }

.mh-wrap .mh-chapter { border-radius: 32px; overflow: hidden; margin-top: 20px; background: linear-gradient(180deg, rgba(14,26,40,.92), rgba(8,17,28,.96)); border: 1px solid var(--mh-line); box-shadow: var(--mh-shadow); }
.mh-wrap .mh-chapter-head { padding: 28px 28px 18px; border-bottom: 1px solid var(--mh-line); display: grid; grid-template-columns: 1fr auto; gap: 20px; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), radial-gradient(circle at 92% 10%, rgba(255,102,0,.12), transparent 22%); }
.mh-wrap .mh-chapter-code { align-self: start; padding: 11px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--mh-line); color: #cfdae4; font-size: 13px; font-weight: 700; }
.mh-wrap .mh-chapter-body { padding: 24px 28px 30px; display: grid; gap: 18px; }

.mh-wrap .mh-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.mh-wrap .mh-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mh-wrap .mh-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.mh-wrap .mh-panel, .mh-wrap .mh-playlist-card, .mh-wrap .mh-video-card, .mh-wrap .mh-detail-card, .mh-wrap .mh-feature-card, .mh-wrap .mh-meta-card, .mh-wrap .mh-schema-card { border-radius: 24px; padding: 20px; }

.mh-wrap .mh-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-wrap .mh-playlist-rail { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mh-wrap .mh-playlist-card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)); box-shadow: none; position: relative; overflow: hidden; }
.mh-wrap .mh-playlist-card:before { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(88,183,255,.16), transparent 60%); }
.mh-wrap .mh-playlist-thumb { aspect-ratio: 16/9; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: radial-gradient(circle at 20% 20%, rgba(88,183,255,.15), transparent 26%), radial-gradient(circle at 80% 30%, rgba(255,102,0,.16), transparent 28%), linear-gradient(180deg, #102033, #091420); position: relative; overflow: hidden; margin-bottom: 16px; }
.mh-wrap .mh-playlist-thumb .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; }
.mh-wrap .mh-play-badge { position: absolute; left: 14px; bottom: 14px; padding: 8px 10px; border-radius: 999px; background: rgba(3,10,17,.72); border: 1px solid rgba(255,255,255,.1); font-size: 12px; font-weight: 800; backdrop-filter: blur(12px); }
.mh-wrap .mh-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mh-wrap .mh-pill { padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); color: #d7e3ef; }

.mh-wrap .mh-video-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mh-wrap .mh-video-card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)); box-shadow: none; }
.mh-wrap .mh-video-thumb { aspect-ratio: 16/9; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(88,183,255,.12), transparent 22%), radial-gradient(circle at 78% 28%, rgba(255,102,0,.14), transparent 24%), linear-gradient(180deg, #102033, #091420); position: relative; margin-bottom: 14px; }
.mh-wrap .mh-video-thumb .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255,102,0,.92); box-shadow: 0 12px 26px rgba(255,102,0,.28); }
.mh-wrap .mh-video-thumb .play:before { content: ""; position: absolute; left: 24px; top: 19px; border-left: 18px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.mh-wrap .mh-video-thumb .length { position: absolute; right: 10px; bottom: 10px; padding: 6px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; background: rgba(2,8,14,.76); border: 1px solid rgba(255,255,255,.08); }
.mh-wrap .mh-video-thumb .youtube { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .08em; background: rgba(255,255,255,.92); color: #000; }

.mh-wrap .mh-flow { border-radius: 26px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid var(--mh-line); }
.mh-wrap .mh-flow-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; align-items: stretch; margin-top: 14px; }
.mh-wrap .mh-feature-card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid var(--mh-line2); box-shadow: none; min-height: 150px; }
.mh-wrap .mh-step { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,102,0,.14); color: #ffd6bc; font-weight: 900; font-size: 12px; margin-bottom: 10px; }
.mh-wrap .mh-arrow { display: flex; align-items: center; justify-content: center; color: #7f94aa; font-weight: 900; }

.mh-wrap .mh-sticky-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.mh-wrap .mh-sidebar { position: sticky; top: 164px; border-radius: 24px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)); border: 1px solid var(--mh-line); box-shadow: none; }
.mh-wrap .mh-sidebar h4 { margin-bottom: 10px; }
.mh-wrap .mh-sidebar a { display: block; padding: 10px 12px; border-radius: 14px; color: #d6e2ed; font-size: 14px; font-weight: 700; text-decoration: none; }
.mh-wrap .mh-sidebar a:hover { background: rgba(255,255,255,.04); color: #fff; }
.mh-wrap .mh-inner-stack { display: grid; gap: 16px; }

.mh-wrap .mh-player-shell { aspect-ratio: 16/9; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(88,183,255,.13), transparent 24%), radial-gradient(circle at 80% 25%, rgba(255,102,0,.15), transparent 28%), linear-gradient(180deg, #0d1b2b, #09131d); position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.mh-wrap .mh-player-shell .center-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 88px; height: 88px; border-radius: 50%; background: rgba(255,102,0,.94); box-shadow: 0 20px 38px rgba(255,102,0,.32); }
.mh-wrap .mh-player-shell .center-play:before { content: ""; position: absolute; left: 35px; top: 27px; border-left: 24px solid white; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.mh-wrap .mh-player-shell .top-label { position: absolute; left: 16px; top: 16px; padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: rgba(255,255,255,.92); color: #111; }
.mh-wrap .mh-player-shell .bottom-bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(3,10,17,.72); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); font-size: 13px; color: #dbe7f2; }

.mh-wrap .mh-detail-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-wrap .mh-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--mh-line); background: rgba(255,255,255,.03); color: #d8e4f0; margin-bottom: 10px; }
.mh-wrap .mh-badge.orange { background: rgba(255,102,0,.10); border-color: rgba(255,102,0,.26); color: #ffd8bf; }
.mh-wrap .mh-badge.blue { background: rgba(88,183,255,.10); border-color: rgba(88,183,255,.24); color: #d4efff; }
.mh-wrap .mh-badge.green { background: rgba(99,214,165,.10); border-color: rgba(99,214,165,.24); color: #d8ffee; }
.mh-wrap .mh-badge.yellow { background: rgba(255,211,107,.10); border-color: rgba(255,211,107,.24); color: #ffefc0; }

.mh-wrap .mh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.mh-wrap .mh-table td { padding: 11px 0; border-bottom: 1px solid var(--mh-line); vertical-align: top; }
.mh-wrap .mh-table td:first-child { width: 34%; color: var(--mh-muted); }

.mh-wrap .mh-codebox { border-radius: 24px; padding: 20px; background: #08111c; border: 1px solid rgba(255,255,255,.06); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.72; white-space: pre-wrap; color: #e7f1fc; box-shadow: none; }
.mh-wrap .mh-codebox .comment { color: #8ea7bf; }
.mh-wrap .mh-codebox .key { color: #ffd6bc; }
.mh-wrap .mh-codebox .ok { color: #9ef0c9; }

.mh-wrap ul { margin: 12px 0 0 18px; padding: 0; }
.mh-wrap li { margin: 8px 0; }

@media (max-width:1200px) {
  .mh-wrap .mh-hero-grid, .mh-wrap .mh-grid-4, .mh-wrap .mh-grid-3, .mh-wrap .mh-grid-2, .mh-wrap .mh-flow-grid, .mh-wrap .mh-metrics, .mh-wrap .mh-sticky-layout, .mh-wrap .mh-video-grid, .mh-wrap .mh-playlist-rail { grid-template-columns: 1fr 1fr; }
  .mh-wrap .mh-hero-grid, .mh-wrap .mh-sticky-layout { grid-template-columns: 1fr; }
  .mh-wrap .mh-chapter-head { grid-template-columns: 1fr; }
  .mh-wrap .mh-nav { display: none; }
  .mh-wrap .mh-sidebar { position: relative; top: auto; }
}
@media (max-width:760px) {
  .mh-wrap .container { width: min(1440px, calc(100% - 24px)); }
  .mh-wrap .mh-hero-grid, .mh-wrap .mh-grid-4, .mh-wrap .mh-grid-3, .mh-wrap .mh-grid-2, .mh-wrap .mh-flow-grid, .mh-wrap .mh-metrics, .mh-wrap .mh-video-grid, .mh-wrap .mh-playlist-rail, .mh-wrap .mh-mini-grid { grid-template-columns: 1fr; }
  .mh-wrap .mh-glass, .mh-wrap .mh-chapter-head, .mh-wrap .mh-chapter-body, .mh-wrap .mh-toc-card, .mh-wrap .mh-media-map { padding-left: 18px; padding-right: 18px; }
  .mh-wrap .mh-chip-nav, .mh-wrap .mh-filter-row { overflow: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}