/* youtube_transcript — tool-specific design (reading room: warm paper, serif transcript, red timestamps, sticky player). Shared: nav, footer, ad script only. */
body[data-tool="youtube_transcript"] {
  --yt-bg: #FAF8F3; --yt-card: #FFFFFF; --yt-ink: #191714; --yt-ink2: #4E4A43; --yt-mute: #8E887D; --yt-line: #E8E3D8; --yt-red: #E62117; --yt-red2: #FFE7E5; --yt-mark: #FFE58A;
  --yt-serif: Literata, Georgia, serif; --yt-sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--yt-bg); color: var(--yt-ink); font-family: var(--yt-sans);
}
body[data-tool="youtube_transcript"] .dt-nav { background: var(--yt-ink); border-bottom: 0; }
body[data-tool="youtube_transcript"] .dt-nav .navbar-brand, body[data-tool="youtube_transcript"] .dt-nav .nav-link { color: #fff; }
body[data-tool="youtube_transcript"] .dt-nav .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.dt-bare { display: block; width: 100%; flex: 1; }
.ytx { max-width: 1200px; margin: 0 auto; padding: 36px 20px 64px; }
.yt-hero h1 { margin: 0; font-family: var(--yt-serif); font-size: 54px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.yt-hero h1::before { content: ""; display: inline-block; width: 46px; height: 32px; margin-right: 14px; vertical-align: -2px; border-radius: 9px; background: var(--yt-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 32'%3E%3Cpath d='M18 9 L31 16 L18 23Z' fill='white'/%3E%3C/svg%3E") center/100% no-repeat; }
.yt-hero p { margin: 12px 0 0; font-size: 18px; color: var(--yt-ink2); max-width: 66ch; }

.yt { margin-top: 26px; }
.yt-form { display: flex; gap: 10px; background: var(--yt-card); border: 2px solid var(--yt-ink); border-radius: 14px; padding: 8px; box-shadow: 0 10px 30px rgba(25,23,20,.08); }
.yt-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; padding: 10px 12px; color: var(--yt-ink); }
.yt-form button { border: 0; background: var(--yt-red); color: #fff; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 22px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.yt-form button:disabled { opacity: .6; cursor: wait; }
.yt-msg { margin: 10px 2px 0; font-size: 15px; min-height: 1px; }
.yt-msg.bad { color: var(--yt-red); font-weight: 600; } .yt-msg.wait { color: var(--yt-ink2); }
.yt-msg.wait::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--yt-line); border-top-color: var(--yt-red); border-radius: 50%; animation: ytspin .8s linear infinite; vertical-align: -1px; }
@keyframes ytspin { to { transform: rotate(360deg); } }
.yt-res { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; margin-top: 18px; align-items: start; }
.yt-res[hidden] { display: none; }
.yt-side { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 10px; }
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-title { margin: 4px 0 0; font-family: var(--yt-serif); font-size: 21px; line-height: 1.3; font-weight: 700; }
.yt-meta { margin: 0; font-size: 14px; color: var(--yt-mute); }
.yt-lang { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--yt-ink2); }
.yt-lang select { border: 1px solid var(--yt-line); border-radius: 9px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; padding: 9px 10px; color: var(--yt-ink); }
.yt-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.yt-acts button { border: 1px solid var(--yt-line); background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--yt-ink); padding: 10px 8px; border-radius: 9px; cursor: pointer; }
.yt-acts button:hover { border-color: var(--yt-ink); }
.yt-acts #ytAi { grid-column: 1 / -1; background: var(--yt-ink); color: #fff; border-color: var(--yt-ink); }
.yt-main { background: var(--yt-card); border: 1px solid var(--yt-line); border-radius: 14px; overflow: hidden; }
.yt-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--yt-line); background: #FDFCF9; }
.yt-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--yt-line); border-radius: 999px; padding: 0 14px; background: #fff; }
.yt-search span { color: var(--yt-mute); font-size: 18px; }
.yt-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 15px; padding: 9px 0; background: transparent; }
.yt-search em { font-style: normal; font-size: 13px; color: var(--yt-red); font-weight: 700; white-space: nowrap; }
.yt-sw { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; font-weight: 700; color: var(--yt-ink2); }
.yt-sw input { width: 17px; height: 17px; accent-color: var(--yt-red); }
.yt-list { max-height: 70vh; overflow: auto; padding: 10px 18px 18px; font-family: var(--yt-serif); font-size: 17.5px; line-height: 1.7; color: var(--yt-ink); }
.yt-l { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; margin: 0; padding: 4px 0; border-bottom: 1px dashed #F1ECE2; }
.yt-p { margin: 0 0 16px; }
.yt-t { border: 0; background: transparent; padding: 0; font-family: var(--yt-sans); font-size: 13.5px; font-weight: 700; color: var(--yt-red); cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; align-self: start; margin-top: 4px; }
.yt-t:hover { text-decoration: underline; }
.yt-p .yt-t { display: block; margin: 0 0 2px; }
body[data-ts="off"] .yt-p .yt-t { color: var(--yt-mute); font-weight: 600; }
.yt-list mark { background: var(--yt-mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.yt-none { color: var(--yt-mute); font-family: var(--yt-sans); font-size: 15px; }

.yt-adwrap { margin: 40px 0 8px; }
.yt-article, .yt-faq, .yt-more { max-width: 780px; margin: 0 auto; }
.yt-article { margin-top: 44px; font-family: var(--yt-serif); font-size: 18px; line-height: 1.75; color: var(--yt-ink2); }
.yt-article h2, .yt-faq h2, .yt-more h2 { font-family: var(--yt-serif); font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--yt-ink); margin: 52px 0 12px; }
.yt-article h2:first-child { margin-top: 0; }
.yt-article p { margin: 0 0 14px; } .yt-article b { color: var(--yt-ink); }
.yt-article ul, .yt-article ol { padding-left: 1.2em; } .yt-article li { margin: 7px 0; }
.yt-q { border-bottom: 1px solid var(--yt-line); }
.yt-q summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-size: 18px; font-weight: 700; color: var(--yt-ink); }
.yt-q summary::-webkit-details-marker { display: none; }
.yt-q summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--yt-red); }
.yt-q[open] summary::after { content: "\2212"; }
.yt-q p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--yt-ink2); }
.yt-more > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yt-more a { display: block; text-decoration: none; padding: 14px 16px; border: 1px solid var(--yt-line); border-radius: 10px; background: #fff; color: var(--yt-ink); }
.yt-more a:hover { border-color: var(--yt-ink); }
.yt-more b { display: block; font-size: 16px; } .yt-more span { display: block; font-size: 14px; color: var(--yt-mute); margin-top: 2px; }

@media (max-width: 900px) { .yt-res { grid-template-columns: minmax(0, 1fr); } .yt-side { position: static; } .yt-list { max-height: none; } }
@media (max-width: 640px) {
  .ytx { padding: 24px 12px 48px; }
  .yt-hero h1 { font-size: 38px; } .yt-hero h1::before { width: 36px; height: 25px; margin-right: 10px; } .yt-hero p { font-size: 16px; }
  .yt-form { flex-direction: column; }
  .yt-list { font-size: 16.5px; padding: 8px 12px 14px; }
  .yt-l { grid-template-columns: 54px minmax(0, 1fr); }
  .yt-article { font-size: 17px; }
  .yt-article h2, .yt-faq h2, .yt-more h2 { font-size: 26px; margin-top: 40px; }
  .yt-more > div { grid-template-columns: minmax(0, 1fr); }
}
