/**
Theme Name: sheetnhac
Author: ThanhCaViet
Description: Child theme giao diện kho sheet nhạc Thánh Ca.
Version: 2.2.0
Text Domain: sheetnhac
Template: astra
*/

:root {
    --tcv-navy: #081d3a;
    --tcv-navy-2: #0d2d55;
    --tcv-red: #e51f2b;
    --tcv-red-dark: #c9131e;
    --tcv-text: #14233b;
    --tcv-muted: #536176;
    --tcv-line: #e3e8f0;
    --tcv-soft: #f6f8fb;
    --tcv-white: #fff;
    --tcv-shadow: 0 16px 45px rgba(8, 29, 58, .09);
}

/* PDF waiting page */
.tcv-download-page { min-height: 68vh; display: grid; place-items: center; padding: 58px 20px 76px; background: linear-gradient(180deg, #f6f8fb, #fff); }
.tcv-download-wait-card { width: min(560px, 100%); padding: 44px 40px 38px; border: 1px solid var(--tcv-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 55px rgba(8,29,58,.09); text-align: center; }
.tcv-download-file-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: var(--tcv-red); background: #fff0f1; }
.tcv-download-file-icon svg, .tcv-download-ready svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tcv-download-eyebrow { margin-bottom: 8px!important; color: var(--tcv-red); font-size: 12px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.tcv-download-wait-card h1 { margin: 0 0 14px; color: var(--tcv-navy); font-size: clamp(28px, 5vw, 40px); line-height: 1.15; font-weight: 850; }
.tcv-download-message { margin-bottom: 20px!important; color: #4f5d72; font-size: 16px; line-height: 1.65; }
.tcv-download-progress { width: 100%; height: 8px; margin: 0 0 24px; overflow: hidden; border-radius: 10px; background: #edf0f4; }
.tcv-download-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--tcv-red); transition: width .9s linear; }
.tcv-download-ready { min-height: 50px; display: none; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: 9px; color: #fff!important; background: var(--tcv-red); font-size: 15px; font-weight: 800; box-shadow: 0 8px 20px rgba(229,31,43,.2); }
.tcv-download-ready svg { width: 20px; height: 20px; }
.tcv-download-ready.is-visible { display: flex; animation: tcv-download-pop .3s ease both; }
.tcv-download-ready:hover { color: #fff!important; background: var(--tcv-red-dark); }
.tcv-download-assurance { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 15px; margin-top: 22px; color: #526075; font-size: 12px; font-weight: 650; }
@keyframes tcv-download-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 540px) {
    .tcv-download-page { padding: 32px 12px 48px; }
    .tcv-download-wait-card { padding: 32px 20px 28px; border-radius: 14px; }
    .tcv-download-wait-card h1 { font-size: 28px; }
    .tcv-download-message { font-size: 15px; }
    .tcv-download-assurance { display: grid; font-size: 12px; }
}

html { scroll-behavior: smooth; }
body.tcv-home,
body.tcv-site {
    margin: 0;
    background: #fff;
    color: var(--tcv-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
body.tcv-home *, body.tcv-home *::before, body.tcv-home *::after,
body.tcv-site *, body.tcv-site *::before, body.tcv-site *::after { box-sizing: border-box; }
body.tcv-home a, body.tcv-site a { color: inherit; text-decoration: none; }
body.tcv-home img, body.tcv-site img { display: block; max-width: 100%; }
body.tcv-home h1, body.tcv-home h2, body.tcv-home h3, body.tcv-home p,
body.tcv-site h1, body.tcv-site h2, body.tcv-site h3, body.tcv-site p { margin-top: 0; }
.tcv-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.tcv-svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tcv-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.tcv-header {
    position: relative;
    z-index: 50;
    height: 78px;
    border-bottom: 1px solid rgba(8,29,58,.08);
    background: rgba(255,255,255,.97);
}
.admin-bar .tcv-header { top: 0; }
.tcv-header-inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.tcv-logo { display: inline-flex; flex-direction: column; flex: 0 0 auto; line-height: 1; }
.tcv-logo > span { color: var(--tcv-navy); font-size: 25px; font-weight: 850; letter-spacing: -.8px; }
.tcv-logo > span > span, .tcv-logo > span > b { color: var(--tcv-red); font-weight: inherit; }
.tcv-logo small { color: inherit; font-size: .56em; font-weight: 800; letter-spacing: 0; }
.tcv-logo em { margin-top: 6px; color: #5f6b7e; font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .15px; }
.tcv-custom-logo { width: auto; max-width: 230px; max-height: 48px; object-fit: contain; }
.tcv-main-nav { display: flex; align-self: stretch; align-items: center; justify-content: center; margin-left: auto; }
.tcv-menu-list { display: flex; align-items: center; gap: 42px; height: 100%; margin: 0; padding: 0; list-style: none; }
.tcv-menu-list > li { height: 100%; margin: 0; }
.tcv-main-nav a { position: relative; display: flex; align-items: center; height: 100%; color: #172239; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tcv-main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--tcv-red); transition: right .2s ease; }
.tcv-main-nav a:hover, .tcv-main-nav .current-menu-item > a, .tcv-main-nav .current_page_item > a { color: var(--tcv-red); }
.tcv-main-nav a:hover::after, .tcv-main-nav .current-menu-item > a::after, .tcv-main-nav .current_page_item > a::after { right: 0; }
.tcv-header-actions { display: flex; gap: 12px; margin-left: 16px; }
.tcv-header-actions a { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--tcv-navy); transition: .2s ease; }
.tcv-header-actions a:hover { color: var(--tcv-red); background: #fff0f1; }
.tcv-header-actions a:last-child { color: var(--tcv-red); }
.tcv-menu-toggle { display: none; padding: 8px; margin-left: auto; color: var(--tcv-navy); border: 0; background: transparent; cursor: pointer; }
.tcv-menu-close { display: none; }

/* Hero */
.tcv-hero { position: relative; min-height: 430px; overflow: hidden; background: #fff; }
.tcv-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.3), transparent 48%); }
.tcv-hero-inner { position: relative; z-index: 3; min-height: 430px; display: flex; align-items: center; }
.tcv-hero-copy { width: min(570px, 52%); padding-block: 44px 32px; }
.tcv-eyebrow { margin-bottom: 8px!important; color: var(--tcv-red); font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.tcv-hero h1 { margin-bottom: 12px; color: var(--tcv-navy); font-size: clamp(38px, 4vw, 52px); line-height: 1.13; letter-spacing: -1.8px; font-weight: 850; }
.tcv-hero-lead { max-width: 500px; margin-bottom: 20px!important; color: #445066; font-size: 16px; line-height: 1.65; }
.tcv-search { display: flex; align-items: center; width: min(520px, 100%); height: 54px; padding: 4px 4px 4px 17px; border: 1px solid #d4dce7; border-radius: 9px; background: #fff; box-shadow: 0 8px 28px rgba(8,29,58,.07); }
.tcv-search > .tcv-icon { flex: 0 0 auto; width: 20px; color: #657187; }
.tcv-search input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; color: var(--tcv-text); border: 0; outline: 0; background: transparent; font-size: 14px; }
.tcv-search input::placeholder { color: #8490a3; }
.tcv-search button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; align-self: stretch; min-width: 122px; padding-inline: 18px; border: 0; border-radius: 7px; color: #fff; background: var(--tcv-red); font-size: 14px; font-weight: 750; cursor: pointer; box-shadow: 0 7px 16px rgba(229,31,43,.23); transition: .2s ease; }
.tcv-search button:hover { background: var(--tcv-red-dark); transform: translateY(-1px); }
.tcv-search button .tcv-icon { width: 18px; }
.tcv-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 25px; margin-top: 25px; }
.tcv-stats > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tcv-stats .tcv-icon { width: 27px; height: 27px; color: var(--tcv-red); stroke-width: 1.7; }
.tcv-stats span { display: flex; flex-direction: column; line-height: 1.2; }
.tcv-stats strong { color: var(--tcv-navy); font-size: 13px; font-weight: 800; white-space: nowrap; }
.tcv-stats small { margin-top: 4px; color: #536176; font-size: 11px; font-weight: 550; white-space: nowrap; }
.tcv-hero-art { position: absolute; z-index: 1; inset: 0; width: 100%; overflow: hidden; pointer-events: none; }
.tcv-hero-art::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-sheet); background-position: center center; background-repeat: no-repeat; background-size: cover; }
.tcv-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.08) 43%, transparent 66%); }
.tcv-cross-art { position: absolute; z-index: 3; top: 47%; right: 11%; width: 230px; height: 68px; transform: rotate(27deg); filter: drop-shadow(18px 20px 14px rgba(39,23,13,.28)); }
.tcv-cross-art i, .tcv-cross-art b { position: absolute; display: block; border: 1px solid rgba(83,42,16,.45); border-radius: 5px; background: linear-gradient(90deg, #8b431d, #c47a38 34%, #995022 66%, #6c3217); box-shadow: inset 0 2px 4px rgba(255,255,255,.25), inset 0 -3px 4px rgba(50,20,4,.25); }
.tcv-cross-art i { left: 0; top: 16px; width: 230px; height: 52px; }
.tcv-cross-art b { left: 111px; top: -77px; width: 52px; height: 220px; }

/* Sections */
.tcv-home-content { padding-top: 26px; padding-bottom: 32px; }
.tcv-section { padding: 10px 0 22px; }
.tcv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tcv-section-head h2 { position: relative; margin: 0; padding-bottom: 10px; color: var(--tcv-navy); font-size: 22px; line-height: 1.2; letter-spacing: -.35px; font-weight: 850; }
.tcv-section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 45px; height: 3px; border-radius: 3px; background: var(--tcv-red); }
.tcv-section-head > a { display: inline-flex; align-items: center; gap: 5px; color: var(--tcv-red); font-size: 13px; font-weight: 750; }
.tcv-section-head > a .tcv-icon { width: 17px; }
.tcv-section-head > a:hover { color: var(--tcv-red-dark); }
.tcv-empty { grid-column: 1/-1; padding: 28px; border: 1px dashed var(--tcv-line); border-radius: 10px; color: var(--tcv-muted); text-align: center; }

/* Topics */
.tcv-topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.tcv-topic-card { min-height: 103px; display: flex; align-items: center; gap: 19px; padding: 19px 25px; border: 1px solid var(--tcv-line); border-radius: 10px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tcv-topic-card:hover { transform: translateY(-3px); border-color: rgba(229,31,43,.3); box-shadow: var(--tcv-shadow); }
.tcv-topic-card > .tcv-icon { flex: 0 0 42px; width: 42px; height: 42px; color: var(--tcv-red); stroke-width: 1.45; }
.tcv-topic-card span { min-width: 0; display: flex; flex-direction: column; }
.tcv-topic-card strong { overflow: hidden; color: var(--tcv-navy); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tcv-topic-card small { align-self: flex-start; margin-top: 7px; padding: 2px 8px; border-radius: 12px; color: #4d5a6e; background: #eff2f6; font-size: 11px; font-weight: 600; }

/* Sheet cards */
.tcv-sheet-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tcv-sheet-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--tcv-line); border-radius: 10px; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.tcv-sheet-card:hover { transform: translateY(-5px); box-shadow: var(--tcv-shadow); }
.tcv-sheet-thumb { position: relative; display: block; height: 150px; overflow: hidden; border-bottom: 1px solid #edf0f4; background: #f5f6f8; }
.tcv-sheet-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(255,255,255,.22)); }
.tcv-sheet-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 7%; transition: transform .35s ease; }
.tcv-sheet-card:hover .tcv-sheet-thumb img { transform: scale(1.035); }
.tcv-sheet-placeholder { height: 100%; display: grid; place-items: center; color: #bdc5d0; }
.tcv-sheet-placeholder .tcv-icon { width: 54px; height: 54px; }
.tcv-sheet-body { position: relative; min-height: 115px; padding: 14px 12px 11px; }
.tcv-sheet-body h3 { margin-bottom: 7px; color: var(--tcv-navy); font-size: 14px; line-height: 1.38; font-weight: 800; }
.tcv-sheet-body h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tcv-sheet-body h3 a:hover { color: var(--tcv-red); }
.tcv-sheet-body p { max-width: calc(100% - 3px); margin-bottom: 8px; overflow: hidden; color: #536176; font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.tcv-pill { display: inline-block; max-width: 100%; padding: 3px 7px; overflow: hidden; border-radius: 10px; color: var(--tcv-red)!important; background: #fff0f1; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tcv-sheet-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px 10px; border-top: 1px solid #edf0f4; color: #536176; font-size: 9px; font-weight: 650; }
.tcv-sheet-meta span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.tcv-sheet-meta .tcv-icon { width: 11px; height: 11px; }

/* Authors */
.tcv-authors { margin: 3px 0 24px; padding: 20px 24px 23px; border-radius: 12px; background: linear-gradient(135deg, #f8fafc 0%, #f3f6f9 100%); }
.tcv-authors .tcv-section-head { margin-bottom: 14px; }
.tcv-authors .tcv-section-head h2 { padding-bottom: 0; }
.tcv-authors .tcv-section-head h2::after { display: none; }
.tcv-author-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tcv-author { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tcv-avatar { width: 82px; height: 82px; display: grid; place-items: center; margin-bottom: 10px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #193c66, #071a35); box-shadow: 0 7px 20px rgba(8,29,58,.16); font-size: 21px; font-weight: 850; letter-spacing: -1px; transition: transform .2s ease; }
.tcv-author:hover .tcv-avatar { transform: translateY(-3px) scale(1.03); }
.tcv-avatar-1 { background: linear-gradient(145deg, #9b4932, #4f241d); }
.tcv-avatar-2 { background: linear-gradient(145deg, #c18445, #755020); }
.tcv-avatar-3 { background: linear-gradient(145deg, #567a62, #274334); }
.tcv-avatar-4 { background: linear-gradient(145deg, #6a608f, #332c52); }
.tcv-avatar-5 { background: linear-gradient(145deg, #4e7e95, #214759); }
.tcv-author strong { max-width: 100%; overflow: hidden; color: var(--tcv-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tcv-author small { margin-top: 3px; color: #737e90; font-size: 10px; }

/* Popular */
.tcv-popular-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.tcv-popular-list li { min-width: 0; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--tcv-line); }
.tcv-rank { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--tcv-red); font-size: 8px; font-weight: 800; }
.tcv-popular-list a { overflow: hidden; color: #1a2941; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tcv-popular-list a:hover { color: var(--tcv-red); }
.tcv-popular-list small { display: inline-flex; align-items: center; gap: 5px; color: #647087; font-size: 10px; }
.tcv-popular-list small .tcv-icon { width: 13px; height: 13px; }

/* About */
.tcv-about { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 35px; margin-top: 24px; padding: 32px 42px; border-radius: 13px; background: linear-gradient(100deg, #f5f8fb, #f8fafc); }
.tcv-about-icon { width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; color: var(--tcv-navy); background: linear-gradient(145deg, #ffe5e6, #fff1f2); }
.tcv-about-icon .tcv-icon { width: 82px; height: 82px; stroke-width: 1.15; }
.tcv-about h2 { margin-bottom: 5px; color: var(--tcv-navy); font-size: 23px; font-weight: 850; }
.tcv-about-copy > p { max-width: 830px; margin-bottom: 20px; color: #4f5b70; font-size: 13px; line-height: 1.7; }
.tcv-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tcv-benefits > span { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 7px; }
.tcv-benefits .tcv-icon { grid-row: span 2; width: 25px; height: 25px; color: var(--tcv-red); }
.tcv-benefits b { color: var(--tcv-navy); font-size: 10px; line-height: 1.25; }
.tcv-benefits small { color: #768194; font-size: 9px; line-height: 1.25; }

/* Footer */
.tcv-footer { margin-top: 18px; color: #fff; background: radial-gradient(circle at 85% 20%, #123f70, transparent 30%), linear-gradient(135deg, #061a36, #08264b); }
.tcv-footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 80px; padding-top: 42px; padding-bottom: 30px; }
.tcv-logo-light > span { color: #fff; font-size: 22px; letter-spacing: -.4px; }
.tcv-footer-brand p { max-width: 250px; margin: 13px 0 18px; color: #d4deec; font-size: 12px; line-height: 1.65; }
.tcv-socials { display: flex; gap: 10px; }
.tcv-socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; transition: .2s ease; }
.tcv-socials a:hover { border-color: var(--tcv-red); background: var(--tcv-red); }
.tcv-socials .tcv-icon { width: 16px; height: 16px; }
.tcv-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.tcv-footer h3 { margin-bottom: 12px; color: #fff; font-size: 13px; font-weight: 800; }
.tcv-footer-links { margin: 0; padding: 0; list-style: none; }
.tcv-footer-links li { margin: 0; }
.tcv-footer-grid > div:not(:first-child) a { margin: 3px 0; color: #d8e2ef; font-size: 11px; }
.tcv-footer-grid > div:not(:first-child) a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tcv-copyright { padding: 19px 0 22px; border-top: 1px solid rgba(255,255,255,.12); color: #c8d4e3; font-size: 10px; text-align: center; }

/* Inner pages, archives and single posts */
.tcv-inner-main { min-height: 62vh; padding: 48px 0 64px; background: linear-gradient(#f8fafc, #fff 230px); }
.tcv-archive-header { max-width: 790px; margin-bottom: 30px; }
.tcv-breadcrumb { margin-bottom: 12px!important; color: #7a8597; font-size: 12px; }
.tcv-breadcrumb a { color: var(--tcv-red)!important; }
.tcv-archive-header h1, .tcv-content-page > h1 { position: relative; margin-bottom: 12px; padding-bottom: 13px; color: var(--tcv-navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -1.2px; font-weight: 850; }
.tcv-archive-header h1::after, .tcv-content-page > h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px; border-radius: 3px; background: var(--tcv-red); }
.tcv-archive-header > p:last-child, .tcv-archive-header > div { color: #626e82; font-size: 15px; }
.tcv-archive-header .page-title { margin: 0; }
.tcv-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tcv-archive-grid .tcv-sheet-thumb { height: 230px; }
.tcv-pagination { margin-top: 34px; text-align: center; }
.tcv-pagination .nav-links, .tcv-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; }
.tcv-pagination .page-numbers { min-width: 39px; height: 39px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--tcv-line); border-radius: 7px; color: var(--tcv-navy); background: #fff; font-size: 12px; font-weight: 700; }
.tcv-pagination .page-numbers.current, .tcv-pagination .page-numbers:hover { color: #fff; border-color: var(--tcv-red); background: var(--tcv-red); }
.tcv-inner-search { width: min(620px, 100%); margin-top: 20px; }
.tcv-author-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcv-author-directory-card { display: grid; grid-template-columns: 68px 1fr 22px; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--tcv-line); border-radius: 11px; background: #fff; transition: .2s ease; }
.tcv-author-directory-card:hover { transform: translateY(-3px); border-color: rgba(229,31,43,.3); box-shadow: var(--tcv-shadow); }
.tcv-author-directory-card .tcv-avatar { width: 68px; height: 68px; margin: 0; font-size: 17px; }
.tcv-author-directory-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.tcv-author-directory-card strong { overflow: hidden; color: var(--tcv-navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tcv-author-directory-card small { margin-top: 4px; color: #737e90; font-size: 11px; }
.tcv-author-directory-card > .tcv-icon { color: var(--tcv-red); }
.tcv-topic-directory { grid-template-columns: repeat(3, 1fr); }
.tcv-reading-container { width: min(900px, calc(100% - 48px)); }
.tcv-single-post, .tcv-content-page { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--tcv-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 45px rgba(8,29,58,.06); }
.tcv-single-header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--tcv-line); }
.tcv-single-header h1 { margin-bottom: 13px; color: var(--tcv-navy); font-size: clamp(30px, 5vw, 48px); line-height: 1.15; letter-spacing: -1.3px; font-weight: 850; }
.tcv-single-taxonomy { display: flex; flex-wrap: wrap; gap: 9px; color: #6c7789; font-size: 12px; }
.tcv-single-taxonomy a { color: var(--tcv-red)!important; font-weight: 700; }
.tcv-entry-content { color: #344158; font-size: 16px; line-height: 1.75; }
.tcv-entry-content > * { max-width: 100%; }
.tcv-entry-content h2, .tcv-entry-content h3 { margin: 1.5em 0 .65em; color: var(--tcv-navy); font-weight: 800; }
.tcv-entry-content a { color: var(--tcv-red)!important; text-decoration: underline; text-underline-offset: 3px; }
.tcv-entry-content img { height: auto; margin-inline: auto; border-radius: 7px; }
.tcv-entry-content iframe { max-width: 100%; border-radius: 10px; }
.tcv-entry-content .sheet-box { margin: 22px 0; padding: 20px; border: 1px solid var(--tcv-line); border-radius: 10px; background: var(--tcv-soft); }
.tcv-entry-content .sheet-btn, .tcv-entry-content .button { display: inline-flex; padding: 10px 18px; border-radius: 7px; color: #fff!important; background: var(--tcv-red); text-decoration: none; font-weight: 750; }
.tcv-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.tcv-post-navigation > div { min-width: 0; }
.tcv-post-navigation > div:last-child { text-align: right; }
.tcv-post-navigation a { color: var(--tcv-red)!important; font-size: 13px; font-weight: 700; }
.tcv-content-page .tcv-entry-content:empty::after { content: "Nội dung đang được cập nhật."; color: #7a8597; }

/* Song detail */
.tcv-song-main { padding-top: 28px; }
.tcv-song-container { width: min(1180px, calc(100% - 48px)); }
.tcv-song-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; overflow: hidden; color: #8690a0; font-size: 12px; white-space: nowrap; }
.tcv-song-breadcrumb a { color: #667187; }
.tcv-song-breadcrumb a:hover { color: var(--tcv-red); }
.tcv-song-breadcrumb strong { overflow: hidden; color: var(--tcv-navy); font-weight: 700; text-overflow: ellipsis; }
.tcv-song-post { overflow: visible; border: 1px solid var(--tcv-line); border-radius: 15px; background: #fff; box-shadow: 0 15px 50px rgba(8,29,58,.055); }
.tcv-song-header { padding: 38px 42px 31px; border-bottom: 1px solid var(--tcv-line); background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); border-radius: 15px 15px 0 0; }
.tcv-song-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--tcv-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.tcv-song-header h1 { max-width: 860px; margin: 0; color: var(--tcv-navy); font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 850; }
.tcv-song-opening { max-width: 820px; margin: 16px 0 0; color: #5f6b7d; font-size: 15px; line-height: 1.65; font-style: italic; }
.tcv-song-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.tcv-song-facts > * { min-width: 180px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e4e8ee; border-radius: 9px; color: var(--tcv-navy); background: #fff; }
.tcv-song-facts a:hover { border-color: #ffc8cc; box-shadow: 0 6px 18px rgba(233,24,34,.07); }
.tcv-song-facts span:not(.tcv-song-icon) { min-width: 0; display: grid; gap: 2px; }
.tcv-song-facts small { color: #8791a1; font-size: 9px; text-transform: uppercase; letter-spacing: .4px; }
.tcv-song-facts strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tcv-song-icon { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; color: var(--tcv-red); }
.tcv-song-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tcv-song-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 32px; padding: 34px 42px 44px; }
.tcv-song-content { min-width: 0; }
.tcv-song-section + .tcv-song-section { margin-top: 38px; }
.tcv-song-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.tcv-song-section-head > div { min-width: 0; display: flex; align-items: center; gap: 11px; }
.tcv-song-section-head h2 { margin: 0; color: var(--tcv-navy); font-size: 20px; line-height: 1.3; font-weight: 850; }
.tcv-song-section-head > span { flex: 0 0 auto; padding: 4px 9px; border-radius: 12px; color: #657186; background: #eff2f6; font-size: 10px; font-weight: 700; }
.tcv-song-section-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--tcv-red); background: #fff0f1; }
.tcv-song-section-icon .tcv-song-icon { width: 19px; height: 19px; }
.tcv-score-pages { display: grid; gap: 22px; }
.tcv-score-page { position: relative; overflow: hidden; margin: 0; border: 1px solid #dde2e9; border-radius: 10px; background: #f5f7f9; box-shadow: 0 10px 28px rgba(8,29,58,.07); }
.tcv-score-page img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.tcv-score-page figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 12px; color: #fff; background: rgba(8,29,58,.72); font-size: 9px; font-weight: 700; backdrop-filter: blur(4px); }
.tcv-song-video { position: relative; overflow: hidden; padding-bottom: 56.25%; border-radius: 11px; background: #081d3a; box-shadow: 0 10px 28px rgba(8,29,58,.13); }
.tcv-song-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tcv-song-sidebar { min-width: 0; }
.tcv-song-sidebar > * { border: 1px solid var(--tcv-line); border-radius: 12px; background: #fff; }
.tcv-download-card { position: sticky; top: 88px; padding: 25px 21px 22px; text-align: center; box-shadow: 0 12px 32px rgba(8,29,58,.07); }
.tcv-download-card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--tcv-red); background: #fff0f1; }
.tcv-download-card-icon .tcv-song-icon { width: 28px; height: 28px; }
.tcv-download-card h2 { margin: 0 0 9px; color: var(--tcv-navy); font-size: 18px; font-weight: 850; }
.tcv-download-card > p { margin-bottom: 17px; color: #717c8d; font-size: 11px; line-height: 1.55; }
.tcv-download-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 10px 15px; border-radius: 8px; color: #fff!important; background: var(--tcv-red); font-size: 12px; font-weight: 800; box-shadow: 0 7px 18px rgba(233,24,34,.2); }
.tcv-download-actions { display: grid; gap: 9px; }
.tcv-download-actions .tcv-download-button:nth-child(n+2) { color: var(--tcv-navy)!important; border: 1px solid #dce3ec; background: #f7f9fc; box-shadow: none; }
.tcv-download-actions .tcv-download-button:nth-child(n+2):hover { color: var(--tcv-red)!important; border-color: #f0b8bd; background: #fff5f5; }
.tcv-download-button:hover { color: #fff!important; background: #cf1019; transform: translateY(-1px); }
.tcv-download-button .tcv-song-icon { width: 17px; height: 17px; color: currentColor; }
.tcv-download-card ul { display: grid; gap: 7px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #edf0f4; color: #667187; font-size: 9px; text-align: left; list-style: none; }
.tcv-song-tax-card { margin-top: 15px; padding: 19px; }
.tcv-song-tax-card h3 { margin: 0 0 12px; color: var(--tcv-navy); font-size: 14px; font-weight: 850; }
.tcv-song-tax-card > p { display: grid; grid-template-columns: 70px 1fr; gap: 8px; margin: 0; padding: 9px 0; border-top: 1px solid #edf0f4; color: #758093; font-size: 10px; }
.tcv-song-tax-card > p > :last-child { color: var(--tcv-navy); font-weight: 750; }
.tcv-song-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tcv-song-tags a { color: var(--tcv-red)!important; }
.tcv-song-legacy-content { color: #26354b; font-size: 16px; line-height: 1.75; }
.tcv-mobile-download { display: none; }
.tcv-related-songs { margin-top: 34px; }
.tcv-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tcv-related-grid .tcv-sheet-thumb { height: 200px; }

@media (max-width: 1100px) {
    .tcv-menu-list { gap: 24px; }
    .tcv-header-actions { margin-left: 0; }
    .tcv-stats { gap: 15px; }
    .tcv-topic-grid { grid-template-columns: repeat(3, 1fr); }
    .tcv-sheet-grid { grid-template-columns: repeat(3, 1fr); }
    .tcv-sheet-thumb { height: 210px; }
    .tcv-author-grid { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .tcv-footer-grid { gap: 40px; }
    .tcv-archive-grid { grid-template-columns: repeat(3, 1fr); }
    .tcv-author-directory, .tcv-topic-directory { grid-template-columns: repeat(2, 1fr); }
    .tcv-song-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 25px; padding-inline: 30px; }
    .tcv-song-header { padding-inline: 30px; }
    .tcv-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .tcv-container { width: min(100% - 32px, 720px); }
    .tcv-header { height: 68px; }
    .tcv-header .tcv-logo > span { font-size: 22px; }
    .tcv-header .tcv-logo em { display: none; }
    .tcv-menu-toggle { display: grid; place-items: center; }
    .tcv-header-actions { display: none; }
    .tcv-main-nav { position: absolute; top: 68px; left: 0; right: 0; display: flex; align-items: stretch; flex-direction: column; gap: 0; max-height: 0; overflow: hidden; margin: 0; padding: 0 20px; border-top: 1px solid var(--tcv-line); background: #fff; box-shadow: 0 15px 30px rgba(8,29,58,.12); opacity: 0; transition: max-height .3s ease, opacity .2s ease, padding .3s ease; }
    .tcv-menu-list { width: 100%; height: auto; display: flex; align-items: stretch; flex-direction: column; gap: 0; }
    .tcv-menu-list > li { height: auto; }
    .tcv-main-nav a { height: auto; padding: 12px 4px; border-bottom: 1px solid #eef1f5; }
    .tcv-main-nav a::after { display: none; }
    .tcv-menu-is-open .tcv-main-nav { max-height: 360px; padding-top: 10px; padding-bottom: 12px; opacity: 1; }
    .tcv-menu-is-open .tcv-menu-open { display: none; }
    .tcv-menu-is-open .tcv-menu-close { display: block; }
    .tcv-hero, .tcv-hero-inner { min-height: 590px; }
    .tcv-hero-inner { align-items: flex-start; }
    .tcv-hero-copy { width: 100%; padding-top: 44px; text-align: center; }
    .tcv-hero h1 { font-size: clamp(37px, 8vw, 52px); }
    .tcv-hero-lead, .tcv-search { margin-inline: auto; }
    .tcv-stats { grid-template-columns: repeat(4, 1fr); }
    .tcv-stats > div { justify-content: center; }
    .tcv-stats small { display: none; }
    .tcv-hero-art { inset: 0; width: 100%; height: 100%; opacity: .72; }
    .tcv-hero-art::before { inset: 0; background-position: 68% center; }
    .tcv-hero-art::after { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 57%, rgba(255,255,255,.12) 100%); }
    .tcv-topic-grid { grid-template-columns: repeat(2, 1fr); }
    .tcv-sheet-grid { grid-template-columns: repeat(2, 1fr); }
    .tcv-sheet-thumb { height: 225px; }
    .tcv-popular-list { grid-template-columns: 1fr; }
    .tcv-about { grid-template-columns: 1fr; padding: 28px; text-align: center; }
    .tcv-about-icon { width: 115px; height: 115px; margin-inline: auto; }
    .tcv-about-icon .tcv-icon { width: 65px; height: 65px; }
    .tcv-benefits { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .tcv-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .tcv-inner-main { padding: 34px 0 48px; }
    .tcv-song-main { padding-top: 18px; }
    .tcv-song-container { width: min(100% - 24px, 720px); }
    .tcv-song-post { border-radius: 12px; }
    .tcv-song-header { padding: 25px 20px 22px; border-radius: 12px 12px 0 0; }
    .tcv-song-header h1 { font-size: clamp(29px, 8vw, 42px); letter-spacing: -.8px; }
    .tcv-song-opening { font-size: 13px; }
    .tcv-song-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
    .tcv-song-facts > * { min-width: 0; padding: 9px 10px; }
    .tcv-song-facts > :last-child:nth-child(odd) { grid-column: 1/-1; }
    .tcv-song-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px 28px; }
    .tcv-song-sidebar { display: none; }
    .tcv-mobile-download { display: block; margin-top: 18px; }
    .tcv-download-card { position: static; padding: 18px; }
    .tcv-download-card-icon { width: 48px; height: 48px; margin-bottom: 10px; }
    .tcv-download-card ul { display: none; }
    .tcv-song-tax-card { margin: 0; }
    .tcv-related-grid { grid-template-columns: 1fr; }
    .tcv-related-grid .tcv-sheet-thumb { height: 100px; }
    .tcv-archive-grid { grid-template-columns: repeat(2, 1fr); }
    .tcv-archive-grid .tcv-sheet-thumb { height: 220px; }
    .tcv-author-directory { grid-template-columns: 1fr; }
    .tcv-reading-container { width: min(100% - 32px, 720px); }
}

@media (max-width: 540px) {
    .tcv-container { width: min(100% - 24px, 500px); }
    .tcv-hero, .tcv-hero-inner { min-height: 625px; }
    .tcv-hero-copy { padding-top: 35px; }
    .tcv-eyebrow { font-size: 10px; }
    .tcv-hero h1 { font-size: 35px; letter-spacing: -1.2px; }
    .tcv-hero h1 br { display: none; }
    .tcv-hero-lead { font-size: 14px; }
    .tcv-search { height: 51px; padding-left: 13px; }
    .tcv-search button { min-width: 52px; padding: 0 15px; }
    .tcv-search button span { display: none; }
    .tcv-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
    .tcv-stats > div { justify-content: flex-start; }
    .tcv-stats small { display: block; }
    .tcv-hero-art { height: 100%; }
    .tcv-home-content { padding-top: 18px; }
    .tcv-section-head h2 { font-size: 19px; }
    .tcv-section-head > a { font-size: 11px; }
    .tcv-topic-grid { grid-template-columns: 1fr; gap: 10px; }
    .tcv-topic-card { min-height: 86px; padding: 14px 20px; }
    .tcv-sheet-grid { grid-template-columns: 1fr; gap: 13px; }
    .tcv-sheet-card { display: grid; grid-template-columns: 118px 1fr; }
    .tcv-sheet-thumb { grid-row: span 2; height: 100%; min-height: 160px; border-bottom: 0; border-right: 1px solid var(--tcv-line); }
    .tcv-sheet-body { min-height: 112px; }
    .tcv-sheet-meta { padding: 8px; }
    .tcv-authors { padding: 18px; }
    .tcv-author-grid { grid-template-columns: repeat(2, 1fr); }
    .tcv-avatar { width: 70px; height: 70px; }
    .tcv-popular-list li { grid-template-columns: 24px minmax(0,1fr); padding: 5px 0; }
    .tcv-popular-list small { grid-column: 2; margin-top: -5px; }
    .tcv-about { padding: 24px 18px; }
    .tcv-benefits { grid-template-columns: 1fr; }
    .tcv-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
    .tcv-footer-brand { grid-column: 1/-1; }
    .tcv-archive-grid, .tcv-topic-directory { grid-template-columns: 1fr; }
    .tcv-archive-grid .tcv-sheet-card { display: grid; grid-template-columns: 118px 1fr; }
    .tcv-archive-grid .tcv-sheet-thumb { grid-row: span 2; height: 100%; min-height: 160px; }
    .tcv-author-directory-card { grid-template-columns: 58px 1fr 18px; padding: 14px; }
    .tcv-author-directory-card .tcv-avatar { width: 58px; height: 58px; }
    .tcv-reading-container { width: min(100% - 24px, 500px); }
    .tcv-single-post, .tcv-content-page { padding: 22px 17px; }
    .tcv-post-navigation { grid-template-columns: 1fr; }
    .tcv-post-navigation > div:last-child { text-align: left; }
    .tcv-song-breadcrumb { margin-bottom: 12px; font-size: 10px; }
    .tcv-song-header { padding: 22px 16px 19px; }
    .tcv-song-kicker { font-size: 10px; }
    .tcv-song-header h1 { font-size: 30px; }
    .tcv-song-facts small { color: #667187; font-size: 9px; font-weight: 650; }
    .tcv-song-facts strong { font-size: 11px; }
    .tcv-song-layout { padding: 20px 14px 24px; }
    .tcv-song-tax-card { display: none; }
    .tcv-song-section-head h2 { font-size: 16px; }
    .tcv-song-section-icon { width: 32px; height: 32px; }
    .tcv-score-pages { gap: 14px; }
    .tcv-score-page { border-radius: 7px; }
}

/* Mobile layout modeled after the compact ThanhCaViet mockup. */
@media (max-width: 820px) {
    body.tcv-home,
    body.tcv-site { overflow-x: hidden; }

    .tcv-container { width: min(100% - 32px, 760px); }
    .tcv-header { height: 72px; }
    .tcv-header-inner { position: relative; justify-content: center; }
    .tcv-header .tcv-logo { position: absolute; left: 50%; transform: translateX(-50%); align-items: center; }
    .tcv-header .tcv-logo > span { font-size: 26px; white-space: nowrap; }
    .tcv-header .tcv-logo em { display: none; }
    .tcv-footer .tcv-logo { position: static; transform: none; align-items: flex-start; }
    .tcv-menu-toggle { position: absolute; left: 0; width: 42px; height: 42px; display: grid; place-items: center; margin: 0; }
    .tcv-menu-toggle .tcv-icon { width: 29px; height: 29px; }
    .tcv-header-actions { position: absolute; right: 0; display: flex; margin: 0; }
    .tcv-header-actions a { width: 42px; height: 42px; }
    .tcv-header-actions a:first-child { display: grid; }
    .tcv-header-actions a:last-child { display: none; }
    .tcv-header-actions .tcv-icon { width: 27px; height: 27px; }
    .tcv-main-nav { top: 72px; z-index: 60; }
    .tcv-menu-is-open { overflow: hidden!important; }
    .tcv-menu-is-open .tcv-main-nav { max-height: calc(100vh - 72px); padding: 13px 20px 20px; overflow-y: auto; }
    .tcv-main-nav a { padding: 15px 5px; font-size: 15px; }

    .tcv-hero,
    .tcv-hero-inner { min-height: 430px; }
    .tcv-hero-inner { align-items: flex-start; }
    .tcv-hero-copy { width: 100%; padding: 30px 0 24px; text-align: left; }
    .tcv-eyebrow { display: none; }
    .tcv-hero h1 { max-width: 390px; margin-bottom: 12px; font-size: clamp(35px, 5.8vw, 46px); line-height: 1.13; letter-spacing: -1.4px; }
    .tcv-hero-lead { max-width: 375px; margin: 0 0 17px!important; font-size: 14px; line-height: 1.55; }
    .tcv-search { width: min(520px, 68%); height: 54px; margin: 0; }
    .tcv-stats { width: 100%; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; }
    .tcv-stats > div { justify-content: center; gap: 8px; padding: 0 12px; border-right: 1px solid #e4e9f0; }
    .tcv-stats > div:last-child { border-right: 0; }
    .tcv-stats .tcv-icon { width: 31px; height: 31px; }
    .tcv-stats strong { font-size: 12px; }
    .tcv-stats small { display: block; font-size: 9px; }
    .tcv-hero-art { inset: 0; width: 100%; height: 100%; opacity: 1; }
    .tcv-hero-art::before { inset: 0; background-position: 84% center; background-size: cover; }
    .tcv-hero-art::after { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.28) 65%, rgba(255,255,255,.05) 100%); }

    .tcv-home-content { padding-top: 20px; }
    .tcv-section { padding-bottom: 18px; }
    .tcv-section-head { margin-bottom: 13px; }
    .tcv-section-head h2 { font-size: 19px; }
    .tcv-section-head > a { font-size: 11px; }
    .tcv-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    .tcv-topic-card { min-height: 56px; display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 9px 13px; border-radius: 8px; }
    .tcv-topic-card > .tcv-icon { width: 30px; height: 30px; }
    .tcv-topic-card span { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; }
    .tcv-topic-card strong { font-size: 13px; }
    .tcv-topic-card small { margin: 0; padding: 2px 7px; font-size: 10px; }

    .tcv-sheet-grid,
    .tcv-archive-grid { grid-template-columns: 1fr; gap: 7px; }
    .tcv-sheet-card,
    .tcv-archive-grid .tcv-sheet-card { display: grid; grid-template-columns: 128px minmax(0,1fr); grid-template-rows: 70px 34px; height: 104px; min-height: 0; border-radius: 8px; }
    .tcv-sheet-thumb,
    .tcv-archive-grid .tcv-sheet-thumb { grid-row: 1 / 3; height: 104px; min-height: 0; border-right: 1px solid var(--tcv-line); border-bottom: 0; }
    .tcv-sheet-body { min-height: 0; padding: 10px 12px 4px; }
    .tcv-sheet-body h3 { margin-bottom: 3px; font-size: 14px; }
    .tcv-sheet-body h3 a { -webkit-line-clamp: 1; }
    .tcv-sheet-body p { margin-bottom: 5px; font-size: 11px; }
    .tcv-pill { position: absolute; right: 10px; bottom: 9px; max-width: 90px; }
    .tcv-sheet-meta { grid-column: 2; justify-content: flex-start; gap: 17px; padding: 6px 12px 9px; border-top: 0; font-size: 10px; }
    .tcv-sheet-meta .tcv-icon { width: 12px; height: 12px; }

    .tcv-authors { margin-bottom: 20px; padding: 16px 14px 18px; }
    .tcv-author-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; grid-template-columns: none; gap: 12px; padding: 2px 2px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; scrollbar-width: thin; }
    .tcv-author { scroll-snap-align: start; }
    .tcv-avatar { width: 68px; height: 68px; }
    .tcv-author strong { font-size: 12px; }
    .tcv-author small { color: #536176; font-size: 10px; }

    .tcv-popular-list { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 28px; }
    .tcv-popular-list li { min-height: 34px; }

    .tcv-about { grid-template-columns: 125px 1fr; gap: 22px; padding: 24px; text-align: left; }
    .tcv-about-icon { width: 105px; height: 105px; margin: 0; }
    .tcv-about-icon .tcv-icon { width: 58px; height: 58px; }
    .tcv-about h2 { font-size: 20px; }
    .tcv-benefits { grid-template-columns: repeat(4, 1fr); gap: 12px; }

    .tcv-footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; padding-top: 30px; }
    .tcv-footer-brand p { font-size: 12px; }
    .tcv-footer h3 { font-size: 13px; }
    .tcv-footer-grid > div:not(:first-child) a { font-size: 11px; }
}

@media (max-width: 540px) {
    .tcv-container { width: min(100% - 24px, 500px); }
    .tcv-header { height: 64px; }
    .tcv-header .tcv-logo > span { font-size: 22px; }
    .tcv-menu-toggle, .tcv-header-actions a { width: 38px; height: 38px; }
    .tcv-menu-toggle .tcv-icon, .tcv-header-actions .tcv-icon { width: 25px; height: 25px; }
    .tcv-main-nav { top: 64px; }

    .tcv-hero,
    .tcv-hero-inner { min-height: 395px; }
    .tcv-hero-copy { padding: 22px 0 14px; }
    .tcv-hero h1 { max-width: 54%; margin-bottom: 8px; font-size: clamp(30px, 8.3vw, 35px); }
    .tcv-hero-lead { max-width: 59%; margin-bottom: 10px!important; font-size: 12px; }
    .tcv-search { width: 100%; height: 51px; margin-top: 10px; }
    .tcv-search button { min-width: 54px; padding: 0 15px; }
    .tcv-search button span { display: none; }
    .tcv-stats { margin-top: 14px; }
    .tcv-stats > div { flex-direction: column; gap: 4px; padding: 0 5px; text-align: center; }
    .tcv-stats .tcv-icon { width: 25px; height: 25px; }
    .tcv-stats strong { font-size: 11px; }
    .tcv-stats small { margin-top: 2px; font-size: 9px; }
    .tcv-hero-art::before { background-position: 92% center; }
    .tcv-hero-art::after { background: linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.9) 42%, rgba(255,255,255,.2) 73%, rgba(255,255,255,.02) 100%); }

    .tcv-topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
    .tcv-topic-card { min-height: 58px; grid-template-columns: 27px minmax(0,1fr); gap: 7px; padding: 8px 9px; }
    .tcv-topic-card > .tcv-icon { width: 26px; height: 26px; }
    .tcv-topic-card span { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
    .tcv-topic-card strong { overflow: visible; font-size: 11px; line-height: 1.2; white-space: normal; }
    .tcv-topic-card small { font-size: 9px; }

    .tcv-sheet-card,
    .tcv-archive-grid .tcv-sheet-card { grid-template-columns: 102px minmax(0,1fr); grid-template-rows: 66px 34px; height: 100px; min-height: 0; }
    .tcv-sheet-thumb,
    .tcv-archive-grid .tcv-sheet-thumb { height: 100px; min-height: 0; }
    .tcv-sheet-body { padding: 9px 10px 3px; }
    .tcv-sheet-meta { gap: 9px; padding: 5px 10px 8px; font-size: 9px; }
    .tcv-pill { right: 8px; bottom: 8px; max-width: 70px; font-size: 9px; }

    .tcv-authors { padding-inline: 10px; }
    .tcv-author-grid { grid-auto-columns: 92px; gap: 8px; }
    .tcv-avatar { width: 62px; height: 62px; }

    .tcv-popular-list { grid-template-columns: 1fr; }
    .tcv-about { grid-template-columns: 1fr; padding: 22px 17px; text-align: center; }
    .tcv-about-icon { width: 90px; height: 90px; margin-inline: auto; }
    .tcv-about-copy > p { font-size: 12px; }
    .tcv-benefits { grid-template-columns: repeat(2, 1fr); text-align: left; }

    .tcv-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 28px; }
    .tcv-footer-brand { grid-column: 1 / -1; }
    .tcv-footer-grid > div:not(:first-child):last-child { grid-column: 1 / -1; }
    .tcv-footer h3 { font-size: 12px; }
    .tcv-footer-grid > div:not(:first-child) a { font-size: 10px; }
}
