:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-dark: #e9e2d5;
  --ink: #1c2b25;
  --muted: #73796e;
  --forest: #183c31;
  --forest-deep: #102a22;
  --acid: #d5f46d;
  --coral: #f36e50;
  --line: #d8d1c4;
  --white: #fffdf8;
  --danger: #a7382d;
  --shadow: 0 16px 40px rgb(28 43 37 / 8%);
  font-family: 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.text-input:focus-visible { outline: 0; border-color: var(--forest); box-shadow: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { width: min(1240px, calc(100% - 64px)); height: 88px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.brand-light { font-weight: 500; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 30px; height: 30px; border-radius: 50%; background: var(--acid); }
.brand-mark i { display: block; width: 2px; border-radius: 2px; background: var(--forest); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 10px; }
.header-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 700; }
.header-nav a { transition: opacity .2s ease; }
.header-nav a:hover { opacity: .62; }
.header-nav .nav-submit { padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; }
.nav-submit span { margin-left: 8px; color: var(--coral); }

.hero { position: relative; overflow: hidden; min-height: 590px; padding: 86px max(calc((100% - 1120px) / 2), 9vw) 106px; background: var(--forest); color: var(--white); }
.hero-copy { position: relative; z-index: 2; max-width: 570px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--muted); font: 500 10px/1.4 'DM Mono', monospace; letter-spacing: .13em; }
.hero .eyebrow { color: #b6c2b7; }
.live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgb(243 110 80 / 15%); }
.hero h1, .request-intro h1 { margin: 0; font-size: clamp(44px, 6.4vw, 78px); font-weight: 700; line-height: 1.19; letter-spacing: -.055em; }
.hero h1 em, .request-intro h1 em { color: var(--acid); font-style: normal; }
.hero-description { max-width: 430px; margin: 24px 0 31px; color: #c2cbc3; font-size: 14px; line-height: 2; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 0 21px; border: 1px solid transparent; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button-dark { background: var(--acid); color: var(--forest-deep); }
.button-dark:hover { background: #e1ff8a; }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--white); }
.button-accent { background: var(--coral); color: white; }
.button-danger { border-color: #e8b8ae; color: var(--danger); background: #fff6f3; }
.hero-art { position: absolute; top: 50%; right: max(calc((100% - 1150px) / 2), 7vw); width: 440px; height: 440px; transform: translateY(-47%); }
.radio-disc { position: absolute; z-index: 1; top: 50%; left: 50%; width: 320px; height: 320px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 16%); border-radius: 50%; background: radial-gradient(circle at center, #304c3f 0 20%, #132b23 20.5% 45%, #315042 45.5% 46%, #18392e 46.5% 70%, #355245 70.5% 71%, #18382e 71.5%); box-shadow: 0 25px 50px rgb(0 0 0 / 25%); transform: translate(-50%, -50%); animation: float 6s ease-in-out infinite; }
.disc-hole { position: absolute; width: 62px; height: 62px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; background: var(--acid); }
.disc-label { z-index: 2; color: var(--forest-deep); font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; }
.disc-label small { font: 500 6px 'DM Mono', monospace; letter-spacing: .1em; }
.art-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgb(213 244 109 / 29%); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit-one { width: 410px; height: 190px; }
.orbit-two { width: 470px; height: 260px; border-color: rgb(255 255 255 / 12%); transform: translate(-50%, -50%) rotate(34deg); }
.art-note { position: absolute; z-index: 2; padding: 10px 12px; background: var(--paper); color: var(--ink); font: 9px/1.7 'DM Mono', monospace; letter-spacing: .07em; box-shadow: var(--shadow); }
.art-note b { font-size: 11px; }
.note-top { top: 61px; right: 18px; transform: rotate(5deg); }
.note-bottom { right: 16px; bottom: 65px; display: flex; gap: 10px; align-items: center; transform: rotate(-4deg); }
.note-bottom .live-dot { width: 6px; height: 6px; }
.art-spark { position: absolute; top: 68px; left: 26px; color: var(--acid); font-size: 28px; }
.hero-index { position: absolute; right: max(calc((100% - 1120px) / 2), 9vw); bottom: 28px; display: flex; align-items: center; gap: 13px; color: #aab8ad; font: 9px 'DM Mono', monospace; letter-spacing: .12em; }
.hero-index > span:first-child { color: var(--acid); }
.index-line { width: 37px; height: 1px; background: #66786d; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.feed-section { padding-block: 91px 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 29px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -.05em; }
.section-heading .eyebrow { margin-bottom: 12px; }
.favorite-tools { display: flex; gap: 20px; align-items: center; }
.text-button { padding: 8px 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--forest); }
.text-button span { color: var(--coral); }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video-card { min-height: 228px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); background: var(--white); transition: transform .2s, box-shadow .2s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.video-card-top { display: flex; justify-content: space-between; gap: 12px; }
.video-kind, .video-source { color: var(--forest); font: 500 9px 'DM Mono', monospace; letter-spacing: .1em; }
.video-kind { color: var(--coral); }
.video-date { color: var(--muted); font: 10px 'DM Mono', monospace; }
.video-program { margin: 25px 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.video-title { margin: 0; font-size: 16px; line-height: 1.6; }
.video-title a:hover { color: #476d56; text-decoration: underline; text-underline-offset: 3px; }
.video-description { display: -webkit-box; overflow: hidden; margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 17px; }
.video-arrow { color: var(--coral); font-size: 17px; }
.empty-state { min-height: 190px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; grid-column: 1 / -1; padding: 30px; color: var(--muted); text-align: center; }
.empty-state p { max-width: 440px; margin: 0; font-size: 12px; line-height: 1.8; }
.empty-state h2 { margin: 3px 0; color: var(--ink); font-size: 18px; }
.empty-icon { color: var(--coral); font: 28px 'DM Mono', monospace; }
.loading-state { min-height: 120px; display: flex; justify-content: center; align-items: center; gap: 12px; grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.loader { width: 15px; height: 15px; border: 1px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.catalog-section { padding-block: 85px 100px; background: var(--paper-dark); }
.catalog-heading { align-items: center; }
.section-intro { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.search-form { width: min(320px, 42%); display: flex; border-bottom: 1px solid #9d9a8e; }
.search-form input { width: 100%; min-width: 0; padding: 12px 4px; border: 0; background: transparent; font-size: 12px; outline: none; }
.search-form input:focus-visible { outline: 0; }
.search-form button { width: 40px; border: 0; background: transparent; cursor: pointer; color: var(--forest); font-size: 24px; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.program-card { min-height: 223px; display: flex; flex-direction: column; padding: 17px; border: 1px solid #d0c8b9; background: rgb(255 253 248 / 69%); }
.program-card-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .08em; }
.program-index { color: var(--coral); }
.program-name { margin: 29px 0 7px; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.program-description { display: -webkit-box; overflow: hidden; margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.favorite-button { min-height: 38px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: auto; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--forest); font-size: 10px; font-weight: 700; transition: .15s; }
.favorite-button:hover, .favorite-button.is-favorite { border-color: var(--forest); background: var(--forest); color: white; }
.favorite-symbol { color: var(--coral); font-size: 15px; }
.favorite-button.is-favorite .favorite-symbol { color: var(--acid); }
.catalog-more-wrap { display: flex; justify-content: center; padding-top: 26px; }
.catalog-cta { display: flex; align-items: center; gap: 18px; margin-top: 65px; padding: 23px 25px; border: 1px solid #c9c1b3; }
.cta-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--acid); color: var(--forest); font: 700 16px 'DM Mono', monospace; }
.catalog-cta strong { font-size: 13px; }
.catalog-cta p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.catalog-cta .button { margin-left: auto; }

.back-link { color: var(--muted); font-size: 11px; font-weight: 700; }
.back-link:hover { color: var(--forest); }
.request-page { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(420px, 1fr); gap: clamp(45px, 8vw, 120px); padding-block: 70px 110px; }
.request-intro { position: sticky; top: 40px; align-self: start; padding-top: 22px; }
.request-intro h1 { font-size: clamp(39px, 5vw, 60px); }
.request-intro h1 em { color: var(--coral); }
.request-intro > p:last-child { max-width: 360px; margin-top: 25px; color: var(--muted); font-size: 12px; line-height: 2; }
.request-form { padding: 30px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 10px 32px rgb(28 43 37 / 4%); }
.field-label, .field-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 13px; font-size: 13px; font-weight: 800; }
.field-number { margin-right: 8px; color: var(--coral); font: 11px 'DM Mono', monospace; }
.required-label { margin-left: auto; color: var(--coral); font: 9px 'DM Mono', monospace; letter-spacing: .08em; }
.text-input { width: 100%; min-height: 47px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; background: #fffefa; color: var(--ink); font-size: 12px; }
.text-input::placeholder { color: #a6a499; }
.request-form > .text-input { margin-bottom: 34px; }
.field-heading { margin-bottom: 5px; }
.field-help, .mini-help { color: var(--muted); font-size: 10px; line-height: 1.8; }
.field-help { margin: 0 0 16px; }
.field-help code { color: var(--forest); }
.channel-list, .admin-channels { display: grid; gap: 12px; }
.channel-card { padding: 17px; border: 1px solid var(--line); background: #faf8f1; }
.channel-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.channel-step { color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .1em; }
.remove-channel { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 10px; }
.remove-channel:hover { color: var(--danger); }
.mini-label { display: grid; gap: 7px; margin-top: 12px; font-size: 10px; font-weight: 700; }
.keyword-input { min-height: 82px; resize: vertical; line-height: 1.7; }
.filter-note { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; padding: 14px; background: #f1f5e2; }
.filter-note p { margin: 0; color: #596452; font-size: 10px; line-height: 1.8; }
.note-icon { display: inline-grid; min-width: 31px; height: 25px; place-items: center; border: 1px solid #a9be6b; border-radius: 2px; color: var(--forest); font: 8px 'DM Mono', monospace; }
.request-form .filter-note { margin-top: 22px; }
.form-message { min-height: 22px; margin: 15px 0 3px; font-size: 11px; line-height: 1.7; }
.form-message.is-success { color: #276847; }
.form-message.is-error, .empty-state.is-error { color: var(--danger); }
.submit-button { width: 100%; margin-top: 8px; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; text-align: center; }

.admin-body { min-height: 100vh; background: #ece8dd; }
.admin-header { width: min(1440px, calc(100% - 56px)); }
.admin-label { color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .13em; }
.admin-layout { width: min(1440px, calc(100% - 56px)); margin: 0 auto; padding: 30px 0 70px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.admin-title-row .eyebrow { margin-bottom: 9px; }
.admin-title-row h1 { margin: 0; font-size: 33px; letter-spacing: -.04em; }
.admin-title-links { display: flex; flex-wrap: wrap; gap: 18px; }
.favorite-statistics-panel { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.favorite-stats-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #f8f6f0; }
.favorite-stats-controls h2 { margin: 0 0 6px; font-size: 15px; }
.favorite-stats-controls p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.favorite-stats-controls label { display: grid; gap: 5px; flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.favorite-stats-controls select { min-width: 130px; padding: 8px 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 10px; }
.favorite-stats-summary { margin: 0; padding: 14px 22px 0; color: var(--forest); font-size: 11px; font-weight: 700; }
.favorite-stats-results { padding: 14px 22px 22px; }
.favorite-stats-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.favorite-stats-table th, .favorite-stats-table td { padding: 12px 10px; border-bottom: 1px solid #e8e3d9; text-align: left; }
.favorite-stats-table thead th { background: #efede5; color: #59645b; font-size: 9px; }
.favorite-stats-table tbody tr:last-child th, .favorite-stats-table tbody tr:last-child td { border-bottom: 0; }
.favorite-stats-rank { width: 70px; color: var(--coral); font: 10px 'DM Mono', monospace; }
.favorite-stats-name { font-weight: 700; }
.favorite-stats-count, .favorite-stats-percent { width: 150px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.favorite-stats-count { color: var(--forest); font-weight: 800; }
.favorite-stats-footnote { margin: 13px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.default-favorites-panel { margin-bottom: 18px; }
.default-favorites-list { padding: 18px 22px 4px; }
.default-favorites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.default-favorite-option { display: flex; min-height: 40px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); background: #fffefa; color: var(--ink); cursor: pointer; font-size: 11px; }
.default-favorite-option:has(input:checked) { border-color: #9aaf8e; background: #f3f6e9; }
.default-favorite-option input { accent-color: var(--forest); }
.default-favorites-status { min-height: 18px; margin: 0; padding: 7px 22px 17px; color: var(--forest); font-size: 10px; }
.default-favorites-status.is-error { color: var(--coral); }
.admin-columns { display: grid; grid-template-columns: minmax(255px, 330px) 1fr; min-height: 630px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.application-sidebar { border-right: 1px solid var(--line); background: #f8f6f0; }
.sidebar-heading { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sidebar-heading h2 { margin: 0; font-size: 14px; }
.sidebar-heading select { max-width: 120px; padding: 7px 9px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 10px; }
.application-list { display: grid; }
.application-item { display: grid; gap: 6px; padding: 15px 17px; border: 0; border-bottom: 1px solid #e6e1d8; background: transparent; cursor: pointer; text-align: left; }
.application-item:hover, .application-item.is-selected { background: #edf2de; }
.application-item-id { color: var(--coral); font: 9px 'DM Mono', monospace; }
.application-item-name { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.application-item-meta { color: var(--muted); font-size: 9px; }
.application-detail { min-width: 0; padding: 28px clamp(19px, 4vw, 46px); }
.application-detail > .empty-state { min-height: 570px; }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-heading .eyebrow { margin-bottom: 8px; }
.detail-heading h2 { margin: 0 0 8px; font-size: 22px; overflow-wrap: anywhere; }
.detail-meta, .review-meta { margin: 0; color: var(--muted); font-size: 10px; }
.status-pill { flex: 0 0 auto; padding: 7px 10px; border-radius: 20px; background: #f2eee5; color: var(--muted); font-size: 9px; font-weight: 700; }
.status-pending { background: #fff1d6; color: #885e18; }
.status-approved { background: #e4f0dc; color: #336b3f; }
.status-rejected { background: #fae4df; color: #9e3b31; }
.admin-editor { display: grid; gap: 17px; padding-top: 10px; }
.admin-editor .mini-label { margin-top: 0; }
.admin-channel-heading { margin: 0; }
.admin-channel-heading strong { font-size: 12px; }
.admin-channel-card { background: #faf8f1; }
.admin-channel-link { display: inline-block; margin-top: 7px; color: #465f50; font-size: 10px; overflow-wrap: anywhere; }
.admin-channel-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.admin-editor .filter-note { margin-top: 0; }
.review-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding-top: 6px; }
.review-actions .button { min-height: 42px; font-size: 10px; }
.review-meta { padding-top: 4px; }
.compact-empty { min-height: 140px; font-size: 11px; }
.admin-layout > .form-message { margin-top: 16px; }

@media (max-width: 940px) {
  .hero { min-height: 550px; padding-left: 7vw; }
  .hero-art { right: 2vw; width: 350px; height: 350px; opacity: .78; }
  .radio-disc { width: 260px; height: 260px; }
  .orbit-one { width: 330px; height: 160px; }
  .orbit-two { width: 380px; height: 220px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 36px); height: 70px; }
  .header-nav { gap: 14px; font-size: 10px; }
  .header-nav .nav-submit { padding: 9px 10px; }
  .header-nav > a:first-child { display: none; }
  .brand { gap: 8px; font-size: 11px; }
  .brand-mark { width: 26px; height: 26px; }
  .hero { min-height: 630px; padding: 60px 24px 88px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(45px, 13vw, 65px); }
  .hero-description { max-width: 340px; font-size: 12px; }
  .hero-art { top: auto; right: 8px; bottom: -96px; width: 310px; height: 310px; transform: none; opacity: .66; }
  .radio-disc { width: 220px; height: 220px; }
  .disc-hole { width: 48px; height: 48px; }
  .orbit-one { width: 280px; height: 130px; }
  .orbit-two { width: 320px; height: 185px; }
  .art-note { font-size: 7px; }
  .note-top { top: 27px; }
  .note-bottom { bottom: 37px; }
  .hero-index { right: 24px; bottom: 21px; }
  .section-wrap { width: calc(100% - 36px); }
  .feed-section { padding-block: 60px 65px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 21px; }
  .section-heading h2 { font-size: 31px; }
  .favorite-tools { gap: 17px; }
  .feed-grid { grid-template-columns: 1fr; }
  .video-card { min-height: 190px; }
  .catalog-section { padding-block: 60px 68px; }
  .catalog-heading { align-items: stretch; }
  .search-form { width: 100%; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .program-card { min-height: 215px; padding: 13px; }
  .program-name { font-size: 14px; }
  .program-channel-count { font-size: 7px; }
  .catalog-cta { align-items: flex-start; flex-wrap: wrap; gap: 13px; margin-top: 44px; padding: 17px; }
  .catalog-cta > div:nth-child(2) { flex: 1; }
  .catalog-cta .button { width: 100%; margin: 2px 0 0; }
  .request-page { display: block; padding-block: 46px 70px; }
  .request-intro { position: static; margin-bottom: 32px; padding: 0; }
  .request-intro h1 { font-size: 43px; }
  .request-intro > p:last-child { margin-top: 16px; font-size: 11px; }
  .request-form { padding: 20px 16px; }
  .field-heading { align-items: flex-start; }
  .field-heading .text-button { font-size: 9px; white-space: nowrap; }
  .admin-header, .admin-layout { width: calc(100% - 28px); }
  .admin-label { font-size: 7px; }
  .admin-layout { padding-top: 22px; }
  .admin-title-row { align-items: flex-start; gap: 12px; }
  .admin-title-row h1 { font-size: 25px; }
  .admin-title-row .back-link { padding-top: 18px; font-size: 9px; white-space: nowrap; }
  .admin-title-links { justify-content: flex-end; gap: 10px; }
  .admin-title-links .back-link { padding-top: 18px; }
  .favorite-stats-controls { align-items: flex-start; flex-direction: column; padding: 16px; }
  .favorite-stats-controls label, .favorite-stats-controls select { width: 100%; }
  .favorite-stats-results { padding: 12px; }
  .default-favorites-list { padding: 12px; }
  .default-favorites-status { padding-inline: 12px; }
  .favorite-stats-count, .favorite-stats-percent { width: auto; }
  .admin-columns { display: block; }
  .application-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .application-list { max-height: 250px; overflow: auto; }
  .application-detail { padding: 22px 16px; }
  .application-detail > .empty-state { min-height: 220px; }
  .detail-heading h2 { font-size: 19px; }
  .review-actions { justify-content: stretch; }
  .review-actions .button { flex: 1 1 calc(50% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.directory-header { width: min(1480px, calc(100% - 56px)); height: 72px; }
.directory-branding { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-tagline { margin: 0; color: #8b8d83; font-size: 10px; line-height: 1.5; }
.live-check-link { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.live-check-label { color: #8b8d83; font-size: 8px; line-height: 1.3; }
.live-check-action { color: var(--forest); font-size: 10px; font-weight: 700; line-height: 1.4; }
.live-check-action span { color: var(--coral); }
.live-check-link:hover .live-check-action { text-decoration: underline; text-underline-offset: 3px; }
.directory-header .header-nav { gap: 14px; }
.directory-header .nav-submit { padding: 9px 13px; }
.settings-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--forest); cursor: pointer; }
.settings-button:hover { background: #ece8dd; }
.settings-button svg { width: 19px; height: 19px; fill: currentColor; }
.settings-dialog { width: min(640px, calc(100% - 28px)); max-width: none; max-height: 90vh; overflow-y: auto; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px rgb(16 42 34 / 22%); }
.settings-dialog::backdrop { background: rgb(16 32 26 / 45%); backdrop-filter: blur(2px); }
.settings-dialog-content { position: relative; padding: 30px; }
.settings-dialog h2 { margin: 0 34px 13px 0; font-size: 20px; letter-spacing: -.03em; }
.settings-description { margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.favorite-transfer-group { padding: 17px 0; border-top: 1px solid var(--line); }
.favorite-transfer-group h3 { margin: 0 0 12px; color: var(--forest); font-size: 13px; }
.transfer-label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.transfer-json { display: block; width: 100%; min-height: 54px; margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: #f8f6ef; color: var(--ink); font: 10px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; overflow: auto; }
.uuid-copy-row { display: flex; align-items: center; gap: 10px; }
.uuid-copy-row .uuid-field { min-width: 0; flex: 1 1 auto; margin-bottom: 10px; }
.uuid-copy-row .button { flex: 0 0 auto; min-height: 42px; padding-inline: 12px; font-size: 10px; }
.uuid-field { height: 54px; letter-spacing: .08em; }
.transfer-json:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
.transfer-load-button { width: 100%; }
.settings-status { min-height: 1.5em; margin: 8px 0 0; color: var(--forest); font-size: 10px; line-height: 1.5; }
.settings-status.is-error { color: var(--danger); }
.settings-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 25px; line-height: 1; }
.settings-close:hover { background: #f0ede5; color: var(--ink); }
.directory-main { width: min(1480px, calc(100% - 56px)); margin: 0 auto; padding: 25px 0 62px; }
.directory-section { margin-bottom: 28px; padding: 23px 24px 25px; border: 1px solid var(--line); background: var(--white); }
.directory-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.directory-section-heading .eyebrow { margin-bottom: 7px; }
.directory-section-heading h1, .directory-section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.section-note { margin: 0 0 3px; color: var(--muted); font-size: 10px; }
.heading-tools, .search-heading-tools { display: flex; align-items: flex-end; justify-content: flex-end; gap: 14px; }
.search-heading-tools { align-items: center; flex-direction: column; }
.sort-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px 12px; }
.sort-controls[hidden] { display: none !important; }
.sort-group { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sort-label { color: #777b72; font-size: 9px; }
.sort-arrow { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 1px solid #ded9ce; border-radius: 4px; background: #fffefa; color: #777b72; cursor: pointer; font-size: 9px; line-height: 1; }
.sort-arrow:hover { border-color: #9bac8f; color: var(--forest); }
.sort-arrow.is-active { border-color: var(--forest); background: var(--forest); color: white; }
.search-heading-tools { max-width: 100%; }
.search-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.search-result-heading h3 { margin: 0; }
.all-programs-back { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.all-programs-back:hover { color: var(--forest); }
.all-program-list { display: grid; }
.all-program-row { display: grid; grid-template-columns: minmax(180px, 1fr) 145px minmax(150px, .85fr) minmax(440px, 3fr); align-items: center; gap: 18px; min-width: 1050px; padding: 18px 14px; border-top: 1px solid #e8e3d9; }
.all-program-row:first-child { border-top: 0; }
.all-program-heading { display: flex; align-items: flex-start; gap: 8px; }
.all-program-heading .row-favorite { flex: 0 0 20px; }
.all-program-heading .program-name { min-width: 0; font-size: 15px; line-height: 1.5; }
.all-program-identity .program-average-views { margin-left: 28px; font-size: 11px; }
.all-program-latest { padding: 0; }
.all-program-latest .relative-time { font-size: 15px; }
.all-program-latest .absolute-time { font-size: 10px; }
.all-program-channels { padding: 0; }
.all-program-feature { display: flex; min-width: 0; align-items: flex-start; gap: 16px; }
.all-program-thumbnail { display: block; width: 240px; height: 135px; flex: 0 0 240px; overflow: hidden; border: 1px solid #e3dfd6; background: #e7e3da; }
.all-program-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.all-program-no-thumbnail { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.all-program-description { display: -webkit-box; min-width: 0; max-height: 135px; overflow: hidden; margin: 0; color: #626a60; font-size: 11px; line-height: 1.75; white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.search-section { background: #f9f7f1; }
.search-heading { align-items: center; }
.search-heading .search-form { width: min(440px, 58%); }
.search-results { display: grid; gap: 22px; }
.search-results[hidden], .search-result-section[hidden], #search-empty[hidden] { display: none !important; }
.search-result-section h3 { margin: 0 0 10px; color: var(--forest); font-size: 14px; }
.program-table-container { min-height: 75px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.program-table { width: 100%; min-width: 1040px; border-collapse: collapse; table-layout: fixed; }
.program-table th, .program-table td { border-bottom: 1px solid #e8e3d9; text-align: left; vertical-align: middle; }
.program-column { width: 21%; }
.latest-column { width: 14%; }
.channel-column { width: 9%; }
.videos-column { width: 56%; }
.topic-results-table { min-width: 800px; }
.topic-results-table .program-column { width: 19%; }
.topic-column { width: 23%; }
.source-video-column { width: 42%; }
.published-column { width: 16%; }
.program-table tbody tr:last-child th, .program-table tbody tr:last-child td { border-bottom: 0; }
.program-table tbody tr:hover { background: #fbfaf5; }
.program-table .program-name-cell { padding: 13px 12px; font-weight: 500; }
.program-name-line { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 6px; }
.program-name { display: block; min-height: 20px; margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; line-height: 20px; }
.program-subtitle { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.program-average-views { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: #6f756b; font-size: 10px; font-weight: 600; white-space: nowrap; }
.program-average-views svg { width: 13px; height: 13px; fill: currentColor; }
.row-favorite { display: grid; width: 20px; height: 20px; place-items: center; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #747970; cursor: pointer; font-size: 16px; line-height: 1; }
.row-favorite:hover { border-color: var(--line); background: #f4f0e7; }
.row-favorite.is-favorite { color: #b67c19; }
.latest-cell { padding: 10px 12px; }
.relative-time { display: block; color: var(--forest); font-size: 17px; font-weight: 700; white-space: nowrap; }
.absolute-time { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.is-muted { color: #97988f; }
.channel-cell { padding: 10px 12px; }
.channel-link { display: inline-flex; width: 25px; height: 25px; justify-content: center; align-items: center; margin: 2px 4px 2px 0; color: #e62117; vertical-align: middle; }
.channel-link:hover { color: #b91810; }
.channel-entry { display: inline-flex; align-items: center; gap: 3px; margin: 2px 8px 2px 0; vertical-align: middle; }
.channel-entry .channel-link { margin: 0; }
.channel-subscriber-count { color: #686d65; font-size: 10px; white-space: nowrap; }
.youtube-icon { display: block; width: 21px; height: 21px; }
.youtube-icon-body { fill: currentColor; }
.youtube-icon-play { fill: white; }
.video-list-cell { padding: 9px 12px; }
.topic-match-list { display: grid; gap: 6px; }
.topic-match-link { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(160px, 2fr) auto; align-items: baseline; gap: 10px; padding: 5px 7px; border: 1px solid #e8e3d9; background: #fffefa; }
.topic-match-link:hover { border-color: #b9c6ae; background: #f7f8ef; }
.topic-match-topic { overflow: hidden; color: var(--forest); font-size: 9px; line-height: 1.5; text-overflow: ellipsis; }
.topic-match-video-title { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.topic-match-time { color: var(--muted); font-size: 8px; white-space: nowrap; }
.topic-result-topic-cell { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.topic-result-video-cell { padding: 10px 12px; }
.topic-result-thumbnail { width: 80px; height: 45px; flex: 0 0 80px; overflow: hidden; border: 1px solid #e3dfd6; background: #e7e3da; }
.topic-result-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-result-link { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.topic-result-link .topic-match-topic { font-size: 10px; }
.topic-result-position { flex: 0 0 auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.topic-result-video { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-result-video:hover, .topic-result-link:hover .topic-match-topic { color: #426f53; text-decoration: underline; }
.video-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 1px 1px 5px; }
.video-thumb { width: 136px; flex: 0 0 136px; overflow: hidden; color: var(--ink); }
.video-thumb img { display: block; width: 136px; height: 77px; border: 1px solid #e3dfd6; background: #e7e3da; object-fit: cover; }
.video-thumb img[hidden] { display: none; }
.video-thumb-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-top: 6px; }
.video-thumb-time, .video-thumb-views { color: var(--forest); font-size: 10px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.video-thumb-views { color: #777a71; font-weight: 500; }
.video-thumb-views { display: inline-flex; align-items: center; gap: 3px; }
.video-thumb-views svg { width: 10px; height: 10px; flex: 0 0 10px; fill: currentColor; }
.no-videos { color: var(--muted); font-size: 9px; }
.directory-section .empty-state { min-height: 106px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 17px; border: 1px dashed var(--line); text-align: left; }
.directory-section .empty-icon { font-size: 20px; }
.directory-section .empty-state p { font-size: 10px; }
.directory-section .loading-state { min-height: 75px; }
.directory-section .catalog-more-wrap { padding-top: 16px; }
.directory-footnote { margin: 16px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
.directory-footnote a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 680px) {
  .directory-header { width: calc(100% - 28px); height: 64px; }
  .directory-branding { gap: 8px; }
  .directory-branding .brand-tagline { display: none; }
  .live-check-link { gap: 1px; padding-left: 8px; white-space: normal; }
  .live-check-action { max-width: 92px; font-size: 8px; }
  .directory-header .header-nav { gap: 8px; }
  .directory-header .nav-submit { padding: 8px 9px; font-size: 9px; }
  .settings-button { width: 34px; height: 34px; }
  .settings-dialog-content { padding: 26px 20px 20px; }
  .uuid-copy-row { align-items: stretch; flex-direction: column; gap: 0; }
  .directory-main { width: calc(100% - 24px); padding-top: 13px; }
  .directory-section { margin-bottom: 15px; padding: 16px 12px; }
  .directory-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .heading-tools, .search-heading-tools { width: 100%; align-items: flex-start; flex-direction: column; gap: 8px; }
  .sort-controls { justify-content: flex-start; gap: 6px 9px; }
  .sort-label { font-size: 8px; }
  .sort-arrow { width: 20px; height: 20px; }
  .search-result-heading { align-items: flex-start; flex-direction: column; }
  .directory-section-heading h1, .directory-section-heading h2 { font-size: 20px; }
  .section-note { font-size: 9px; }
  .search-heading { align-items: stretch; }
  .search-heading .search-form { width: 100%; }
  .directory-section .empty-state { padding: 13px; }
  .directory-footnote { text-align: left; }
  .all-program-row { grid-template-columns: minmax(0, 1fr) minmax(110px, .8fr); min-width: 0; gap: 12px; padding-inline: 4px; }
  .all-program-feature { grid-column: 1 / -1; gap: 12px; }
  .all-program-thumbnail { width: min(42vw, 220px); height: auto; aspect-ratio: 16 / 9; flex-basis: min(42vw, 220px); }
  .all-program-description { font-size: 10px; }
  .all-program-channels { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .brand-tagline { display: none; }
}

.program-detail-main { padding-top: 28px; }
.program-detail-section { margin-top: 22px; }
.program-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.program-detail-heading h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 4vw, 38px); }
.program-detail-heading p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.program-detail-heading .button { flex: 0 0 auto; }
.program-video-list { display: grid; gap: 14px; }
.program-video-row { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 22px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.program-video-thumbnail { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.program-video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.program-video-details { align-self: center; min-width: 0; }
.program-video-title { margin: 0; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.program-video-title a:hover, .program-detail-link:hover { color: #476d56; text-decoration: underline; text-underline-offset: 3px; }
.program-video-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.program-video-views { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; }
.program-video-views svg { width: 13px; height: 13px; fill: currentColor; }
.program-name-cell .program-detail-link, .all-program-heading .program-detail-link { color: inherit; }
@media (max-width: 640px) {
  .program-detail-main { padding-top: 18px; }
  .program-detail-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .program-video-row { grid-template-columns: 112px minmax(0, 1fr); gap: 13px; padding: 10px; }
  .program-video-title { font-size: 13px; line-height: 1.5; }
  .program-video-metadata { gap: 8px; margin-top: 8px; font-size: 11px; }
}
