:root {
  color-scheme: dark;
  --topbar: #191a1f;
  --page: #121215;
  --sidebar: #121215;
  --surface: #272930;
  --surface-2: #212227;
  --surface-3: #30323b;
  --border: #2d2e35;
  --text: #ffffff;
  --muted: #a4a6ad;
  --subtle: #777a83;
  --accent: #335fff;
  --accent-hover: #4f76ff;
  --danger: #d94b55;
  --shadow: rgba(0, 0, 0, 0.28);
  --control-hover-surface: #383b45;
  --description-text: #d2d3d7;
  --robux-icon-filter: none;
  --hover-surface: rgba(255, 255, 255, 0.04);
  --selected-surface: rgba(255, 255, 255, 0.09);
  --selected-hover-surface: rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] {
  color-scheme: light;
  --topbar: #f7f7f8;
  --page: #ffffff;
  --sidebar: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #edeef1;
  --surface-3: #e5e6ea;
  --border: #dedfe5;
  --text: #191a1f;
  --muted: #5c5f68;
  --subtle: #868993;
  --accent: #335fff;
  --accent-hover: #244dce;
  --danger: #c23743;
  --shadow: rgba(20, 22, 30, 0.12);
  --control-hover-surface: #d9dbe0;
  --description-text: #4d5059;
  --robux-icon-filter: brightness(0) saturate(100%);
  --hover-surface: rgba(0, 0, 0, 0.04);
  --selected-surface: rgba(0, 0, 0, 0.09);
  --selected-hover-surface: rgba(0, 0, 0, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

html.theme-changing,
html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after { transition: none !important; }

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 289px minmax(0, 1fr);
  grid-template-rows: 40px minmax(0, 1fr);
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 16px 0 20px;
  background: var(--topbar);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  min-width: 174px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 54px;
  white-space: nowrap;
}

.topnav a,
.topnav .topnav-static {
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.topnav a:hover,
.topnav .topnav-static:hover { color: var(--text); background: var(--hover-surface); }

.search-box {
  flex: 1;
  max-width: 477px;
  min-width: 140px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}
.search-box input::placeholder { color: var(--muted); opacity: 1; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  white-space: nowrap;
}

.top-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.top-profile:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.badge-icon { width: 17px; height: 17px; display: inline-block; flex: 0 0 auto; }
.verified-badge { color: #3f8cff; }
.plus-badge { color: var(--text); }

.mini-avatar {
  width: 25px;
  height: 25px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
}

.top-action {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.top-action:hover { color: var(--text); background: var(--hover-surface); }
.top-action[aria-expanded="true"] { color: var(--text); background: var(--selected-surface); }
.top-action svg { width: 23px; height: 23px; }

.robux-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 7px;
  border-radius: 7px;
  font-weight: 700;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.robux-counter:hover { color: var(--text); background: var(--hover-surface); }
.robux-counter svg, .robux-counter .inline-robux-icon { width: 23px; height: 23px; object-fit: contain; filter: var(--robux-icon-filter); }
.robux-total { color: var(--text); font-size: 14px; font-weight: 700; }

.settings-wrap { position: relative; }
.settings-menu {
  position: absolute;
  top: 39px;
  right: 0;
  width: 174px;
  padding: 8px;
  display: none;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: 0 7px 24px var(--shadow);
  z-index: 50;
}
.settings-menu.open { display: block; }
.settings-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--surface);
}
.theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 4px;
  padding: 9px 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.theme-toggle:hover { background: var(--hover-surface); color: var(--text); }
.theme-switch {
  width: 31px;
  height: 18px;
  padding: 2px;
  border-radius: 20px;
  background: var(--subtle);
  transition: background-color 0.16s ease;
}
.theme-switch::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--page);
  transition: transform 0.16s ease;
}
:root[data-theme="light"] .theme-switch { background: var(--accent); }
:root[data-theme="light"] .theme-switch::after { transform: translateX(13px); }

.sidebar {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 40px;
  align-self: start;
  height: calc(100vh - 40px);
  min-height: calc(100vh - 40px);
  padding: 12px 16px 24px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  margin-bottom: 10px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.16s ease;
}
.sidebar-profile:hover { color: var(--text); background: var(--hover-surface); border-radius: 4px; }
.sidebar-avatar { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.sidebar-link:hover { color: var(--text); background: var(--hover-surface); }
.sidebar-link.active { background: var(--selected-surface); }
.sidebar-link.active:hover { background: var(--selected-hover-surface); }
.sidebar-link svg { width: 22px; height: 22px; flex: 0 0 auto; stroke-width: 1.7; }
.sidebar-badge {
  min-width: 40px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  text-align: center;
  font-size: 13px;
}

.page {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: calc(100vh - 40px);
  padding: 32px;
  background: var(--page);
}

.page-inner { max-width: 970px; margin: 0 auto; }
.page-title { margin: 0 0 24px; font-size: 30px; line-height: 1.15; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }

/* Home */
.page-inner:has(.home-page) { max-width: none; }
.home-page { max-width: 1500px; margin: 0 auto; }
.home-title { margin: 0 0 22px; font-size: 32px; line-height: 1.1; }
.home-section { margin-bottom: 32px; }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.home-section-heading h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.home-see-all { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.home-see-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-see-all span { margin-left: 4px; font-size: 18px; line-height: 0; }
.home-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.home-card { min-width: 0; overflow: visible; color: var(--text); text-decoration: none; transition: background-color 0.16s ease, box-shadow 0.16s ease; }
.home-card:hover { background: var(--surface-2); border-radius: 10px; box-shadow: 0 0 0 10px var(--surface-2); }
.home-card-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: var(--surface-2); }
.home-card-media > img, .home-thumb-placeholder, .home-card-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface-2); }
.home-card-media > img[hidden] { display: none; }
.home-card-video { position: absolute; inset: 0; }
.home-card-video[hidden] { display: none; }
.home-card-video iframe, .home-card-video video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.home-card-video iframe { pointer-events: none; }
.home-thumb-placeholder { display: grid; place-items: center; color: var(--subtle); font-size: 13px; }
.home-card-body { min-width: 0; padding-top: 10px; }
.home-card-body h3 { overflow: hidden; margin: 0; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.home-card-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.home-card-stats > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.home-card-stats svg { width: 14px; height: 14px; flex: 0 0 auto; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-card-stats > span:nth-child(2) svg { fill: none; }
.home-simple-card .home-card-media { aspect-ratio: 16 / 9; }

/* Profile */
.profile-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--surface-2);
}
.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(0,0,0,0.06));
  pointer-events: none;
}
.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
@keyframes avatar-rotation-fallback {
  0%, 100% { transform: perspective(700px) rotateY(-10deg) rotateZ(-1deg); }
  50% { transform: perspective(700px) rotateY(10deg) rotateZ(1deg); }
}
.profile-banner img.avatar-rotation-fallback { animation: avatar-rotation-fallback 2.6s ease-in-out infinite; }
.profile-banner-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.profile-banner-label:hover { color: var(--text); background: var(--hover-surface); }
.profile-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  margin-top: -16px;
  padding: 0 0 12px;
  z-index: 2;
}
.profile-avatar {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border: 4px solid var(--page);
  border-radius: 50%;
  background: var(--surface-2);
}
.profile-name-line { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.profile-name { margin: 0; font-size: 27px; line-height: 1; }
.profile-handle { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.profile-stat { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 13px; border-radius: 999px; background: var(--surface-3); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color 0.16s ease; }
.profile-stat:hover { background: color-mix(in srgb, var(--surface-3) 84%, var(--text)); }
.profile-stat strong, .profile-stat span { color: var(--text); font-size: 14px; font-weight: 700; }
.profile-contacts { margin: 20px 0 28px; }
.profile-contacts-heading { margin-bottom: 10px; }
.profile-contacts-heading h2 { margin: 0; font-size: 15px; }
.profile-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.social-button:hover { color: var(--text); background: var(--control-hover-surface); border-color: var(--border); border-radius: 7px; }
.social-button img { width: 16px; height: 16px; object-fit: contain; }
.profile-description { max-width: 680px; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; white-space: pre-line; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab-button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.tab-button:hover { color: var(--text); background: transparent; border-bottom-color: var(--muted); }
.tab-button.active { color: var(--text); background: transparent; border-bottom: 3px solid var(--text); }
.tab-button.active:hover { background: transparent; border-bottom-color: var(--text); }
.tab-panel[hidden] { display: none; }
.profile-section-title { margin: 0 0 14px; font-size: 21px; }
.skills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.skill-card { min-width: 0; }
.skill-card:hover .skill-icon-frame { background: var(--control-hover-surface); }
.skill-icon-frame { display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 7px; background: var(--surface-2); transition: background-color 0.16s ease; }
.skill-icon-frame img { width: 58%; height: 58%; object-fit: contain; }
.skill-card h3 { margin: 8px 0 4px; color: var(--muted); font-size: 13px; line-height: 1.2; }
.skill-price { display: inline-flex; align-items: center; gap: 5px; color: var(--subtle); font-size: 12px; }
.skill-price img { width: 16px; height: 16px; object-fit: contain; }
.featured-grid { display: block; }
.featured-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.featured-heading .profile-section-title { margin: 0; }
.featured-view-toggle { display: inline-flex; align-items: center; gap: 4px; }
.featured-view-button { width: 70px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease; }
.featured-view-button:hover { color: var(--text); background: var(--selected-hover-surface); }
.featured-view-button.active { border-color: var(--muted); background: transparent; color: var(--text); }
.featured-view-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.featured-view-button:nth-child(2) svg { fill: currentColor; stroke: none; }
.featured-grid-view { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.experience-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 300px; overflow: hidden; border-radius: 7px; background: var(--surface-2); }
.experience-media { position: relative; min-width: 0; display: grid; place-items: center; padding: 30px 42px; background: color-mix(in srgb, var(--surface-2) 82%, var(--page)); }
.experience-media-link { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.experience-media img { display: block; width: min(240px, 100%); max-height: 240px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; }
.experience-arrow { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; font-size: 29px; line-height: 1; transition: color 0.16s ease, background-color 0.16s ease; }
.experience-arrow:hover { color: var(--text); background: var(--selected-hover-surface); }
.experience-arrow.prev { left: 18px; }
.experience-arrow.next { right: 18px; }
.experience-details { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 28px 30px; text-decoration: none; }
.experience-details h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--muted); font-size: 21px; line-height: 1.15; }
.experience-details p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; white-space: pre-line; text-overflow: ellipsis; }
.experience-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: auto; padding-top: 22px; }
.experience-stat { color: var(--muted); font-size: 15px; font-weight: 600; }
.experience-stat strong { display: block; margin-top: 4px; color: var(--text); font-size: 17px; font-weight: 600; }
.experience-loading { position: absolute; inset: 0; z-index: 2; background: var(--surface-2); pointer-events: none; animation: experience-loading-fade 1s ease-in-out forwards; }
@keyframes experience-loading-fade {
  0% { opacity: 1; }
  26% { opacity: 1; }
  100% { opacity: 0; }
}
.creation-card {
  overflow: hidden;
  border-radius: 7px;
  background: transparent;
  text-decoration: none;
  transition: transform 0.16s ease;
}
.creation-card:hover { transform: none; }
.creation-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.creation-card-info { padding: 10px 0 0; }
.creation-card-title { overflow: hidden; margin: 0 0 5px; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.creation-card-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.creation-stat { display: inline-flex; align-items: center; gap: 4px; }
.creation-stat svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.creation-stat:nth-child(2) svg { fill: none; }

/* Catalog pages */
.catalog-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-header h1 { margin: 0 0 6px; font-size: 30px; }
.catalog-header p { margin: 0; color: var(--muted); font-size: 15px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-card { overflow: hidden; border-radius: 7px; background: var(--surface-2); text-decoration: none; transition: transform 0.16s ease, background-color 0.16s ease; }
.catalog-card:hover { transform: translateY(-3px); background: var(--surface-3); }
.catalog-card img, .catalog-thumb-placeholder { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-3); }
.catalog-thumb-placeholder { display: grid; place-items: center; color: var(--subtle); font-size: 13px; }
.catalog-card-body { padding: 12px 13px 14px; }
.catalog-card-title { margin: 0 0 6px; font-size: 17px; }
.catalog-card-meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; margin-bottom: 7px; color: var(--accent-hover); font-size: 12px; font-weight: 700; }

/* Detail pages */
.detail-page { max-width: 970px; min-height: calc(100vh - 104px); display: flex; flex-direction: column; margin: 0 auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.95fr); gap: 18px; align-items: stretch; }
.detail-info { display: flex; flex-direction: column; min-width: 0; padding: 8px 0 0; }
.detail-info h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.1; }
.detail-summary { margin: 0 0 10px; color: var(--description-text); font-size: 15px; line-height: 1.5; }
.detail-role { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.detail-role-label { color: var(--muted); font-weight: 400; }
.detail-role-value { color: var(--text); }
.detail-link { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; margin-top: auto; padding: 0 20px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; transition: background-color 0.16s ease, transform 0.16s ease; }
.detail-link-icon { font-size: 30px; line-height: 1; }
.detail-link:hover { background: var(--accent-hover); transform: translateY(-1px); }
.media-carousel { position: relative; min-width: 0; }
.carousel-frame { position: relative; overflow: hidden; border-radius: 7px; background: #09090b; aspect-ratio: 16 / 9; }
.carousel-media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel-item { position: absolute; inset: 0; z-index: 1; opacity: 1; transition: opacity 0.5s ease; }
.carousel-item > iframe, .carousel-item > video, .carousel-item > img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.carousel-item.is-current { z-index: 1; opacity: 1; }
.carousel-item.is-next { z-index: 0; opacity: 1; }
.carousel-item.is-fading { z-index: 2; opacity: 1; }
.carousel-item.is-fading.is-disappearing { opacity: 0; }
.carousel-button { position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(17, 18, 21, 0.78); color: #fff; cursor: pointer; font-size: 31px; line-height: 1; opacity: 0; pointer-events: none; transition: opacity 0.18s ease, color 0.12s ease, background-color 0.12s ease; }
.carousel-frame:hover .carousel-button:not([hidden]), .carousel-button:focus-visible { opacity: 1; pointer-events: auto; }
.carousel-button:hover { color: var(--text); background: rgba(17, 18, 21, 0.96); }
.carousel-button.prev { left: 14px; }
.carousel-button.next { right: 14px; }
.detail-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.detail-stat { min-width: 0; padding: 15px 12px; text-align: center; }
.detail-stat + .detail-stat { border-left: 0; }
.detail-stat span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail-stat strong { display: block; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.detail-description { margin: 25px 0 24px; color: var(--text); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.detail-description h2 { margin: 0 0 3px; font-size: 20px; line-height: 1.2; font-weight: 800; }
.detail-description > div { color: var(--description-text); }

.empty-state { padding: 40px 0; color: var(--muted); }

@media (max-width: 1100px) {
  .topnav { gap: 24px; }
  .brand { min-width: 150px; }
  .topbar { gap: 18px; }
  .sidebar { width: 250px; }
  .app-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-grid-view { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .app-shell { display: block; }
  .topbar { position: sticky; }
  .sidebar { position: static; height: auto; min-height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border); overflow-y: visible; }
  .sidebar-profile { display: none; }
  .sidebar-nav { flex-direction: row; overflow-x: auto; }
  .sidebar-link { flex: 0 0 auto; min-height: 36px; padding: 0 10px; font-size: 14px; }
  .page { min-height: auto; padding: 24px 16px 40px; }
  .topbar { gap: 10px; padding: 0 10px; }
  .brand { min-width: auto; font-size: 15px; }
  .topnav { gap: 12px; overflow: hidden; }
  .topnav a, .topnav .topnav-static { font-size: 13px; }
  .search-box { max-width: 180px; }
  .top-profile span { display: none; }
  .profile-banner { height: 220px; }
  .profile-identity { margin-top: -10px; }
  .profile-avatar { width: 88px; height: 88px; }
  .profile-name { font-size: 22px; }
  .experience-card { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .experience-details { min-height: 220px; }
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid-view { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info { min-height: 220px; }
  .detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-stat:nth-child(4) { border-left: 0; }
  .detail-stat:nth-child(n + 4) { border-top: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .topnav a:nth-child(2), .topnav a:nth-child(3) { display: none; }
  .search-box { max-width: 130px; }
  .top-action { width: 28px; }
  .robux-counter { padding: 0 3px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .profile-socials { grid-template-columns: 1fr; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-stat:nth-child(3) { border-left: 0; }
}
