/* Pasted UI adapted to the existing app's markup. Routes and controls stay in the app bundle. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  --bg: #101012;
  --surface: #19191d;
  --elevated: #202024;
  --border: #29292e;
  --muted: #93939e;
  --text: #f3f2f5;
  --purple: #ff8196;
  --accent: #f03b58;
  --sidebar: 224px;
  --top: 80px;
}
body { font-size: 14px; }
::selection { background: #8e3146; }
.primary, .sign-in { background: var(--accent); color: #fff; box-shadow: none; }
.primary:hover, .sign-in:hover { background: #ff516c; }
.secondary { background: #242429; border-color: #36363c; }
.secondary:hover { background: #302b31; }
.glass { background: #22202470; border-color: #56505a; }
.btn { border-radius: 8px; }
.verified { color: #cbb3c0; }
.brand-mark, .brand-tv { color: var(--accent); filter: none; }
.brand { letter-spacing: -1.3px; }
.topbar { padding: 0 30px 0 18px; gap: 24px; background: #101012f5; border-color: #242429; }
.brand-group { min-width: 206px; gap: 5px; }
.search { width: min(580px, 42vw); height: 42px; margin: 0 auto; background: #1a1a1e; border-color: #303035; border-radius: 10px; }
.search input { font-size: 13px; }
.search input::placeholder { color: #92909b; }
.top-actions { gap: 18px; margin-left: 0; }
.studio-link { font-size: 12px; color: #bdb8c2; }
.age-pill { border-color: #414047; color: #aaa7b0; font-size: 9px; }
.user-button { background: #55303d; border: 1px solid #8c5266; }
.sidebar { background: var(--bg); border-color: #242429; padding: 25px 15px 18px; }
.sidebar-top .eyebrow { font-size: 9px; letter-spacing: 1.3px; color: #8d8792; }
.side-nav a { padding: 12px 14px; margin-bottom: 5px; font-size: 12px; color: #aaa5b0; border-radius: 8px; }
.side-nav a.active { background: #331b24; color: #ff7188; box-shadow: none; }
.side-nav a:hover { background: #242127; color: #f3f2f5; }
.side-nav a.active:before { display: none; }
.mini-crown { color: #ff8196; background: #f03b581a; }
.sidebar-divider { background: var(--border); border-color: var(--border); margin: 22px 12px; }
.sidebar-creators .eyebrow { color: #8d8792; letter-spacing: 1.6px; margin-bottom: 16px; }
.sidebar-creators > a { font-size: 12px; color: #b5b1bd; margin: 15px 10px; }
.sidebar-creators small { font-size: 10px; color: #8d8394; }
.avatar { background: #382d36; color: #ead5df; }
.lounge-card { background: #19171c; border-color: #323037; padding: 13px 11px; }
.lounge-card > svg { color: #d9a6b7; }
.lounge-card h3 { font-size: 12px; }
.lounge-card p, .lounge-card a { font-size: 11px; color: #b4a5b2; }
.settings-link { color: #aaa0af; font-size: 12px; }
.sidebar-foot { color: #918694; font-size: 10px; }
.sidebar-foot small { color: #847987; font-size: 9px; }
.preview-label { color: #bda0ae; font-size: 9px; }
.feed-page { padding: 27px 34px 0; max-width: 1876px; }
.page-heading { margin-bottom: 23px; }
.page-heading h1 { margin: 0 0 6px; font-size: 24px; font-weight: 750; letter-spacing: -.7px; }
.page-heading p { color: var(--muted); font-size: 12px; }
.night-note { margin: 0; font-size: 10px; font-style: normal; letter-spacing: 1.2px; color: #b2a5b4; text-transform: uppercase; }
.night-note svg, .moon-dot { color: #dd8f9c; }
.hero { min-height: 330px; display: flex; align-items: center; background: #29141b; border: 1px solid #41212c; border-radius: 14px; }
.hero-img { inset: 0 0 0 auto; width: 62%; object-position: center 65%; filter: sepia(.8) saturate(2) hue-rotate(297deg) brightness(.65); }
.hero-shade { background: linear-gradient(90deg, #21151c 2%, #27121b 34%, #35131d66 68%, #7d1f3750), radial-gradient(ellipse at 85% 50%, transparent 15%, #100c1477 100%); }
.hero-content { padding: 32px 38px 42px; max-width: 65%; }
.spotlight-badge { background: none; border: 0; padding: 0; color: #f38599; font-size: 10px; letter-spacing: 2.4px; gap: 8px; }
.spotlight-badge > span { width: 6px; height: 6px; background: var(--accent); }
.hero h2 { font-size: 44px; font-weight: 750; letter-spacing: -1.8px; line-height: 1.16; margin: 16px 0 15px; }
.hero h2 em { font-family: Georgia, serif; font-weight: 400; color: #f29ba8; }
.hero p { color: #c2aeb9; font-size: 12px; line-height: 1.8; }
.hero-buttons { margin-top: 23px; gap: 10px; }
.hero-buttons .btn { min-height: 39px; font-size: 11px; padding: 10px 16px; }
.hero-creator { position: absolute; right: 24px; bottom: 22px; margin: 0; color: #efdae3; font-size: 11px; }
.hero-creator small { font-size: 10px; color: #d1a7b9; }
.hero-creator .avatar { width: 30px; height: 30px; }
.hero-corner { top: 22px; right: 24px; bottom: auto; color: #ead0dc; }
.hero-corner b { color: #d1a7b9; }
.hero-index { left: 39px; bottom: 19px; }
.hero-index span { background: #7e5b6d; }
.hero-index span.active { background: #ef758e; width: 20px; }
.category-bar { margin: 26px 0; padding: 0; border: 0; gap: 9px; }
.chip { padding: 9px 17px; background: #1a191e; border-color: #333239; color: #b8b4c0; font-size: 11px; }
.chip.active { background: #efeff2; border-color: #efeff2; color: #1c1b20; }
.chip:hover { border-color: #b77e91; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: 19px; gap: 9px; }
.section-heading p { font-size: 11px; color: var(--muted); }
.badge.violet { color: #e2a7b5; background: #f03b5810; border-color: #f03b5830; }
.sort { border: 0; padding: 6px 0; color: #ada5b4; }
.sort select { font-size: 11px; max-width: 120px; }
.video-grid { gap: 26px 18px; }
.thumbnail { background: #221c25; border: 0; border-radius: 10px; }
.thumbnail img { filter: brightness(.78); }
.thumbnail:hover img { filter: brightness(.9); }
.hover-play { background: #ef3c58ed; border: 0; }
.thumb-category { color: #f1dce4; background: #151118a6; border: 0; padding: 5px 7px; font-size: 8px; letter-spacing: 1px; }
.duration { font-size: 10px; padding: 4px 6px; background: #09080cc9; }
.save-card.saved { color: #ffa1b2; }
.video-meta { padding-top: 13px; gap: 10px; }
.video-meta h3 { font-size: 12px; line-height: 1.65; font-weight: 600; }
.video-meta h3 a:hover { color: #f397aa; }
.creator-name { color: #a69cab; font-size: 11px; margin-top: 4px; }
.video-meta p { color: #928697; font-size: 10px; margin-top: 4px; }
.discover-creators { border-top: 1px solid #28252d; padding-top: 28px; margin-top: 39px; }
.discover-count { font-size: 11px; color: #baacbf; }
.discover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.discover-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 17px 14px; background: #18171c; border: 1px solid #2e2932; border-radius: 10px; }
.discover-profile { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1; }
.discover-profile .avatar { width: 43px; height: 43px; }
.discover-profile > span:last-child { min-width: 0; }
.discover-profile strong { display: block; font-size: 12px; font-weight: 600; }
.discover-profile small { display: block; margin-top: 5px; font-size: 10px; color: #a194a4; }
.discover-follow { display: grid; place-items: center; flex: none; color: #ebbfce; background: #2c232d; border: 1px solid #4d3645; border-radius: 50%; width: 32px; height: 32px; }
.discover-follow[aria-pressed=true] { color: #fff; border-color: #c45a75; background: #5a2537; }
.discover-follow:hover { background: #49303f; }
.feed-footer { border-color: #29252e; color: #a193a6; }
.panel, .description-panel { background: var(--surface); border-color: #343038; }
.description-panel > p, .creator-bio, .settings-note, .toggle-row small { color: #b4a8bc; }
.tabs button.active, .tabs button[aria-selected=true] { color: #ff91a4; border-color: var(--accent); }
.member-banner { background: #281a23; border-color: #553041; }
.pill-action { background: #242027; border-color: #3b313d; }
.pill-action.active { color: #ff9fb0; border-color: #a45d71; }
.player-wrap { border-color: #422633; box-shadow: 0 0 60px #79203818; }
.player-wrap.ahp-active { --ahp-wave: #ff8196; }
.ahp-play, .ahp-set { background: var(--accent); box-shadow: none; }
.ahp-menu { background: #1d191ef2; border-color: #49303e; }
.ahp-panel { border-color: #373039; }
.toggle-row input:checked + .switch { background: #c73652; border-color: #ff8196; }
.modal { background: #1b171f; border-color: #4d3547; }
.modal .eyebrow { color: #ef9eb1; }
.age-icon { background: #f03b581a; border-color: #a957703d; color: #ff9fb0; }
.tier-option { background: #201b23; border-color: #44343f; }
.tier-option.selected { background: #f03b5814; border-color: #ef758e; box-shadow: inset 0 0 0 1px #ef758e; }
.tier-feature svg { color: #f39caf; }
.notice { background: #f03b5810; border-color: #c0688033; color: #e6c5d0; }
.toast { background: #2f2230; border-color: #624151; }
input:not([type=checkbox]):not([type=file]):not([type=range]), textarea, select.input { background: #202024; border-color: #34343b; color: var(--text); }
input[type=checkbox] { accent-color: var(--accent); }
.top-actions .studio-link { color: #cbb5c1; border-color: #49323e; }

@media (min-width: 1600px) {
  .feed-page { padding-left: 45px; padding-right: 45px; }
  .hero { min-height: 390px; }
  .hero h2 { font-size: 54px; }
  .video-meta h3 { font-size: 14px; }
  .creator-name { font-size: 12px; }
  .video-meta p { font-size: 11px; }
}
@media (min-width: 1001px) and (max-width: 1250px) {
  :root { --sidebar: 210px; }
  .topbar { gap: 15px; padding-right: 20px; }
  .brand-group { min-width: 195px; }
  .brand { font-size: 21px; }
  .feed-page { padding-left: 25px; padding-right: 25px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .side-nav a { font-size: 11px; padding-left: 10px; }
}
@media (max-width: 1000px) {
  :root { --sidebar: 0px; --top: 72px; }
  .topbar { padding: 0 20px; gap: 20px; }
  .brand-group { min-width: 0; }
  .search { width: auto; }
  .sidebar-backdrop { top: var(--top); }
  .feed-page { padding: 24px 22px 0; }
  .hero { min-height: 330px; }
  .hero-content { max-width: 75%; padding-left: 30px; }
  .hero h2 { font-size: 42px; }
  .hero-creator { max-width: 35%; }
  .hero-creator small { display: none; }
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { gap: 12px; padding: 0 13px; }
  .top-actions { gap: 9px; }
  .brand-group { gap: 2px; }
  .brand { font-size: 22px; }
  .search { margin-left: auto; }
  .night-note { display: none; }
  .page-heading h1 { font-size: 22px; }
  .hero-content { padding: 28px 25px 44px; max-width: 85%; }
  .hero h2 { font-size: 39px; }
  .hero-creator { right: 18px; bottom: 17px; font-size: 10px; }
  .hero-creator .avatar { display: none; }
  .hero-index { display: flex; left: 26px; }
  .hero-buttons .btn { font-size: 11px; flex: 0 1 auto; }
  .video-grid { gap: 24px 12px; }
  .discover-count { display: none; }
  .discover-card { gap: 9px; padding: 14px 11px; }
  .discover-profile { gap: 9px; }
  .discover-profile .avatar { width: 36px; height: 36px; }
  .discover-profile strong { font-size: 11px; }
}
@media (max-width: 600px) {
  :root { --top: 128px; }
  .topbar { height: 65px; padding: 0 12px; }
  .topbar .search { position: absolute; display: flex; top: 77px; left: 17px; right: 17px; width: auto; max-width: none; margin: 0; height: 41px; background: #1a191e; }
  .topbar::after { content: ''; position: absolute; top: 65px; left: 0; right: 0; height: 63px; background: var(--bg); z-index: -1; }
  .top-actions { margin-left: auto; }
  .sidebar { top: 65px; z-index: 31; }
  .sidebar-backdrop { top: 65px; }
  .search input { display: block; opacity: 1; font-size: 13px; }
  .feed-page { padding: 16px 17px 0; }
  .page-heading { margin-bottom: 19px; }
  .page-heading p { font-size: 11px; }
  .hero { min-height: 316px; border-radius: 12px; }
  .hero-img { width: 80%; opacity: .75; object-position: 70% center; }
  .hero-shade { background: linear-gradient(90deg, #24131beb 5%, #24131bb0 45%, #34151b44); }
  .hero-content { max-width: 100%; padding: 25px 24px 45px; }
  .hero h2 { font-size: 37px; }
  .hero p { font-size: 12px; max-width: 240px; }
  .spotlight-badge { font-size: 9px; letter-spacing: 2px; }
  .hero-creator { position: static; margin-top: 14px; max-width: none; }
  .hero-buttons { margin-top: 18px; gap: 8px; }
  .hero-buttons .btn { font-size: 10px; padding: 10px 12px; }
  .category-bar { margin: 20px 0 24px; gap: 7px; }
  .chip { font-size: 11px; padding: 8px 13px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .badge { display: none; }
  .section-heading p { font-size: 11px; }
  .thumbnail { border-radius: 8px; }
  .thumb-category { font-size: 7px; letter-spacing: .5px; padding: 4px 5px; }
  .video-meta h3 { font-size: 12px; }
  .video-meta p { font-size: 10px !important; }
  .discover-creators { margin-top: 29px; padding-top: 24px; }
  .discover-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .discover-profile strong { font-size: 12px; }
  .discover-follow { width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .hero-content { padding-left: 20px; padding-right: 20px; }
  .hero-buttons > * { flex-basis: auto; }
  .hero-buttons { flex-wrap: wrap; }
}
@media (max-width: 340px) {
  .brand { font-size: 16px; letter-spacing: -.5px; }
  .top-actions { gap: 6px; }
}
