/*
 * Teachable "Cinema": the course storefront's design layer.
 *
 * Two kinds of page load this file:
 *   - cinema pages (home, /courses, the course page, the player, My learning, thank-you)
 *     load ONLY this file, inside `.tc` — no Histudy style.css, no Bootstrap.
 *   - legacy pages (cart, checkout, account forms…) still load Histudy, and use this file
 *     only for the shared header, footer, cart drawer and search, all inside `.tc-shell`.
 * So every rule here is scoped to `.tc` or `.tc-shell`, and the shell's rules are written to
 * win over Histudy's element selectors (`a`, `ul`, `h6`…). Histudy sets html{font-size:10px},
 * so sizes are px, never rem.
 *
 * The accent is the store's own theme colour (--main-theme-color / --secondary-theme-color,
 * printed by frontend.global), so a seller's brand carries through.
 */

.tc,
.tc-shell {
    --tc-bg: #07080c;
    --tc-bg-2: #0c0e14;
    --tc-surface: #12151d;
    --tc-surface-2: #191d28;
    --tc-surface-3: #222736;
    --tc-line: rgba(255, 255, 255, .08);
    --tc-line-2: rgba(255, 255, 255, .16);
    --tc-text: #f4f5f8;
    --tc-muted: rgba(232, 235, 243, .68);
    --tc-faint: rgba(232, 235, 243, .44);
    --tc-accent: var(--main-theme-color, #2f57ef);
    --tc-accent-2: var(--secondary-theme-color, #b966e7);
    --tc-grad: linear-gradient(115deg, var(--tc-accent) 0%, var(--tc-accent-2) 100%);
    --tc-gold: #ffb547;
    --tc-good: #3ddc84;
    --tc-bad: #ff5c6c;
    --tc-radius-sm: 10px;
    --tc-radius: 14px;
    --tc-radius-lg: 22px;
    --tc-font: 'Euclid Circular', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --tc-ease: cubic-bezier(.2, .7, .2, 1);
    --tc-wrap: 1360px;
    --tc-gutter: clamp(20px, 4vw, 56px);
    --tc-header-h: 72px;
}

/* ---------- Base (cinema pages) ---------- */

.tc {
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: var(--tc-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    min-height: 60vh;
}

html:has(.tc) {
    background: #07080c;
    scroll-padding-top: 90px;
}

html:has(.tc) body {
    background: #07080c !important;
    color: #f4f5f8 !important;
    margin: 0;
}

.tc *,
.tc *::before,
.tc *::after,
.tc-shell *,
.tc-shell *::before,
.tc-shell *::after {
    box-sizing: border-box;
}

.tc :is(h1, h2, h3, h4, h5, h6),
.tc-shell :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
    font-family: inherit;
    margin: 0;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.tc p,
.tc-shell p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.tc :is(ul, ol),
.tc-shell :is(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc li,
.tc-shell li {
    margin: 0;
}

.tc a,
.tc-shell a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.tc img,
.tc-shell img,
.tc video {
    display: block;
    max-width: 100%;
}

.tc button,
.tc-shell button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.tc :focus-visible,
.tc-shell :focus-visible {
    outline: 2px solid var(--tc-accent-2);
    outline-offset: 3px;
    border-radius: 6px;
}

.tc .tc-sr,
.tc-shell .tc-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tc-ico {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    display: inline-block;
    vertical-align: -.2em;
}

.tc-wrap {
    width: 100%;
    max-width: var(--tc-wrap);
    margin: 0 auto;
    padding-left: var(--tc-gutter);
    padding-right: var(--tc-gutter);
}

.tc-section {
    padding: clamp(56px, 8vw, 112px) 0;
    position: relative;
}

.tc-section--tight {
    padding: clamp(36px, 5vw, 64px) 0;
}

/* ---------- Type ---------- */

.tc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.tc-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--tc-grad);
}

.tc-display {
    font-size: clamp(40px, 6.4vw, 92px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 700;
    text-wrap: balance;
}

.tc-title {
    font-size: clamp(28px, 3.6vw, 48px);
    letter-spacing: -.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.tc-subtitle {
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: -.02em;
}

.tc-lede {
    font-size: clamp(16px, 1.35vw, 19px);
    color: var(--tc-muted);
    max-width: 62ch;
    text-wrap: pretty;
}

.tc-muted { color: var(--tc-muted); }
.tc-faint { color: var(--tc-faint); }

.tc-grad-text {
    background: var(--tc-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3vw, 40px);
    flex-wrap: wrap;
}

.tc-head > div {
    display: grid;
    gap: 12px;
}

.tc-prose {
    color: var(--tc-muted);
    font-size: 17px;
    line-height: 1.75;
}

.tc-prose :is(h1, h2, h3, h4, h5, h6) {
    color: var(--tc-text);
    margin: 1.6em 0 .6em;
}

.tc-prose :is(p, ul, ol) {
    margin: 0 0 1.1em;
}

.tc-prose ul { list-style: disc; padding-left: 1.3em; }
.tc-prose ol { list-style: decimal; padding-left: 1.3em; }
.tc-prose li { margin: .35em 0; }
.tc-prose a { color: var(--tc-text); text-decoration: underline; text-underline-offset: 3px; }
.tc-prose img { border-radius: var(--tc-radius); height: auto; margin: 1.2em 0; }
.tc-prose strong { color: var(--tc-text); }

/* ---------- Buttons ---------- */

.tc-btn,
.tc-shell .tc-btn {
    --h: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--h);
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    isolation: isolate;
    transition: transform .25s var(--tc-ease), background .25s, border-color .25s, box-shadow .3s, color .2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.tc-btn:hover { transform: translateY(-1px); }
.tc-btn:active { transform: translateY(0) scale(.98); }

.tc-btn--primary,
.tc-shell .tc-btn--primary {
    background: var(--tc-grad);
    color: #fff !important;
    box-shadow: 0 10px 30px -10px var(--tc-accent), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.tc-btn--primary:hover {
    box-shadow: 0 16px 40px -10px var(--tc-accent-2), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
}

.tc-btn--white {
    background: #fff;
    color: #0b0c10 !important;
}

.tc-btn--white:hover { background: #e9ebf2; color: #0b0c10; }

.tc-btn--glass,
.tc-shell .tc-btn--glass {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    color: #fff !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
}

.tc-btn--glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.tc-btn--ghost,
.tc-shell .tc-btn--ghost {
    background: transparent;
    border-color: var(--tc-line-2);
    color: var(--tc-text) !important;
}

.tc-btn--ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }

.tc-btn--lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.tc-btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.tc-btn--block { width: 100%; }

.tc-btn--icon {
    width: var(--h);
    padding: 0;
}

.tc-btn[disabled] { opacity: .55; pointer-events: none; }

.tc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--tc-text);
}

.tc-link .tc-ico { transition: transform .25s var(--tc-ease); }
.tc-link:hover .tc-ico { transform: translateX(4px); }

/* Round play glyph used on cards, hero and lightbox triggers. */
.tc-play {
    --s: 64px;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform .35s var(--tc-ease), background .3s;
    flex: none;
}

.tc-play .tc-ico { width: 38%; height: 38%; margin-left: 6%; }

.tc-play--pulse { position: relative; }

.tc-play--pulse::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, .45);
    animation: tc-pulse 2.4s var(--tc-ease) infinite;
}

@keyframes tc-pulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Chips, badges, stars, meta ---------- */

.tc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--tc-line);
    color: var(--tc-text);
    white-space: nowrap;
}

.tc-chip--accent { background: var(--tc-grad); border-color: transparent; color: #fff; }
.tc-chip--gold { background: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .3); color: var(--tc-gold); }
.tc-chip--good { background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .3); color: var(--tc-good); }
.tc-chip--dark { background: rgba(7, 8, 12, .72); border-color: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.tc-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--tc-gold);
}

.tc-stars .tc-ico { width: 15px; height: 15px; }
.tc-stars .is-off { opacity: .28; }

.tc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    color: var(--tc-muted);
    font-size: 14.5px;
}

.tc-meta > li,
.tc-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tc-meta--dots > * + *::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
    margin-right: 11px;
}

.tc-meta--dots { gap: 6px 11px; }

.tc-price {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.tc-price s {
    font-weight: 500;
    color: var(--tc-faint);
    font-size: .78em;
}

.tc-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}

.tc-bar > span {
    display: block;
    height: 100%;
    background: var(--tc-grad);
    border-radius: inherit;
}

/* ---------- Header (shared by every page) ---------- */

.tc-shell {
    font-family: var(--tc-font);
    color: var(--tc-text);
    font-size: 15px;
    line-height: 1.5;
}

.tc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 8, 12, .86);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--tc-line);
    transition: background .35s, border-color .35s, transform .35s var(--tc-ease);
}

/* Over a full-bleed hero the header starts clear and fills in once the page scrolls. */
.tc-header.is-overlay {
    position: fixed;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(7, 8, 12, .7), rgba(7, 8, 12, 0));
    border-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tc-header.is-overlay.is-solid {
    background: rgba(7, 8, 12, .88);
    border-color: var(--tc-line);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
}

.tc-header.is-hidden { transform: translateY(-100%); }

.tc-announce {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 6px var(--tc-gutter);
    font-size: 13.5px;
    text-align: center;
    background: var(--tc-grad);
    color: #fff;
}

.tc-shell .tc-announce a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tc-header__in {
    height: var(--tc-header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.tc-shell .tc-logo {
    display: flex;
    align-items: center;
    height: 40px;
    flex: none;
}

.tc-shell .tc-logo img {
    max-height: 40px;
    max-width: 170px;
    width: auto;
    object-fit: contain;
}

.tc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tc-shell .tc-nav > li {
    position: relative;
}

.tc-shell .tc-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--tc-muted);
    font-weight: 500;
    font-size: 15px;
}

.tc-shell .tc-nav > li > a:hover,
.tc-shell .tc-nav > li > a[aria-current="page"],
.tc-shell .tc-nav > li:focus-within > a {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.tc-shell .tc-nav .tc-ico { width: 14px; height: 14px; opacity: .7; }

.tc-shell .tc-sub {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: var(--tc-radius);
    background: rgba(18, 21, 29, .97);
    border: 1px solid var(--tc-line-2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .25s var(--tc-ease), visibility .2s;
    z-index: 5;
}

.tc-shell .tc-sub::before {
    content: "";
    position: absolute;
    inset: -10px 0 auto;
    height: 10px;
}

.tc-shell .tc-nav > li:hover > .tc-sub,
.tc-shell .tc-nav > li:focus-within > .tc-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.tc-shell .tc-sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--tc-muted);
    font-size: 14.5px;
}

.tc-shell .tc-sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.tc-shell .tc-sub .tc-sub__kids { padding-left: 12px; }

.tc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.tc-shell .tc-iconbtn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    color: var(--tc-text);
    transition: background .2s;
    padding: 0;
}

.tc-shell .tc-iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tc-shell .tc-iconbtn .tc-ico { width: 20px; height: 20px; }

.tc-shell .tc-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--tc-grad);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.tc-shell .tc-count:empty,
.tc-shell .tc-count[data-zero] { display: none; }

.tc-user {
    position: relative;
}

.tc-shell .tc-user__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 6px 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--tc-line);
    color: var(--tc-text);
}

.tc-shell .tc-user__btn:hover { background: rgba(255, 255, 255, .1); }

.tc-shell .tc-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tc-surface-3);
}

.tc-shell .tc-user__name {
    font-weight: 600;
    font-size: 14px;
    padding-right: 8px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-shell .tc-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 260px;
    padding: 8px;
    border-radius: var(--tc-radius);
    background: rgba(18, 21, 29, .98);
    border: 1px solid var(--tc-line-2);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .25s var(--tc-ease), visibility .2s;
}

.tc-shell .tc-user.is-open .tc-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.tc-shell .tc-menu__head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 10px 14px;
    border-bottom: 1px solid var(--tc-line);
    margin-bottom: 6px;
}

.tc-shell .tc-menu__head .tc-avatar { width: 40px; height: 40px; }
.tc-shell .tc-menu__head strong { display: block; font-size: 15px; }
.tc-shell .tc-menu__head span { font-size: 13px; color: var(--tc-faint); }

.tc-shell .tc-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--tc-muted);
    font-size: 14.5px;
}

.tc-shell .tc-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.tc-shell .tc-menu hr { border: 0; border-top: 1px solid var(--tc-line); margin: 6px 0; opacity: 1; }

.tc-burger { display: none !important; }

@media (max-width: 1080px) {
    .tc-header .tc-nav,
    .tc-header .tc-hide-m { display: none !important; }
    .tc-burger { display: grid !important; }
    .tc-header__in { gap: 12px; }
}

/* Mobile navigation sheet */
.tc-mnav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(7, 8, 12, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 18px var(--tc-gutter) 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    overflow-y: auto;
}

.tc-mnav.is-open { opacity: 1; visibility: visible; }

.tc-mnav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    margin-bottom: 28px;
}

.tc-shell .tc-mnav__links a {
    display: block;
    padding: 12px 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--tc-text);
    border-bottom: 1px solid var(--tc-line);
}

.tc-shell .tc-mnav__links .tc-mnav__kids a {
    font-size: 17px;
    font-weight: 500;
    color: var(--tc-muted);
    padding-left: 16px;
}

.tc-mnav__foot {
    margin-top: auto;
    padding-top: 32px;
    display: grid;
    gap: 12px;
}

/* Search overlay */
.tc-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(5, 6, 9, .82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh var(--tc-gutter) 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.tc-search.is-open { opacity: 1; visibility: visible; }

.tc-search form {
    width: min(760px, 100%);
    position: relative;
    transform: translateY(-10px);
    transition: transform .35s var(--tc-ease);
}

.tc-search.is-open form { transform: none; }

.tc-shell .tc-search input[type="search"] {
    width: 100%;
    height: 72px;
    padding: 0 76px 0 64px;
    border-radius: 999px;
    border: 1px solid var(--tc-line-2);
    background: var(--tc-surface);
    color: #fff;
    font-size: 22px;
    font-family: inherit;
    outline: none;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
    margin: 0;
}

.tc-shell .tc-search input[type="search"]:focus { border-color: var(--tc-accent); }
.tc-shell .tc-search input::placeholder { color: var(--tc-faint); }

.tc-search .tc-search__ico {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: var(--tc-faint);
    pointer-events: none;
}

.tc-search .tc-search__go {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.tc-search__hint {
    margin-top: 16px;
    text-align: center;
    color: var(--tc-faint);
    font-size: 13px;
}

/* Cart drawer */
.tc-scrim {
    position: fixed;
    inset: 0;
    z-index: 1150;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.tc-scrim.is-open { opacity: 1; visibility: visible; }

.tc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1160;
    width: min(420px, 100%);
    background: var(--tc-bg-2);
    border-left: 1px solid var(--tc-line);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .45s var(--tc-ease);
    box-shadow: -40px 0 80px -20px rgba(0, 0, 0, .7);
}

.tc-drawer.is-open { transform: none; }

.tc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tc-line);
}

.tc-shell .tc-drawer__head h2 { font-size: 20px; }

.tc-shell .tc-drawer__list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

.tc-shell .tc-drawer__list .cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--tc-line);
}

.tc-shell .tc-drawer__list .cart-item img {
    width: 96px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    background: var(--tc-surface-2);
}

.tc-shell .tc-drawer__list .cart-item h3 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-shell .tc-drawer__list .cart-item .price { font-size: 14px; color: var(--tc-muted); }

.tc-shell .tc-drawer__list .cart-item .remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--tc-faint);
}

.tc-shell .tc-drawer__list .cart-item .remove:hover { background: rgba(255, 92, 108, .14); color: var(--tc-bad); }

.tc-drawer__empty {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--tc-muted);
}

.tc-drawer__list:not(:has(.cart-item)) + .tc-drawer__empty { display: block; }

.tc-drawer__foot {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--tc-line);
    display: grid;
    gap: 10px;
}

.tc-drawer__total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 6px;
}

.tc-drawer__total strong { font-size: 20px; }

html.tc-locked,
html.tc-locked body { overflow: hidden; }

/* ---------- Footer ---------- */

.tc-footer {
    background: #050608;
    border-top: 1px solid var(--tc-line);
    padding: clamp(56px, 7vw, 96px) 0 28px;
    color: var(--tc-muted);
    position: relative;
    overflow: hidden;
}

.tc-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -320px;
    width: 900px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--tc-accent), transparent);
    opacity: .16;
    pointer-events: none;
}

.tc-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 48px;
    position: relative;
}

@media (max-width: 960px) {
    .tc-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .tc-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

.tc-shell .tc-footer h2,
.tc-shell .tc-footer .widget-title,
.tc-shell .tc-footer h5 {
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tc-text);
    margin-bottom: 18px;
    font-weight: 600;
}

.tc-shell .tc-footer :is(ul, ol) li { margin: 0 0 10px; }
.tc-shell .tc-footer a { color: var(--tc-muted); }
.tc-shell .tc-footer a:hover { color: #fff; }
.tc-shell .tc-footer address { font-style: normal; margin: 0; }

.tc-socials {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.tc-shell .tc-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--tc-line-2);
    color: var(--tc-text);
    font-size: 16px;
}

.tc-shell .tc-socials a:hover { background: #fff; color: #000; border-color: #fff; }

.tc-news {
    display: grid;
    gap: 12px;
}

.tc-news__row {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line-2);
}

.tc-shell .tc-news input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    margin: 0;
    box-shadow: none;
}

.tc-shell .tc-news input::placeholder { color: var(--tc-faint); }

.tc-footer__bottom {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 24px;
    border-top: 1px solid var(--tc-line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
    font-size: 14px;
    position: relative;
}

.tc-footer__bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.tc-shell .tc-footer__bottom li { margin: 0; }

/* ---------- Hero (home) ---------- */

.tc-hero {
    position: relative;
    min-height: min(92vh, 980px);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--tc-header-h) + 60px) 0 clamp(56px, 9vh, 120px);
    isolation: isolate;
    overflow: hidden;
}

.tc-hero--short { min-height: min(64vh, 640px); }

.tc-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--tc-bg-2);
}

.tc-backdrop :is(img, video) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.tc-backdrop--kenburns img {
    animation: tc-kenburns 28s ease-in-out infinite alternate;
    transform-origin: 70% 40%;
}

@keyframes tc-kenburns {
    from { transform: scale(1.04); }
    to { transform: scale(1.16) translate(-1.5%, -1%); }
}

.tc-backdrop video {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tc-backdrop video.is-ready { opacity: 1; }

/* Letterbox vignette: dark left for copy, dark bottom into the page. */
.tc-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 12, .94) 0%, rgba(7, 8, 12, .7) 34%, rgba(7, 8, 12, .1) 70%, rgba(7, 8, 12, .3) 100%),
        linear-gradient(0deg, var(--tc-bg) 0%, rgba(7, 8, 12, .4) 30%, rgba(7, 8, 12, 0) 60%),
        linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, 0) 22%);
}

.tc-backdrop--blur img {
    filter: blur(40px) saturate(1.4);
    transform: scale(1.2);
    opacity: .6;
}

.tc-hero__glow {
    position: absolute;
    z-index: -1;
    width: 70vw;
    height: 70vw;
    max-width: 1100px;
    max-height: 1100px;
    border-radius: 50%;
    right: -20vw;
    top: -30vw;
    background: radial-gradient(closest-side, var(--tc-accent-2), transparent 70%);
    opacity: .22;
    filter: blur(20px);
    pointer-events: none;
}

.tc-hero__body {
    display: grid;
    gap: 22px;
    max-width: 760px;
}

.tc-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.tc-reveal {
    animation: tc-rise 1s var(--tc-ease) both;
}

.tc-reveal:nth-child(2) { animation-delay: .08s; }
.tc-reveal:nth-child(3) { animation-delay: .16s; }
.tc-reveal:nth-child(4) { animation-delay: .24s; }
.tc-reveal:nth-child(5) { animation-delay: .32s; }

@keyframes tc-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* Hidden only once JS is known to run (layouts/app sets .tc-js in <head>), so content can't stay invisible. */
.tc-js [data-tc-inview]:not(.is-in) {
    opacity: 0;
    transform: translateY(28px);
}

[data-tc-inview] {
    transition: opacity .9s var(--tc-ease), transform .9s var(--tc-ease);
}


/* ---------- Rails & grids ---------- */

.tc-rail {
    position: relative;
}

.tc-rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--tc-rail-col, clamp(260px, 26vw, 360px));
    gap: clamp(14px, 1.6vw, 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--tc-gutter);
    padding: 8px var(--tc-gutter) 28px;
    margin: -8px 0 -28px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.tc-rail__track::-webkit-scrollbar { display: none; }
.tc-rail__track > * { scroll-snap-align: start; }

.tc-rail__nav {
    display: flex;
    gap: 8px;
}

.tc-rail__nav[hidden] { display: none; }

.tc-rail__nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--tc-line-2);
    background: transparent;
    color: var(--tc-text);
    display: grid;
    place-items: center;
    transition: background .2s, opacity .2s;
}

.tc-rail__nav button:hover:not([disabled]) { background: rgba(255, 255, 255, .08); }
.tc-rail__nav button[disabled] { opacity: .3; cursor: default; }

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(18px, 2vw, 28px);
}

/* ---------- Poster card ---------- */

.tc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.tc-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--tc-radius);
    overflow: hidden;
    background: var(--tc-surface-2);
    isolation: isolate;
    box-shadow: 0 0 0 1px var(--tc-line);
    transition: box-shadow .4s var(--tc-ease), transform .5s var(--tc-ease);
}

.tc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--tc-ease), filter .5s;
}

.tc-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 46%);
    pointer-events: none;
}

.tc-card__media .tc-play {
    --s: 58px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(.7);
    opacity: 0;
    transition: transform .45s var(--tc-ease), opacity .3s;
}

.tc-card:hover .tc-card__media,
.tc-card:focus-within .tc-card__media {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 60px -24px rgba(0, 0, 0, .9), 0 20px 70px -30px var(--tc-accent);
}

.tc-card:hover .tc-card__media img { transform: scale(1.06); }

.tc-card:hover .tc-card__media .tc-play,
.tc-card:focus-within .tc-card__media .tc-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tc-card__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tc-card__runtime {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-variant-numeric: tabular-nums;
}

.tc-card__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 4px;
    background: rgba(255, 255, 255, .2);
}

.tc-card__progress span {
    display: block;
    height: 100%;
    background: var(--tc-grad);
}

.tc-card__save {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .25s, background .2s;
}

.tc-card:hover .tc-card__save,
.tc-card__save:focus-visible { opacity: 1; }
.tc-card__save:hover { background: rgba(0, 0, 0, .75); }
.tc-card__save img { width: 16px; height: 16px; }

@media (hover: none) {
    .tc-card__save { opacity: 1; }
}

.tc-card__body {
    display: grid;
    gap: 8px;
    padding: 0 2px;
}

.tc-card__title {
    font-size: 17.5px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tc-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.tc-card__foot .tc-price { font-size: 17px; }

.tc-card .tc-meta { font-size: 13.5px; }

.tc-card--wide .tc-card__media { aspect-ratio: 21 / 10; }

/* ---------- Continue watching card ---------- */

.tc-resume {
    position: relative;
    display: grid;
    gap: 12px;
}

.tc-resume .tc-card__media .tc-play { opacity: 1; transform: translate(-50%, -50%) scale(.86); }
.tc-resume:hover .tc-card__media .tc-play { transform: translate(-50%, -50%) scale(1); background: rgba(255, 255, 255, .24); }

.tc-resume .tc-card__title a::after { display: none; }
.tc-resume .tc-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tc-resume__label {
    position: absolute;
    left: 14px;
    bottom: 16px;
    right: 80px;
    z-index: 2;
    font-size: 13px;
    color: rgba(255, 255, 255, .86);
    font-weight: 500;
}

/* ---------- Spotlight (featured course) ---------- */

.tc-spot {
    position: relative;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    isolation: isolate;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: clamp(28px, 5vw, 64px);
    box-shadow: 0 0 0 1px var(--tc-line);
}

.tc-spot .tc-backdrop::after {
    background:
        linear-gradient(90deg, rgba(7, 8, 12, .95) 0%, rgba(7, 8, 12, .7) 40%, rgba(7, 8, 12, .05) 80%),
        linear-gradient(0deg, rgba(7, 8, 12, .8) 0%, rgba(7, 8, 12, 0) 50%);
}

.tc-spot__body {
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.tc-countdown {
    display: flex;
    gap: 10px;
}

.tc-countdown > div {
    min-width: 72px;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--tc-line);
    text-align: center;
}

.tc-countdown b {
    display: block;
    font-size: 26px;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.tc-countdown span {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-faint);
}

/* ---------- Categories ---------- */

.tc-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 16px;
}

.tc-cat {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--tc-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    isolation: isolate;
    box-shadow: 0 0 0 1px var(--tc-line);
}

.tc-cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s var(--tc-ease);
}

.tc-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .05) 70%);
}

.tc-cat:hover img { transform: scale(1.07); }

.tc-cat h3 {
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.tc-cat h3 .tc-ico { transition: transform .3s var(--tc-ease); }
.tc-cat:hover h3 .tc-ico { transform: translateX(4px); }

/* ---------- Stats, promises, quotes ---------- */

.tc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    border-top: 1px solid var(--tc-line);
    border-bottom: 1px solid var(--tc-line);
}

.tc-stat {
    padding: clamp(28px, 4vw, 48px) 24px;
    text-align: center;
    display: grid;
    gap: 6px;
}

.tc-stat + .tc-stat { border-left: 1px solid var(--tc-line); }

.tc-stat b {
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tc-stat span { color: var(--tc-muted); font-size: 14.5px; }

@media (max-width: 560px) {
    .tc-stat + .tc-stat { border-left: 0; border-top: 1px solid var(--tc-line); }
}

.tc-promises {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.tc-promise {
    padding: 28px;
    border-radius: var(--tc-radius);
    background: linear-gradient(180deg, var(--tc-surface), var(--tc-bg-2));
    border: 1px solid var(--tc-line);
    display: grid;
    gap: 12px;
    align-content: start;
}

.tc-promise__ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--tc-grad);
    color: #fff;
    box-shadow: 0 12px 30px -10px var(--tc-accent);
}

.tc-promise__ico .tc-ico { width: 22px; height: 22px; }
.tc-promise h3 { font-size: 18px; }
.tc-promise p { color: var(--tc-muted); font-size: 15px; }

.tc-quotes {
    columns: 3 320px;
    column-gap: 16px;
}

.tc-quote {
    break-inside: avoid;
    margin: 0 0 16px;
    padding: 26px;
    border-radius: var(--tc-radius);
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    display: grid;
    gap: 18px;
}

.tc-quote blockquote {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--tc-text);
}

.tc-quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tc-muted);
    font-size: 14px;
}

.tc-quote figcaption img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tc-quote figcaption strong { color: var(--tc-text); display: block; font-size: 15px; }

/* Signup band */
.tc-band {
    position: relative;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    padding: clamp(32px, 6vw, 80px);
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc-accent) 38%, transparent), transparent 55%),
        radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--tc-accent-2) 34%, transparent), transparent 55%),
        var(--tc-surface);
    border: 1px solid var(--tc-line-2);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

@media (max-width: 900px) {
    .tc-band { grid-template-columns: 1fr; }
}

/* ---------- Forms (cinema pages) ---------- */

.tc-field {
    display: grid;
    gap: 7px;
}

.tc-field label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tc-muted);
}

.tc :is(.tc-input, .tc-field input, .tc-field textarea, .tc-field select) {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--tc-line-2);
    background: rgba(0, 0, 0, .3);
    color: var(--tc-text);
    font: inherit;
    font-size: 15.5px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    margin: 0;
    box-shadow: none;
}

.tc .tc-field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }

.tc :is(.tc-input, .tc-field input, .tc-field textarea):focus {
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc-accent) 25%, transparent);
}

.tc-form {
    display: grid;
    gap: 14px;
}

.tc-form__error {
    color: var(--tc-bad);
    font-size: 14px;
    min-height: 1em;
}

.tc-searchbar {
    position: relative;
    max-width: 640px;
}

.tc-searchbar .tc-ico {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--tc-faint);
    pointer-events: none;
}

.tc .tc-searchbar input {
    width: 100%;
    height: 60px;
    padding: 0 130px 0 54px;
    border-radius: 999px;
    border: 1px solid var(--tc-line-2);
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font: inherit;
    font-size: 17px;
    outline: none;
    margin: 0;
}

.tc .tc-searchbar input:focus { border-color: var(--tc-accent); background: rgba(255, 255, 255, .09); }
.tc .tc-searchbar input::placeholder { color: var(--tc-faint); }

.tc-searchbar .tc-btn {
    position: absolute;
    right: 7px;
    top: 7px;
    --h: 46px;
}

/* Pagination */
.tc-pages {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.tc-pages a,
.tc-pages span {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tc-line-2);
    color: var(--tc-muted);
    font-weight: 600;
}

.tc-pages a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.tc-pages .is-current { background: #fff; color: #000; border-color: #fff; }
.tc-pages .is-off { opacity: .3; }

.tc-empty {
    text-align: center;
    padding: clamp(60px, 10vw, 120px) 20px;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.tc-empty__ico {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    color: var(--tc-muted);
    margin-bottom: 6px;
}

.tc-empty__ico .tc-ico { width: 30px; height: 30px; }

/* ---------- Course sales page ---------- */

.tc-course-hero {
    position: relative;
    isolation: isolate;
    padding: calc(var(--tc-header-h) + clamp(36px, 7vh, 90px)) 0 clamp(40px, 6vw, 72px);
    min-height: min(82vh, 860px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.tc-course-hero .tc-backdrop::after {
    background:
        linear-gradient(90deg, rgba(7, 8, 12, .96) 0%, rgba(7, 8, 12, .82) 38%, rgba(7, 8, 12, .2) 75%, rgba(7, 8, 12, .4) 100%),
        linear-gradient(0deg, var(--tc-bg) 0%, rgba(7, 8, 12, .3) 40%, rgba(7, 8, 12, 0) 70%),
        linear-gradient(180deg, rgba(7, 8, 12, .6) 0%, rgba(7, 8, 12, 0) 25%);
}

.tc-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--tc-faint);
}

.tc-crumbs a:hover { color: #fff; }
.tc-crumbs .tc-ico { width: 13px; height: 13px; }

.tc-course-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
}

.tc-course-hero__copy {
    display: grid;
    gap: 20px;
    max-width: 780px;
}

.tc-course-hero__copy .tc-display { font-size: clamp(36px, 5.4vw, 76px); }

.tc-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tc-muted);
}

.tc-byline img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .2);
}

.tc-byline strong { color: var(--tc-text); }

.tc-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tc-rating a { color: var(--tc-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tc-line-2); }

/* The trailer "screen": a framed 16:9 in the hero, opens the lightbox. */
.tc-screen {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    background: #000;
    border: 0;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 30px 120px -40px var(--tc-accent);
    isolation: isolate;
    cursor: pointer;
}

.tc-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--tc-ease), opacity .4s;
}

.tc-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55));
}

.tc-screen .tc-play {
    --s: 76px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.tc-screen:hover img { transform: scale(1.05); }
.tc-screen:hover .tc-play { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .24); }

.tc-screen__label {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-course-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

@media (max-width: 1080px) {
    .tc-course-hero__grid,
    .tc-course-body { grid-template-columns: 1fr; }
    .tc-course-hero { min-height: 0; }
}

.tc-anchors {
    position: sticky;
    top: var(--tc-header-h);
    z-index: 20;
    background: rgba(7, 8, 12, .9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tc-line);
    margin-bottom: clamp(28px, 4vw, 48px);
}

.tc-anchors ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tc-anchors a {
    display: block;
    padding: 18px 16px;
    color: var(--tc-muted);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tc-anchors a:hover { color: #fff; }
.tc-anchors a.is-active { color: #fff; border-color: var(--tc-accent); }

.tc-block {
    padding-bottom: clamp(40px, 5vw, 64px);
    margin-bottom: clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--tc-line);
    display: grid;
    gap: 24px;
}

.tc-block:last-child { border-bottom: 0; }

.tc-clamp {
    position: relative;
    max-height: 520px;
    overflow: hidden;
    transition: max-height .6s var(--tc-ease);
}

.tc-clamp.is-open { max-height: none; }

.tc-clamp:not(.is-open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(0deg, var(--tc-bg), transparent);
}

.tc-clamp-toggle[hidden] { display: none; }

/* Curriculum */
.tc-curr {
    border-radius: var(--tc-radius);
    border: 1px solid var(--tc-line);
    overflow: hidden;
    background: var(--tc-bg-2);
}

.tc-lesson {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--tc-line);
    transition: background .2s;
}

.tc-lesson:first-child { border-top: 0; }
.tc-lesson:hover { background: rgba(255, 255, 255, .025); }

.tc-lesson__n {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--tc-surface-2);
    color: var(--tc-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.tc-lesson__t {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
}

.tc-lesson__d {
    color: var(--tc-faint);
    font-size: 14px;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-lesson__r {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--tc-faint);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.tc-lesson__r .tc-ico { width: 18px; height: 18px; }

.tc-lesson--preview .tc-lesson__n {
    background: var(--tc-grad);
    color: #fff;
}

.tc-lesson__more {
    display: block;
    width: 100%;
    padding: 16px;
    border: 0;
    border-top: 1px solid var(--tc-line);
    background: transparent;
    color: var(--tc-text);
    font-weight: 600;
}

.tc-lesson__more:hover { background: rgba(255, 255, 255, .03); }
.tc-curr.is-collapsed .tc-lesson:nth-child(n + 9) { display: none; }

@media (max-width: 560px) {
    .tc-lesson { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
    .tc-lesson__n { width: 36px; height: 36px; }
    .tc-lesson__r { grid-column: 2; }
}

/* Included / features */
.tc-included {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

.tc-included li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: var(--tc-bg-2);
    border: 1px solid var(--tc-line);
    color: var(--tc-muted);
    font-size: 15px;
}

.tc-included li .tc-ico { color: var(--tc-text); width: 20px; height: 20px; }
.tc-included li strong { color: var(--tc-text); font-weight: 600; }

/* Purchase card */
.tc-buy {
    position: sticky;
    top: calc(var(--tc-header-h) + 76px);
    border-radius: var(--tc-radius-lg);
    padding: 28px;
    background: linear-gradient(180deg, rgba(25, 29, 40, .9), rgba(14, 16, 23, .92));
    border: 1px solid var(--tc-line-2);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: grid;
    gap: 20px;
}

.tc-buy::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--tc-accent) 70%, transparent), transparent 40%, transparent 70%, color-mix(in srgb, var(--tc-accent-2) 60%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tc-buy .tc-price { font-size: 40px; }
.tc-buy .tc-price s { font-size: 20px; }

.tc-buy__sale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tc-gold);
}

.tc-buy__list {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--tc-line);
}

.tc-buy__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14.5px;
    color: var(--tc-muted);
}

.tc-buy__list li span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.tc-buy__list li strong { color: var(--tc-text); font-weight: 600; text-align: right; }

.tc-share {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.tc-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--tc-muted);
    border: 1px solid var(--tc-line);
}

.tc-share a:hover { color: #fff; border-color: var(--tc-line-2); }
.tc-share .tc-ico { width: 16px; height: 16px; }

.tc-error {
    color: var(--tc-bad);
    font-size: 14px;
    margin: 0;
}

.tc-error:empty { display: none; }

/* Sticky bottom buy bar, shown once the purchase card scrolls away. */
.tc-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: rgba(10, 12, 17, .92);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--tc-line-2);
    transform: translateY(105%);
    transition: transform .45s var(--tc-ease);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}

.tc-buybar.is-shown { transform: none; }

.tc-buybar__in {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tc-buybar__thumb {
    width: 88px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    flex: none;
}

.tc-buybar__t {
    min-width: 0;
    flex: 1;
}

.tc-buybar__t strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15.5px;
}

.tc-buybar__t span { font-size: 13px; color: var(--tc-faint); }

@media (max-width: 640px) {
    .tc-buybar__thumb { display: none; }
}

/* Reviews */
.tc-score {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: 28px;
    border-radius: var(--tc-radius);
    background: var(--tc-bg-2);
    border: 1px solid var(--tc-line);
}

.tc-score__big {
    text-align: center;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.tc-score__big b {
    font-size: 64px;
    letter-spacing: -.04em;
    line-height: 1;
}

.tc-score__rows { display: grid; gap: 8px; }

.tc-score__row {
    display: grid;
    grid-template-columns: 34px 1fr 40px;
    gap: 12px;
    align-items: center;
    font-size: 13.5px;
    color: var(--tc-muted);
}

.tc-score__row .tc-bar { height: 6px; }
.tc-score__row .tc-bar span { background: var(--tc-gold); }

@media (max-width: 560px) {
    .tc-score { grid-template-columns: 1fr; }
}

.tc-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 14px;
}

.tc-review {
    padding: 22px;
    border-radius: var(--tc-radius);
    background: var(--tc-bg-2);
    border: 1px solid var(--tc-line);
    display: grid;
    gap: 12px;
    align-content: start;
}

.tc-review header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-review header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.tc-review header strong { display: block; font-size: 15px; }
.tc-review header span { font-size: 12.5px; color: var(--tc-faint); }
.tc-review p { color: var(--tc-muted); font-size: 15px; }

/* ---------- Lightbox (trailer + free previews) ---------- */

.tc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 48px);
    background: rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
}

.tc-lightbox.is-open { opacity: 1; visibility: visible; }

.tc-lightbox__frame {
    width: min(1280px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    transform: scale(.96);
    transition: transform .5s var(--tc-ease);
}

.tc-lightbox.is-open .tc-lightbox__frame { transform: none; }

.tc-lightbox.has-list .tc-lightbox__frame {
    width: min(1440px, 100%);
    grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 900px) {
    .tc-lightbox.has-list .tc-lightbox__frame { grid-template-columns: 1fr; }
}

.tc-lightbox__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    grid-column: 1 / -1;
}

.tc-lightbox__top h2 { font-size: 18px; letter-spacing: -.01em; }
.tc-lightbox__top span { color: var(--tc-faint); font-size: 13px; display: block; margin-bottom: 2px; letter-spacing: .12em; text-transform: uppercase; }

.tc-lightbox:not(.has-list) .tc-lightbox__list { display: none; }

.tc-lightbox__list {
    max-height: min(72vh, 720px);
    overflow-y: auto;
    display: grid;
    gap: 6px;
    align-content: start;
}

.tc-lightbox__list button {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
}

.tc-lightbox__list button:hover { background: rgba(255, 255, 255, .05); }
.tc-lightbox__list button.is-current { background: rgba(255, 255, 255, .08); border-color: var(--tc-line-2); }

.tc-lightbox__list img,
.tc-lightbox__list .tc-thumb-ph {
    width: 112px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: var(--tc-surface-2);
}

.tc-lightbox__list strong { font-size: 14px; font-weight: 600; line-height: 1.35; display: block; }
.tc-lightbox__list small { color: var(--tc-faint); font-size: 12.5px; }

/* ---------- The player page ---------- */

.tc-theater {
    --side: 400px;
    padding: 20px 0 80px;
    position: relative;
}

/* Stage top-left, lessons down the right, the lesson's details under the stage. */
.tc-theater__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side);
    grid-template-areas: "stage side" "below side";
    gap: 28px;
    align-items: start;
}

.tc-stage { grid-area: stage; position: relative; isolation: isolate; }
.tc-theater__below { grid-area: below; display: grid; gap: 28px; min-width: 0; }
.tc-playlist { grid-area: side; }

/* Theater mode: the stage goes edge to edge, as tall as the screen allows. */
.tc-theater.is-wide { padding-top: 0; }
.tc-theater.is-wide .tc-theater__wrap { max-width: none; padding: 0; }
.tc-theater.is-wide .tc-theater__grid {
    grid-template-areas: "stage stage" "below side";
    grid-template-columns: minmax(0, 1fr) calc(var(--side) + var(--tc-gutter));
}
.tc-theater.is-wide .tc-stage .cp {
    border-radius: 0;
    max-height: calc(100vh - var(--tc-header-h));
    box-shadow: none;
}
.tc-theater.is-wide .tc-theater__below { padding-left: max(var(--tc-gutter), calc((100vw - var(--tc-wrap)) / 2 + var(--tc-gutter))); }
.tc-theater.is-wide .tc-playlist { margin-right: var(--tc-gutter); }

@media (max-width: 1100px) {
    .tc-theater__grid,
    .tc-theater.is-wide .tc-theater__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "stage" "below" "side";
    }
    .tc-theater.is-wide .tc-theater__below { padding: 0 var(--tc-gutter); }
    .tc-theater.is-wide .tc-playlist { margin: 0 var(--tc-gutter); }
    .tc-playlist { position: static !important; max-height: 560px !important; }
}

/* Phones: the picture always goes edge to edge. */
@media (max-width: 640px) {
    .tc-theater { padding-top: 0; }
    .tc-stage { margin: 0 calc(-1 * var(--tc-gutter)); }
    .tc-theater.is-wide .tc-stage { margin: 0; }
    .tc-stage .cp { border-radius: 0; }
}

.tc-ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    transform: scale(1.08, 1.18);
    filter: blur(72px) saturate(1.6);
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}

.tc-ambient.is-on { opacity: .6; }

.tc-theater.is-wide .tc-ambient { display: none; }

.tc-lessonhead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px 28px;
}

.tc-lessonhead h1 {
    font-size: clamp(24px, 2.6vw, 34px);
    letter-spacing: -.025em;
}

.tc-lessonhead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-btn.is-done { color: var(--tc-good) !important; border-color: rgba(61, 220, 132, .4); }

.tc-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--tc-line);
    overflow-x: auto;
    scrollbar-width: none;
}

.tc-tabs button {
    padding: 14px 16px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--tc-muted);
    font-weight: 600;
    white-space: nowrap;
}

.tc-tabs button[aria-selected="true"] { color: #fff; border-color: var(--tc-accent); }

.tc-tabpanel { padding-top: 24px; }
.tc-tabpanel[hidden] { display: none; }

/* Playlist */
.tc-playlist {
    position: sticky;
    top: calc(var(--tc-header-h) + 20px);
    border-radius: var(--tc-radius-lg);
    border: 1px solid var(--tc-line);
    background: var(--tc-bg-2);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--tc-header-h) - 40px);
    overflow: hidden;
    transition: opacity .6s;
}

.tc-theater.is-wide .tc-playlist { top: calc(var(--tc-header-h) + 20px); max-height: 640px; }

.tc-playlist__head {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--tc-line);
    display: grid;
    gap: 12px;
}

.tc-playlist__head h2 { font-size: 16px; letter-spacing: -.01em; }
.tc-playlist__head small { font-size: 13px; color: var(--tc-faint); }
.tc-playlist__head .tc-bar { height: 6px; }

.tc-playlist__list {
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.tc-pl {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    align-items: center;
    position: relative;
}

.tc-pl:hover { background: rgba(255, 255, 255, .04); }

.tc-pl.is-current {
    background: rgba(255, 255, 255, .07);
    box-shadow: inset 0 0 0 1px var(--tc-line-2);
}

.tc-pl__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tc-surface-2);
}

.tc-pl__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-pl__thumb .tc-pl__dur {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .75);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.tc-pl__thumb .tc-pl__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, .25);
}

.tc-pl__thumb .tc-pl__bar span { display: block; height: 100%; background: var(--tc-grad); }

.tc-pl__state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .45);
    color: #fff;
}

.tc-pl__state .tc-ico { width: 24px; height: 24px; }

.tc-pl.is-done .tc-pl__state { background: rgba(0, 0, 0, .35); color: var(--tc-good); }

.tc-pl__n {
    font-size: 12px;
    color: var(--tc-faint);
    font-weight: 600;
    letter-spacing: .04em;
}

.tc-pl__t {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-pl.is-current .tc-pl__n { color: var(--tc-accent-2); }

/* Equaliser bars on the lesson that is playing. */
.tc-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
}

.tc-eq i {
    width: 3px;
    background: currentColor;
    border-radius: 1px;
    animation: tc-eq 1s ease-in-out infinite;
}

.tc-eq i:nth-child(2) { animation-delay: -.4s; }
.tc-eq i:nth-child(3) { animation-delay: -.7s; }

@keyframes tc-eq {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.tc-theater:not(.is-playing) .tc-eq i { animation-play-state: paused; }

/* Lights out: while a lesson plays, everything but the screen recedes. */
.tc-dim-target { transition: opacity .8s ease, filter .8s ease; }
html.tc-lights-out .tc-dim-target { opacity: .18; filter: saturate(.4); }
html.tc-lights-out .tc-dim-target:hover,
html.tc-lights-out .tc-dim-target:focus-within { opacity: 1; filter: none; }

.tc-notes {
    display: grid;
    gap: 14px;
}

.tc-notes form {
    display: flex;
    gap: 10px;
}

.tc-notes form .tc-input { flex: 1; }

.tc-notes__list {
    display: grid;
    gap: 8px;
}

.tc-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--tc-bg-2);
    border: 1px solid var(--tc-line);
}

.tc-note__at {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    border: 0;
    color: var(--tc-text);
}

.tc-note__at:hover { background: var(--tc-accent); color: #fff; }
.tc-note p { color: var(--tc-muted); font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.tc-note__x { border: 0; background: transparent; color: var(--tc-faint); padding: 2px; }
.tc-note__x:hover { color: var(--tc-bad); }

.tc-stars-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.tc-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-stars-input label { cursor: pointer; color: rgba(255, 255, 255, .2); font-size: 0; }
.tc-stars-input label .tc-ico { width: 30px; height: 30px; }
.tc-stars-input input:checked ~ label,
.tc-stars-input label:hover,
.tc-stars-input label:hover ~ label { color: var(--tc-gold); }
.tc-stars-input input:focus-visible + label { outline: 2px solid var(--tc-accent); border-radius: 4px; }

/* ---------- My learning ---------- */

.tc-learn-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--tc-header-h) + 70px) 0 clamp(48px, 6vw, 80px);
    min-height: min(70vh, 720px);
    display: flex;
    align-items: flex-end;
}

.tc-learn-tabs {
    display: inline-flex;
    padding: 5px;
    border-radius: 999px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-line);
    gap: 4px;
}

.tc-learn-tabs button {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--tc-muted);
    font-weight: 600;
    font-size: 14.5px;
}

.tc-learn-tabs button[aria-selected="true"] { background: #fff; color: #000; }

.tc-acctnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Shared components dropped into cinema pages ---------- */

.tc .kc-ad { color: var(--tc-faint); }
.tc .global-accordion-section h2 { color: var(--tc-text); }
.tc .global-accordion-container { border-color: var(--tc-line) !important; background: var(--tc-bg-2); }
.tc .global-accordion-item { border-color: var(--tc-line) !important; }
.tc .global-accordion-header { color: var(--tc-text) !important; background: transparent !important; }
.tc .global-accordion-content > div { color: var(--tc-muted) !important; }

@media (prefers-reduced-motion: reduce) {
    .tc *,
    .tc *::before,
    .tc *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-tc-inview] { opacity: 1; transform: none; }
}

/* Hero excerpts are seller-written and sometimes a whole paragraph: keep the buttons above the fold. */
.tc-course-hero .tc-lede,
.tc-hero .tc-lede {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
