:root {
    --tm-color-white: #ffffff;
    --tm-color-black: #111111;
    --tm-color-gray-950: #1f1f1f;
    --tm-color-gray-700: #626262;
    --tm-color-gray-500: #8d8d8d;
    --tm-color-gray-300: #d8d8d8;
    --tm-color-gray-200: #e8e8e8;
    --tm-color-gray-100: #f4f4f4;
    --tm-color-red: #e31b23;
    --tm-color-visited-bg: #e2e2e2;
    --tm-color-visited-fg: #777777;

    --tm-font-family: Arial, Helvetica, sans-serif;
    --tm-font-size-xs: 0.75rem;
    --tm-font-size-sm: 0.875rem;
    --tm-font-size-base: 1rem;
    --tm-font-size-title: 1.12rem;
    --tm-font-size-headline: 1.18rem;
    --tm-font-weight-regular: 400;
    --tm-font-weight-medium: 600;
    --tm-font-weight-bold: 800;
    --tm-line-height-tight: 1.2;
    --tm-line-height-base: 1.45;

    --tm-space-1: 0.25rem;
    --tm-space-2: 0.5rem;
    --tm-space-3: 0.75rem;
    --tm-space-4: 1rem;
    --tm-space-5: 1.25rem;
    --tm-space-6: 1.5rem;

    --tm-border-width: 1px;
    --tm-border-color: var(--tm-color-gray-200);
    --tm-radius-sm: 0.45rem;
    --tm-radius-md: 0.75rem;
    --tm-shadow-none: none;

    --tm-header-height: 4.7rem;
    --tm-content-max: 46rem;
    --tm-icon-sm: 1rem;
    --tm-icon-md: 1.35rem;
    --tm-logo-width: 2.65rem;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font-family: var(--tm-font-family);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 20rem;
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font-size: var(--tm-font-size-base);
    line-height: var(--tm-line-height-base);
}

a {
    color: inherit;
}

.tm-app-shell {
    width: 100%;
    max-width: var(--tm-content-max);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--tm-color-white);
}

.tm-site-header {
    min-height: var(--tm-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tm-space-4);
    padding: var(--tm-space-3) var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
}

.tm-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--tm-space-2);
    min-width: 0;
    text-decoration: none;
}

.tm-brand:visited,
.tm-brand:hover,
.tm-brand:focus,
.tm-brand:active {
    color: inherit;
    text-decoration: none;
}

.tm-brand-logo {
    flex: 0 0 var(--tm-logo-width);
    width: var(--tm-logo-width);
    line-height: 0;
}

.tm-brand-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.tm-brand-logo rect {
    fill: var(--tm-color-black);
}

.tm-brand-logo path {
    fill: var(--tm-color-red);
}

.tm-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: var(--tm-line-height-tight);
}

.tm-wordmark {
    display: block;
    font-size: 1.55rem;
    font-weight: var(--tm-font-weight-bold);
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.tm-wordmark strong {
    color: var(--tm-color-red);
    font-weight: inherit;
}

.tm-tagline {
    margin-top: 0.15rem;
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-xs);
    font-weight: var(--tm-font-weight-regular);
    letter-spacing: 0;
}

.tm-menu-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    color: var(--tm-color-black);
}

.tm-menu-mark svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.tm-home-intro {
    padding: var(--tm-space-5) var(--tm-space-4) var(--tm-space-3);
}

.tm-home-intro h1 {
    margin: 0;
    font-size: var(--tm-font-size-headline);
    font-weight: var(--tm-font-weight-bold);
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.tm-home-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--tm-space-2) var(--tm-space-4);
    margin-top: var(--tm-space-2);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
}

.tm-duration-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tm-duration-tabs::-webkit-scrollbar {
    display: none;
}

.tm-duration-tab {
    flex: 0 0 auto;
    position: relative;
    padding: var(--tm-space-3) var(--tm-space-3) 0.7rem;
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-medium);
    white-space: nowrap;
    text-decoration: none;
}

.tm-duration-tab:visited,
.tm-duration-tab:hover,
.tm-duration-tab:focus,
.tm-duration-tab:active {
    text-decoration: none;
}

.tm-duration-tab.is-active {
    color: var(--tm-color-black);
    font-weight: var(--tm-font-weight-bold);
}

.tm-duration-tab.is-active::after {
    content: '';
    position: absolute;
    right: var(--tm-space-3);
    bottom: -1px;
    left: var(--tm-space-3);
    height: 0.18rem;
    background: var(--tm-color-red);
}

.tm-video-list-wrap {
    width: 100%;
}

.tm-video-list {
    width: 100%;
}

.tm-video-row {
    display: block;
    width: 100%;
    padding: var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    text-decoration: none;
    transition: none;
}

.tm-video-row:visited,
.tm-video-row:hover,
.tm-video-row:focus,
.tm-video-row:active {
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-video-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--tm-space-3);
}

.tm-video-title {
    min-width: 0;
    font-size: var(--tm-font-size-title);
    font-weight: var(--tm-font-weight-medium);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tm-youtube-icon {
    display: inline-flex;
    width: 2rem;
    height: 1.4rem;
    margin-top: 0.08rem;
    color: var(--tm-color-red);
}

.tm-youtube-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tm-youtube-icon rect {
    fill: currentColor;
}

.tm-youtube-icon path {
    fill: var(--tm-color-white);
}

.tm-video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tm-space-3) var(--tm-space-5);
    margin-top: var(--tm-space-2);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
}

.tm-video-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--tm-space-1);
}

.tm-meta-icon {
    width: var(--tm-icon-sm);
    height: var(--tm-icon-sm);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tm-video-row.is-visited {
    background: var(--tm-color-visited-bg);
    color: var(--tm-color-visited-fg);
}

.tm-video-row.is-visited:visited,
.tm-video-row.is-visited:hover,
.tm-video-row.is-visited:focus,
.tm-video-row.is-visited:active,
.tm-video-row.is-visited .tm-video-title,
.tm-video-row.is-visited .tm-video-meta,
.tm-video-row.is-visited .tm-youtube-icon {
    color: var(--tm-color-visited-fg);
}

.tm-video-row.is-visited .tm-youtube-icon path {
    fill: var(--tm-color-gray-100);
}

.tm-empty,
.tm-list-error {
    padding: var(--tm-space-6) var(--tm-space-4);
    color: var(--tm-color-gray-700);
    text-align: center;
    font-size: var(--tm-font-size-sm);
}

.tm-list-error {
    border-top: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-video-list-wrap[aria-busy='true'] .tm-video-list {
    opacity: 0.45;
}

@media (min-width: 42rem) {
    .tm-site-header,
    .tm-home-intro,
    .tm-duration-tabs,
    .tm-video-row {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }

    .tm-duration-tabs {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }
}

/* CP6 — rolling archive */
.tm-archive-entry {
    width: 100%;
}

.tm-archive-entry:empty {
    display: none;
}

.tm-archive-entry-link {
    display: block;
    width: 100%;
    padding: var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font-size: var(--tm-font-size-base);
    font-weight: var(--tm-font-weight-bold);
    text-decoration: none;
}

.tm-archive-entry-link:visited,
.tm-archive-entry-link:hover,
.tm-archive-entry-link:focus,
.tm-archive-entry-link:active {
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-archive-intro {
    padding: var(--tm-space-4) var(--tm-space-4) var(--tm-space-3);
}

.tm-archive-back {
    display: inline-block;
    margin-bottom: var(--tm-space-3);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-medium);
    text-decoration: none;
}

.tm-archive-back:visited,
.tm-archive-back:hover,
.tm-archive-back:focus,
.tm-archive-back:active {
    color: var(--tm-color-gray-700);
    text-decoration: none;
}

.tm-archive-intro h1 {
    margin: 0;
    font-size: var(--tm-font-size-headline);
    font-weight: var(--tm-font-weight-bold);
    line-height: 1.25;
}

.tm-archive-intro p {
    margin: var(--tm-space-1) 0 0;
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
}

.tm-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tm-space-3);
    min-height: 3.5rem;
    padding: var(--tm-space-3) var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-archive-page-link {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    justify-content: center;
    padding: var(--tm-space-2) var(--tm-space-3);
    border: var(--tm-border-width) solid var(--tm-color-gray-300);
    border-radius: var(--tm-radius-sm);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    text-decoration: none;
}

.tm-archive-page-link:visited,
.tm-archive-page-link:hover,
.tm-archive-page-link:focus,
.tm-archive-page-link:active {
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-archive-page-link[aria-disabled='true'] {
    color: var(--tm-color-gray-500);
    pointer-events: none;
}

@media (min-width: 42rem) {
    .tm-archive-entry-link,
    .tm-archive-intro,
    .tm-archive-pagination {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }
}

/* CP7 — Yesterday + historical calendar bottom sheets */
:root {
    --tm-color-overlay: rgba(0, 0, 0, 0.38);
    --tm-sheet-max-height: 88dvh;
    --tm-calendar-cell-size: 2.75rem;
}

.tm-history-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tm-space-3);
    padding: 0 var(--tm-space-4) var(--tm-space-3);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-history-action {
    appearance: none;
    border: 0;
    padding: var(--tm-space-2) 0;
    background: transparent;
    color: var(--tm-color-black);
    font: inherit;
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    line-height: var(--tm-line-height-base);
    text-align: left;
    cursor: pointer;
}

.tm-history-action:last-child {
    text-align: right;
}

html.tm-sheet-open,
body.tm-sheet-open {
    overflow: hidden;
}

.tm-sheet-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--tm-color-overlay);
}

.tm-sheet-backdrop[hidden] {
    display: none;
}

.tm-bottom-sheet {
    display: flex;
    width: min(100%, var(--tm-content-max));
    max-height: var(--tm-sheet-max-height);
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--tm-radius-md) var(--tm-radius-md) 0 0;
    background: var(--tm-color-white);
    color: var(--tm-color-black);
}

.tm-sheet-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tm-space-4);
    padding: var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
}

.tm-sheet-header h2 {
    margin: 0;
    font-size: var(--tm-font-size-headline);
    font-weight: var(--tm-font-weight-bold);
    line-height: 1.25;
}

.tm-sheet-header p {
    margin: var(--tm-space-1) 0 0;
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
}

.tm-sheet-close {
    appearance: none;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--tm-radius-sm);
    background: transparent;
    color: var(--tm-color-black);
    cursor: pointer;
}

.tm-sheet-close svg {
    width: var(--tm-icon-md);
    height: var(--tm-icon-md);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.tm-history-tabs {
    flex: 0 0 auto;
    background: var(--tm-color-white);
}

.tm-history-tabs .tm-duration-tab {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.tm-sheet-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.tm-sheet-scroll[aria-busy='true'] {
    opacity: 0.55;
}

.tm-history-load-wrap {
    display: flex;
    justify-content: center;
    padding: var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-history-load-wrap[hidden] {
    display: none;
}

.tm-history-load-more {
    cursor: pointer;
}

.tm-history-load-more:disabled {
    color: var(--tm-color-gray-500);
    cursor: default;
}

.tm-calendar-sheet .tm-sheet-scroll {
    padding-bottom: env(safe-area-inset-bottom);
}

.tm-calendar-month {
    padding: var(--tm-space-4);
}

.tm-calendar-nav {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: var(--tm-space-3);
    margin-bottom: var(--tm-space-4);
}

.tm-calendar-nav strong {
    text-align: center;
    font-size: var(--tm-font-size-base);
    font-weight: var(--tm-font-weight-bold);
}

.tm-calendar-nav-button {
    appearance: none;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: var(--tm-border-width) solid var(--tm-color-gray-300);
    border-radius: var(--tm-radius-sm);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    cursor: pointer;
}

.tm-calendar-nav-button svg {
    width: var(--tm-icon-md);
    height: var(--tm-icon-md);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tm-calendar-nav-spacer {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
}

.tm-calendar-weekdays,
.tm-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--tm-space-1);
}

.tm-calendar-weekdays {
    margin-bottom: var(--tm-space-2);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-xs);
    font-weight: var(--tm-font-weight-bold);
    text-align: center;
}

.tm-calendar-weekdays span {
    padding: var(--tm-space-1) 0;
}

.tm-calendar-blank,
.tm-calendar-day {
    min-width: 0;
    min-height: var(--tm-calendar-cell-size);
}

.tm-calendar-day {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--tm-border-width) solid transparent;
    border-radius: var(--tm-radius-sm);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font: inherit;
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-medium);
    cursor: pointer;
}

.tm-calendar-day.is-today {
    border-color: var(--tm-color-red);
    color: var(--tm-color-red);
    font-weight: var(--tm-font-weight-bold);
}

.tm-calendar-day.is-disabled {
    color: var(--tm-color-gray-300);
    cursor: default;
}

@media (min-width: 42rem) {
    .tm-history-actions,
    .tm-sheet-header,
    .tm-calendar-month {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }
}

/* CP8 — CMS pages, app-style menu sheet and footer */
.tm-menu-mark {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tm-menu-mark:focus-visible,
.tm-sheet-close:focus-visible,
.tm-menu-list a:focus-visible,
.tm-page-back:focus-visible {
    outline: 2px solid var(--tm-color-black);
    outline-offset: 2px;
}

.tm-menu-panel {
    max-height: 78dvh;
    padding-bottom: env(safe-area-inset-bottom);
}

.tm-menu-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.tm-menu-list a {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    padding: var(--tm-space-3) var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    font-size: var(--tm-font-size-base);
    font-weight: var(--tm-font-weight-bold);
    text-decoration: none;
}

.tm-menu-list a:visited,
.tm-menu-list a:hover,
.tm-menu-list a:active {
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-site-footer {
    padding: var(--tm-space-6) var(--tm-space-4) calc(var(--tm-space-6) + env(safe-area-inset-bottom));
    border-top: var(--tm-border-width) solid var(--tm-border-color);
    color: var(--tm-color-gray-700);
    text-align: center;
}

.tm-site-footer strong {
    display: block;
    color: var(--tm-color-black);
    font-size: var(--tm-font-size-title);
    letter-spacing: -0.03em;
}

.tm-site-footer strong span {
    color: var(--tm-color-red);
}

.tm-site-footer p,
.tm-site-footer small {
    display: block;
    margin: var(--tm-space-1) 0 0;
    font-size: var(--tm-font-size-xs);
}

.tm-cms-page {
    padding: var(--tm-space-5) var(--tm-space-4) var(--tm-space-6);
}

.tm-page-back {
    display: inline-block;
    margin-bottom: var(--tm-space-4);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    text-decoration: none;
}

.tm-page-back:visited,
.tm-page-back:hover,
.tm-page-back:active {
    color: var(--tm-color-gray-700);
    text-decoration: none;
}

.tm-cms-page h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.25;
}

.tm-cms-page-body {
    margin-top: var(--tm-space-5);
    color: var(--tm-color-gray-950);
    font-size: var(--tm-font-size-base);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.tm-cms-page-body p {
    margin: 0 0 var(--tm-space-5);
}

.tm-cms-page-body p:last-child {
    margin-bottom: 0;
}

.tm-page-empty {
    color: var(--tm-color-gray-700);
}

@media (min-width: 42rem) {
    .tm-menu-list a,
    .tm-site-footer,
    .tm-cms-page {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }
}

/* CP9 — Channel Ads */
.tm-channel-ads {
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
}

.tm-channel-ads h2 {
    margin: 0;
    padding: var(--tm-space-3) var(--tm-space-4) var(--tm-space-2);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-xs);
    font-weight: var(--tm-font-weight-bold);
    letter-spacing: 0.06em;
}

.tm-channel-ad-list {
    border-top: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-channel-ad {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--tm-space-3);
    padding: var(--tm-space-3) var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
    background: var(--tm-color-white);
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-channel-ad:last-child {
    border-bottom: 0;
}

.tm-channel-ad:visited,
.tm-channel-ad:hover,
.tm-channel-ad:focus,
.tm-channel-ad:active {
    color: var(--tm-color-black);
    text-decoration: none;
}

.tm-channel-ad:focus-visible {
    outline: 2px solid var(--tm-color-black);
    outline-offset: -2px;
}

.tm-channel-ad-name {
    min-width: 0;
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    overflow-wrap: anywhere;
}

.tm-channel-ad-side {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--tm-space-2);
}

.tm-channel-ad-vip {
    display: inline-flex;
    min-height: 1.4rem;
    align-items: center;
    padding: 0 var(--tm-space-2);
    border: var(--tm-border-width) solid var(--tm-color-red);
    border-radius: 999px;
    color: var(--tm-color-red);
    font-size: 0.65rem;
    font-weight: var(--tm-font-weight-bold);
    line-height: 1;
}

.tm-channel-ad-youtube {
    display: inline-flex;
    width: 1.75rem;
    height: 1.25rem;
    color: var(--tm-color-red);
}

.tm-channel-ad-youtube svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tm-channel-ad-youtube rect {
    fill: currentColor;
}

.tm-channel-ad-youtube path {
    fill: var(--tm-color-white);
}

@media (min-width: 42rem) {
    .tm-channel-ads h2,
    .tm-channel-ad {
        padding-right: var(--tm-space-5);
        padding-left: var(--tm-space-5);
    }
}

/* CP11 — YouTube Link Ad Gate */
body.tm-ad-gate-open {
    overflow: hidden;
}

.tm-ad-gate-backdrop {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--tm-space-4);
    background: rgba(0, 0, 0, 0.62);
}

.tm-ad-gate-backdrop[hidden] {
    display: none;
}

.tm-ad-gate-dialog,
.tm-youtube-fallback-dialog {
    width: min(100%, 28rem);
    max-height: calc(100dvh - (2 * var(--tm-space-4)));
    overflow: hidden;
    border: var(--tm-border-width) solid var(--tm-color-gray-300);
    border-radius: var(--tm-radius-md);
    background: var(--tm-color-white);
}

.tm-ad-gate-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tm-space-3);
    padding: var(--tm-space-3) var(--tm-space-4);
    border-bottom: var(--tm-border-width) solid var(--tm-border-color);
}

.tm-ad-gate-header h2,
.tm-ad-gate-header p {
    margin: 0;
}

.tm-ad-gate-header h2 {
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    letter-spacing: 0.05em;
}

.tm-ad-gate-header p {
    margin-top: var(--tm-space-1);
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-xs);
}

.tm-ad-gate-close {
    appearance: none;
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--tm-radius-sm);
    background: transparent;
    color: var(--tm-color-black);
    cursor: pointer;
}

.tm-ad-gate-close svg {
    width: var(--tm-icon-md);
    height: var(--tm-icon-md);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.tm-ad-gate-close:focus-visible,
.tm-ad-gate-skip:focus-visible,
.tm-ad-gate-browser:focus-visible {
    outline: 2px solid var(--tm-color-black);
    outline-offset: 2px;
}

.tm-ad-gate-content {
    height: clamp(14rem, 65vw, 20rem);
    overflow: hidden;
    background: var(--tm-color-gray-100);
}

.tm-ad-gate-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--tm-color-white);
}

.tm-ad-gate-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--tm-color-gray-500);
    font-size: var(--tm-font-size-xs);
    font-weight: var(--tm-font-weight-bold);
    letter-spacing: 0.08em;
}

.tm-ad-gate-actions,
.tm-youtube-fallback-actions {
    padding: var(--tm-space-4);
}

.tm-ad-gate-skip,
.tm-ad-gate-browser {
    appearance: none;
    width: 100%;
    min-height: 3rem;
    border: 0;
    border-radius: var(--tm-radius-sm);
    background: var(--tm-color-black);
    color: var(--tm-color-white);
    font: inherit;
    font-size: var(--tm-font-size-sm);
    font-weight: var(--tm-font-weight-bold);
    cursor: pointer;
}

.tm-ad-gate-skip:disabled {
    background: var(--tm-color-gray-300);
    color: var(--tm-color-gray-700);
    cursor: default;
}

.tm-ad-gate-auto {
    margin: 0;
    color: var(--tm-color-gray-700);
    font-size: var(--tm-font-size-sm);
    text-align: center;
}

.tm-youtube-fallback {
    z-index: 2100;
}

.tm-youtube-fallback-dialog {
    width: min(100%, 24rem);
}

@media (min-width: 42rem) {
    .tm-ad-gate-backdrop {
        padding: var(--tm-space-5);
    }
}
