/* Private hub — charcoal, violet and clear editorial hierarchy. */
#privateNav[hidden], #hubPlayerTools[hidden], #hubPlayerError[hidden] { display: none; }
#privateNav { position: fixed; top: 88px; bottom: 0; left: 0; width: 204px; z-index: 30; padding: 22px 12px; overflow-y: auto; background: #111015; border-right: 1px solid #ffffff0c; font-family: var(--font-s); }
.hub-nav-label { color: #8a829a; font-size: 10px; font-weight: 800; letter-spacing: .14em; padding: 0 12px 18px; }
.hub-btn { color: #dcd8e6; background: #ffffff08; border: 1px solid #ffffff12; border-radius: 9px; min-height: 36px; padding: 8px 12px; font: 600 12px var(--font-s); cursor: pointer; transition: background .15s, border-color .15s; }
.hub-btn:hover { background: #ffffff15; border-color: #b49be05c; }
.hub-btn:disabled { opacity: .45; cursor: default; }
.hub-primary { color: #160d29; background: #bd9bff; border-color: #bd9bff; }
.hub-primary:hover { background: #d0b8ff; }
.hub-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left; font-size: 13px; margin-bottom: 3px; min-height: 43px; }
.hub-nav-item > span:first-child { font-size: 21px; width: 23px; color: #9b90ae; text-align: center; }
.hub-nav-item[aria-current] { background: #aa78ff19; color: #d6beff; }
.hub-nav-item[aria-current] > span:first-child { color: #c6a3ff; }
.hub-nav-item small { margin-left: auto; background: #ffffff0a; padding: 2px 6px; border-radius: 5px; }
.hub-nav-bottom { border-top: 1px solid #ffffff12; margin-top: 22px; padding: 16px 6px; display: grid; gap: 14px; }
.hub-sync { color: #8e849e; font-size: 11px; line-height: 1.6; padding: 0 4px; }
body.private-mode { background: #100e14; }
body.private-mode > .library-header, body.private-mode > main, body.private-mode > .library-notice, body.private-mode > .site-footer { margin-left: 204px; width: calc(100% - 204px); max-width: none; box-sizing: border-box; }
body.private-mode > .library-header { padding: 32px 32px 20px; margin-top: 0; border-bottom: 1px solid #ffffff0b; }
body.private-mode .library-heading h1 { font-size: clamp(25px, 2.6vw, 36px); letter-spacing: -.04em; }
body.private-mode .library-heading p { max-width: 680px; color: #a59bb4; }
body.private-mode > #catWrap, body.private-mode .lib-sort { display: none; }
body.private-mode .lib-header { background: none; border: 0; box-shadow: none; padding: 0; }
body.private-mode > main { padding: 24px 32px 64px; }
.private-hub { font-family: var(--font-s); color: #eeeaf4; }
.hub-welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; margin-bottom: 32px; border: 1px solid #bb95ff24; border-radius: 18px; background: radial-gradient(ellipse at top right, #a875ff1f, transparent 70%), #19151f; }
.hub-kicker { font-size: 10px; font-weight: 800; letter-spacing: .13em; color: #c6a2ff; }
.hub-welcome h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.04em; margin: 9px 0 8px; }
.hub-welcome p, .hub-section-head p { color: #a99eb8; font-size: 13px; line-height: 1.6; margin: 0; }
.hub-welcome-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.hub-section { margin: 0 0 34px; }
.hub-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.hub-section h2, .hub-section-head h2 { font-size: 19px; letter-spacing: -.025em; margin: 0 0 3px; }
.hub-section-head > .hub-btn { background: none; border: 0; color: #bca8d8; }
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.hub-card { min-width: 0; position: relative; }
.hub-card-image { aspect-ratio: 16 / 10; position: relative; border-radius: 11px; overflow: hidden; background: #201925; border: 1px solid #ffffff0b; }
.hub-play { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; color: white; cursor: pointer; }
.hub-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.hub-card:hover .hub-play img { transform: scale(1.035); }
.hub-play-overlay { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; background: #0004; opacity: 0; transition: opacity .15s; }
.hub-play:focus-visible .hub-play-overlay, .hub-play:hover .hub-play-overlay { opacity: 1; }
.hub-placeholder { font-size: 36px; color: #ffffff80; }
.hub-duration, .hub-watched { position: absolute; bottom: 8px; right: 8px; color: #fff; background: #0a080fd9; border-radius: 5px; font-size: 10px; font-weight: 700; padding: 4px 6px; pointer-events: none; }
.hub-watched { top: 8px; bottom: auto; color: #d9c4fa; }
.hub-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: #c093ff; pointer-events: none; }
.hub-card-info { padding: 10px 1px 0; }
.hub-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; width: 100%; background: none; padding: 0; border: 0; color: #e8e2f0; font: 650 13px/1.45 var(--font-s); cursor: pointer; }
.hub-title:hover { color: #cdafff; }
.hub-card-meta { color: #93889f; font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-card-actions { display: flex; align-items: center; gap: 4px; margin-top: 9px; }
.hub-card-actions > .hub-btn { min-height: 30px; font-size: 11px; padding: 4px 8px; border-color: transparent; background: #ffffff05; }
.hub-card-actions .selected { color: #cfb1ff; background: #a97ff91a; }
.hub-more { position: relative; margin-left: auto; }
.hub-more summary { cursor: pointer; list-style: none; padding: 5px 7px; font-size: 12px; color: #9688a5; }
.hub-more summary::-webkit-details-marker { display: none; }
.hub-more[open] { z-index: 12; }
.hub-more > div { position: absolute; right: 0; top: 100%; width: 170px; display: grid; gap: 3px; background: #25202e; border: 1px solid #ffffff17; border-radius: 10px; padding: 7px; box-shadow: 0 10px 25px #0008; }
.hub-more .hub-btn { text-align: left; border: 0; }
.hub-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 14px; background: #18141d; border: 1px solid #ffffff0d; border-radius: 12px; }
.hub-filter { min-width: 0; }
.hub-filter > span { display: block; color: #9b8ba9; font-size: 10px; margin-bottom: 6px; }
.hub-filter select, #hubSpeed { width: 100%; color: #e9e0f4; border: 1px solid #ffffff17; border-radius: 7px; background: #211b29; padding: 9px 6px; font: 12px var(--font-s); }
.hub-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; font-size: 12px; color: #b6a9c5; }
.hub-results > div { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-prefs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #ffffff0c; font-size: 12px; color: #b3a4c3; }
.hub-prefs label, .hub-next label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.hub-prefs > span { font-size: 11px; color: #81738e; }
.private-hub input[type=checkbox], #hubPlayerTools input { accent-color: #bd9bff; }
.hub-empty { text-align: center; padding: 64px 16px; color: #aaa0b5; }
.hub-empty h2 { color: #ede5f6; font-size: 22px; }
.hub-empty p { font-size: 13px; margin: 10px auto 20px; max-width: 400px; line-height: 1.7; }
.hub-empty .hub-btn + .hub-btn { margin-left: 8px; }
.hub-notice { padding: 12px; background: #b58b3915; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.hub-load-more { display: block; margin: 28px auto; }
.hub-list { grid-template-columns: 1fr; }
.hub-list .hub-card { display: grid; grid-template-columns: 230px 1fr; gap: 18px; }
.hub-list .hub-card-info { padding-top: 8px; }
.hub-list .hub-title { font-size: 16px; }
.hub-list .hub-card-actions { max-width: 280px; }
.hub-playlists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-playlist { background: #1c1623; border: 1px solid #ffffff10; border-radius: 14px; }
.hub-playlist > button { width: 100%; text-align: left; padding: 24px; color: #eee5fa; background: none; border: 0; cursor: pointer; }
.hub-playlist span { font-size: 32px; color: #bc97ee; }
.hub-playlist h2 { margin: 18px 0 8px; font-size: 19px; overflow-wrap: anywhere; }
.hub-playlist p { font-size: 12px; color: #a08bb4; }
#hubDialog { width: min(440px, calc(100vw - 28px)); margin: auto; padding: 24px; background: #201927; color: #eee4fa; border: 1px solid #ffffff25; border-radius: 16px; font-family: var(--font-s); box-sizing: border-box; }
#hubDialog::backdrop { background: #08050bcc; backdrop-filter: blur(6px); }
.hub-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hub-dialog-head h2 { font-size: 20px; margin: 0; }
.hub-dialog-head button { background: none; border: 0; color: #c6b0d8; font-size: 25px; cursor: pointer; }
#hubDialog form > .hub-btn { display: block; width: 100%; text-align: left; margin-top: 8px; }
#hubDialog label { display: grid; gap: 8px; font-size: 12px; color: #bfaace; }
#hubDialog input { padding: 12px; width: 100%; box-sizing: border-box; color: white; background: #100d15; border: 1px solid #ffffff20; border-radius: 8px; }
#hubDialog p { font-size: 13px; line-height: 1.7; }
#hubPlayerTools { padding: 0 20px 18px; font-family: var(--font-s); }
.hub-player-toolbar { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.hub-player-toolbar > label { font-size: 11px; display: flex; gap: 8px; align-items: center; }
#hubSpeed { width: 70px; }
.hub-embed-note { font-size: 11px; color: #a99ab6; }
.hub-next { display: flex; gap: 14px; justify-content: space-between; align-items: center; border-top: 1px solid #ffffff12; margin-top: 15px; padding-top: 15px; font-size: 12px; }
.hub-next > div { display: grid; gap: 4px; }
.hub-next span { color: #a596b2; font-size: 11px; }
#hubPlayerError { margin: 0 20px 16px; padding: 12px; background: #79442735; border-radius: 8px; color: #ecd0b9; font: 12px/1.6 var(--font-s); }
.hub-player .player-wrap { width: min(1220px, 100%); }
.hub-theater .player-wrap { width: min(1600px, 100%); }
.hub-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hub-online-actions { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 8px 10px; }
.hub-online-actions .hub-btn { font-size: 10px; min-height: 32px; padding: 5px 8px; }
.private-hub :is(button, summary, select):focus-visible, #privateNav button:focus-visible, #hubPlayerTools :is(button, select, input):focus-visible { outline: 2px solid #c9a4ff; outline-offset: 3px; }
@media (min-width: 1200px) {
  .hub-player:not(.hub-theater) .player-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-content: start; }
  .hub-player:not(.hub-theater) .player-wrap:has(.player-similar[hidden]) { display: block; width: min(100%, 68rem); }
  .hub-player .player-header { grid-column: 1 / -1; }
  .hub-player:not(.hub-theater) :is(.player-video, .player-embed, .player-footer, #hubPlayerTools, #hubPlayerError) { grid-column: 1; }
  .hub-player:not(.hub-theater) .player-similar { grid-column: 2; grid-row: 2 / span 5; margin: 0; padding: 14px; border-left: 1px solid #ffffff12; }
  .hub-player:not(.hub-theater) .player-similar-row { display: flex; flex-direction: column; max-height: 650px; overflow-y: auto; }
  .hub-player:not(.hub-theater) .similar-card { width: 100%; }
}
@media (max-width: 1180px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-section .hub-grid > :nth-child(4) { display: none; } .hub-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  #privateNav { position: sticky; top: 0; width: 100%; height: auto; display: flex; gap: 5px; padding: 10px 12px; box-sizing: border-box; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid #ffffff10; }
  #privateNav .hub-nav-label, #privateNav .hub-nav-bottom { display: none; }
  .hub-nav-item { width: auto; flex-shrink: 0; min-height: 36px; padding: 6px 10px; font-size: 12px; gap: 7px; }
  .hub-nav-item > span:first-child { width: auto; font-size: 17px; }
  body.private-mode > .library-header, body.private-mode > main, body.private-mode > .library-notice, body.private-mode > .site-footer { margin-left: 0; width: 100%; }
  body.private-mode > .library-header { padding: 22px 16px 16px; }
  body.private-mode > main { padding: 16px 12px 40px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .hub-section .hub-grid > :nth-child(4) { display: block; }
  .hub-welcome { padding: 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .hub-welcome-actions { flex-direction: row; }
  .hub-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .hub-results { align-items: flex-start; flex-direction: column; }
  .hub-list .hub-card { grid-template-columns: 140px 1fr; gap: 10px; }
  .hub-list .hub-title { font-size: 13px; }
  .hub-playlists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hub-playlist > button { padding: 18px; }
  .hub-next { flex-wrap: wrap; }
  .hub-card-actions > .hub-btn { min-height: 36px; padding: 4px 7px; }
  .hub-more summary { min-height: 28px; display: grid; align-items: center; }
}
@media (max-width: 360px) { .hub-grid { grid-template-columns: 1fr; } .hub-section .hub-grid > :nth-child(n+3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hub-play img, .hub-play-overlay { transition: none; } }

.hub-player-queue { list-style: none; margin: 0; padding: 0 16px 12px; max-height: 240px; overflow-y: auto; }
.hub-player-queue li { display: flex; align-items: center; gap: 12px; border-top: 1px solid #ffffff12; padding: 6px 0; }
.hub-player-queue .hub-queue-title { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-player-queue li > div { display: flex; flex-shrink: 0; gap: 4px; }
.hub-player-queue li > div button { min-width: 44px; min-height: 44px; }

/* One optical system for navigation, cards and player actions. */
.hub-icon { width: 17px; height: 17px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hub-btn:has(> .hub-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.hub-nav-icon { display: grid; place-items: center; height: 24px; }
.hub-nav-icon .hub-icon { width: 20px; height: 20px; }
.hub-nav-item[aria-current] .hub-nav-icon { color: #c6a3ff; }
.hub-card-actions .hub-icon { width: 16px; height: 16px; }
.hub-more summary .hub-icon { width: 19px; height: 19px; }
.hub-placeholder .hub-icon, .hub-play-overlay .hub-icon { width: 32px; height: 32px; }
