/* Compact home navigation and the browser-local reading shelf. */
.vtl-home .vtl-home-hero { padding-top: 80px; padding-bottom: 42px; }
.vtl-home-collections.vtl-surface, .vtl-personal-library.vtl-surface { max-width: 1336px; padding: 38px 28px; }
.vtl-elementor-home .vtl-home-collections.vtl-surface, .vtl-elementor-home .vtl-personal-library.vtl-surface { max-width: none; padding: 0; }
.vtl-collection-heading, .vtl-personal-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 24px; }
.vtl-collection-heading h2, .vtl-personal-heading h2 { margin: 9px 0 0; font-size: clamp(1.8rem, 2.6vw, 2.45rem); }
.vtl-collection-heading>p, .vtl-personal-heading>p { color: var(--vtl-muted); font-size: 1rem; margin: 0; max-width: 35ch; }
.vtl-collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.vtl-surface .vtl-collection-tile { display: flex; gap: 20px; align-items: center; padding: 28px; border-radius: 18px; background: var(--vtl-panel); color: var(--vtl-ink); border: 1px solid var(--vtl-border); text-decoration: none; box-shadow: 0 6px 20px rgb(22 57 85 / 4%); transition: border-color .2s, transform .2s; }
.vtl-surface .vtl-collection-tile:hover { border-color: var(--vtl-blue); transform: translateY(-2px); }
.vtl-collection-tile>div { min-width: 0; flex: 1; }
.vtl-collection-tile h3 { font-size: 1.6rem; line-height: 1.35; margin: 7px 0 10px; }
.vtl-collection-tile p { color: var(--vtl-muted); margin: 0; font-size: 1rem; line-height: 1.65; }
.vtl-collection-count { color: var(--vtl-gold); font-size: .875rem; font-weight: 600; }
.vtl-collection-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: var(--vtl-blue); background: var(--vtl-soft); }
.vtl-collection-tile:nth-child(2) .vtl-collection-icon { color: var(--vtl-gold); background: color-mix(in srgb, var(--vtl-gold) 12%, var(--vtl-panel)); }
.vtl-collection-arrow { display: flex; color: var(--vtl-blue); }
.vtl-personal-group + .vtl-personal-group { margin-top: 32px; }
.vtl-personal-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.vtl-personal-group-heading h3 { margin: 0; font-size: 1.4rem; }
.vtl-personal-group-heading>button, .vtl-personal-remove { color: var(--vtl-muted); border: 0; background: transparent; font-size: .95rem; min-height: 44px; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.vtl-personal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-height: 535px; overflow: auto; padding: 3px 3px 8px; }
.vtl-personal-card { min-width: 0; background: var(--vtl-panel); border: 1px solid var(--vtl-border); border-radius: 13px; overflow: hidden; }
.vtl-personal-thumbnail { position: relative; aspect-ratio: 16/9; display: block; background: var(--vtl-soft); }
.vtl-personal-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtl-personal-caption { position: absolute; bottom: 10px; left: 10px; padding: 3px 9px; border-radius: 5px; background: rgb(16 35 53 / 90%); color: #fff; font-size: .8rem; }
.vtl-personal-card-body { padding: 16px; }
.vtl-personal-card h4 { font-size: 1.07rem; line-height: 1.5; margin: 0 0 7px; font-weight: 600; }
.vtl-personal-card h4 a { color: var(--vtl-ink); }
.vtl-personal-card-meta, .vtl-personal-status { color: var(--vtl-muted); font-size: .9rem; margin: 0; }
.vtl-personal-status:not(:empty) { margin-top: 12px; }
.vtl-episode-badge { display: inline-block; align-self: flex-start; border-radius: 5px; padding: 2px 8px; margin-bottom: 11px; color: var(--vtl-blue); background: var(--vtl-soft); font-size: .85rem; font-weight: 600; }
.vtl-video-card .vtl-card-description:empty { display: none; }
.vtl-card-meta>span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.vtl-card-meta .vtl-icon { height: 17px; width: 17px; flex-basis: 17px; }
.vtl-video-grid .vtl-video-card .vtl-thumbnail { aspect-ratio: 16/9; height: auto; min-height: 0; }
.vtl-video-card .vtl-card-bottom { margin-top: auto; border-top: 1px solid var(--vtl-border); padding-top: 16px; }
.vtl-video-card .vtl-card-play-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.vtl-video-card .vtl-card-primary { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 1rem; min-height: 44px; }
.vtl-video-card .vtl-card-languages { display: block; font-size: .84rem; margin-top: 10px; line-height: 1.5; color: var(--vtl-muted); }
.vtl-card-menu { position: relative; font-size: .94rem; flex-shrink: 0; }
.vtl-card-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--vtl-muted); cursor: pointer; list-style: none; }
.vtl-card-menu summary::-webkit-details-marker { display: none; }
.vtl-card-menu summary>span { font-size: 1.5rem; line-height: 1; }
.vtl-card-menu>div { position: absolute; z-index: 4; right: 0; bottom: calc(100% + 4px); width: 210px; max-width: 70vw; border: 1px solid var(--vtl-border); background: var(--vtl-panel); box-shadow: 0 8px 20px rgb(10 29 46 / 15%); border-radius: 10px; padding: 6px; }
.vtl-card-menu>div>button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; text-align: left; background: transparent; color: var(--vtl-ink); padding: 10px; min-height: 44px; border-radius: 6px; font-size: .95rem; }
.vtl-card-menu>div>button:hover { background: var(--vtl-soft); }
.vtl-watch-heading { align-items: start; gap: 20px; }
.vtl-watch-heading [data-save-video] { flex-shrink: 0; font-size: 1rem; margin-top: 8px; }
.vtl-library-results-shell { position: relative; }
.vtl-library [data-library-results] { transition: filter .18s ease, opacity .18s ease; }
.vtl-library.is-searching [data-library-results] { filter: blur(3px); opacity: .5; pointer-events: none; }
.vtl-library-search-loading { position: absolute; z-index: 5; top: 84px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 16px 22px; border: 1px solid var(--vtl-border); border-radius: 12px; background: var(--vtl-panel); color: var(--vtl-ink); box-shadow: 0 8px 28px rgb(22 57 85 / 12%); font-size: 1rem; font-weight: 600; }
.vtl-library-search-loading[hidden] { display: none !important; }
.vtl-library-search-spinner { flex: 0 0 22px; width: 22px; height: 22px; box-sizing: border-box; border: 3px solid var(--vtl-border); border-top-color: var(--vtl-blue); border-radius: 50%; animation: vtl-library-search-spin .8s linear infinite; }
.vtl-library-search-status { margin: 0; color: var(--vtl-muted); font-size: 1rem; text-align: center; }
.vtl-library-search-status:not(:empty) { margin: 16px 0; }
.vtl-library.is-searching .vtl-library-search-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes vtl-library-search-spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) { .vtl-home .vtl-home-hero { padding-top: 64px; } .vtl-personal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vtl-surface .vtl-collection-tile { align-items: start; } .vtl-collection-icon { display: none; } }
@media (max-width: 780px) { .vtl-home .vtl-home-hero { padding-top: 66px; } .vtl-collection-heading, .vtl-personal-heading { display: block; } .vtl-collection-heading>p, .vtl-personal-heading>p { margin-top: 12px; } .vtl-collection-grid { grid-template-columns: 1fr; gap: 16px; } .vtl-home-collections.vtl-surface, .vtl-personal-library.vtl-surface { padding: 30px 20px; } .vtl-surface .vtl-collection-tile { padding: 24px; } .vtl-personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vtl-watch-heading { flex-wrap: wrap; } }
@media (max-width: 420px) { .vtl-personal-grid { grid-template-columns: 1fr; max-height: 620px; } .vtl-personal-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); } .vtl-personal-thumbnail { height: 100%; aspect-ratio: auto; } .vtl-personal-caption { left: 5px; bottom: 6px; font-size: .7rem; padding: 2px 5px; } .vtl-personal-card h4 { font-size: 1rem; } .vtl-personal-card-body { padding: 12px; } .vtl-collection-tile h3 { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .vtl-surface .vtl-collection-tile, .vtl-library [data-library-results] { transition: none; } .vtl-library-search-spinner { animation: none; } }
