/* =========================================================
   GĐTC Podcast – "vở ô ly & mực bút bi"
   ======================================================= */
.gdtc {
	--gd-ink: #1f3a93;        /* mực bút bi xanh */
	--gd-ink-deep: #14245e;
	--gd-paper: #fcfcf7;      /* giấy vở */
	--gd-grid: #dfe6f4;       /* dòng kẻ ô ly */
	--gd-margin: #e0564a;     /* đường lề đỏ */
	--gd-marker: #fff27a;     /* bút dạ quang */
	--gd-text: #1c2140;
	--gd-muted: #5d6585;
	--gd-line: #e4e7f0;
	--gd-hand: 'Patrick Hand', 'Comic Sans MS', cursive;
	font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--gd-text);
	line-height: 1.6;
	box-sizing: border-box;
}
.gdtc *, .gdtc *::before, .gdtc *::after { box-sizing: inherit; }
.gdtc h2, .gdtc h3, .gdtc p { margin: 0; }
.gdtc a { text-decoration: none; }
.gdtc img { max-width: 100%; display: block; }
.gdtc :focus-visible { outline: 3px solid var(--gd-ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- nền vở ô ly ---------- */
.gdtc-intro,
.gdtc-card-note {
	background-color: var(--gd-paper);
	background-image:
		linear-gradient(var(--gd-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--gd-grid) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* ---------- chữ viết tay & bút dạ ---------- */
.gdtc-hand {
	font-family: var(--gd-hand);
	color: var(--gd-ink);
	font-size: 1.35rem;
	line-height: 1.2;
}
.gdtc-marker {
	display: inline-block;
	font-weight: 700;
	font-size: .95rem;
	color: var(--gd-text);
	padding: .15em .55em;
	background: linear-gradient(100deg, transparent 2%, var(--gd-marker) 6%, var(--gd-marker) 94%, transparent 98%);
	transform: rotate(-1.5deg);
}
.gdtc-tape {
	position: absolute;
	top: -12px;
	left: 50%;
	width: 96px;
	height: 26px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(255, 242, 122, .75);
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ---------- nút ---------- */
.gdtc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 46px;
	padding: .6em 1.3em;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	cursor: pointer;
	border: 2px solid var(--gd-ink);
	transition: background-color .2s, color .2s, transform .2s;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
.gdtc-btn--ink { background: var(--gd-ink); color: #fff !important; }
.gdtc-btn--ink:hover { background: var(--gd-ink-deep); border-color: var(--gd-ink-deep); }
.gdtc-btn--ghost { background: transparent; color: var(--gd-ink) !important; }
.gdtc-btn--ghost:hover { background: var(--gd-ink); color: #fff !important; }
.gdtc-btn--block { width: 100%; }
.gdtc-btn:active { transform: translateY(1px); }

/* =========================================================
   INTRO
   ======================================================= */
.gdtc-intro {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 40px;
	align-items: center;
	padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(32px, 6vw, 72px) clamp(40px, 7vw, 96px);
	border: 1px solid var(--gd-line);
	border-radius: 28px;
	overflow: hidden;
	margin-bottom: 32px;
}
.gdtc-intro::before { /* đường lề đỏ của vở */
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	left: clamp(22px, 4vw, 56px);
	width: 2px;
	background: var(--gd-margin);
	opacity: .55;
}
.gdtc-intro__kicker {
	font-family: var(--gd-hand);
	font-size: 1.3rem;
	color: var(--gd-margin);
	margin-bottom: .4rem !important;
}
.gdtc-intro__title {
	font-size: clamp(2.3rem, 5.4vw, 4.4rem);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.025em;
	color: var(--gd-ink);
	max-width: 13ch;
	text-wrap: balance;
	animation: gdtc-write .9s cubic-bezier(.2,.7,.2,1) both;
}
.gdtc-intro__desc {
	margin-top: 1.2rem !important;
	max-width: 58ch;
	font-size: clamp(1rem, 1.3vw, 1.12rem);
	color: var(--gd-muted);
}
.gdtc-intro__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.8rem;
}
.gdtc-intro__ticket {
	position: relative;
	background: #fff;
	border: 1px solid var(--gd-line);
	border-radius: 6px;
	padding: 34px 24px 26px;
	text-align: center;
	transform: rotate(2.5deg);
	box-shadow: 0 18px 40px -22px rgba(20, 36, 94, .45);
}
.gdtc-intro__count {
	display: block;
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--gd-ink);
	letter-spacing: -.04em;
}
.gdtc-intro__count-label {
	display: block;
	margin-top: 6px;
	font-weight: 600;
	color: var(--gd-text);
}
.gdtc-intro__ticket .gdtc-hand {
	display: block;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--gd-line);
}

@keyframes gdtc-write {
	from { clip-path: inset(0 100% 0 0); }
	to   { clip-path: inset(0 0 0 0); }
}

/* =========================================================
   FEATURED
   ======================================================= */
.gdtc-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: clamp(20px, 3vw, 36px);
	margin-bottom: 48px;
	background: var(--gd-ink-deep);
	border-radius: 28px;
	color: #fff;
}
.gdtc-feature__media { position: relative; }
.gdtc-feature__note {
	position: absolute;
	top: -30px;
	right: 12px;
	color: var(--gd-marker);
	transform: rotate(-4deg);
	z-index: 2;
}
.gdtc-feature__title {
	margin-top: 14px !important;
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.015em;
}
.gdtc-feature__title a { color: #fff !important; }
.gdtc-feature__title a:hover { text-decoration: underline; text-decoration-color: var(--gd-marker); text-underline-offset: 5px; }
.gdtc-feature__excerpt {
	margin-top: 12px !important;
	color: rgba(255,255,255,.78);
	max-width: 52ch;
}
.gdtc-feature .gdtc-guest {
	margin: 22px 0;
	padding: 14px 0;
	border-top: 1px solid rgba(255,255,255,.14);
	border-bottom: 1px solid rgba(255,255,255,.14);
}
.gdtc-feature .gdtc-guest__name { color: #fff; }
.gdtc-feature .gdtc-guest__role,
.gdtc-feature .gdtc-guest__label { color: rgba(255,255,255,.7); }
.gdtc-feature .gdtc-guest__avatar { background: var(--gd-marker); color: var(--gd-ink-deep); }
.gdtc-feature .gdtc-btn--ink { background: #fff; color: var(--gd-ink-deep) !important; border-color: #fff; }
.gdtc-feature .gdtc-btn--ink:hover { background: var(--gd-marker); border-color: var(--gd-marker); }

/* ---------- player ---------- */
.gdtc-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 50px -24px rgba(0,0,0,.55);
}
.gdtc-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
}
.gdtc-player--empty {
	display: grid;
	place-items: center;
	color: #fff;
	font-size: .95rem;
}

/* ---------- khách mời ---------- */
.gdtc-guest { display: flex; gap: 14px; align-items: flex-start; }
.gdtc-guest__avatar {
	flex: 0 0 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.3rem;
	background: var(--gd-ink);
	color: #fff;
}
.gdtc-guest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gdtc-guest__label { font-family: var(--gd-hand); font-size: 1.1rem; color: var(--gd-muted); line-height: 1.1; }
.gdtc-guest__name { font-size: 1.08rem; font-weight: 700; color: var(--gd-text); }
.gdtc-guest__role { font-size: .9rem; color: var(--gd-muted); line-height: 1.45; }

/* =========================================================
   DANH SÁCH TẬP – dạng "mục lục"
   ======================================================= */
.gdtc-list { margin-bottom: 48px; scroll-margin-top: 120px; }
.gdtc-list__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 8px;
	border-bottom: 3px solid var(--gd-ink);
}
.gdtc-list__title {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--gd-ink);
}
.gdtc-row {
	display: grid;
	grid-template-columns: 64px 220px minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	padding: 20px 8px;
	border-bottom: 1px solid var(--gd-line);
	transition: background-color .2s;
}
.gdtc-row:hover { background: #f5f7fc; }
.gdtc-row__num {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--gd-ink);
	letter-spacing: -.04em;
}
.gdtc-row__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--gd-ink-deep);
}
.gdtc-row__thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.gdtc-row__play {
	position: absolute;
	left: 10px; bottom: 10px;
	width: 36px; height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--gd-marker);
	color: var(--gd-ink-deep);
}
.gdtc-row__dur {
	position: absolute;
	right: 8px; bottom: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0,0,0,.72);
	color: #fff;
	font-size: .78rem;
	font-weight: 600;
}
.gdtc-row__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.gdtc-row__title a { color: var(--gd-text) !important; }
.gdtc-row__title a:hover { color: var(--gd-ink) !important; }
.gdtc-row__guest { margin-top: 4px !important; font-size: .9rem; color: var(--gd-muted); }
.gdtc-row__guest strong { color: var(--gd-ink); font-weight: 600; }
.gdtc-row__excerpt {
	margin-top: 6px !important;
	font-size: .92rem;
	color: var(--gd-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 70ch;
}
.gdtc-row__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 2px solid var(--gd-ink);
	color: var(--gd-ink) !important;
	font-weight: 600;
	font-size: .9rem;
	transition: background-color .2s, color .2s;
}
.gdtc-row__cta:hover { background: var(--gd-ink); color: #fff !important; }

.gdtc-empty {
	padding: 36px 8px;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 20px;
	color: var(--gd-muted);
	border-bottom: 1px solid var(--gd-line);
}
.gdtc-empty .gdtc-hand { font-size: 1.6rem; }
.gdtc-empty p { max-width: 56ch; }

.gdtc-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}
.gdtc-pager .page-numbers {
	min-width: 42px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--gd-line);
	text-align: center;
	color: var(--gd-ink);
	font-weight: 600;
}
.gdtc-pager .page-numbers.current { background: var(--gd-ink); border-color: var(--gd-ink); color: #fff; }

/* =========================================================
   TRANG CHI TIẾT
   ======================================================= */
.gdtc-single__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 22px 0 32px;
}
.gdtc-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 500;
	background: #eef2fb;
	color: var(--gd-ink);
}
.gdtc-chip--plain { background: transparent; border: 1px solid var(--gd-line); color: var(--gd-muted); }

.gdtc-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	margin-bottom: 56px;
}
.gdtc-single__content {
	font-size: 1.06rem;
	line-height: 1.8;
	max-width: 68ch;
}
.gdtc-single__content p { margin: 0 0 1.1em; }
.gdtc-single__content blockquote {
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--gd-margin);
	font-family: var(--gd-hand);
	font-size: 1.45rem;
	line-height: 1.4;
	color: var(--gd-ink);
}
.gdtc-single__content h2,
.gdtc-single__content h3 { color: var(--gd-ink); margin: 1.4em 0 .5em; line-height: 1.3; }

.gdtc-single__aside { position: sticky; top: 110px; }
.gdtc-card-note {
	position: relative;
	padding: 30px 22px 22px;
	border: 1px solid var(--gd-line);
	border-radius: 8px;
	transform: rotate(-.8deg);
	box-shadow: 0 18px 40px -26px rgba(20, 36, 94, .5);
}
.gdtc-card-note__actions { display: grid; gap: 10px; margin-top: 20px; }

/* =========================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 1024px) {
	.gdtc-feature { grid-template-columns: 1fr; }
	.gdtc-feature__note { top: -26px; }
	.gdtc-single__grid { grid-template-columns: 1fr; }
	.gdtc-single__aside { position: static; }
	.gdtc-card-note { transform: none; max-width: 480px; }
}
@media (max-width: 849px) {
	.gdtc-intro { grid-template-columns: 1fr; }
	.gdtc-intro__ticket { max-width: 260px; }
	.gdtc-row { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
	.gdtc-row__num { display: none; }
	.gdtc-row__cta { display: none; }
}
@media (max-width: 549px) {
	.gdtc-intro { border-radius: 20px; }
	.gdtc-feature { border-radius: 20px; padding: 14px 14px 22px; }
	.gdtc-feature__body { padding: 0 6px; }
	.gdtc-feature__note { display: none; }
	.gdtc-row { grid-template-columns: 1fr; padding: 18px 0; }
	.gdtc-row__thumb { border-radius: 14px; }
	.gdtc-intro__actions .gdtc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.gdtc *, .gdtc *::before, .gdtc *::after { animation: none !important; transition: none !important; }
}
