.video-ads-panel { margin-block: 1rem; padding: 1.25rem; }
.video-ads-header, .video-ads-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.video-ads-header { margin-bottom: .75rem; }
.video-ads-header h2 { margin: 0; font-size: 1.125rem; color: var(--text); }
.video-ads-row p, .video-ads-footnote { margin: .35rem 0 0; font-size: .875rem; line-height: 1.6; color: var(--text-secondary); }
.video-ads-row label { color: var(--text); font-weight: 600; cursor: pointer; }
.video-ads-switch { position: relative; flex: 0 0 3.5rem; min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; }
.video-ads-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.video-ads-track { pointer-events: none; display: block; width: 3.25rem; height: 2rem; border: 2px solid var(--md-sys-color-outline); border-radius: var(--shape-full); background: var(--md-sys-color-surface-container-highest); }
.video-ads-track::after { content: ''; display: block; width: 1.25rem; height: 1.25rem; margin: .25rem; border-radius: var(--shape-full); background: var(--md-sys-color-outline); transition: transform var(--motion-fast); }
.video-ads-switch input:checked + .video-ads-track { background: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); }
.video-ads-switch input:checked + .video-ads-track::after { background: var(--md-sys-color-on-primary); transform: translateX(1.25rem); }
.video-ads-switch input:focus-visible + .video-ads-track { outline: 3px solid var(--md-sys-color-primary); outline-offset: 4px; }
.video-ads-switch input:disabled { cursor: not-allowed; }
.video-ads-switch input:disabled + .video-ads-track { opacity: .55; }
.video-ads-footer { margin-top: .75rem; display: flex; gap: .5rem 1rem; justify-content: space-between; flex-wrap: wrap; font-size: .875rem; color: var(--text-secondary); }
#videoAdsStatus { overflow-wrap: anywhere; color: var(--text); }
@media (prefers-reduced-motion: reduce) { .video-ads-track::after { transition: none; } }
