body[data-service="video"] .site-nav__item[href$="life/"],
body[data-service="video"] .site-nav__item[href$="tools/"],
body[data-service="video"] .site-nav__item[href$="health/"],
body[data-service="video"] .site-nav__item[href$="kids/"] {
  display: none;
}

/* Component display rules appear later in this file, so the native hidden
   state needs priority when a filtered topic has no videos. */
[hidden] {
  display: none !important;
}

body[data-service="video"].theme-dark {
  --accent: #fb7185;
  --accent-soft: rgba(251, 113, 133, .14);
  background:
    radial-gradient(circle at 12% 0%, rgba(225,29,72,.18), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(124,58,237,.16), transparent 28%),
    linear-gradient(180deg, #0c101d 0%, #090d18 100%);
}
body[data-service="video"].theme-dark .video-kicker {
  color: #fb7185;
}
body[data-service="video"].theme-dark .video-news-link {
  color: #fda4af;
}
body[data-service="video"].theme-dark .video-affiliate-group strong {
  color: #dbe5f5;
}
.video-feature-row { display:flex; align-items:center; gap:8px; margin:0 0 12px; }
.video-feature-notice { display:flex; align-items:center; flex:0 1 calc(50% - 4px); min-width:0; min-height:34px; gap:8px; margin:0; padding:5px 11px; border:1px solid color-mix(in srgb,var(--accent) 34%,var(--border)); border-radius:999px; background:linear-gradient(110deg,var(--accent-soft),var(--card)); color:var(--text); text-decoration:none; box-shadow:0 5px 15px rgba(37,99,235,.07); transition:.2s ease; }
.video-feature-notice > span { flex:0 0 auto; padding:3px 6px; border-radius:999px; background:var(--accent); color:#fff; font-size:8px; font-weight:950; letter-spacing:.08em; }
.video-feature-notice strong { overflow:hidden; min-width:0; font-size:11px; font-weight:900; white-space:nowrap; text-overflow:ellipsis; }
.video-feature-notice small { display:none; }
.video-feature-notice b { color:var(--accent); font-size:10px; white-space:nowrap; }
.video-feature-notice:hover { border-color:var(--accent); transform:translateY(-1px); }
.video-feature-share { align-self:center; display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:34px; margin-left:auto; padding:6px 13px; border:1px solid color-mix(in srgb,var(--accent) 45%,var(--border)); border-radius:999px; background:var(--accent-soft); color:var(--accent); white-space:nowrap; cursor:pointer; box-shadow:0 7px 18px rgba(124,58,237,.12); transition:.16s ease; }
.video-feature-share > span { font-size:13px; font-weight:900; }
.video-feature-share strong { font-size:12px; font-weight:850; }
.video-feature-share:hover, .video-feature-share:focus-visible { border-color:var(--accent); transform:translateY(-1px); }
.video-feature-share.is-copied { border-color:#16a34a; background:color-mix(in srgb,#16a34a 10%,var(--card)); }
.video-feature-share.is-copied { color:#15803d; }

@media (min-width: 901px) {
  body[data-service="video"] .header {
    position: relative;
    display: block;
  }
  body[data-service="video"] .header__left {
    min-height: 38px;
    padding-right: 76px;
  }
  body[data-service="video"] .header__right {
    display: block;
    margin-top: 9px;
  }
  body[data-service="video"] .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
  }
  body[data-service="video"] .site-nav__item {
    flex: 0 0 auto;
    padding-right: 8px;
    padding-left: 8px;
    white-space: nowrap;
  }
  body[data-service="video"] .theme-toggle {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding-right: 9px;
    padding-left: 9px;
  }
}

.video-search-card {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(420px, 1.55fr);
  gap: 7px 14px;
  padding: 11px 15px;
  margin-bottom: 10px;
  border-color: rgba(225, 29, 72, .18);
  background:
    radial-gradient(circle at 8% 18%, rgba(225, 29, 72, .11), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, .10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(255, 241, 242, .92) 52%, rgba(245, 243, 255, .92));
  box-shadow: 0 14px 34px rgba(76, 29, 149, .08);
}
.video-search-card::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  pointer-events: none;
}
.video-search-card .search-head { align-content: center; margin: 0; }
.video-search-card .lead { font-size: 11px; line-height: 1.38; }
.video-search-card .badge { min-height: 24px; padding: 2px 8px; font-size: 10px; }
.video-search-card .search-form { align-self: center; gap: 8px; }
.video-search-card .search-engine,
.video-search-card .search-input,
.video-search-card .search-button { min-height: 35px; font-size: 12px; }
.video-search-card .search-engine { padding: 0 10px; }
.video-search-card .search-engine,
.video-search-card .search-input {
  border-color: rgba(124, 58, 237, .16);
  background: rgba(255, 255, 255, .94);
}
.video-search-card .search-input { padding: 0 13px; }
.theme-dark .video-search-card {
  border-color: rgba(244, 63, 94, .24);
  background:
    radial-gradient(circle at 8% 18%, rgba(225, 29, 72, .18), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(124, 58, 237, .18), transparent 34%),
    linear-gradient(135deg, rgba(23, 32, 51, .98), rgba(31, 25, 48, .96));
}
.theme-dark .video-search-card .search-engine,
.theme-dark .video-search-card .search-input {
  border-color: rgba(244, 63, 94, .22);
  background: var(--card);
}
.video-search-card .search-button { padding: 0 16px; }
.video-search-card .quick-engines { grid-column: 1 / -1; justify-content: flex-end; gap: 6px; margin-top: 0; }
.video-search-card .chip { min-height: 25px; padding: 2px 7px; font-size: 10px; }
.video-search-card .engine-ico { width: 13px; height: 13px; }
.video-search-card .jump-hint { grid-column: 1 / -1; margin: 0; font-size: 10px; }

.video-news { margin-bottom: 14px; }
.video-news__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 16px; padding: 4px 3px 0; }
.video-news__head > div { display: flex; align-items: baseline; gap: 10px; }
.video-news__head > div h2 { order: 1; }
.video-news__head > div .video-kicker { order: 2; }
.video-news__head > div .video-count { order: 3; }
.video-news__head h2 { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.2; }
.video-kicker { color: #ff4d35; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.video-news__head .video-news__links { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.video-news-link { color: var(--accent); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.video-news-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.video-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.video-scope-controls { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 11px 2px 0; }
.video-scope-switch { display: inline-flex; width: max-content; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--card) 82%, var(--bg)); }
.video-scope-switch button { min-width: 88px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.video-scope-switch button.is-active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 24%, transparent); }
.video-region-tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; overflow-x: auto; padding: 1px 0 2px; scrollbar-width: none; }
.video-region-tabs[hidden] { display: none; }
.video-region-tabs::-webkit-scrollbar { display: none; }
.video-region-tabs button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.video-region-tabs button.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent); }
.video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.video-filters { display: flex; flex: 0 0 auto; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.video-filters button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.video-filters button.is-active { border-color: var(--accent); background: var(--accent); color: white; }
.video-affiliates { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.video-affiliate-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.video-affiliate-group strong { flex: 0 0 auto; margin-right: 2px; color: var(--text); font-size: 11px; white-space: nowrap; }
.video-affiliate-group a { display: inline-flex; align-items: center; gap: 4px; min-height: 29px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; transition: .16s ease; }
.video-affiliate-group a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.video-affiliate-group img { width: 16px; height: 16px; border-radius: 5px; background: white; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.video-status { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--muted); font-size: 14px; }
.video-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.video-player-card { min-width: 0; border-right: 1px solid var(--border); }
.video-player-wrap { position: relative; aspect-ratio: 16 / 9; background: #03060b; }
.video-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-player-info { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px 16px; }
.video-player-info > div { min-width: 0; }
.video-player-info h3 { margin-top: 6px; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.45; }
.video-player-info > a { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; }
.video-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.video-live { padding: 2px 6px; border-radius: 5px; background: #ff4d35; color: white; font-weight: 900; }
.video-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px 20px 16px; border-top: 1px solid var(--border); }
.video-controls > button { min-height: 44px; padding: 0 18px; border: 1px solid color-mix(in srgb, #64748b 48%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--card) 88%, #64748b 12%); color: var(--text); box-shadow: 0 3px 9px rgba(15,23,42,.11), inset 0 1px rgba(255,255,255,.5); font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; transition: .16s ease; }
.video-controls > button:hover { border-color: #0071e3; background: color-mix(in srgb, var(--card) 86%, #0071e3 14%); color: #0071e3; transform: translateY(-1px); }
.video-controls span { color: var(--muted); text-align: center; font-size: 11px; }
.video-continuous { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); font-size: 11px; font-weight: 800; cursor: pointer; }
.video-continuous input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.video-continuous .video-continuous__copy { display: grid; gap: 2px; color: var(--text); text-align: left; }
.video-continuous small { color: var(--muted); font-size: 10px; font-weight: 600; }
.video-continuous em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; }
.video-loop-controls { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr); align-items: center; gap: 15px 20px; padding: 17px 22px 20px; border-top: 2px solid color-mix(in srgb, #0071e3 38%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--card) 92%, #0071e3 8%), color-mix(in srgb, var(--card) 91%, #5856d6 9%)); }
.video-loop-controls.is-active { background: linear-gradient(135deg, color-mix(in srgb, var(--card) 86%, #0071e3 14%), color-mix(in srgb, var(--card) 85%, #5856d6 15%)); box-shadow: inset 5px 0 #0071e3; }
.video-loop-copy { display: grid; gap: 5px; min-width: 0; }
.video-loop-copy strong { color: var(--text); font-size: 15px; font-weight: 950; }
.video-loop-copy small { color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.55; }
.video-loop-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.video-loop-shortcuts kbd { display: inline-grid; min-width: 23px; height: 22px; place-items: center; padding: 0 5px; border: 1px solid color-mix(in srgb, var(--text) 20%, var(--border)); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(15,23,42,.08); font: inherit; font-weight: 900; }
.video-loop-actions { display: flex; justify-content: flex-end; gap: 8px; min-width: 0; }
.video-loop-actions button { min-height: 44px; padding: 0 14px; border: 1px solid color-mix(in srgb, #0071e3 25%, var(--border)); border-radius: 11px; background: var(--card); color: var(--text); box-shadow: 0 3px 8px rgba(15,23,42,.10), inset 0 1px rgba(255,255,255,.55); font: inherit; font-size: 12px; font-weight: 900; white-space: nowrap; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.video-loop-actions .video-loop-point { background: color-mix(in srgb, var(--card) 88%, #0071e3 12%); }
.video-loop-actions button b { margin-left: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.video-loop-actions button:hover:not(:disabled), .video-loop-actions button.active { border-color: #0071e3; background: #0071e3; color: #fff; box-shadow: 0 5px 13px color-mix(in srgb, #0071e3 28%, transparent); transform: translateY(-1px); }
.video-loop-actions button.active b, .video-loop-actions button:hover:not(:disabled) b { color: currentColor; }
.video-loop-actions .video-shortcut-mode.is-active { border-color: #34c759; background: #34c759; color: #071a0c; box-shadow: 0 5px 13px color-mix(in srgb, #34c759 30%, transparent); }
.video-loop-actions button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 4px rgba(15,23,42,.15); }
.video-loop-actions button:disabled { cursor: not-allowed; opacity: .42; }
.video-autoplay-notice { display: block; width: calc(100% - 40px); margin: 0 20px 16px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.video-autoplay-notice[hidden] { display: none; }
.video-queue { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; max-height: 650px; }
.video-queue__head { display: flex; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 12px; }
.video-queue__head span { color: var(--muted); }
.video-queue__list { overflow-y: auto; overscroll-behavior: contain; }
.video-queue-item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; width: 100%; padding: 11px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.video-queue-item:hover { background: color-mix(in srgb, var(--card-soft) 90%, var(--accent) 10%); }
.video-queue-item.is-active { background: color-mix(in srgb, var(--card) 82%, #64748b 18%); box-shadow: inset 5px 0 var(--accent), inset 0 0 0 1px color-mix(in srgb, #64748b 35%, transparent), 0 4px 12px rgba(15,23,42,.08); }
.video-queue-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: #182033; }
.video-queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-queue-copy { display: grid; align-content: center; min-width: 0; gap: 5px; }
.video-queue-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.45; }
.video-queue-copy small { overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.video-queue-number { position: absolute; top: 4px; right: 7px; color: var(--faint); font-size: 8px; }
.video-tools { gap:8px; margin-top:10px; margin-bottom:12px; }
.video-tools .tool-link { min-height:50px; padding:9px 12px; border-radius:12px; }
.video-tools .tool-link__main { gap:8px; }
.video-tools .tool-link__ico { width:20px; height:20px; border-radius:6px; }
.video-tools .tool-link b { font-size:14px; }
.video-tools .tool-link small { font-size:10px; line-height:1.25; }
.video-tools .tool-link__go { font-size:13px; }

body[data-service="video"] .video-tools + .card {
  padding: 18px;
}
body[data-service="video"] .video-tools + .card .section-head {
  margin-bottom: 10px;
}
body[data-service="video"] .video-tools + .card .section-title {
  font-size: clamp(20px, 1.7vw, 26px);
}
body[data-service="video"] .video-tools + .card .count {
  font-size: 13px;
}
body[data-service="video"] .video-tools + .card .filter-row {
  margin-bottom: 11px;
}
body[data-service="video"] .video-tools + .card .filter-input {
  min-height: 42px;
  font-size: 14px;
}
body[data-service="video"] .directory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
body[data-service="video"] .link-section {
  padding: 11px;
  border-radius: 13px;
}
body[data-service="video"] .link-section__title {
  margin-bottom: 6px;
  padding-bottom: 7px;
  font-size: 14px;
  line-height: 1.3;
}
body[data-service="video"] .link-list {
  gap: 0;
}
body[data-service="video"] .link-list a {
  gap: 7px;
  min-height: 29px;
  padding: 2px 5px;
  font-size: 13px;
}
body[data-service="video"] .link-favicon {
  width: 17px;
  height: 17px;
  border-radius: 5px;
}

@media (max-width: 1180px) {
  body[data-service="video"] .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .video-search-card { grid-template-columns: 1fr; }
  .video-search-card .quick-engines, .video-search-card .jump-hint { grid-column: 1; }
  .video-search-card .quick-engines { justify-content: flex-start; }
  .video-workspace { grid-template-columns: 1fr; }
  .video-player-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .video-queue { max-height: 430px; }
  .video-toolbar { align-items: flex-start; flex-direction: column; }
  .video-affiliates { justify-content: flex-start; width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  body[data-service="video"] .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .video-feature-row { gap:6px; }
  .video-feature-notice { flex:1 1 auto; min-height:32px; padding:4px 8px; }
  .video-feature-notice b { display:none; }
  .video-feature-share { flex:0 0 auto; min-height:32px; padding:5px 10px; }
  .video-search-card { padding: 10px; }
  .video-search-card .lead { display: none; }
  .video-search-card .search-form { display: grid; grid-template-columns: auto 1fr auto; }
  .video-search-card .search-engine,
  .video-search-card .search-input,
  .video-search-card .search-button { min-height:40px; font-size:13px; }
  .video-news__head { grid-template-columns: 1fr; padding-inline: 2px; }
  .video-news__head > div { gap: 7px; }
  .video-news__head .video-kicker { font-size: 8px; }
  .video-news__head .video-news__links { justify-content: space-between; }
  .video-count { font-size: 9px; }
  .video-scope-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding-inline:2px; }
  .video-scope-switch { width: 100%; }
  .video-scope-switch button { flex: 1; min-height: 38px; }
  .video-region-tabs { grid-column:1 / -1; margin-right:-14px; padding-right:14px; }
  .video-scope-controls .video-feature-share { grid-column:2; grid-row:1; }
  .video-region-tabs button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
  .video-affiliates { gap: 10px; }
  body[data-service="video"] .directory-grid {
    grid-template-columns: 1fr;
  }
  .video-workspace { margin-inline: -16px; border-right: 0; border-left: 0; border-radius: 0; }
  .video-player-info { display: grid; padding: 15px 14px; }
  .video-controls { padding: 12px 14px; }
  .video-loop-controls { grid-template-columns: 1fr; gap: 9px; padding: 12px 14px 14px; }
  .video-loop-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-loop-actions button { width: 100%; }
  .video-loop-actions button:last-child { grid-column: 1 / -1; }
  .video-loop-shortcuts, .video-shortcut-mode { display: none; }
  .video-queue-item { grid-template-columns: 108px minmax(0, 1fr); }
}
