* {
  -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #f6f8fc;
    --card: #fff;
    --txt: #0f172a;
    --muted: #64748b;
    --line: #e7eef9;
    --shadow: 0 14px 28px rgba(15, 23, 42, .08);

    --pri: #2563eb;
    /* pre */
    --pri2: #1d4ed8;

    --pro: #f97316;
    /* pro */
    --pro2: #ea580c;

    --school: #16a34a;
    /* school */
    --school2: #15803d;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--txt);
    padding-bottom: 84px;
}

body.mode-pre {
    --accent: var(--pri);
    --accent2: var(--pri2);
}

body.mode-pro {
    --accent: var(--pro);
    --accent2: var(--pro2);
}

body.mode-school {
    --accent: var(--school);
    --accent2: var(--school2);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.back {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--txt);
    background: #f1f5ff;
}

.twrap {
    flex: 1;
    line-height: 1.1
}

.t1 {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700
}

.t2 {
    font-size: 16px;
    font-weight: 900
}

.progress {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800
}

/* Page */
.page {
    padding: 14px;
    max-width: 520px;
    margin: 0 auto;
}

.space {
    height: 96px
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #111827, #0b1222);
    color: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.heroChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.heroTitle {
    font-size: 26px;
    font-weight: 1000;
    margin-top: 10px
}

.heroSub {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
    margin-top: 4px
}

.heroArt {
    width: 110px;
    height: 110px;
    display: grid;
    place-items: center
}

/* Tabs */
.tabsWrap {
    margin-top: 12px
}

.tabs {
    display: flex;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.tab {
    flex: 1;
    padding: 10px 10px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-weight: 900;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

.tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
}

/* Section */
.section {
    margin-top: 14px
}

.secRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 2px
}

.secTitle {
    font-weight: 1000
}

.seeAll {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 900
}

.iconBtn {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 10px;
    padding: 9px 10px;
    cursor: pointer;
}

/* Chips */
.chips {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 6px 2px
}

.chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.chip.active {
    border-color: rgba(37, 99, 235, .25);
    background: rgba(37, 99, 235, .08);
    color: var(--accent);
}

/* Product card */
.pCard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.pTop {
    display: flex;
    gap: 12px;
    align-items: center
}

.pIco {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--line);
    font-size: 24px;
}

.pName {
    font-weight: 1000
}

.pMeta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px
}

.pBadges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap
}

.badge {
    font-size: 11px;
    font-weight: 1000;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.badge.good {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .25)
}

.badge.money {
    background: rgba(99, 102, 241, .10);
    border-color: rgba(99, 102, 241, .22)
}

/* Info grid */
.pGrid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pMini {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.pMiniT {
    font-size: 12px;
    color: var(--muted);
    font-weight: 900
}

.pMiniV {
    font-size: 13px;
    font-weight: 1000;
    margin-top: 6px
}

/* Pitch box */
.pitchBox {
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(2, 132, 199, .08));
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 16px;
    padding: 14px;
}

.pitchTitle {
    font-weight: 1000;
    margin-bottom: 8px
}

.pitchText {
    font-size: 13px;
    color: #0f172a;
    line-height: 1.5;
    white-space: pre-wrap;
}

.pitchBtns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

.btnPri {
    border: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-weight: 1000;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.btnGhost {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--txt);
    font-weight: 1000;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* Horizontal rows */
.hRow {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding: 2px 2px 8px;
}

/* Training card */
.tCard {
    flex: 0 0 260px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
    overflow: hidden;
}

.tHead {
    padding: 12px 12px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.tBrand {
    font-weight: 1000;
    color: var(--accent)
}

.tBadge {
    font-size: 11px;
    font-weight: 1000;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
}

.tBody {
    padding: 10px 12px 12px
}

.tTitle {
    font-weight: 1000;
    line-height: 1.2
}

.tSub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px
}

.tMeta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted)
}

.tBtnRow {
    padding: 0 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tBtn {
    width: 100%;
    border: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 1000;
    cursor: pointer;
    background: rgba(37, 99, 235, .10);
    color: var(--accent);
}

.coin {
    font-size: 12px;
    font-weight: 1000;
    color: #ca8a04;
}

/* 2-grid cards (courses) */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cCard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.cThumb {
    height: 86px;
    background: #0f172a;
    position: relative
}

.cThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.cPlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.cBody {
    padding: 10px 10px 12px
}

.cTitle {
    font-weight: 1000;
    font-size: 13px;
    line-height: 1.2
}

.cMeta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 10px;
    align-items: center
}

/* Shorts cards - make them look like Shorts */
#shortRow .mCard{
  min-width: 170px;
}
#shortRow .mThumb{
  height: auto !important;
  aspect-ratio: 9 / 12;   /* ✅ shorts look */
  background:#000;
}
#shortRow .mThumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Short/video/blog card */
.mCard {
    flex: 0 0 160px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.mThumb {
    height: 110px;
    background: #0f172a
}

.mThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.mBody {
    padding: 10px
}

.mTitle {
    font-weight: 1000;
    font-size: 13px;
    line-height: 1.2
}

.mSub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px
}

/* Request box */
.requestBox {
    margin-top: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.rqTitle {
    font-weight: 1000
}

.rqBtn {
    margin-top: 12px;
    border: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    cursor: pointer;
    width: min(260px, 100%);
}

.rqHint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted)
}

/* Bottom nav */
/* .bottomNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 8px 10px;
}

.navItem {
    flex: 1;
    text-decoration: none;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
}

.navIco {
    font-size: 18px
}

.navItem.active {
    color: var(--accent)
}

.navItem.active .navIco {
    filter: none
} */

/* Overlay + modal */
/* =========================
   YouTube Modal FIX (Shorts View + Clickable)
========================= */

#ytOverlay, .overlay{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;              /* ✅ important */
  pointer-events: auto;
}

#ytModal, .ytModal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 94vw);    /* ✅ mobile friendly */
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  z-index: 9999;
  overflow: hidden;
  display: none;              /* ✅ important */
  pointer-events: auto;       /* ✅ iframe click allow */
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

/* top bar */
#ytModal .ytTop, .ytModal .ytTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 2;
}

/* ✅ Shorts container */
#ytModal .ytBody, .ytModal .ytBody{
  position: relative;
  background: #000;
  aspect-ratio: 9 / 16;       /* ✅ shorts feel */
  width: 100%;
}

/* ✅ iframe MUST receive touch */
#ytFrame, .ytFrame{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;       /* ✅ play/pause works */
}

/* ✅ prevent accidental pseudo overlays */
#ytModal .ytBody::before,
.ytModal .ytBody::before{
  content: none !important;
}

/* product pills row */
.prodPills {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.prodPill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.prodPill.active {
    border-color: var(--pri);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .08);
}

.ppIco {
    font-size: 16px
}

.ppTxt {
    font-size: 12px
}

/* product snapshot */
.pCard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.pTop {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.pIco {
    font-size: 28px
}

.pName {
    font-weight: 1000;
    font-size: 15px
}

.pMeta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px
}

.pBadges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900
}

.badge.money {
    background: rgba(34, 197, 94, .14)
}

.badge.good {
    background: rgba(59, 130, 246, .14)
}

.pGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px
}

.pMini {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
}

.pMiniT {
    font-size: 11px;
    color: var(--muted);
    font-weight: 900
}

.pMiniV {
    margin-top: 6px;
    font-weight: 900;
    font-size: 12px
}

/* pitch box */
.pitchBox {
    margin-top: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}

.pitchTitle {
    font-weight: 1000
}

.pitchText {
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.pitchBtns {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.btnPri,
.btnGhost {
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 1000;
    cursor: pointer;
    border: 1px solid var(--line);
}

.btnPri {
    background: var(--pri);
    color: white;
    border-color: transparent
}

.btnGhost {
    background: transparent
}

/* training cards */
.tCard {
    min-width: 260px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.tHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 0
}

.tBrand {
    font-size: 11px;
    color: var(--muted);
    font-weight: 1000
}

.tBadge {
    font-size: 11px;
    font-weight: 1000;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
}

.tBadge.free {
    background: rgba(34, 197, 94, .16)
}

.tBody {
    padding: 10px 12px 12px
}

.tTitle {
    font-weight: 1000
}

.tSub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px
}

.tMeta {
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px
}

.tBtnRow {
    padding: 0 12px 12px
}

.tBtn {
    width: 100%;
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 1000;
    border: 1px solid var(--line);
    background: var(--pri);
    color: #fff;
    cursor: pointer;
}

/* courses */
.freeTag {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 1000;
    font-size: 11px;
    background: rgba(34, 197, 94, .16);
}

/* media cards rows */
.mCard {
    min-width: 240px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.mThumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block
}

.mBody {
    padding: 12px
}

.mTitle {
    font-weight: 1000
}

.mSub {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px
}

/* Explore / detail pages */
.exploreSub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.exploreList {
    display: grid;
    gap: 12px;
}

.explorePanelCard,
.exploreBlogCard,
.feedCard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.explorePanelCard {
    padding: 14px;
}

.explorePanelTop {
    display: flex;
    gap: 12px;
    align-items: center;
}

.exploreTrainerAvatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f1f5ff;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.exploreTrainerAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.explorePanelCopy {
    min-width: 0;
}

.explorePanelTitle {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.explorePanelSub {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.explorePanelTags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.explorePanelTags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}

.exploreActionBtn,
.stickyCourseBtn,
.exploreGhostBtn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 900;
}

.exploreActionBtn,
.stickyCourseBtn {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
}

.exploreGhostBtn {
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--txt);
}

.exploreActionBtn {
    margin-top: 14px;
}

.exploreMediaGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.exploreMediaCard {
    border: 0;
    padding: 0;
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
    cursor: pointer;
}

.exploreMediaThumb {
    background: #0f172a;
    aspect-ratio: 9 / 13;
}

.exploreMediaThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exploreMediaFallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px;
}

.exploreMediaCard:not(.isShort) .exploreMediaThumb {
    aspect-ratio: 16 / 10;
}

.exploreMediaBody {
    padding: 12px;
}

.exploreMediaTitle,
.exploreBlogTitle,
.feedTitle {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.exploreMediaSub,
.exploreBlogSub,
.feedSub {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.exploreBlogStack {
    display: grid;
    gap: 14px;
}

.exploreBlogCard {
    display: grid;
    grid-template-columns: 108px 1fr;
    overflow: hidden;
}

.exploreBlogThumb {
    min-height: 124px;
    background: #0f172a;
}

.exploreBlogThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.exploreBlogBody {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feed {
    display: grid;
    gap: 14px;
}

.chipRow {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 2px;
}

.feedCard {
    display: grid;
    grid-template-columns: 96px 1fr;
    overflow: hidden;
}

.feedThumb {
    min-height: 110px;
    background: #0f172a;
    display: grid;
    place-items: center;
    color: #fff;
}

.feedThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feedCopy {
    padding: 14px;
}

.feedKind {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}

.feedActions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.feedActions .btnPri,
.feedActions .btnGhost {
    padding: 9px 12px;
}

.sheetVideoWrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.sheetVideoWrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.sheetOverlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(4px);
    z-index: 9998;
}

.sheet {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(460px, calc(100vw - 20px));
    max-height: 78vh;
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.sheetTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.sheetTitle {
    font-size: 14px;
    font-weight: 900;
}

.sheetClose {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
}

.sheetBody {
    padding: 14px;
}

/* Course detail */
.courseHeroMedia {
    position: relative;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.courseHeroMedia img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.courseHeroOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .78));
}

.courseHeroTopRow,
.courseHeroCopy,
.courseHeroFoot {
    position: absolute;
    left: 14px;
    right: 14px;
    z-index: 2;
}

.courseHeroTopRow {
    top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.courseHeroBrand,
.courseHeroBadge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.courseHeroBrand {
    background: rgba(255, 255, 255, .92);
    color: #0f766e;
}

.courseHeroBadge {
    background: rgba(255, 237, 213, .95);
    color: #9a3412;
}

.courseHeroCopy {
    bottom: 42px;
    color: #fff;
}

.courseHeroTitle {
    font-size: 28px;
    font-weight: 1000;
    line-height: 1.05;
}

.courseHeroSub {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .86);
    max-width: 22ch;
}

.courseHeroWatch {
    margin-top: 12px;
    border: 0;
    background: #fff;
    color: #0f172a;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 1000;
    cursor: pointer;
}

.courseHeroFoot {
    bottom: 10px;
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .42);
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
}

.courseSummaryTitle {
    font-size: 22px;
    font-weight: 1000;
}

.courseSummarySub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.courseMetaRow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.courseMetaBox {
    padding: 12px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
}

.courseMetaBox span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
}

.courseMetaBox strong {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 1000;
}

.courseMetaBox.highlight {
    background: rgba(250, 204, 21, .12);
    border-color: rgba(250, 204, 21, .28);
}

.courseChapterList {
    display: grid;
    gap: 12px;
}

.chapterItem {
    width: 100%;
    border: 0;
    background: var(--card);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 12px;
    align-items: center;
    text-align: left;
    border: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .05);
    cursor: pointer;
}

.chapterItem.active {
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .10);
}

.chapterThumb {
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}

.chapterThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chapterFallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
}

.chapterLabel {
    font-size: 12px;
    color: var(--muted);
}

.chapterTitle {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.chapterIcon {
    color: var(--muted);
    font-size: 18px;
}

.stickyCourseAction {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
    .exploreMediaGrid {
        grid-template-columns: 1fr 1fr;
    }

    .courseMetaRow {
        grid-template-columns: 1fr 1fr;
    }

    .exploreBlogCard,
    .feedCard {
        grid-template-columns: 92px 1fr;
    }
}
