:root {
  --vt-red: #ff3b30;
  --vt-blue: #1976d2;
  --vt-text: #212121;
  --vt-muted: #757575;
  --vt-line: #e0e0e0;
  --vt-bg: #fafafa;
  --vt-side: 264px;
  --vt-top: 70px;
}
* { box-sizing: border-box; }
html { margin: 0 !important; }
body.vt-body { margin: 0; background: var(--vt-bg); color: var(--vt-text); font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.35; }
body.vt-body.admin-bar .vt-topbar { top: 32px; }
body.vt-body.admin-bar .vt-sidebar { top: calc(var(--vt-top) + 32px); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
img { max-width: 100%; }
.vt-hidden { display: none !important; }

/* Header */
.vt-topbar { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: var(--vt-top); display: grid; grid-template-columns: var(--vt-side) minmax(300px, 610px) 1fr; align-items: center; gap: 20px; padding: 0 24px 0 18px; background: #fff; }
.vt-icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; }
.vt-icon-btn:hover { background: #f2f2f2; }
.vt-menu-toggle { position: absolute; left: 16px; top: 14px; color: #606060; }
.vt-menu-toggle .dashicons { font-size: 24px; width: 24px; height: 24px; }
.vt-brand { margin-left: 62px; font-size: 24px; line-height: 1; font-weight: 700; color: #090909; letter-spacing: -.3px; white-space: nowrap; }
.vt-top-search { justify-self: stretch; height: 44px; display: flex; align-items: stretch; border: 1px solid #bdbdbd; border-radius: 4px; background: #fff; overflow: hidden; }
.vt-top-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 14px; font-size: 18px; color: #333; }
.vt-top-search input::placeholder { color: #8b8b8b; }
.vt-top-search button { width: 58px; border-left: 1px solid #ddd; background: #fafafa; color: #606060; }
.vt-top-search button:hover { background: #f2f2f2; }
.vt-top-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.vt-avatar-button { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.vt-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; vertical-align: middle; background: #ef443a; color: #fff; font-size: 21px; font-weight: 400; }
.vt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-signin-outline { height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--vt-blue); color: var(--vt-blue); font-size: 14px; font-weight: 600; text-transform: uppercase; }

/* Sidebar */
.vt-sidebar { position: fixed; z-index: 900; top: var(--vt-top); bottom: 0; left: 0; width: var(--vt-side); overflow-y: auto; background: #fff; padding: 0 8px 24px; transition: transform .18s ease, box-shadow .18s ease; }
.vt-side-nav { padding-top: 0; }
.vt-side-nav > a { min-height: 44px; display: flex; align-items: center; gap: 28px; padding: 0 14px; font-size: 16px; }
.vt-side-nav > a:hover, .vt-side-nav > a.active { background: #e7e7e7; }
.vt-side-nav > a.active .dashicons { color: #ef3434; }
.vt-side-nav .dashicons { flex: 0 0 28px; width: 28px; height: 28px; font-size: 24px; color: #757575; line-height: 28px; text-align: center; }
.vt-side-nav hr { border: 0; border-top: 1px solid #dedede; margin: 10px 0; }
.vt-side-nav h4 { margin: 17px 14px 10px; color: #666; font-size: 15px; text-transform: uppercase; }
.vt-side-nav > a.vt-side-channel { gap: 20px; }
.vt-side-channel .vt-avatar { flex-basis: 28px; }
.vt-sidebar-links { padding: 12px 14px; color: #616161; font-size: 12px; font-weight: 600; line-height: 1.5; }
.vt-body.vt-sidebar-collapsed .vt-sidebar { transform: translateX(-100%); box-shadow: 3px 0 12px rgba(0,0,0,.13); }
.vt-body.vt-sidebar-collapsed .vt-main { margin-left: 0; }
.vt-route-watch .vt-sidebar { transform: translateX(-100%); box-shadow: 3px 0 12px rgba(0,0,0,.13); }
.vt-route-watch.vt-sidebar-collapsed .vt-sidebar { transform: translateX(0); }

/* Account dropdown */
.vt-dropdown { position: fixed; z-index: 1300; right: 20px; top: 62px; width: 300px; display: none; background: #fff; border: 1px solid #ddd; box-shadow: 0 5px 18px rgba(0,0,0,.18); }
.vt-dropdown.open { display: block; }
.vt-account-head { display: flex; gap: 13px; padding: 16px; border-bottom: 1px solid #e5e5e5; }
.vt-account-head > div { min-width: 0; display: flex; flex-direction: column; }
.vt-account-head strong, .vt-account-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-account-head span { color: #777; font-size: 13px; }
.vt-dropdown > a, .vt-dropdown > button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 18px; padding: 0 17px; text-align: left; }
.vt-dropdown > a:hover, .vt-dropdown > button:hover { background: #f3f3f3; }
.vt-dropdown .dashicons { color: #666; }

/* Main/content */
.vt-main { min-height: 100vh; margin-left: var(--vt-side); padding-top: var(--vt-top); transition: margin-left .18s ease; }
.vt-route-watch .vt-main { margin-left: 0; }
.vt-page-inner { width: 100%; max-width: 1540px; margin: 0 auto; padding: 14px 30px 44px; }
.vt-page-title { margin: 0 0 16px; font-size: 28px; }
.vt-empty { padding: 80px 20px; color: #777; text-align: center; font-size: 18px; }

/* Home cards */
.vt-home { max-width: 1540px; margin: 0 auto; padding: 10px 30px 52px; }
.vt-home h1, .vt-page-inner > h1 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
.vt-video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
.vt-video-card { min-width: 0; }
.vt-video-thumb { display: block; position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #ddd; }
.vt-video-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.vt-video-card:hover .vt-video-thumb img { transform: scale(1.015); }
.vt-video-card-body { display: flex; gap: 12px; padding-top: 12px; }
.vt-card-avatar-link { flex: 0 0 auto; }
.vt-video-card-text { min-width: 0; }
.vt-video-title { display: -webkit-box; max-height: 46px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0 0 5px; font-size: 16px; font-weight: 600; line-height: 1.25; color: #171717; }
.vt-video-channel, .vt-video-meta { display: block; color: #777; font-size: 14px; }
.vt-video-channel:hover { color: #333; }
.vt-video-meta span, .vt-list-meta span { padding: 0 4px; }

/* List/search/trending */
.vt-list-page, .vt-search-page { max-width: 1180px; margin-left: 16px; }
.vt-list-video { max-width: 1050px; display: grid; grid-template-columns: 360px 1fr; gap: 18px; margin: 0 0 20px; }
.vt-list-thumb { aspect-ratio: 16/9; background: #ddd; overflow: hidden; }
.vt-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-list-copy { padding: 1px 0; min-width: 0; }
.vt-list-title { display: block; margin-bottom: 5px; font-size: 19px; line-height: 1.25; font-weight: 500; }
.vt-list-meta { color: #777; font-size: 13px; }
.vt-list-copy p { max-width: 680px; color: #777; font-size: 14px; line-height: 1.4; }
.vt-channel-search-row { max-width: 1050px; min-height: 170px; display: flex; align-items: center; gap: 34px; padding: 15px 50px; border-bottom: 1px solid #e6e6e6; }
.vt-channel-search-row h2 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
.vt-channel-search-row p { color: #777; font-size: 13px; }

/* Watch page */
.vt-watch-page { max-width: 1515px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(330px, 1fr); gap: 25px; padding: 38px 34px 80px; }
.vt-watch-primary { min-width: 0; }
.vt-player-wrap { width: 100%; aspect-ratio: 16/9; background: #000; }
.vt-player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.vt-player-missing { width: 100%; height: 100%; display: grid; place-items: center; color: #aaa; background: #111; }
.vt-watch-title { margin: 20px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 500; }
.vt-watch-actions-row { min-height: 46px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid #ddd; color: #777; }
.vt-watch-meta { padding-top: 8px; font-size: 16px; }
.vt-watch-actions { display: flex; align-items: center; gap: 12px; height: 46px; }
.vt-watch-actions button, .vt-watch-actions a { height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; color: #6e6e6e; font-size: 14px; font-weight: 600; border-bottom: 3px solid transparent; }
.vt-watch-actions button.active { color: var(--vt-blue); border-bottom-color: var(--vt-blue); }
.vt-watch-actions .dashicons { font-size: 24px; width: 25px; height: 25px; }
.vt-channel-strip { min-height: 108px; display: flex; align-items: center; gap: 15px; padding: 20px 14px; }
.vt-channel-strip-copy { flex: 1; display: flex; flex-direction: column; }
.vt-channel-strip-copy strong { font-size: 16px; }
.vt-channel-strip-copy span { color: #777; font-size: 13px; }
.vt-subscribe { min-width: 124px; height: 48px; padding: 0 16px; border-radius: 2px; background: #f12b25; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .4px; }
.vt-subscribe.subscribed { background: #eee; color: #555; }
.vt-description { min-height: 110px; margin-left: 86px; padding: 4px 0 16px; border-bottom: 1px solid #ddd; }
.vt-description p { max-height: 66px; overflow: hidden; margin: 0 0 13px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.vt-description.expanded p { max-height: none; }
.vt-text-btn { color: var(--vt-blue); font-size: 13px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; }
.vt-comments { padding-top: 24px; }
.vt-comments h3 { margin: 0 0 24px; font-size: 16px; font-weight: 500; }
.vt-comment-form > div:first-child { display: flex; align-items: flex-start; gap: 14px; }
.vt-comment-form textarea { flex: 1; min-height: 38px; resize: vertical; padding: 8px 0; border: 0; border-bottom: 1px solid #aaa; outline: 0; background: transparent; }
.vt-comment-form-actions { display: flex; justify-content: flex-end; gap: 16px; padding: 10px 0; }
.vt-primary { min-height: 38px; padding: 0 18px; border-radius: 2px; background: var(--vt-blue); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.vt-primary:hover { background: #126bc2; }
.vt-primary:disabled { opacity: .55; cursor: wait; }
.vt-comment { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; }
.vt-comment-head { display: flex; gap: 10px; align-items: baseline; }
.vt-comment-head strong { font-size: 13px; }
.vt-comment-head span { color: #777; font-size: 12px; }
.vt-comment p { margin: 5px 0 7px; font-size: 14px; }
.vt-reply-form { display: flex; gap: 10px; max-width: 600px; margin-top: 8px; }
.vt-reply-form input { flex: 1; border: 0; border-bottom: 1px solid #aaa; outline: 0; background: transparent; }
.vt-reply { display: grid; grid-template-columns: 32px 1fr; gap: 12px; margin-top: 15px; }
.vt-reply strong { font-size: 13px; }
.vt-reply p { margin-top: 3px; }
.vt-up-next hr { margin: 0 0 18px; border: 0; border-top: 1px solid #bbb; }
.vt-up-next h3 { margin: 0 0 18px; font-size: 16px; }
.vt-upnext-row { display: grid; grid-template-columns: 196px 1fr; gap: 14px; margin: 0 0 18px; }
.vt-upnext-row > a { aspect-ratio: 16/9; overflow: hidden; background: #ddd; }
.vt-upnext-row img { width: 100%; height: 100%; object-fit: cover; }
.vt-upnext-row > div { min-width: 0; display: flex; flex-direction: column; }
.vt-upnext-row strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.18; }
.vt-upnext-row span { color: #777; font-size: 13px; margin-top: 4px; }

/* Channel */
.vt-channel-page { background: #f6f6f6; min-height: calc(100vh - var(--vt-top)); }
.vt-channel-banner { height: 190px; background: #31a9e7; }
.vt-channel-head { display: flex; align-items: center; gap: 20px; min-height: 125px; padding: 18px max(40px, calc((100vw - var(--vt-side) - 1280px)/2)); background: #fff; }
.vt-channel-identity { flex: 1; display: flex; align-items: center; gap: 20px; }
.vt-channel-identity h1 { margin: 0; font-size: 24px; font-weight: 500; }
.vt-channel-identity p { margin: 3px 0 0; color: #777; font-size: 14px; }
.vt-channel-tabs { display: flex; align-items: center; gap: 8px; padding: 0 max(40px, calc((100vw - var(--vt-side) - 1280px)/2)); background: #fff; }
.vt-channel-tabs a { height: 48px; display: grid; place-items: center; min-width: 90px; padding: 0 15px; color: #666; font-size: 13px; font-weight: 600; }
.vt-channel-tabs a.active { border-bottom: 3px solid #777; color: #222; }
.vt-channel-content { max-width: 1280px; margin: 0 auto; padding: 25px 25px 60px; }
.vt-channel-content h2 { font-size: 17px; }

/* History */
.vt-history-page { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 330px; min-height: calc(100vh - var(--vt-top)); }
.vt-history-results { padding: 25px 35px 70px; }
.vt-history-results h1 { font-size: 24px; font-weight: 500; }
.vt-history-row { position: relative; max-width: 900px; }
.vt-history-row .vt-list-video { grid-template-columns: 260px 1fr; padding-right: 38px; }
.vt-history-delete, .vt-search-history-row button { position: absolute; top: 4px; right: 0; color: #777; }
.vt-history-filter { padding: 35px 28px; border-left: 1px solid #ddd; background: #f7f7f7; }
.vt-history-filter h2 { font-size: 16px; font-weight: 500; }
.vt-history-filter a { height: 45px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; font-size: 14px; }
.vt-history-filter a.active { color: #111; font-weight: 600; }
.vt-history-filter a.active span { width: 4px; height: 100%; background: var(--vt-blue); }
.vt-history-filter button { margin-top: 28px; color: var(--vt-blue); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.vt-search-history-row { position: relative; max-width: 800px; display: flex; align-items: center; min-height: 72px; padding-right: 40px; border-bottom: 1px solid #ddd; }
.vt-search-history-row > div { display: flex; flex-direction: column; }
.vt-search-history-row span { color: #777; font-size: 12px; }

/* Auth */
body.vt-auth-mode { background: #fff; }
.vt-auth-main { margin-left: 0; padding-top: 0; }
.vt-auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.vt-auth-card { width: 520px; min-height: 490px; padding: 48px 53px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; }
.vt-auth-card > h1, .vt-signup-form-side > h1 { margin: 0 0 4px; font-size: 23px; font-weight: 500; }
.vt-auth-card > p, .vt-signup-form-side > p { margin: 0 0 38px; color: #777; }
.vt-field { position: relative; display: block; margin: 0 0 20px; }
.vt-field > span { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.vt-field.outlined > span { position: absolute; z-index: 1; left: 13px; top: -9px; display: none; padding: 0 4px; background: #fff; color: var(--vt-blue); font-size: 12px; }
.vt-field input, .vt-field textarea, .vt-field select { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #aaa; border-radius: 3px; outline: 0; background: transparent; color: #222; }
.vt-field textarea { min-height: 110px; resize: vertical; }
.vt-field input:focus, .vt-field textarea:focus, .vt-field select:focus { border: 2px solid var(--vt-blue); padding: 11px 12px; }
.vt-field.outlined input:focus + span { display: block; }
.vt-forgot { display: block; margin: 0 10px 8px 0; color: var(--vt-blue); font-size: 13px; font-weight: 600; letter-spacing: .4px; text-align: right; }
.vt-auth-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 58px; }
.vt-auth-actions a { color: var(--vt-blue); font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.vt-signup-card { width: 820px; min-height: 550px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding: 46px 52px; }
.vt-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-form-hint { margin: -12px 0 0; color: #777; font-size: 12px; }
.vt-signup-form-side .vt-auth-actions { margin-top: 34px; }
.vt-signup-art { align-self: center; text-align: center; color: #555; }
.vt-signup-art svg { width: 100%; height: auto; }

/* Studio */
body.vt-studio-mode { --vt-side: 250px; background: #f8f9fa; }
.vt-studio-topbar { grid-template-columns: var(--vt-side) minmax(300px, 610px) 1fr; border-bottom: 1px solid #ddd; }
.vt-studio-topbar .vt-brand { color: #df1717; font-size: 22px; }
.vt-studio-search { justify-self: center; width: 100%; background: #fafafa; border-color: #ddd; }
.vt-studio-search .dashicons { align-self: center; margin-left: 12px; color: #777; }
.vt-studio-topbar .vt-create-btn { position: absolute; right: 83px; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #ddd; color: #476b9b; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.vt-studio-topbar .vt-avatar-button { position: absolute; right: 23px; }
.vt-studio-sidebar { border-right: 1px solid #ddd; padding: 0; }
.vt-studio-profile { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; }
.vt-studio-profile strong { margin-top: 6px; }
.vt-studio-profile span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: #777; font-size: 12px; }
.vt-studio-sidebar .vt-side-nav a { min-height: 52px; border-left: 4px solid transparent; }
.vt-studio-sidebar .vt-side-nav a.active { border-left-color: #df1717; background: #f1f1f1; color: #df1717; }
.vt-studio-side-bottom { margin-top: 30px; border-top: 1px solid #ddd; padding-top: 8px; }
.vt-studio-side-bottom a { min-height: 45px; display: flex; align-items: center; gap: 20px; padding: 0 18px; color: #555; font-size: 14px; }
.vt-studio-main { background: #f8f9fa; }
.vt-studio-page { max-width: 1380px; padding: 30px 38px 80px; }
.vt-studio-page h1 { text-transform: capitalize; font-size: 27px; font-weight: 500; }
.vt-studio-title-row { display: flex; justify-content: space-between; align-items: center; }
.vt-dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(250px, 360px)); gap: 24px; margin-top: 28px; }
.vt-dashboard-card { min-height: 280px; padding: 24px; border: 1px solid #ddd; background: #fff; }
.vt-dashboard-card h2 { margin: 0 0 20px; font-size: 17px; font-weight: 500; }
.vt-mini-subscriber { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vt-tabs { display: flex; height: 48px; border-bottom: 1px solid #ddd; margin-top: 24px; }
.vt-tabs button { min-width: 110px; border-bottom: 3px solid transparent; color: #555; font-size: 13px; font-weight: 600; }
.vt-tabs button.active { border-bottom-color: var(--vt-blue); color: var(--vt-blue); }
.vt-table-card { overflow: auto; background: #fff; border: 1px solid #ddd; }
.vt-filter { height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #ddd; }
.vt-filter input { flex: 1; border: 0; outline: 0; }
.vt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vt-table th { height: 48px; padding: 8px 14px; border-bottom: 1px solid #ddd; color: #666; text-align: left; font-weight: 500; white-space: nowrap; }
.vt-table td { min-height: 64px; padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: middle; }
.vt-table-video { min-width: 290px; display: flex; align-items: center; gap: 12px; }
.vt-table-video img { width: 104px; aspect-ratio: 16/9; object-fit: cover; background: #ddd; }
.vt-table-actions { white-space: nowrap; }
.vt-table-actions a, .vt-table-actions button { display: inline-grid; place-items: center; width: 34px; height: 34px; color: #666; }
.vt-details-page { max-width: 1050px; }
.vt-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--vt-blue); font-size: 13px; font-weight: 600; }
.vt-details-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, .8fr); gap: 28px; }
.vt-field.filled > span { margin: 0; transform: translate(11px, 9px); display: inline-block; padding: 0 4px; background: #fff; color: #777; }
.vt-thumbnail-control { padding-top: 10px; }
.vt-thumbnail-control input[type=file] { display: none; }
.vt-detail-thumb, .vt-thumbnail-preview { width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; margin-top: 15px; overflow: hidden; background: #ddd; color: #777; }
.vt-detail-thumb img, .vt-thumbnail-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Modals */
.vt-modal { position: fixed; z-index: 2000; inset: 0; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 42px 20px; background: rgba(0,0,0,.54); }
.vt-modal.open { display: flex; }
.vt-modal-card { width: min(100%, 900px); max-height: calc(100vh - 84px); overflow: auto; background: #fff; border-radius: 3px; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.vt-modal-head { min-height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; border-bottom: 1px solid #ddd; }
.vt-modal-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.vt-modal-head > div { display: flex; align-items: center; gap: 15px; }
.vt-upload-modal { width: min(100%, 1080px); }
.vt-upload-form { min-height: 520px; }
.vt-upload-stage { min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; }
.vt-upload-circle { width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; background: #eee; color: #777; cursor: pointer; }
.vt-upload-circle .dashicons { width: 60px; height: 60px; font-size: 60px; }
.vt-upload-circle input { display: none; }
.vt-upload-stage > p { color: #555; }
.vt-upload-stage[data-vt-upload-stage=details] { display: block; min-height: 500px; }
.vt-upload-stage[data-vt-upload-stage=details] > h2 { margin-top: 0; }
.vt-upload-stage .vt-details-grid { width: 100%; }
.vt-upload-terms { padding: 15px 34px 24px; color: #777; font-size: 11px; text-align: center; }
.vt-progress { height: 56px; display: flex; align-items: center; gap: 15px; padding: 0 30px; }
.vt-progress > div { flex: 1; height: 5px; overflow: hidden; background: #eee; }
.vt-progress > div:after { content: ''; display: block; width: 35%; height: 100%; background: var(--vt-blue); animation: vtProgress 1.2s linear infinite; }
@keyframes vtProgress { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.vt-settings-modal { width: min(100%, 950px); }
.vt-settings-grid { display: grid; grid-template-columns: 1.6fr .9fr; gap: 42px; padding: 30px; }
.vt-settings-grid h3 { margin: 0 0 12px; font-size: 16px; }
.vt-settings-grid form { margin-bottom: 34px; }
.vt-avatar-settings { display: grid; place-items: start center; }
.vt-avatar-settings form { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.vt-avatar-settings input { display: none; }

/* Toast */
.vt-toast { position: fixed; z-index: 3000; left: 24px; bottom: 24px; min-width: 220px; max-width: 430px; padding: 13px 18px; transform: translateY(140px); opacity: 0; background: #323232; color: #fff; font-size: 14px; transition: .22s ease; box-shadow: 0 3px 14px rgba(0,0,0,.25); }
.vt-toast.show { transform: none; opacity: 1; }
.vt-toast.error { background: #a42622; }

/* Responsive */
@media (max-width: 1350px) {
  .vt-video-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .vt-watch-page { grid-template-columns: minmax(0, 1.9fr) minmax(300px, .9fr); padding-left: 24px; padding-right: 24px; }
  .vt-upnext-row { grid-template-columns: 160px 1fr; }
}
@media (max-width: 1050px) {
  :root { --vt-side: 230px; }
  .vt-topbar { grid-template-columns: 210px minmax(250px, 1fr) auto; }
  .vt-video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vt-watch-page { display: block; max-width: 930px; }
  .vt-up-next { margin-top: 34px; }
  .vt-upnext-row { grid-template-columns: 220px 1fr; max-width: 650px; }
  .vt-list-video { grid-template-columns: 300px 1fr; }
  .vt-history-page { grid-template-columns: 1fr; }
  .vt-history-filter { border-left: 0; border-top: 1px solid #ddd; }
}
@media (max-width: 820px) {
  body.vt-body.admin-bar .vt-topbar { top: 46px; }
  body.vt-body.admin-bar .vt-sidebar { top: calc(var(--vt-top) + 46px); }
  .vt-topbar { grid-template-columns: 170px 1fr auto; gap: 8px; padding-right: 10px; }
  .vt-brand { margin-left: 52px; font-size: 20px; }
  .vt-top-search { height: 40px; }
  .vt-sidebar { transform: translateX(-100%); box-shadow: 3px 0 12px rgba(0,0,0,.13); }
  .vt-body.vt-sidebar-collapsed .vt-sidebar, .vt-route-watch.vt-sidebar-collapsed .vt-sidebar { transform: translateX(0); }
  .vt-main, .vt-body.vt-sidebar-collapsed .vt-main { margin-left: 0; }
  .vt-home, .vt-page-inner { padding-left: 16px; padding-right: 16px; }
  .vt-watch-page { padding: 18px 0 60px; }
  .vt-watch-primary > :not(.vt-player-wrap), .vt-comments { margin-left: 16px; margin-right: 16px; }
  .vt-description { margin-left: 70px !important; }
  .vt-up-next { padding: 0 16px; }
  .vt-signup-card { width: min(100%, 620px); grid-template-columns: 1fr; }
  .vt-signup-art { display: none; }
  .vt-details-grid, .vt-settings-grid { grid-template-columns: 1fr; }
  .vt-studio-topbar .vt-create-btn { right: 72px; width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .vt-studio-topbar .vt-create-btn .dashicons { font-size: 20px; }
}
@media (max-width: 620px) {
  :root { --vt-top: 58px; }
  .vt-topbar { grid-template-columns: 140px 1fr auto; padding-left: 6px; }
  .vt-menu-toggle { left: 4px; top: 8px; }
  .vt-brand { margin-left: 45px; font-size: 19px; }
  .vt-top-actions { gap: 6px; }
  .vt-top-actions > .vt-icon-btn { display: none; }
  .vt-signin-outline { padding: 0 7px; font-size: 12px; }
  .vt-top-search { border: 0; justify-content: flex-end; overflow: visible; }
  .vt-top-search input { position: fixed; z-index: 1200; top: var(--vt-top); left: 0; right: 0; height: 48px; display: none; border-bottom: 1px solid #ddd; background: #fff; }
  .vt-top-search.search-open input { display: block; }
  .vt-top-search button { width: 42px; border: 0; background: transparent; }
  .vt-video-grid { grid-template-columns: 1fr; gap: 30px; }
  .vt-home { padding-left: 0; padding-right: 0; }
  .vt-home h1 { padding: 0 12px; font-size: 22px; }
  .vt-video-card-body { padding-left: 12px; padding-right: 12px; }
  .vt-list-video { grid-template-columns: 1fr; gap: 9px; }
  .vt-list-copy { padding: 0 8px 12px; }
  .vt-channel-search-row { padding: 18px 8px; gap: 16px; }
  .vt-channel-search-row .vt-avatar { width: 75px !important; height: 75px !important; }
  .vt-watch-title { font-size: 18px; }
  .vt-watch-actions-row { align-items: flex-start; flex-direction: column; }
  .vt-watch-actions { width: 100%; justify-content: space-between; }
  .vt-channel-strip { padding-left: 0 !important; padding-right: 0 !important; }
  .vt-subscribe { min-width: 100px; height: 40px; font-size: 12px; }
  .vt-description { margin-left: 0 !important; }
  .vt-upnext-row { grid-template-columns: 145px 1fr; }
  .vt-upnext-row strong { font-size: 13px; }
  .vt-auth-wrap { padding: 0; align-items: start; }
  .vt-auth-card, .vt-signup-card { width: 100%; min-height: 100vh; border: 0; padding: 46px 28px; }
  .vt-two-fields { grid-template-columns: 1fr; gap: 0; }
  .vt-history-results { padding-left: 15px; padding-right: 15px; }
  .vt-history-row .vt-list-video { grid-template-columns: 1fr; padding-right: 30px; }
  .vt-channel-banner { height: 120px; }
  .vt-channel-head { padding: 15px; }
  .vt-channel-tabs { overflow-x: auto; padding: 0; }
  .vt-channel-tabs a { min-width: 80px; }
  .vt-studio-search { display: none; }
  .vt-studio-topbar { grid-template-columns: 1fr auto; }
  .vt-table-video { min-width: 220px; }
  .vt-modal { padding: 0; }
  .vt-modal-card { max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .vt-upload-stage { padding: 24px 18px; }
  .vt-settings-grid { padding: 20px; }
  .vt-toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; max-width: none; }
}

/* =========================================================
   VueTube UI Polish — v1.1
   Visual refinement only; existing structure/behavior stays intact.
   ========================================================= */
:root {
  --vt-blue: #1769d2;
  --vt-text: #17191c;
  --vt-muted: #6f747c;
  --vt-line: #e6e8ec;
  --vt-bg: #f8f9fb;
  --vt-radius-sm: 8px;
  --vt-radius-md: 12px;
  --vt-radius-lg: 16px;
  --vt-shadow-soft: 0 2px 10px rgba(18, 24, 40, .055);
  --vt-shadow-float: 0 10px 32px rgba(18, 24, 40, .11);
}

body.vt-body {
  background: var(--vt-bg);
  font-family: Roboto, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Cleaner global interaction states */
a, button, input, textarea, select {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 105, 210, .18);
  outline-offset: 2px;
}

/* Header */
.vt-topbar {
  border-bottom: 1px solid rgba(20, 25, 35, .07);
  box-shadow: 0 1px 9px rgba(18, 24, 40, .035);
}
.vt-icon-btn:hover {
  background: #f0f2f5;
  transform: translateY(-1px);
}
.vt-brand {
  letter-spacing: -.55px;
}
.vt-top-search {
  height: 42px;
  border-color: #d4d7dc;
  border-radius: 22px;
  box-shadow: inset 0 1px 2px rgba(18, 24, 40, .035);
}
.vt-top-search:focus-within {
  border-color: var(--vt-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 210, .10);
}
.vt-top-search input {
  padding-left: 18px;
  font-size: 16px;
}
.vt-top-search button {
  width: 60px;
  background: #f7f8fa;
}
.vt-top-search button:hover {
  background: #eef1f4;
}
.vt-avatar-button {
  border: 2px solid transparent;
}
.vt-avatar-button:hover {
  border-color: #e2e5e9;
  transform: translateY(-1px);
}
.vt-signin-outline {
  border-radius: 20px;
  padding: 0 14px;
  background: #fff;
}
.vt-signin-outline:hover {
  background: #f4f8ff;
  box-shadow: 0 3px 10px rgba(23, 105, 210, .10);
}

/* Sidebar */
.vt-sidebar {
  border-right: 1px solid rgba(20, 25, 35, .055);
}
.vt-side-nav {
  padding-top: 8px;
}
.vt-side-nav > a {
  min-height: 42px;
  margin: 2px 5px;
  padding: 0 12px;
  border-radius: 10px;
  gap: 24px;
  font-size: 15px;
}
.vt-side-nav > a:hover {
  background: #f1f3f5;
}
.vt-side-nav > a.active {
  background: #eceef1;
  color: #111;
  font-weight: 600;
}
.vt-side-nav hr {
  border-top-color: #eceef1;
  margin: 10px 6px;
}
.vt-side-nav h4 {
  margin-left: 18px;
  color: #72767e;
  font-size: 13px;
  letter-spacing: .35px;
}
.vt-sidebar-links {
  color: #777c84;
}

/* Account menu */
.vt-dropdown {
  top: 64px;
  right: 18px;
  border: 1px solid rgba(20, 25, 35, .08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--vt-shadow-float);
}
.vt-dropdown > a:hover,
.vt-dropdown > button:hover {
  background: #f5f6f8;
}

/* Main spacing */
.vt-page-inner {
  padding-top: 24px;
}
.vt-home-page {
  padding-top: 24px;
}
.vt-home h1,
.vt-page-inner > h1 {
  margin-bottom: 20px;
  font-size: 25px;
  letter-spacing: -.35px;
}
.vt-empty {
  margin-top: 24px;
  border: 1px dashed #d7dae0;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
}

/* Video grid/cards */
.vt-video-grid {
  gap: 38px 22px;
}
.vt-video-card {
  border-radius: var(--vt-radius-md);
  transition: transform .2s ease;
}
.vt-video-card:hover {
  transform: translateY(-2px);
}
.vt-video-thumb {
  border-radius: 12px;
  box-shadow: var(--vt-shadow-soft);
}
.vt-video-thumb img {
  transition: transform .28s ease, filter .28s ease;
}
.vt-video-card:hover .vt-video-thumb img {
  transform: scale(1.028);
  filter: saturate(1.03) contrast(1.015);
}
.vt-video-card-body {
  gap: 11px;
  padding-top: 11px;
}
.vt-card-avatar-link .vt-avatar {
  box-shadow: 0 0 0 1px rgba(20, 25, 35, .06);
}
.vt-video-title {
  margin-bottom: 6px;
  color: #141518;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.34;
}
.vt-video-channel,
.vt-video-meta {
  color: #70747b;
  line-height: 1.45;
}
.vt-video-channel:hover {
  color: #1c1e21;
}

/* Search/trending list */
.vt-list-video {
  padding: 10px;
  border-radius: 13px;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vt-list-video:hover {
  background: #fff;
  box-shadow: var(--vt-shadow-soft);
  transform: translateY(-1px);
}
.vt-list-thumb {
  border-radius: 10px;
}
.vt-list-title {
  font-weight: 600;
  letter-spacing: -.15px;
}
.vt-channel-search-row {
  border-bottom-color: #eceef1;
  border-radius: 12px;
}
.vt-channel-search-row:hover {
  background: #fff;
}

/* Watch page */
.vt-watch-page {
  gap: 30px;
  padding-top: 30px;
}
.vt-player-wrap {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 22px rgba(13, 18, 28, .12);
}
.vt-watch-title {
  margin-top: 18px;
  color: #15171a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.18px;
}
.vt-watch-actions-row {
  border-bottom-color: var(--vt-line);
}
.vt-watch-actions button,
.vt-watch-actions a {
  border-radius: 8px 8px 0 0;
}
.vt-watch-actions button:hover,
.vt-watch-actions a:hover {
  background: #f0f2f5;
  color: #30343a;
}
.vt-channel-strip {
  padding-left: 4px;
  padding-right: 4px;
}
.vt-subscribe {
  min-width: 118px;
  height: 42px;
  border-radius: 21px;
  box-shadow: 0 2px 7px rgba(241, 43, 37, .14);
}
.vt-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(241, 43, 37, .20);
}
.vt-subscribe.subscribed {
  box-shadow: none;
}
.vt-description {
  border-bottom-color: var(--vt-line);
}
.vt-comment-form textarea:focus {
  border-bottom-color: var(--vt-blue);
  box-shadow: 0 1px 0 var(--vt-blue);
}
.vt-comment {
  border-radius: 10px;
}
.vt-comment:hover {
  background: rgba(255,255,255,.55);
}
.vt-upnext-row {
  margin: 0 0 8px;
  padding: 7px;
  border-radius: 11px;
}
.vt-upnext-row:hover {
  background: #fff;
  box-shadow: var(--vt-shadow-soft);
}
.vt-upnext-row > a {
  border-radius: 8px;
}
.vt-upnext-row strong {
  line-height: 1.28;
}

/* Buttons */
.vt-primary {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(23, 105, 210, .18);
}
.vt-primary:hover {
  background: #115ebd;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(23, 105, 210, .22);
}
.vt-text-btn {
  border-radius: 7px;
  padding: 7px 9px;
}
.vt-text-btn:hover {
  background: rgba(23, 105, 210, .07);
}

/* Channel */
.vt-channel-page {
  background: var(--vt-bg);
}
.vt-channel-banner {
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.07);
}
.vt-channel-head {
  border-bottom: 1px solid var(--vt-line);
}
.vt-channel-identity .vt-avatar {
  box-shadow: 0 3px 14px rgba(20, 25, 35, .12);
}
.vt-channel-tabs {
  border-bottom: 1px solid rgba(20, 25, 35, .045);
}
.vt-channel-tabs a {
  border-radius: 8px 8px 0 0;
}
.vt-channel-tabs a:hover {
  background: #f4f5f7;
}

/* History */
.vt-history-filter {
  background: #f6f7f9;
  border-left-color: var(--vt-line);
}
.vt-history-filter a,
.vt-search-history-row {
  border-bottom-color: var(--vt-line);
}
.vt-history-delete,
.vt-search-history-row button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.vt-history-delete:hover,
.vt-search-history-row button:hover {
  background: #eceff2;
  color: #222;
}

/* Auth */
.vt-auth-wrap {
  background: radial-gradient(circle at 50% 0%, #f7fbff 0, #fff 45%);
}
.vt-auth-card {
  border-color: #e1e4e8;
  border-radius: 14px;
  box-shadow: 0 14px 45px rgba(18, 24, 40, .075);
}
.vt-auth-card > h1,
.vt-signup-form-side > h1 {
  letter-spacing: -.4px;
}
.vt-field input,
.vt-field textarea,
.vt-field select {
  border-color: #c8ccd2;
  border-radius: 8px;
  background: #fff;
}
.vt-field input:hover,
.vt-field textarea:hover,
.vt-field select:hover {
  border-color: #9da3ab;
}
.vt-auth-actions a:hover,
.vt-forgot:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Studio */
.vt-studio-main,
body.vt-studio-mode {
  background: #f6f7f9;
}
.vt-studio-topbar {
  border-bottom-color: var(--vt-line);
}
.vt-studio-topbar .vt-create-btn {
  border-color: #d8dce2;
  border-radius: 8px;
  background: #fff;
}
.vt-studio-topbar .vt-create-btn:hover {
  background: #f4f7fb;
  box-shadow: var(--vt-shadow-soft);
}
.vt-studio-sidebar {
  border-right-color: var(--vt-line);
}
.vt-studio-sidebar .vt-side-nav a {
  border-radius: 0 10px 10px 0;
}
.vt-dashboard-card,
.vt-table-card {
  border-color: var(--vt-line);
  border-radius: 12px;
  box-shadow: var(--vt-shadow-soft);
}
.vt-dashboard-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.vt-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(18, 24, 40, .085);
}
.vt-filter {
  border-bottom-color: var(--vt-line);
}
.vt-table th {
  background: #fafbfc;
  border-bottom-color: var(--vt-line);
}
.vt-table td {
  border-bottom-color: #f0f1f3;
}
.vt-table tbody tr:hover td {
  background: #fafbfc;
}
.vt-table-video img {
  border-radius: 7px;
}
.vt-table-actions a,
.vt-table-actions button {
  border-radius: 7px;
}
.vt-table-actions a:hover,
.vt-table-actions button:hover {
  background: #eef1f4;
  color: #222;
}
.vt-detail-thumb,
.vt-thumbnail-preview {
  border-radius: 11px;
}

/* Modals */
.vt-modal {
  background: rgba(12, 16, 24, .56);
  backdrop-filter: blur(3px);
}
.vt-modal-card {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(8, 12, 20, .28);
}
.vt-modal-head {
  border-bottom-color: var(--vt-line);
}
.vt-upload-circle {
  background: #f1f3f5;
  box-shadow: inset 0 0 0 1px #e1e4e8;
}
.vt-upload-circle:hover {
  background: #eaf2fc;
  color: var(--vt-blue);
  transform: translateY(-2px);
}

/* Toast */
.vt-toast {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.19);
}

@media (max-width: 820px) {
  .vt-topbar { box-shadow: 0 2px 10px rgba(18,24,40,.055); }
  .vt-watch-page { padding-top: 12px; }
  .vt-player-wrap { border-radius: 0; box-shadow: none; }
  .vt-sidebar { border-right: 0; box-shadow: 7px 0 28px rgba(18,24,40,.14); }
}

@media (max-width: 620px) {
  .vt-top-search { box-shadow: none; }
  .vt-top-search:focus-within { box-shadow: none; }
  .vt-video-grid { gap: 28px; }
  .vt-video-card:hover { transform: none; }
  .vt-video-thumb { border-radius: 0; box-shadow: none; }
  .vt-auth-wrap { background: #fff; }
  .vt-auth-card, .vt-signup-card { box-shadow: none; border-radius: 0; }
  .vt-modal-card { border-radius: 0; }
  .vt-upnext-row { padding: 5px; }
}

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

/* v1.2 system integrations: these extend the existing VueTube UI only. */
.vt-page-heading { margin: 0 0 22px; }
.vt-page-heading h1 { margin: 0 0 5px; font-size: 22px; }
.vt-page-heading p { margin: 0; color: var(--vt-muted); }
.vt-shorts-grid .vt-video-thumb { aspect-ratio: 9 / 16; }
.vt-shorts-grid .vt-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-watch-short .vt-watch-primary { max-width: 780px; }
.vt-watch-short .vt-player-wrap { max-width: 520px; margin-left: auto; margin-right: auto; aspect-ratio: 9 / 16; background: #000; }
.vt-youtube-player { width: 100%; height: 100%; border: 0; display: block; }
.vt-watch-actions button[data-vt-watch-later].active { color: var(--vt-blue); }
.vt-comment-reactions { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; vertical-align: middle; }
.vt-comment-reactions button { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 7px; border: 0; border-radius: 16px; background: transparent; color: var(--vt-muted); cursor: pointer; }
.vt-comment-reactions button:hover { background: #f0f2f4; }
.vt-comment-reactions button.active { color: var(--vt-blue); background: rgba(23,105,210,.08); }
.vt-comment-reactions .dashicons { font-size: 17px; width: 17px; height: 17px; }
.vt-channel-section-title { margin-top: 38px; }
.vt-system-notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #b9d7f6; border-radius: 9px; background: #eef7ff; color: #164f87; }
.vt-system-notice.error { border-color: #efc1c1; background: #fff3f3; color: #922; }
.vt-inline-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; text-decoration: none; }
.vt-youtube-studio .vt-dashboard-card { max-width: none; margin-bottom: 20px; }
.vt-youtube-connection-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.vt-youtube-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-danger-link { color: #a33; }
.vt-table-card-heading { padding: 18px 20px 12px; border-bottom: 1px solid var(--vt-line); }
.vt-table-card-heading h2 { margin: 0 0 4px; }
.vt-table-card-heading span { color: var(--vt-muted); font-size: 13px; }
.vt-youtube-import-form { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.vt-youtube-import-form select { min-height: 38px; border: 1px solid #c8ccd2; border-radius: 7px; background: #fff; padding: 0 28px 0 9px; }
.vt-youtube-import-form .vt-primary { min-height: 38px; }
@media (max-width: 820px) {
  .vt-youtube-connection-card { align-items: flex-start; flex-direction: column; }
  .vt-youtube-import-table { min-width: 760px; }
  .vt-youtube-studio .vt-table-card { overflow-x: auto; }
  .vt-watch-short .vt-player-wrap { max-width: 100%; }
}

/* YouTube connector uploader (v1.3) */
.vt-upload-destination { width: min(100%, 430px); margin: 0 auto 22px; text-align: left; }
.vt-upload-destination .vt-field { margin-bottom: 8px; }
.vt-upload-connector-note { margin: 7px 0 0; color: #6b7280; font-size: 13px; line-height: 1.45; }
.vt-upload-connector-note a { color: var(--vt-blue); text-decoration: none; font-weight: 600; }
.vt-youtube-upload-options { margin: -2px 0 20px; padding: 16px; border: 1px solid #e4e7eb; border-radius: 10px; background: #fafbfc; }
.vt-youtube-upload-options .vt-field { margin-bottom: 14px; }
.vt-check-row { display: flex; align-items: center; gap: 9px; margin: 2px 0 10px; color: #333; font-size: 14px; }
.vt-check-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--vt-blue); }
.vt-youtube-card-actions .vt-primary { min-height: 38px; }
@media (max-width: 620px) {
  .vt-upload-destination { width: 100%; }
  .vt-youtube-upload-options { padding: 13px; }
}

/* YouTube creator onboarding + channel-library publishing (v1.4) */
.vt-connect-card { width: min(100%, 560px); }
.vt-connect-body { padding: 34px 34px 38px; text-align: center; }
.vt-connect-symbol { width: 94px; height: 76px; margin: 0 auto 22px; position: relative; display: grid; place-items: center; border-radius: 22px; background: #f4f7fb; color: var(--vt-blue); box-shadow: inset 0 0 0 1px #e5e9ef; }
.vt-connect-symbol > .dashicons:first-child { width: 42px; height: 42px; font-size: 42px; }
.vt-connect-symbol > .dashicons:last-child { position: absolute; right: 12px; bottom: 9px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #4b5563; font-size: 18px; box-shadow: 0 2px 9px rgba(20,25,35,.13); }
.vt-connect-body h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.35px; }
.vt-connect-body > p { max-width: 445px; margin: 0 auto 24px; color: #686d75; font-size: 14px; line-height: 1.6; }
.vt-connect-primary { min-width: 190px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.vt-connect-note { display: block; max-width: 420px; margin: 14px auto 0; color: #858a92; font-size: 12px; line-height: 1.5; }
.vt-youtube-connect-modal[data-vt-mandatory="1"] .vt-modal-card { animation: vt-connect-in .2s ease-out both; }
@keyframes vt-connect-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

.vt-youtube-library-modal { width: min(100%, 1180px); }
.vt-youtube-library-modal .vt-modal-head > div { gap: 18px; }
.vt-youtube-library { min-height: 560px; display: flex; flex-direction: column; }
.vt-youtube-channel-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--vt-line); background: #fbfcfd; }
.vt-youtube-channel-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.vt-youtube-channel-identity img,
.vt-youtube-channel-fallback { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; object-fit: cover; background: #eef2f6; display: grid; place-items: center; color: #59636f; }
.vt-youtube-channel-identity > div { min-width: 0; display: flex; flex-direction: column; }
.vt-youtube-channel-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.vt-youtube-channel-identity span { margin-top: 2px; color: var(--vt-muted); font-size: 12px; }
.vt-youtube-library-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--vt-line); }
.vt-youtube-library-search { height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #d5d9df; border-radius: 9px; background: #fff; }
.vt-youtube-library-search:focus-within { border-color: #a8c7ea; box-shadow: 0 0 0 3px rgba(25,118,210,.08); }
.vt-youtube-library-search .dashicons { color: #747982; }
.vt-youtube-library-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.vt-youtube-selection-count { min-width: 78px; color: #666c74; font-size: 13px; text-align: right; }
.vt-youtube-library-loading { flex: 1; min-height: 370px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--vt-muted); }
.vt-loading-spinner { width: 34px; height: 34px; border: 3px solid #e6e9ed; border-top-color: var(--vt-blue); border-radius: 50%; animation: vt-spin .7s linear infinite; }
@keyframes vt-spin { to { transform: rotate(360deg); } }
.vt-youtube-library-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-content: start; padding: 22px 24px 28px; }
.vt-youtube-library-card { position: relative; min-width: 0; display: block; cursor: pointer; border-radius: 12px; transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease; }
.vt-youtube-library-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vt-youtube-library-card:not(.disabled):hover { transform: translateY(-2px); }
.vt-youtube-library-card.selected { box-shadow: 0 0 0 2px var(--vt-blue); }
.vt-youtube-library-card.disabled { cursor: default; opacity: .58; }
.vt-youtube-library-card.imported { opacity: .66; }
.vt-youtube-library-card.vt-filtered-out { display: none; }
.vt-youtube-library-thumb { position: relative; width: 100%; aspect-ratio: 16/9; display: block; overflow: hidden; border-radius: 10px; background: #e4e7eb; box-shadow: var(--vt-shadow-soft); }
.vt-youtube-library-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vt-youtube-library-duration { position: absolute; right: 6px; bottom: 6px; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 600; }
.vt-youtube-card-check { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; display: none; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--vt-blue); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.vt-youtube-library-card.selected .vt-youtube-card-check { display: grid; }
.vt-youtube-card-check .dashicons { width: 18px; height: 18px; font-size: 18px; }
.vt-youtube-library-copy { min-width: 0; display: flex; flex-direction: column; padding: 10px 3px 4px; }
.vt-youtube-library-copy strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #191b1f; font-size: 14px; line-height: 1.35; }
.vt-youtube-library-copy > span { margin-top: 5px; color: #777c84; font-size: 12px; }
.vt-youtube-library-copy em { margin-top: 5px; color: var(--vt-blue); font-size: 11px; font-style: normal; font-weight: 600; }
.vt-youtube-library-card.disabled .vt-youtube-library-copy em { color: #8a4b4b; }
.vt-youtube-library-empty { flex: 1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.vt-youtube-library-empty h3 { margin: 0 0 7px; font-size: 19px; }
.vt-youtube-library-empty p { margin: 0; color: var(--vt-muted); }
.vt-youtube-library-footer { position: sticky; bottom: 0; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; border-top: 1px solid var(--vt-line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.vt-youtube-library-footer > span { color: #747982; font-size: 12px; }
.vt-youtube-library-footer .vt-primary { min-width: 150px; min-height: 42px; border-radius: 7px; }
.vt-youtube-library-footer .vt-primary:disabled { cursor: default; opacity: .48; }
.vt-youtube-library-footer .vt-primary.loading { min-width: 150px; }

@media (max-width: 900px) {
  .vt-youtube-library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .vt-connect-body { padding: 28px 20px 34px; }
  .vt-youtube-library-modal { min-height: 100vh; }
  .vt-youtube-channel-bar { align-items: flex-start; padding: 13px 16px; }
  .vt-youtube-channel-bar > .vt-text-btn { display: none; }
  .vt-youtube-library-toolbar { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; }
  .vt-youtube-library-toolbar .vt-text-btn { grid-row: 2; justify-self: start; }
  .vt-youtube-selection-count { grid-row: 2; justify-self: end; }
  .vt-youtube-library-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px 14px 22px; }
  .vt-youtube-library-footer { align-items: stretch; flex-direction: column; padding: 12px 14px 14px; }
  .vt-youtube-library-footer .vt-primary { width: 100%; }
}

/* =========================================================
   VueTube v1.5 — separated Video + Shorts experience
   ========================================================= */
:root {
  --vt-content-max: 1500px;
  --vt-card-gap: 24px;
  --vt-surface: #fff;
  --vt-soft: #f6f7f9;
  --vt-radius-card: 14px;
}

/* Shared page rhythm */
.vt-content-page,
.vt-home-page {
  max-width: var(--vt-content-max);
  padding: 30px 32px 72px;
}
.vt-page-heading {
  margin: 0 0 26px;
}
.vt-page-heading h1,
.vt-page-heading-row h1 {
  margin: 0 0 6px;
  color: #14161a;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -.55px;
}
.vt-page-heading p,
.vt-studio-title-row p {
  margin: 0;
  color: #737880;
  font-size: 14px;
  line-height: 1.5;
}
.vt-section-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 17px;
}
.vt-section-head h1,
.vt-section-head h2 {
  margin: 0;
  color: #24272c;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.28px;
}
.vt-section-head > a {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--vt-blue);
  font-size: 13px;
  font-weight: 650;
}
.vt-section-head > a:hover { background: rgba(23,105,210,.075); }
.vt-feed-section,
.vt-collection-section,
.vt-search-section {
  margin: 0 0 44px;
}
.vt-feed-section + .vt-feed-section,
.vt-collection-section + .vt-collection-section,
.vt-search-section + .vt-search-section {
  padding-top: 28px;
  border-top: 1px solid #eceef1;
}
.vt-empty-compact {
  margin-top: 0;
  padding: 32px 18px;
  font-size: 14px;
}

/* Long-form video cards — always landscape */
.vt-video-grid,
.vt-home-videos-grid,
.vt-all-videos-grid,
.vt-search-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px var(--vt-card-gap);
}
.vt-card-video { min-width: 0; }
.vt-card-video .vt-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9 !important;
  border-radius: var(--vt-radius-card);
  background: #e9ecf0;
  overflow: hidden;
}
.vt-card-video .vt-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vt-duration-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(8,10,13,.84);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.vt-card-video .vt-video-card-body { padding-top: 11px; }
.vt-card-video .vt-video-title { font-size: 15px; }

/* Shorts — separate portrait cards, never rendered with long-form card geometry */
.vt-shorts-grid,
.vt-home-shorts-grid,
.vt-all-shorts-grid,
.vt-search-shorts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}
.vt-short-card {
  min-width: 0;
  border-radius: var(--vt-radius-card);
  transition: transform .18s ease;
}
.vt-short-card:hover { transform: translateY(-2px); }
.vt-short-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #e9ecf0;
  box-shadow: var(--vt-shadow-soft);
}
.vt-short-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}
.vt-short-card:hover .vt-short-thumb img {
  transform: scale(1.025);
  filter: saturate(1.03);
}
.vt-short-mark {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.66);
  color: #fff;
  backdrop-filter: blur(4px);
}
.vt-short-mark .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
}
.vt-short-copy { padding: 10px 3px 0; }
.vt-short-title {
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #17191d;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.38;
}
.vt-short-meta,
.vt-short-channel {
  display: block;
  margin-top: 4px;
  color: #747981;
  font-size: 12.5px;
  line-height: 1.35;
}
.vt-short-channel:hover { color: #202328; }
.vt-feed-shorts {
  margin-left: -2px;
  margin-right: -2px;
}

/* Search/trending/history list cards know their content type */
.vt-list-page,
.vt-search-page { max-width: var(--vt-content-max); margin: 0 auto; }
.vt-list-video {
  max-width: 1160px;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}
.vt-list-thumb { position: relative; }
.vt-list-video.vt-list-short {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
}
.vt-list-short .vt-list-thumb {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}
.vt-list-long .vt-list-thumb { aspect-ratio: 16 / 9; }
.vt-list-type-badge {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,.76);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .35px;
}
.vt-content-kind {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: #606771;
  font-size: 11px;
  font-weight: 700;
}
.vt-channel-search-row {
  max-width: 1160px;
  min-height: 138px;
  padding: 18px 26px;
}

/* Channel tabs are real working tabs now */
.vt-channel-content { max-width: var(--vt-content-max); padding: 30px 32px 70px; }
.vt-channel-tabs { gap: 2px; }
.vt-channel-tabs a { cursor: pointer; }
.vt-channel-tabs a.active {
  border-bottom-color: var(--vt-blue);
  color: #111;
}

/* Separate Shorts watch experience */
.vt-watch-short {
  max-width: 1260px;
  grid-template-columns: minmax(430px, 760px) minmax(300px, 420px);
  align-items: start;
}
.vt-watch-short .vt-player-wrap {
  width: min(100%, 430px);
  max-width: 430px;
  height: min(78vh, 765px);
  min-height: 560px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 9 / 16 !important;
  border-radius: 16px;
}
.vt-watch-short .vt-watch-title,
.vt-watch-short .vt-watch-actions-row,
.vt-watch-short .vt-channel-strip,
.vt-watch-short .vt-description,
.vt-watch-short .vt-comments {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.vt-watch-short .vt-description { margin-left: auto !important; }
.vt-watch-short .vt-upnext-row {
  grid-template-columns: 104px minmax(0,1fr);
  align-items: start;
}
.vt-watch-short .vt-upnext-row > a {
  aspect-ratio: 9 / 16;
}
.vt-watch-short .vt-upnext-row > a img { object-fit: cover; }

/* Studio: Videos and Shorts have separate management pages */
.vt-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.vt-stat-card {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  color: inherit;
}
.vt-stat-card > .dashicons {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef5ff;
  color: var(--vt-blue);
  font-size: 24px;
  line-height: 42px;
}
.vt-stat-card > div { display: flex; flex-direction: column; }
.vt-stat-card strong { font-size: 25px; line-height: 1.1; }
.vt-stat-card span { color: #747981; font-size: 13px; }
.vt-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vt-muted-copy { color: var(--vt-muted); font-size: 14px; }
.vt-content-switch {
  display: inline-flex;
  gap: 4px;
  margin: 20px 0 16px;
  padding: 4px;
  border: 1px solid #e0e4e9;
  border-radius: 10px;
  background: #fff;
}
.vt-content-switch a {
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 7px;
  color: #646a73;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.vt-content-switch a.active {
  background: #eef5ff;
  color: var(--vt-blue);
}
.vt-table-scroll { width: 100%; overflow-x: auto; }
.vt-table-short img,
.vt-table-video.vt-table-short img {
  width: 48px;
  height: 72px;
  object-fit: cover;
}
.vt-empty-table { margin: 0; padding: 34px 16px; border: 0; background: transparent; }
.vt-details-page .vt-studio-title-row { margin-bottom: 22px; }
.vt-content-preview-label { margin-bottom: 10px; color: #666d76; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vt-detail-thumb-short {
  width: min(100%, 260px);
  aspect-ratio: 9 / 16;
  margin-left: auto;
  margin-right: auto;
}
.vt-detail-thumb-short img { width: 100%; height: 100%; object-fit: cover; }
.vt-view-content-link { display: inline-flex; margin-top: 10px; }

/* YouTube library: explicit Video/Short choice */
.vt-youtube-library-toolbar {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}
.vt-youtube-library-filters {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  background: #eef1f4;
}
.vt-youtube-library-filters button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: #626872;
  font-size: 12px;
  font-weight: 650;
}
.vt-youtube-library-filters button.active {
  background: #fff;
  color: #1d65b5;
  box-shadow: 0 1px 4px rgba(20,25,35,.10);
}
.vt-youtube-library-copy { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px 0; }
.vt-youtube-library-copy > strong {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.42;
}
.vt-youtube-library-copy > span:not(.vt-youtube-format-row),
.vt-youtube-library-copy > em { color: #747a83; font-size: 11.5px; font-style: normal; }
.vt-youtube-format-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #646a73;
  font-size: 11.5px;
}
.vt-youtube-format-select {
  min-height: 32px;
  border: 1px solid #d8dce2;
  border-radius: 7px;
  background: #fff;
  padding: 0 26px 0 8px;
  color: #24272c;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.vt-youtube-library-card[data-format="short"] .vt-youtube-library-thumb::after {
  content: 'SHORT';
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(0,0,0,.74);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
}
.vt-youtube-library-footer strong { color: #31353b; }

@media (min-width: 1600px) {
  .vt-all-videos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vt-all-shorts-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .vt-video-grid,
  .vt-home-videos-grid,
  .vt-all-videos-grid,
  .vt-search-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vt-shorts-grid,
  .vt-home-shorts-grid,
  .vt-all-shorts-grid,
  .vt-search-shorts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vt-youtube-library-toolbar { grid-template-columns: minmax(200px,1fr) auto auto; }
  .vt-youtube-library-filters { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .vt-content-page,
  .vt-home-page { padding-left: 22px; padding-right: 22px; }
  .vt-video-grid,
  .vt-home-videos-grid,
  .vt-all-videos-grid,
  .vt-search-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-shorts-grid,
  .vt-home-shorts-grid,
  .vt-all-shorts-grid,
  .vt-search-shorts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vt-dashboard-stats { grid-template-columns: 1fr; }
  .vt-watch-short { display: block; max-width: 780px; }
  .vt-watch-short .vt-player-wrap { height: auto; min-height: 0; max-width: 430px; aspect-ratio: 9 / 16 !important; }
}

@media (max-width: 700px) {
  .vt-content-page,
  .vt-home-page { padding: 22px 14px 60px; }
  .vt-video-grid,
  .vt-home-videos-grid,
  .vt-all-videos-grid,
  .vt-search-video-grid { grid-template-columns: 1fr; gap: 28px; }
  .vt-shorts-grid,
  .vt-home-shorts-grid,
  .vt-all-shorts-grid,
  .vt-search-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .vt-card-video .vt-video-thumb { border-radius: 11px; }
  .vt-short-thumb { border-radius: 11px; }
  .vt-card-video .vt-video-card-body { padding-left: 2px; padding-right: 2px; }
  .vt-list-video,
  .vt-list-video.vt-list-short { grid-template-columns: 1fr; }
  .vt-list-short .vt-list-thumb { width: min(58vw, 240px); }
  .vt-channel-content { padding-left: 14px; padding-right: 14px; }
  .vt-channel-tabs a { min-width: 76px; }
  .vt-youtube-library-toolbar { display: flex; flex-wrap: wrap; }
  .vt-youtube-library-search { flex: 1 1 100%; }
  .vt-youtube-library-filters { order: 2; }
  .vt-youtube-selection-count { margin-left: auto; }
  .vt-youtube-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 14px; padding-right: 14px; gap: 18px 12px; }
}

@media (max-width: 430px) {
  .vt-shorts-grid,
  .vt-home-shorts-grid,
  .vt-all-shorts-grid,
  .vt-search-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-short-title { font-size: 13px; }
  .vt-youtube-library-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   VueTube Shorts viewer — v1.8
   Cleaner light-mode vertical feed UI.
   ========================================================= */
body.vt-route-shorts,
body.vt-watch-is-short { overflow: hidden; }

.vt-route-shorts .vt-main,
.vt-watch-is-short .vt-main {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.92), rgba(247,248,250,.92) 42%, rgba(242,244,247,.95) 100%),
    #f4f6f8;
}
.vt-route-shorts .vt-page-inner,
.vt-watch-is-short .vt-page-inner { max-width: none; }
.vt-route-watch.vt-watch-is-short .vt-main { margin-left: var(--vt-side); }
.vt-route-watch.vt-watch-is-short .vt-sidebar { transform: none; }
.vt-route-watch.vt-watch-is-short.vt-sidebar-collapsed .vt-sidebar { transform: translateX(-100%); }
.vt-route-watch.vt-watch-is-short.vt-sidebar-collapsed .vt-main { margin-left: 0; }

.vt-shorts-viewer-page {
  height: calc(100dvh - var(--vt-top));
  overflow: hidden;
  padding: 0;
}
.vt-shorts-viewer {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.vt-shorts-viewer::-webkit-scrollbar { width: 0; height: 0; }
.vt-short-slide {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 20px 28px;
  outline: none;
}
.vt-short-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.vt-watch-page-short {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.vt-short-stage {
  width: min(100%, 980px);
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.vt-short-player-group {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  transition: transform .24s ease;
}
.vt-short-player-wrap {
  position: relative;
  flex: 0 0 auto;
  width: min(420px, calc((100dvh - var(--vt-top) - 54px) * .5625));
  max-width: 438px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 24px;
  background: #0d0f12;
  box-shadow: 0 26px 58px rgba(24, 31, 44, .18), 0 3px 14px rgba(24, 31, 44, .08);
  isolation: isolate;
}
.vt-short-player-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
  z-index: 6;
}
.vt-short-player-wrap video,
.vt-short-player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
  background: #0d0f12;
}
.vt-short-loader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: rgba(12,15,20,.38);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.vt-short-player-wrap.is-loading .vt-short-loader { opacity: 1; }
.vt-short-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vtShortSpin .8s linear infinite;
}
@keyframes vtShortSpin { to { transform: rotate(360deg); } }
.vt-short-player-wrap iframe,
.vt-short-player-wrap video { position: relative; z-index: 1; }
.vt-short-iframe { pointer-events: none; }
.vt-short-player-wrap.is-youtube .vt-short-iframe {
  position: absolute;
  top: -34px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 68px);
  max-width: none;
}
.vt-short-embed-mask {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}
.vt-short-embed-mask-top {
  top: 0;
  height: 74px;
  background: linear-gradient(to bottom, rgba(5,8,12,.92), rgba(5,8,12,.58) 55%, transparent 100%);
}
.vt-short-embed-mask-bottom {
  bottom: 0;
  height: 54px;
  background: linear-gradient(to top, rgba(5,8,12,.96), rgba(5,8,12,.55) 48%, transparent 100%);
}
.vt-short-youtube-controls { display: none !important; }
.vt-short-youtube-controls {
  position: absolute;
  z-index: 7;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}
.vt-short-youtube-controls button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15,17,21,.58);
  color: #fff;
  backdrop-filter: blur(9px);
}
.vt-short-youtube-controls button:hover { background: rgba(15,17,21,.74); }
.vt-short-youtube-controls .dashicons { width: 19px; height: 19px; font-size: 19px; }
.vt-short-gradient {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(4,6,9,.88) 0%, rgba(4,6,9,.56) 38%, rgba(4,6,9,.18) 72%, transparent 100%);
  pointer-events: none;
}
.vt-short-overlay-copy {
  position: absolute;
  z-index: 5;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.vt-short-overlay-channel-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.vt-short-overlay-channel {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.vt-short-overlay-channel strong {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vt-short-overlay-channel .vt-avatar { border: 2px solid rgba(255,255,255,.92); }
.vt-short-subscribe {
  min-width: 0 !important;
  height: 34px !important;
  margin-left: 0 !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.96) !important;
  color: #15171b !important;
  font-size: 11px !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}
.vt-short-subscribe.subscribed { background: rgba(255,255,255,.80) !important; color: #4c5159 !important; }
.vt-short-overlay-title {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.vt-short-overlay-description {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1.42;
}
.vt-short-overlay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255,255,255,.80);
  font-size: 11px;
}

.vt-short-center-play {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: transparent;
}
.vt-short-center-play .dashicons {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: 31px;
  line-height: 54px;
  opacity: 0;
  transform: scale(.9);
}
.vt-short-player-wrap.is-paused .vt-short-center-play .dashicons { opacity: 1; transform: scale(1); }
.vt-short-mute {
  position: absolute;
  z-index: 7;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15,17,21,.58);
  color: #fff;
  backdrop-filter: blur(9px);
}
.vt-short-mute .dashicons { width: 19px; height: 19px; font-size: 19px; }

.vt-short-action-rail {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 88px;
  transform: translateX(calc(100% + 14px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vt-short-action-rail button {
  width: 58px;
  min-height: 54px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  color: #353a42;
}
.vt-short-action-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #232932;
  box-shadow: 0 10px 24px rgba(27,34,47,.10), inset 0 0 0 1px rgba(29,34,45,.04);
}
.vt-short-action-rail button:hover .vt-short-action-icon { background: #fff; transform: translateY(-1px); }
.vt-short-action-rail button.active .vt-short-action-icon { background: #dbeaff; color: var(--vt-blue); }
.vt-short-action-rail .dashicons { width: 22px; height: 22px; font-size: 22px; }
.vt-short-action-rail b {
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.vt-short-nav-stack {
  position: absolute;
  z-index: 8;
  top: 50%;
  right: 0;
  transform: translate(calc(100% + 80px), -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vt-short-nav {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #242931;
  box-shadow: 0 8px 20px rgba(23,30,45,.08);
}
.vt-short-nav:hover { background: #fff; transform: translateY(-1px); }
.vt-short-nav .dashicons { width: 21px; height: 21px; font-size: 21px; }
.vt-short-nav:disabled { opacity: .32; cursor: default; transform: none; }

.vt-short-comments-panel {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 100%;
  margin-left: 24px;
  flex: 0 0 0;
  width: 0;
  height: min(calc(100dvh - var(--vt-top) - 44px), 760px);
  overflow: hidden;
  border: 0 solid #e4e7eb;
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  opacity: 0;
  visibility: hidden;
  transform: translate(14px, -50%);
  box-shadow: 0 20px 52px rgba(23,30,45,.10);
  transition: width .24s ease, opacity .18s ease, transform .24s ease, visibility 0s linear .24s, border-width .24s ease;
}
.vt-short-slide.is-comments-open .vt-short-comments-panel {
  width: min(380px, 33vw);
  border-width: 1px;
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  transition-delay: 0s;
}
.vt-short-sheet-handle { display: none; }
.vt-short-comments-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #eceef1;
}
.vt-short-comments-head > div { display: flex; align-items: baseline; gap: 8px; }
.vt-short-comments-head strong { font-size: 16px; }
.vt-short-comments-head span { color: #70757d; font-size: 12px; }
.vt-short-comments-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4f555d;
}
.vt-short-comments-close:hover { background: #f0f2f4; }
.vt-short-comments-close .dashicons { width: 22px; height: 22px; font-size: 22px; }
.vt-short-comments-body {
  height: calc(100% - 58px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: #d7dbe0 transparent;
}
.vt-short-comment-form {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 -16px 7px;
  padding: 14px 16px 7px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
}
.vt-short-comment-form textarea {
  min-height: 34px;
  max-height: 100px;
  resize: vertical;
  font-size: 13px;
}
.vt-short-comment-form .vt-comment-form-actions { padding-bottom: 2px; }
.vt-short-comment-form .vt-primary { min-height: 34px; border-radius: 18px; padding: 0 14px; font-size: 11px; }
.vt-short-comment-list .vt-comment {
  grid-template-columns: 36px minmax(0,1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f2f4;
}
.vt-short-comment-list .vt-comment p { margin: 4px 0 6px; font-size: 13px; line-height: 1.42; }
.vt-short-comment-list .vt-comment-head { gap: 6px; flex-wrap: wrap; }
.vt-short-comment-list .vt-comment-head strong { font-size: 12px; }
.vt-short-comment-list .vt-comment-head span { font-size: 11px; }
.vt-short-comment-list .vt-reply { grid-template-columns: 30px minmax(0,1fr); gap: 8px; margin-top: 11px; }
.vt-short-comment-list .vt-reply p { font-size: 12.5px; }
.vt-short-comment-actions { display: flex; align-items: center; gap: 9px; }
.vt-short-comment-actions .vt-text-btn { font-size: 11px; }
.vt-short-comments-signin,
.vt-short-comments-empty { padding: 24px 8px; color: #747a83; font-size: 13px; text-align: center; }
.vt-short-comments-signin a { color: var(--vt-blue); font-weight: 700; }
.vt-short-comments-loading { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; color: #767c84; }
.vt-short-comments-loading span { width: 28px; height: 28px; border: 3px solid #e4e7eb; border-top-color: var(--vt-blue); border-radius: 50%; animation: vtShortSpin .8s linear infinite; }
.vt-short-comments-loading em { font-size: 12px; font-style: normal; }

.vt-short-slide:not(.is-active) .vt-short-player-wrap { box-shadow: 0 18px 42px rgba(23,30,45,.12); }
.vt-short-slide.is-comments-open .vt-short-player-group { transform: translateX(-22px); }

@media (max-width: 1360px) {
  .vt-short-stage { width: min(100%, 900px); }
  .vt-short-nav-stack { transform: translate(calc(100% + 82px), -50%); }
}

@media (max-width: 1180px) {
  .vt-short-slide { padding-inline: 18px; }
  .vt-short-stage { width: min(100%, 760px); }
  .vt-short-player-wrap { width: min(390px, calc((100dvh - var(--vt-top) - 48px) * .5625)); }
  .vt-short-slide.is-comments-open .vt-short-comments-panel {
    width: min(350px, 39vw);
  }
  .vt-short-nav-stack { display: none; }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .vt-short-stage { width: min(100%, 680px); }
  .vt-short-player-wrap { width: min(360px, calc((100dvh - var(--vt-top) - 42px) * .5625)); }
  .vt-short-comments-panel,
  .vt-short-slide.is-comments-open .vt-short-comments-panel {
    position: absolute;
    z-index: 15;
    top: 50%;
    left: 100%;
    margin-left: 22px;
    width: min(320px, 42vw);
    transform: translate(14px, -50%);
  }
  .vt-short-slide.is-comments-open .vt-short-comments-panel { transform: translate(0, -50%); }
  .vt-short-slide.is-comments-open .vt-short-player-group { transform: translateX(-18px); }
}

@media (max-width: 820px) {
  body.vt-route-shorts,
  body.vt-watch-is-short { overscroll-behavior: none; }
  body.vt-short-comments-open .vt-shorts-viewer { overflow-y: hidden; }
  .vt-route-watch.vt-watch-is-short .vt-main,
  .vt-route-shorts .vt-main { margin-left: 0; }
  .vt-route-watch.vt-watch-is-short .vt-sidebar { transform: translateX(-100%); }
  .vt-route-watch.vt-watch-is-short.vt-sidebar-collapsed .vt-sidebar { transform: translateX(0); }
  .vt-shorts-viewer-page { height: calc(100dvh - var(--vt-top)); }
  .vt-short-slide { padding: 0; }
  .vt-short-stage { width: 100%; height: 100%; display: block; }
  .vt-short-player-group { position: relative; width: 100%; height: 100%; display: block; }
  .vt-short-player-wrap {
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .vt-short-player-wrap::after { display: none; }
  .vt-short-player-wrap video,
  .vt-short-player-wrap iframe { object-fit: contain; }
  .vt-short-player-wrap.is-youtube .vt-short-iframe {
    top: -24px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 48px);
  }
  .vt-short-gradient { height: 48%; }
  .vt-short-overlay-copy { left: 14px; right: 74px; bottom: 18px; }
  .vt-short-overlay-channel-row { gap: 7px; margin-bottom: 7px; }
  .vt-short-overlay-channel { font-size: 13px; }
  .vt-short-overlay-title { font-size: 16px; }
  .vt-short-overlay-description { font-size: 11.5px; }
  .vt-short-action-rail {
    position: absolute;
    z-index: 6;
    right: 7px;
    bottom: 82px;
    transform: none;
    width: 62px;
    gap: 9px;
    padding: 0;
  }
  .vt-short-action-rail button { width: 58px; min-height: 56px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
  .vt-short-action-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.94);
    color: #272b31;
    box-shadow: 0 4px 14px rgba(0,0,0,.16);
    text-shadow: none;
  }
  .vt-short-action-rail button:hover .vt-short-action-icon { background: #fff; }
  .vt-short-action-rail button.active .vt-short-action-icon { background: #e6f0ff; color: var(--vt-blue); }
  .vt-short-action-rail b { color: #fff; font-size: 10px; }
  .vt-short-nav-stack { display: none; }
  .vt-short-mute,
  .vt-short-youtube-controls { top: 10px; left: 10px; }

  .vt-short-comments-panel,
  .vt-short-slide.is-comments-open .vt-short-comments-panel {
    position: fixed;
    z-index: 2200;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin-left: 0;
    width: 100%;
    height: min(76dvh, 680px);
    max-height: calc(100dvh - 18px);
    display: block;
    border: 1px solid #e4e7eb;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
    opacity: 1;
    visibility: hidden;
    box-shadow: 0 -16px 44px rgba(20,25,35,.18);
    transform: translateY(105%);
    transition: transform .26s cubic-bezier(.2,.7,.2,1), visibility 0s linear .26s;
  }
  .vt-short-slide.is-comments-open .vt-short-comments-panel {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .vt-short-slide.is-comments-open .vt-short-player-group { transform: none; }
  .vt-short-sheet-handle {
    width: 38px;
    height: 4px;
    display: block;
    margin: 7px auto 1px;
    border-radius: 999px;
    background: #d4d7dc;
  }
  .vt-short-comments-head { height: 51px; padding-left: 16px; }
  .vt-short-comments-body { height: calc(100% - 63px); }
  body.vt-short-comments-open::after {
    content: '';
    position: fixed;
    z-index: 2100;
    inset: 0;
    background: rgba(15,20,28,.28);
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .vt-short-overlay-copy { left: 12px; right: 70px; bottom: 14px; }
  .vt-short-overlay-channel .vt-avatar { width: 34px !important; height: 34px !important; }
  .vt-short-overlay-channel strong { max-width: 132px; }
  .vt-short-subscribe { height: 31px !important; padding: 0 10px !important; font-size: 10px !important; }
  .vt-short-overlay-title { font-size: 15px; line-height: 1.28; }
  .vt-short-overlay-meta { font-size: 10px; }
  .vt-short-action-rail { right: 4px; bottom: 72px; width: 58px; gap: 7px; }
  .vt-short-action-rail button { width: 54px; min-height: 51px; }
  .vt-short-action-icon { width: 41px; height: 41px; }
  .vt-short-action-rail .dashicons { width: 20px; height: 20px; font-size: 20px; }
  .vt-short-center-play .dashicons { width: 48px; height: 48px; font-size: 28px; line-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-shorts-viewer { scroll-behavior: auto; }
  .vt-short-comments-panel,
  .vt-short-player-group,
  .vt-short-center-play .dashicons { transition: none !important; }
}

