/* Kaptain Stream: the Screening Room look for Profile Studio. Loaded after studio-mint.css; every rule is scoped to the Studio overlay. */

#profile-studio-overlay {
  --scr-ground: #07080b;
  --scr-text: #f4f5f7;
  --scr-text-2: #b4bac6;
  --scr-text-3: #8b93a3;
  --scr-line: rgba(255, 255, 255, 0.07);
  --scr-fill: rgba(255, 255, 255, 0.04);
  --scr-fill-2: rgba(255, 255, 255, 0.07);
  --scr-mint: #00f5a0;
  --scr-on-mint: #04130d;
  --scr-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
#profile-studio-overlay #ps-content > .ps-body { position: relative; isolation: isolate; }

/* Profile-art backdrop: the profile's own cover, blurred into a glow behind the top of the screen. */
#profile-studio-overlay .scr-ambient {
  position: absolute; z-index: -1; top: -80px; left: -80px; right: -80px; height: 560px; pointer-events: none;
  background: var(--scr-art) center 30% / cover no-repeat; filter: blur(80px) saturate(1.3); opacity: 0.36;
  -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent);
  transition: opacity 0.6s var(--scr-ease);
}

/* Titles: Outfit at its heaviest, in capitals, set tight. */
#profile-studio-overlay :is(.ps-page-title, .hh-title, .scr-title) {
  font-family: Outfit, Inter, sans-serif !important; font-weight: 900 !important; text-transform: uppercase;
  letter-spacing: -0.035em !important; line-height: 0.9 !important; font-size: clamp(52px, 6vw, 74px) !important;
  overflow-wrap: anywhere; text-wrap: balance;
}
#profile-studio-overlay :is(.ps-page-lede, .scr-lede) { margin-top: 14px; color: var(--scr-text-2); font-size: 1rem; line-height: 1.55; max-width: 48ch; }

/* Two columns on wide screens: settings on the left, the live picture on the right. */
#profile-studio-overlay .scr-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 980px) {
  #profile-studio-overlay .scr-split { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
  #profile-studio-overlay .scr-split > .scr-side { position: sticky; top: 24px; }
}

/* The TV: a 16:9 picture with a soft shadow, art behind a darkening wash. */
#profile-studio-overlay .scr-tv { margin: 0; }
#profile-studio-overlay .scr-tv-screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0d0f14;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
#profile-studio-overlay .scr-tv-screen.has-art { background: var(--scr-art) center 28% / cover no-repeat; }
#profile-studio-overlay .scr-tv-screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 6, 9, 0.25), rgba(5, 6, 9, 0.8) 72%); }
#profile-studio-overlay .scr-tv-screen > * { position: absolute; }
#profile-studio-overlay .scr-tv-caption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.82rem; color: var(--scr-text-3); }

/* Grouped list: one soft panel, hairline rows with icon, name, current value and a chevron. */
#profile-studio-overlay .scr-list { border-radius: 16px; background: var(--scr-fill); overflow: hidden; }
#profile-studio-overlay .scr-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; align-items: center; column-gap: 14px; min-height: 52px; padding: 0 14px;
  color: var(--scr-text); text-decoration: none; font-size: 0.95rem; font-weight: 500; background: transparent; border: 0; width: 100%; text-align: left; font-family: inherit; cursor: pointer;
}
#profile-studio-overlay .scr-row + .scr-row { box-shadow: inset 0 1px 0 var(--scr-line); }
#profile-studio-overlay .scr-row:is(:hover, :focus-visible) { background: rgba(255, 255, 255, 0.045); }
#profile-studio-overlay .scr-row-icon { width: 20px; height: 20px; color: var(--scr-mint); opacity: 0.85; }
#profile-studio-overlay .scr-row-icon svg { width: 20px; height: 20px; }
#profile-studio-overlay .scr-row-value { font-size: 0.82rem; font-weight: 400; color: var(--scr-text-3); white-space: nowrap; }
#profile-studio-overlay .scr-row-chev { width: 14px; height: 14px; color: #5d6576; }

/* The dock: the change bar's own row under the scrolling page (collections-core.js dockChangeBar), so the settings
   never slide under it. The collection button rides above it. */
#profile-studio-overlay .scr-dock {
  flex: none; position: relative; z-index: 6;
  padding: 10px clamp(16px, 4vw, 40px) calc(12px + env(safe-area-inset-bottom));
  background: var(--scr-ground); box-shadow: 0 -1px 0 var(--scr-line);
}
#profile-studio-overlay .scr-dock > .scr-bar { position: static; margin: 0 auto; max-width: var(--ps-col, 1200px); }
/* On a wide screen the bar leaves a lane on the right for the collection button, so a bar of any height (a slot
   chooser, a long review) never has its button under it. */
@media (min-width: 721px) {
  #profile-studio-overlay .scr-dock { padding-right: 236px; }
}
@media (max-width: 720px) {
  #profile-studio-overlay .scr-dock { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
  #profile-studio-overlay .scr-dock > .scr-bar { flex-wrap: wrap; }
  html:has(#profile-studio-overlay .scr-dock) { --kcv-offset: 132px; }
}

/* The change bar: what will change, and the one mint button, always in reach. */
#profile-studio-overlay .scr-bar {
  position: sticky; bottom: 16px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px;
  padding: 12px 12px 12px 22px; border-radius: 18px; background: rgba(16, 18, 24, 0.97);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
#profile-studio-overlay .scr-bar-text { margin: 0; min-width: 0; font-size: 0.9rem; color: #c7ccd6; }
#profile-studio-overlay .scr-bar-text strong { color: var(--scr-text); font-weight: 600; }
#profile-studio-overlay .scr-bar-go { flex: none; min-height: 46px; padding: 0 24px; border-radius: 12px; }

/* Segmented control and chips. */
#profile-studio-overlay .scr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 12px; background: var(--scr-fill-2); max-width: 100%; }
#profile-studio-overlay .scr-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0;
  background: var(--scr-fill-2); color: #c7ccd6; font: 500 0.9rem Inter, sans-serif; cursor: pointer;
}
#profile-studio-overlay .scr-chip.is-on, #profile-studio-overlay .scr-chip:has(input:checked) { background: var(--scr-text); color: var(--scr-ground); }
#profile-studio-overlay .scr-chip input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; cursor: pointer; border: 0 !important; }
#profile-studio-overlay .scr-chip:has(input:focus-visible) { outline: 2px solid var(--scr-mint); outline-offset: 2px; }

@media (max-width: 720px) {
  #profile-studio-overlay .scr-ambient { height: 380px; filter: blur(60px) saturate(1.3); opacity: 0.4; }
  #profile-studio-overlay .scr-bar { bottom: 12px; padding: 10px 10px 10px 16px; }
  #profile-studio-overlay .scr-row { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  #profile-studio-overlay :is(.scr-ambient, .scr-row, .scr-chip, .scr-bar, .scr-tv-screen) { transition: none !important; animation: none !important; transform: none !important; }
}

/* ==== Dashboard: profile header, three pictured starting tools, tool groups as menus ==== */
#profile-studio-overlay .ps-hub-profile { gap: 16px !important; }
#profile-studio-overlay .ps-hub-profile .ps-profile-avatar { width: 56px !important; height: 56px !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .ps-hub-profile .ps-profile-name {
  font-family: Outfit, Inter, sans-serif !important; font-weight: 900 !important; font-size: 40px !important; line-height: 0.95 !important;
  letter-spacing: -0.035em !important; text-transform: uppercase; white-space: normal !important; overflow-wrap: anywhere;
}
#profile-studio-overlay .ps-hub-profile .ps-profile-meta { color: var(--scr-text-2); font-size: 0.88rem; }

#profile-studio-overlay .ps-hub-featured-title, #profile-studio-overlay .ps-hub-group-title {
  font-family: Outfit, Inter, sans-serif !important; font-weight: 800 !important; font-size: 1.05rem !important; letter-spacing: 0.04em !important;
  text-transform: uppercase; color: #9aa3b5 !important;
}
#profile-studio-overlay .ps-hub-group-count { display: none; }
#profile-studio-overlay .ps-hub-group-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
#profile-studio-overlay .ps-hub-group .ps-hub-grid { margin-top: 10px; }

/* Starting tools: picture on top, a poster-style name, a round go button. */
#profile-studio-overlay .ps-hub-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; }
#profile-studio-overlay .ps-hub-featured .ps-hub-tile {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "pic pic" "title go" "line go" "value go";
  padding: 0 !important; overflow: hidden; row-gap: 2px; background: rgba(255, 255, 255, 0.045) !important;
}
#profile-studio-overlay .ps-hub-featured .ps-hub-tile:hover { transform: none !important; background: rgba(255, 255, 255, 0.065) !important; }
#profile-studio-overlay .ps-hub-featured .ps-hub-icon { display: none !important; }
#profile-studio-overlay .ps-hub-featured .ps-hub-title { grid-area: title; margin: 18px 0 0 20px !important; font-family: Outfit, Inter, sans-serif !important; font-weight: 900 !important; font-size: 30px !important; line-height: 0.92 !important; letter-spacing: -0.035em; text-transform: uppercase; }
#profile-studio-overlay .ps-hub-featured .ps-hub-line { grid-area: line; margin: 4px 0 0 20px !important; font-size: 0.85rem !important; color: #a4abb8 !important; }
#profile-studio-overlay .ps-hub-featured .ps-hub-value { grid-area: value; margin: 2px 0 18px 20px !important; font-size: 0.8rem; color: var(--scr-text-3); }
#profile-studio-overlay .ps-hub-featured .ps-hub-tile:not(.has-update)::after {
  grid-area: go; position: static !important; align-self: end; margin: 0 16px 18px 0 !important; width: 34px !important; height: 34px !important; border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.09) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'><polyline points='9 6 15 12 9 18'/></svg>") center / 15px no-repeat !important;
  opacity: 1 !important; transform: none !important;
}
#profile-studio-overlay .ps-hub-pic { grid-area: pic; position: relative; height: 150px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.25); overflow: hidden; }
#profile-studio-overlay .ps-pic-tv { width: 236px; padding: 10px; border-radius: 10px; background: #0d0f14; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 30px -12px rgba(0, 0, 0, 0.9); display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
#profile-studio-overlay .ps-pic-cell { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .ps-pic-cell:nth-child(n + 9) { opacity: 0.5; }
#profile-studio-overlay .ps-pic-cell.is-ringed { box-shadow: 0 0 0 2px var(--scr-mint); }
#profile-studio-overlay .ps-pic-fan { position: absolute; width: 104px; height: 64px; object-fit: cover; border-radius: 8px; opacity: 0.6; background: rgba(255, 255, 255, 0.08); }
#profile-studio-overlay .ps-pic-fan.is-left { transform: translate(-58px, 6px) rotate(-8deg); }
#profile-studio-overlay .ps-pic-fan.is-right { transform: translate(58px, 6px) rotate(8deg); }
#profile-studio-overlay .ps-pic-plus { position: relative; width: 116px; height: 72px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 245, 160, 0.1); box-shadow: 0 0 0 1.5px var(--scr-mint), 0 0 40px -6px rgba(0, 245, 160, 0.55); color: #6dfac4; }
#profile-studio-overlay .ps-pic-stack { width: 236px; display: flex; flex-direction: column; gap: 6px; }
#profile-studio-overlay .ps-pic-addon { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 12px; border-radius: 8px; background: #0d0f14; font-size: 0.78rem; font-weight: 600; color: #e9ecf1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#profile-studio-overlay .ps-pic-addon i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--scr-mint); }
#profile-studio-overlay .ps-pic-addon:nth-child(3) { opacity: 0.6; }
#profile-studio-overlay .ps-pic-addon.is-blank { background: rgba(255, 255, 255, 0.05); }

/* Tool groups: menu rows with the tool's icon, its name, its current value and a chevron. */
@media (min-width: 1100px) {
  #profile-studio-overlay .ps-hub-groups { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
#profile-studio-overlay .ps-hub-group .ps-hub-tile {
  grid-template-columns: 22px minmax(0, 1fr) auto 14px !important; grid-template-areas: "icon title value chev" !important; min-height: 52px !important; padding: 0 14px !important; align-items: center !important;
}
#profile-studio-overlay .ps-hub-group .ps-hub-icon { width: 22px !important; height: 22px !important; background: none !important; border-radius: 0 !important; color: var(--scr-mint) !important; opacity: 0.85; }
#profile-studio-overlay .ps-hub-group .ps-hub-icon svg { width: 20px !important; height: 20px !important; }
#profile-studio-overlay .ps-hub-group .ps-hub-title { font-family: Inter, sans-serif !important; font-size: 0.95rem !important; font-weight: 500 !important; text-transform: none; letter-spacing: 0; padding: 0 !important; }
#profile-studio-overlay .ps-hub-group .ps-hub-line { display: none !important; }
#profile-studio-overlay .ps-hub-group .ps-hub-value { grid-area: value; font-size: 0.82rem; color: var(--scr-text-3); white-space: nowrap; }
#profile-studio-overlay .ps-hub-group .ps-hub-tile + .ps-hub-tile { background-position: 50px 0 !important; background-size: calc(100% - 50px) 1px !important; }

@media (max-width: 720px) {
  #profile-studio-overlay .ps-hub-profile .ps-profile-name { font-size: 30px !important; }
  #profile-studio-overlay .ps-hub-featured-grid { display: flex !important; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  #profile-studio-overlay .ps-hub-featured .ps-hub-tile { flex: 0 0 248px; scroll-snap-align: start; min-height: 0 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) 34px !important; grid-template-areas: "pic pic" "title go" "line go" "value go" !important; padding: 0 !important; }
  #profile-studio-overlay .ps-hub-featured .ps-hub-title { font-size: 26px !important; }
  #profile-studio-overlay .ps-hub-pic { height: 118px; }
  #profile-studio-overlay .ps-pic-tv, #profile-studio-overlay .ps-pic-stack { width: 190px; }
  #profile-studio-overlay .ps-hub-group .ps-hub-tile { min-height: 54px !important; }
}

/* ==== Tool pages: settings on the left, the TV on the right, the change bar along the foot ==== */
#profile-studio-overlay .ps-tune .scr-split { margin-top: 4px; }
#profile-studio-overlay .ps-tune .scr-split.is-single { grid-template-columns: minmax(0, 1fr) !important; }
#profile-studio-overlay .ps-tune .scr-main > .ps-dev-summary { margin: 0 0 18px; }
#profile-studio-overlay .ps-tune .scr-main > .ps-addons-warn { margin: 0 0 16px; }
#profile-studio-overlay .ps-tune .scr-side { min-width: 0; }
#profile-studio-overlay .ps-tune .scr-side .ps-st-preview { margin: 0; }
@media (min-width: 980px) {
  #ps-content[data-screen="tool"] { --ps-col: 1140px; }
}
#profile-studio-overlay .ps-tune .scr-bar { margin-top: 28px; }
#profile-studio-overlay .scr-bar-list { display: inline; margin: 0 0 0 6px !important; padding: 0 !important; list-style: none; }
#profile-studio-overlay .scr-bar-list:empty { display: none; }
#profile-studio-overlay .scr-bar-list li { display: inline; margin: 0 !important; padding: 0 !important; color: #c7ccd6; }
#profile-studio-overlay .scr-bar-list li::before { content: none !important; }
#profile-studio-overlay .scr-bar-list li + li::before { content: " \00B7 " !important; color: #6d7586; }
#profile-studio-overlay .scr-bar-list li:first-child::before { content: "\00B7 " !important; color: #6d7586; }

/* Autoplay: end credits and the Up next card. */
#profile-studio-overlay .scr-credits { left: 7%; top: 12%; display: flex; flex-direction: column; gap: 14px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
#profile-studio-overlay .scr-upnext {
  right: 4%; bottom: 7%; width: min(300px, 62%); display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px;
  background: rgba(12, 14, 19, 0.74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#profile-studio-overlay .scr-upnext-k { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa3b5; }
#profile-studio-overlay .scr-upnext-t { font-size: 0.9rem; font-weight: 600; color: #fff; }
#profile-studio-overlay .scr-upnext-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
#profile-studio-overlay .scr-upnext-bar i { display: block; width: 62%; height: 100%; background: var(--scr-mint); }
#profile-studio-overlay .scr-upnext.is-off { background: rgba(12, 14, 19, 0.5); }

/* Player screen: the pause screen and the clock. */
#profile-studio-overlay .scr-tv-screen:has(.scr-paused)::before { background: linear-gradient(0deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.25) 62%), linear-gradient(90deg, rgba(5, 6, 9, 0.55), transparent 60%); }
#profile-studio-overlay .scr-clock { top: 5%; right: 4%; font-size: 1.3rem; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.92); }
#profile-studio-overlay .scr-paused { left: 5%; bottom: 17%; max-width: 62%; display: flex; flex-direction: column; gap: 6px; }
#profile-studio-overlay .scr-paused-k { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
#profile-studio-overlay .scr-paused-t { font-family: Outfit, Inter, sans-serif; font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
#profile-studio-overlay .scr-progress { left: 5%; right: 5%; bottom: 8%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
#profile-studio-overlay .scr-progress i { display: block; width: 46%; height: 100%; border-radius: 4px; background: #fff; }

/* Stream picker: the stream list as the TV shows it. */
#profile-studio-overlay .scr-tv-screen.scr-streams { background: linear-gradient(160deg, #12151d, #0a0c11); }
#profile-studio-overlay .scr-tv-screen.scr-streams::before { content: none; }
#profile-studio-overlay .scr-list-streams { inset: 9% 8%; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
#profile-studio-overlay .scr-stream {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); color: #c7ccd6; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}
#profile-studio-overlay .scr-stream.is-picked { background: rgba(0, 245, 160, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(0, 245, 160, 0.7); }
#profile-studio-overlay .scr-stream b { font-size: 0.72rem; font-weight: 600; color: #6dfac4; }

@media (max-width: 979px) {
  #profile-studio-overlay .ps-tune .scr-split:not(.is-single) { display: flex; flex-direction: column-reverse; }
}

/* ==== Device performance and Content filters ==== */
#ps-content[data-screen="tuneDevice"], #ps-content[data-screen="tuneFilters"] { --ps-col: 1140px; }
#profile-studio-overlay .scr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
#profile-studio-overlay .scr-chip { position: relative; }
#profile-studio-overlay .scr-drows { margin: 0; }
#profile-studio-overlay .scr-drows-body { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); }
#profile-studio-overlay .scr-drow { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#profile-studio-overlay .scr-drow-t { font-size: 0.85rem; font-weight: 600; color: #e9ecf1; }
#profile-studio-overlay .scr-drow-covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#profile-studio-overlay .scr-drow-covers img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
#profile-studio-overlay .scr-device { left: 6%; bottom: 10%; display: flex; flex-direction: column; gap: 6px; max-width: 70%; }
#profile-studio-overlay .scr-device-t { font-family: Outfit, Inter, sans-serif; font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; color: #fff; }
#profile-studio-overlay .scr-device-s { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
#profile-studio-overlay .scr-bar-sub { color: #a4abb8; }

/* ==== Poster look: settings on the left, a small poster wall on the right ==== */
#ps-content[data-screen="posters"] { --ps-col: 1140px; }
#profile-studio-overlay .ps-pe-custom { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 24px !important; align-items: start; }
@media (min-width: 980px) {
  #profile-studio-overlay .ps-pe-custom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 40px !important; }
  #profile-studio-overlay .ps-pe-custom > aside { position: sticky; top: 24px; }
}
#profile-studio-overlay .ps-pe-custom > aside.ps-pe-section { padding: 0 !important; background: none !important; }
#profile-studio-overlay .ps-pe-custom > aside .ps-pe-title { font-size: 0.82rem !important; font-weight: 600 !important; color: var(--scr-text-3) !important; margin-bottom: 12px !important; }
#profile-studio-overlay .scr-posters { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
#profile-studio-overlay .scr-posters .ps-pe-poster { margin: 0; }
#profile-studio-overlay .scr-posters .ps-pe-poster:nth-child(2) { margin-top: 24px; }
#profile-studio-overlay .scr-posters .ps-pe-poster img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.9);
}
#profile-studio-overlay .scr-posters figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--scr-text-3); }
#profile-studio-overlay .ps-pe-nowprev { margin-bottom: 20px; }

/* ==== Every other tool: soft fills instead of outlines, one mint ring for what is chosen ==== */
/* Copy a setup */
#profile-studio-overlay :is(.cs-panel, .cs-side) { border: 0 !important; background: rgba(255, 255, 255, 0.035) !important; border-radius: 18px !important; }
#profile-studio-overlay .cs-h { font-family: Outfit, Inter, sans-serif !important; font-weight: 800 !important; font-size: 1.05rem !important; letter-spacing: 0.03em; text-transform: uppercase; color: #9aa3b5; }
#profile-studio-overlay .cs-pill { border: 0 !important; background: rgba(255, 255, 255, 0.07) !important; }
#profile-studio-overlay .cs-pill.is-on { background: rgba(0, 245, 160, 0.08) !important; box-shadow: inset 0 0 0 1.5px rgba(0, 245, 160, 0.6); }
#profile-studio-overlay .cs-pill-new { background: transparent !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
#profile-studio-overlay .cs-parts .ps-copy-part-row { border: 0 !important; background: rgba(255, 255, 255, 0.04) !important; }
#profile-studio-overlay .cs-parts .ps-copy-part-row.is-on { background: rgba(0, 245, 160, 0.06) !important; box-shadow: inset 0 0 0 1.5px rgba(0, 245, 160, 0.45); }
#profile-studio-overlay .cs-parts .ps-copy-part-row.is-soon { opacity: 0.5; }

/* Streaming (and the setup wizard's scraper picker inside the Studio) */
#profile-studio-overlay .sp-card { border: 0 !important; background: rgba(255, 255, 255, 0.04) !important; border-radius: 14px !important; }
#profile-studio-overlay .sp-card:hover { transform: none !important; background: rgba(255, 255, 255, 0.06) !important; }
#profile-studio-overlay .sp-card.is-selected { background: rgba(0, 245, 160, 0.06) !important; box-shadow: inset 0 0 0 1.5px rgba(0, 245, 160, 0.6); }
#profile-studio-overlay .sp-heading { font-family: Outfit, Inter, sans-serif !important; font-weight: 800 !important; font-size: 1.05rem !important; letter-spacing: 0.03em; text-transform: uppercase; color: #9aa3b5 !important; margin-top: 28px !important; }
#profile-studio-overlay .sp-hint { margin-bottom: 10px !important; }

/* My AIO logins, Send watch history, Backups and the account screens */
#profile-studio-overlay :is(.ps-keys-card, .ps-svc, .hh-tl, .ps-backup-card) { border: 0 !important; background: rgba(255, 255, 255, 0.035) !important; border-radius: 18px !important; box-shadow: none !important; }

/* Create a folder keeps its workspace; only its title joins the type system. */
#profile-studio-overlay .cf-title {
  font-family: Outfit, Inter, sans-serif !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: -0.035em !important; line-height: 0.95 !important;
}

/* ==== Final pass fixes ==== */
/* Long one-word titles shrink to fit a phone instead of breaking mid-word. */
@media (max-width: 720px) {
  #profile-studio-overlay :is(.ps-page-title, .hh-title, .scr-title) { font-size: min(52px, 11.4vw) !important; overflow-wrap: normal; word-break: normal; }
}
/* In Create a folder's rail the small title is a name, not a label: no capitals at that size. */
#profile-studio-overlay .cf-tool.has-rail .cf-title { text-transform: none; letter-spacing: -0.02em !important; font-weight: 800 !important; }

/* ==== Review fixes ==== */
@media (max-width: 720px) {
  /* The household dock sits where the "View my collection" button lives, so the button rises above it (same as other bottom bars). */
  html:has(#profile-studio-overlay .ps-body.hh .hh-head-actions) { --kcv-offset: 76px; }
  /* A long single word (a profile name in a title) still breaks rather than pushing the page sideways. */
  #profile-studio-overlay :is(.ps-page-title, .hh-title, .scr-title) { overflow-wrap: break-word; }
}

/* ==== Kaptain's first look ==== */
/* The glow is a hint of the profile's colour, not a picture: dimmer, wider and darker so a bright cover cannot wash the page out. */
#profile-studio-overlay .scr-ambient { opacity: 0.18; filter: blur(110px) saturate(1.5) brightness(0.7); height: 460px; }
@media (max-width: 720px) {
  #profile-studio-overlay .scr-ambient { opacity: 0.22; filter: blur(70px) saturate(1.5) brightness(0.7); height: 340px; }
}
/* Supporter sits inside the profile pill as a star and a word, not a second pill. */
#profile-studio-overlay .ps-header-profile-badge .ps-supporter-badge {
  padding: 0; margin-left: 2px; border: 0; background: none; gap: 4px; font-size: 0.78rem; font-weight: 600; color: #f5d76e;
}

/* The glow only tints the top edge: a grey or white cover must never read as fog behind the text. */
#profile-studio-overlay .scr-ambient {
  opacity: 0.09; height: 340px; filter: blur(120px) saturate(1.8) brightness(0.6);
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
@media (max-width: 720px) {
  #profile-studio-overlay .scr-ambient { opacity: 0.12; height: 260px; filter: blur(70px) saturate(1.8) brightness(0.6); }
}
