[hidden], .thpt-card[hidden], .thpt-video-card[hidden], .thpt-blog-card[hidden], .thpt-short-card[hidden], .thpt-mobile-drawer[hidden], .thpt-search__dropdown[hidden], .thpt-tab-panel[hidden], .thpt-resume-bar[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
	margin: 0;
	font-family: var(--thpt-font-sans);
	background: var(--thpt-bg);
	color: var(--thpt-ink-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.thpt-skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--thpt-accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.thpt-skip-link:focus { left: 12px; }

.thpt-reading-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0%;
	background: linear-gradient(90deg, #10B981, #0284C7, #9333EA, #E11D48);
	z-index: 999; transition: width 0.1s linear;
}

/* Surface 1: Header */
.thpt-header {
	background: var(--thpt-header-bg);
	border-bottom: 1px solid var(--thpt-border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	z-index: 80;
}
@media (min-width: 1025px) {
	.thpt-header { position: sticky; top: 0; }
}
@media (max-width: 1024px) {
	.thpt-header { position: relative; }
}

.thpt-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; padding: 10px 20px; max-width: 1640px; margin: 0 auto;
}
.thpt-header__start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thpt-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 10px;
	border: 1px solid var(--thpt-border); background: var(--thpt-surface);
	color: var(--thpt-ink); cursor: pointer; flex-shrink: 0;
}
.thpt-icon-btn:hover { border-color: var(--thpt-accent); color: var(--thpt-accent); }

.thpt-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.thpt-brand__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.thpt-brand__text { display: flex; flex-direction: column; line-height: 1.22; }
.thpt-brand__text strong { font-size: 1.08rem; font-weight: 800; color: var(--thpt-ink); letter-spacing: -0.01em; }
.thpt-brand__text span { font-size: 0.76rem; color: var(--thpt-muted); font-weight: 500; }

/* Instant Search */
.thpt-search {
	position: relative; flex: 1; max-width: 520px;
	display: flex; align-items: center;
}
.thpt-search__input {
	width: 100%; height: 40px; padding: 0 38px 0 38px;
	border-radius: 999px; border: 1px solid var(--thpt-border);
	background: var(--thpt-surface-alt); color: var(--thpt-ink);
	font-family: inherit; font-size: 0.9rem; outline: none;
}
.thpt-search__input:focus { border-color: var(--thpt-blue); background: var(--thpt-surface); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
.thpt-search__icon { position: absolute; left: 13px; color: var(--thpt-muted); pointer-events: none; display: flex; }
.thpt-search__clear {
	position: absolute; right: 10px; border: 0; background: transparent;
	color: var(--thpt-muted); cursor: pointer; font-size: 0.9rem; padding: 4px;
}
.thpt-search__dropdown {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0;
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	border-radius: 14px; box-shadow: var(--thpt-shadow);
	max-height: 420px; overflow-y: auto; z-index: 120; padding: 8px;
}
.thpt-search-item {
	display: flex; align-items: center; gap: 10px; padding: 9px 10px;
	border-radius: 10px; transition: background 0.15s;
}
.thpt-search-item:hover { background: var(--thpt-surface-alt); }
.thpt-search-item img { width: 72px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.thpt-search-item__title { font-size: 0.88rem; font-weight: 600; color: var(--thpt-ink); display: block; line-height: 1.35; }
.thpt-search-item__meta { font-size: 0.75rem; color: var(--thpt-muted); }

/* Header Controls */
.thpt-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.thpt-ctrl-btn {
	height: 34px; padding: 0 10px; border-radius: 8px;
	border: 1px solid var(--thpt-border); background: var(--thpt-surface);
	color: var(--thpt-ink); font-family: inherit; font-size: 0.8rem; font-weight: 600;
	cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.thpt-ctrl-btn:hover { border-color: var(--thpt-blue); color: var(--thpt-blue); }

.thpt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 0.86rem;
	cursor: pointer; border: 1px solid transparent; transition: transform 0.12s, background 0.15s;
}
.thpt-btn--primary { background: #E11D48; color: #FFFFFF; }
.thpt-btn--primary:hover { background: #BE123C; }
.thpt-btn--blue { background: #0284C7; color: #FFFFFF; }
.thpt-btn--blue:hover { background: #0369A1; }
.thpt-btn--ghost { background: var(--thpt-surface); border-color: var(--thpt-border); color: var(--thpt-ink); }
.thpt-btn--ghost:hover { border-color: var(--thpt-ink); }

/* Nav Strip */
.thpt-nav-strip {
	border-top: 1px solid var(--thpt-border);
	overflow-x: auto; scrollbar-width: none;
}
.thpt-nav-strip::-webkit-scrollbar { display: none; }
.thpt-nav__list {
	list-style: none; margin: 0 auto; padding: 0 20px; max-width: 1640px;
	display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.thpt-nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 12px; font-size: 0.86rem; font-weight: 600;
	color: var(--thpt-muted); border-bottom: 2.5px solid transparent;
}
.thpt-nav__link:hover, .thpt-nav__link.is-active {
	color: var(--thpt-ink); border-bottom-color: var(--thpt-accent);
}

/* Surface 2: App Shell + Collapsible Left Sidebar */
.thpt-app-shell {
	display: flex; max-width: 1640px; margin: 0 auto; min-height: calc(100vh - 96px);
}
.thpt-sidebar {
	width: 242px; flex-shrink: 0; border-right: 1px solid var(--thpt-border);
	background: var(--thpt-surface); padding: 16px 10px;
	position: sticky; top: 96px; height: calc(100vh - 96px); overflow-y: auto;
}
html[data-sidebar="collapsed"] .thpt-sidebar { width: 76px; padding: 14px 6px; }
html[data-sidebar="collapsed"] .thpt-sidebar__group-title,
html[data-sidebar="collapsed"] .thpt-sidebar__badge,
html[data-sidebar="collapsed"] .thpt-sidebar__bridge { display: none; }
html[data-sidebar="collapsed"] .thpt-sidebar__link { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 0.68rem; text-align: center; }

.thpt-sidebar__group { margin-bottom: 18px; }
.thpt-sidebar__group-title {
	font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
	letter-spacing: 0.06em; color: var(--thpt-muted); padding: 0 10px 6px; margin: 0;
}
.thpt-sidebar__link {
	display: flex; align-items: center; gap: 10px; padding: 9px 11px;
	border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: var(--thpt-ink-body);
}
.thpt-sidebar__link:hover, .thpt-sidebar__link.is-active {
	background: var(--thpt-surface-alt); color: var(--thpt-ink);
}
.thpt-sidebar__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.thpt-sidebar__dot--g12 { background: #E11D48; }
.thpt-sidebar__dot--g11 { background: #9333EA; }
.thpt-sidebar__dot--g10 { background: #0284C7; }
.thpt-sidebar__dot--g9  { background: #059669; }
.thpt-sidebar__dot--casio { background: #EA580C; }
.thpt-sidebar__badge {
	margin-left: auto; font-size: 0.72rem; padding: 2px 7px; border-radius: 999px;
	background: var(--thpt-surface-alt); color: var(--thpt-muted); font-weight: 700;
}
.thpt-sidebar__bridge {
	margin-top: 14px; padding: 12px; border-radius: 12px;
	background: var(--thpt-surface-alt); border: 1px solid var(--thpt-border);
	font-size: 0.8rem;
}

.thpt-app-main { flex: 1; min-width: 0; padding: 24px 28px 48px; }
.thpt-container { max-width: 1280px; margin: 0 auto; }

/* Grade Pills & Badges */
.thpt-badge {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px; border-radius: 999px; font-size: 0.73rem; font-weight: 800;
	border: 1px solid transparent; letter-spacing: 0.01em;
}
.thpt-badge--grade-12, .thpt-badge--toan-12 { background: var(--g12-bg); color: var(--g12-fg); border-color: var(--g12-bd); }
.thpt-badge--grade-11, .thpt-badge--toan-11 { background: var(--g11-bg); color: var(--g11-fg); border-color: var(--g11-bd); }
.thpt-badge--grade-10, .thpt-badge--toan-10 { background: var(--g10-bg); color: var(--g10-fg); border-color: var(--g10-bd); }
.thpt-badge--grade-9,  .thpt-badge--tuyen-sinh-10 { background: var(--g9-bg); color: var(--g9-fg); border-color: var(--g9-bd); }
.thpt-badge--casio,    .thpt-badge--meo-casio { background: var(--casio-bg); color: var(--casio-fg); border-color: var(--casio-bd); }

/* Hero Studio */
.thpt-hero {
	background: linear-gradient(135deg, #091326 0%, #132546 58%, #1E1B4B 100%);
	color: #F8FAFC; border-radius: 20px; padding: 28px 32px;
	border: 1px solid rgba(125, 211, 252, 0.22);
	margin-bottom: 28px; position: relative; overflow: hidden;
}
.thpt-hero__grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 24px; align-items: center; }
.thpt-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
	color: #FDE047; margin: 0 0 10px;
}
.thpt-hero h1 {
	margin: 0 0 12px; font-size: clamp(1.55rem, 2.5vw, 2.25rem);
	line-height: 1.24; font-weight: 800; color: #FFFFFF;
}
.thpt-hero__lead { margin: 0 0 18px; color: #CBD5E1; font-size: 0.98rem; max-width: 640px; }
.thpt-hero__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.thpt-hero__pill {
	padding: 7px 13px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
	background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.2);
	color: #FFFFFF; transition: background 0.15s, transform 0.12s;
}
.thpt-hero__pill:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.thpt-hero__stats {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
	background: rgba(9, 18, 36, 0.68); border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 16px; padding: 18px;
}
.thpt-stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: #38BDF8; }
.thpt-stat span { font-size: 0.8rem; color: #CBD5E1; }

/* Filter Bar */
.thpt-section-head {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px; margin: 30px 0 16px;
}
.thpt-section-head h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--thpt-ink); }
.thpt-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.thpt-chip {
	padding: 7px 14px; border-radius: 999px; font-size: 0.83rem; font-weight: 700;
	border: 1px solid var(--thpt-border); background: var(--thpt-surface);
	color: var(--thpt-muted); cursor: pointer; font-family: inherit;
}
.thpt-chip:hover, .thpt-chip.is-active {
	background: var(--thpt-ink); color: var(--thpt-bg); border-color: var(--thpt-ink);
}

/* Video Lecture Grid */
.thpt-video-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px;
}
.thpt-video-card {
	display: flex; flex-direction: column; background: var(--thpt-surface);
	border: 1px solid var(--thpt-border); border-radius: 16px; overflow: hidden;
	box-shadow: var(--thpt-shadow); transition: transform 0.16s, border-color 0.16s;
}
.thpt-video-card:hover { transform: translateY(-3px); border-color: var(--thpt-blue); }
.thpt-video-card__thumb { position: relative; aspect-ratio: 16 / 9; background: #0F172A; overflow: hidden; }
.thpt-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thpt-video-card__dur {
	position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
	background: rgba(9, 14, 26, 0.86); color: #fff; font-size: 0.74rem; font-weight: 700;
}
.thpt-video-card__done {
	position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
	background: #059669; color: #fff; font-size: 0.7rem; font-weight: 800;
}
.thpt-video-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.thpt-video-card__title {
	margin: 0; font-size: 0.98rem; font-weight: 700; color: var(--thpt-ink);
	line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thpt-video-card__desc {
	margin: 0; font-size: 0.83rem; color: var(--thpt-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.thpt-video-card__meta {
	margin-top: auto; padding-top: 6px; display: flex; align-items: center;
	justify-content: space-between; font-size: 0.76rem; color: var(--thpt-muted);
}

/* Shorts Casio 9:16 Shelf */
.thpt-shorts-rail {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px;
}
.thpt-short-card {
	display: flex; flex-direction: column; background: var(--thpt-surface);
	border: 1px solid var(--thpt-border); border-radius: 14px; overflow: hidden;
	transition: transform 0.15s, border-color 0.15s;
}
.thpt-short-card:hover { transform: translateY(-3px); border-color: #EA580C; }
.thpt-short-card__thumb { position: relative; aspect-ratio: 9 / 16; background: #09111E; overflow: hidden; }
.thpt-short-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thpt-short-card__pill {
	position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px;
	background: rgba(234, 88, 12, 0.92); color: #fff; font-size: 0.68rem; font-weight: 800;
}
.thpt-short-card__title {
	padding: 10px 12px; margin: 0; font-size: 0.84rem; font-weight: 700;
	color: var(--thpt-ink); line-height: 1.35;
}

/* SEO Math Blog Cards */
.thpt-blog-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.thpt-blog-card {
	display: flex; flex-direction: column; gap: 10px; padding: 20px;
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	border-radius: 16px; box-shadow: var(--thpt-shadow); transition: border-color 0.15s, transform 0.15s;
}
.thpt-blog-card:hover { border-color: var(--thpt-accent); transform: translateY(-2px); }
.thpt-blog-card h3 { margin: 0; font-size: 1.06rem; font-weight: 800; color: var(--thpt-ink); line-height: 1.38; }
.thpt-blog-card p { margin: 0; font-size: 0.88rem; color: var(--thpt-muted); line-height: 1.6; }

/* Watch Classroom Layout */
.thpt-watch-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
}
.thpt-player-box {
	background: #050B14; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--thpt-border); box-shadow: var(--thpt-shadow);
}
.thpt-aspect-16x9 { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.thpt-aspect-9x16 { position: relative; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; }
.thpt-aspect-16x9 iframe, .thpt-aspect-9x16 iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.thpt-watch-actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--thpt-border);
}
.thpt-tabs__nav {
	display: flex; gap: 6px; border-bottom: 1px solid var(--thpt-border); margin-bottom: 16px; overflow-x: auto;
}
.thpt-tab-btn {
	padding: 10px 16px; border: 0; background: transparent; font-family: inherit;
	font-size: 0.9rem; font-weight: 700; color: var(--thpt-muted);
	border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.thpt-tab-btn.is-active { color: var(--thpt-ink); border-bottom-color: var(--thpt-accent); }
.thpt-tab-panel {
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	border-radius: 14px; padding: 20px; font-size: calc(1rem * var(--thpt-reading-scale));
}
.thpt-chapter-list { display: flex; flex-direction: column; gap: 8px; }
.thpt-chapter-btn {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
	padding: 10px 14px; border-radius: 10px; border: 1px solid var(--thpt-border);
	background: var(--thpt-surface-alt); color: var(--thpt-ink); cursor: pointer; font-family: inherit;
}
.thpt-chapter-btn:hover { border-color: var(--thpt-blue); }
.thpt-chapter-time {
	padding: 3px 8px; border-radius: 6px; background: var(--thpt-blue);
	color: #fff; font-size: 0.78rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

.thpt-playlist-box {
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	border-radius: 16px; overflow: hidden; position: sticky; top: 112px;
}
.thpt-playlist-head {
	padding: 14px 16px; border-bottom: 1px solid var(--thpt-border);
	display: flex; align-items: center; justify-content: space-between;
}
.thpt-queue-list { max-height: 580px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.thpt-queue-item {
	display: flex; gap: 10px; padding: 8px; border-radius: 10px; align-items: center;
}
.thpt-queue-item:hover, .thpt-queue-item.is-current { background: var(--thpt-surface-alt); }
.thpt-queue-item img { width: 108px; height: 61px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.thpt-queue-item strong {
	font-size: 0.83rem; color: var(--thpt-ink); line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Single Math Article Reader + KaTeX + Casio Keycaps */
.thpt-article-wrap { max-width: 840px; margin: 0 auto; }
.thpt-prose {
	font-size: calc(1.04rem * var(--thpt-reading-scale));
	line-height: 1.82; color: var(--thpt-ink-body);
}
.thpt-prose h2 { color: var(--thpt-ink); font-size: 1.42em; margin: 1.8em 0 0.65em; line-height: 1.3; }
.thpt-prose h3 { color: var(--thpt-ink); font-size: 1.18em; margin: 1.4em 0 0.5em; }
.thpt-prose p, .thpt-prose li { margin-bottom: 0.9em; }
.thpt-toc-anchor { scroll-margin-top: 112px; }

.thpt-reader-toc {
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	border-left: 4px solid var(--thpt-blue); border-radius: 12px;
	padding: 16px 20px; margin: 20px 0 26px;
}
.thpt-reader-toc strong { display: block; margin-bottom: 8px; color: var(--thpt-ink); }
.thpt-reader-toc ol { margin: 0; padding-left: 20px; font-size: 0.93rem; }
.thpt-reader-toc li { margin-bottom: 5px; }
.thpt-reader-toc a { color: var(--thpt-blue); font-weight: 600; }

.thpt-formula-box {
	background: var(--thpt-formula-bg); border: 1px solid var(--thpt-border);
	border-left: 4px solid var(--thpt-formula-border); border-radius: 12px;
	padding: 16px 20px; margin: 18px 0; overflow-x: auto;
}
.thpt-trap-box {
	background: var(--g12-bg); border: 1px solid var(--g12-bd);
	border-radius: 12px; padding: 14px 18px; margin: 18px 0; color: var(--thpt-ink);
}
kbd.thpt-key {
	display: inline-block; padding: 2px 7px; margin: 0 2px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82em; font-weight: 700;
	background: #1E293B; color: #FDE047; border-radius: 5px;
	border-bottom: 2px solid #0F172A;
}
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 6px 0; }

/* Teacher Companion Banner (Outro Bridge to danghoangdu.vn & Zalo) */
.thpt-companion-card {
	margin-top: 38px; padding: 24px 28px; border-radius: 18px;
	background: var(--thpt-surface); border: 1px solid var(--thpt-border);
	display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
	box-shadow: var(--thpt-shadow);
}
.thpt-companion-card__qr { width: 118px; height: 118px; border-radius: 12px; border: 1px solid var(--thpt-border); padding: 4px; background: #fff; }

/* Footer */
.thpt-footer {
	border-top: 1px solid var(--thpt-border); background: var(--thpt-surface);
	padding: 36px 24px 42px; margin-top: 40px; font-size: 0.88rem; color: var(--thpt-muted);
}
.thpt-footer__grid {
	max-width: 1280px; margin: 0 auto;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
}
.thpt-footer h3 { margin: 0 0 10px; font-size: 0.96rem; color: var(--thpt-ink); }
.thpt-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }

/* Surface 3: Mobile Drawer (Outside Header z-index 980) & Fixed 5-Slot Bottom Dock (z-index 920) */
.thpt-mobile-drawer {
	position: fixed; inset: 0; z-index: 980; background: rgba(7, 14, 26, 0.6);
	display: flex; justify-content: flex-end;
}
.thpt-mobile-drawer__panel {
	width: min(330px, 88vw); height: 100%; background: var(--thpt-surface);
	padding: 20px 18px 110px; overflow-y: auto; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
}
.thpt-bottom-dock { display: none; }

@media (max-width: 1080px) {
	.thpt-watch-layout { grid-template-columns: 1fr; }
	.thpt-playlist-box { position: static; }
}
@media (max-width: 1024px) {
	.thpt-sidebar { display: none; }
	.thpt-hero__grid { grid-template-columns: 1fr; }
	.thpt-app-main { padding: 18px 16px 36px; }
}
@media (max-width: 820px) {
	.thpt-header__bar { flex-wrap: wrap; padding: 10px 14px; }
	.thpt-search { order: 3; max-width: none; width: 100%; flex-basis: 100%; }
	.thpt-hide-mobile { display: none !important; }
	.thpt-companion-card { grid-template-columns: 1fr; text-align: left; }
	.thpt-footer__grid { grid-template-columns: 1fr; }
	.thpt-footer { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
	.thpt-bottom-dock {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 920;
		display: grid; grid-template-columns: repeat(5, 1fr);
		background: var(--thpt-header-bg); border-top: 1px solid var(--thpt-border);
		backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
	}
	.thpt-bottom-dock__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center;
		gap: 3px; font-size: 0.68rem; font-weight: 700; color: var(--thpt-muted);
		padding: 4px 2px; border: 0; background: transparent; font-family: inherit; cursor: pointer;
	}
	.thpt-bottom-dock__item.is-active { color: var(--thpt-accent); }
}
