.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 1rem;
}

.mobile-header__burger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.2rem;
  transition: background 0.15s ease;
}

.mobile-header__burger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-header__branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(1, 183, 227, 0.4));
}

.mobile-header__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1790e1, #6dd9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-header__user {
  min-width: 40px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.is-visible {
  display: block;
  opacity: 1;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(165deg, rgba(10, 14, 24, 0.98) 0%, rgba(12, 19, 34, 0.98) 55%, rgba(9, 22, 36, 0.98) 100%);
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(1, 183, 227, 0.16), transparent 48%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.05), transparent 55%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar__branding {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sidebar__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(1, 183, 227, 0.4));
}

.sidebar__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1790e1, #6dd9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar__user {
  margin-top: auto;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar__user strong {
  font-size: 1rem;
}

.sidebar__user-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sidebar__hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.main {
  background: linear-gradient(120deg, rgba(7, 11, 20, 0.95), rgba(5, 7, 12, 0.92));
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.topbar__search {
  position: relative;
  z-index: 100;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.9);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.topbar__search .search-icon {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.topbar__search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: inherit;
  font-size: 1rem;
}

.topbar__search input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.topbar__search:focus-within {
  border-color: var(--input-border-strong);
  box-shadow: 0 0 0 2px rgba(1, 183, 227, 0.18), 0 18px 38px -24px rgba(1, 183, 227, 0.4);
  background: rgba(12, 26, 36, 0.98);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgb(18, 24, 38);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 1000;
}

.search-dropdown.is-hidden {
  display: none;
}

.search-dropdown__empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.search-dropdown__item:hover,
.search-dropdown__item.is-selected {
  background: rgba(255, 255, 255, 0.06);
}

.search-dropdown__name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__platform {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.search-dropdown__rating {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.search-dropdown__see-all {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
}

.search-dropdown__see-all:hover,
.search-dropdown__see-all.is-selected {
  background: rgba(1, 183, 227, 0.1);
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero {
  position: relative;
  padding: 2.8rem;
  border-radius: 28px;
  background: linear-gradient(130deg, rgba(1, 183, 227, 0.25), rgba(1, 183, 227, 0.08));
  border: 1px solid rgba(1, 183, 227, 0.3);
  overflow: hidden;
  box-shadow: 0 32px 70px -50px rgba(1, 183, 227, 0.8);
}

.hero h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section__header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.section__meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.home-welcome {
  text-align: center;
  margin: 0 auto 1.6rem;
  max-width: 720px;
}

.home-welcome h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.home-welcome p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 1600px) and (max-width: 2099px) {
  .creator-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) and (max-width: 2099px) {
  .browse-layout.is-filters-collapsed .creator-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 2100px) and (max-width: 2599px) {
  .creator-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 2100px) and (max-width: 2599px) {
  .browse-layout.is-filters-collapsed .creator-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 2600px) {
  .creator-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 2600px) {
  .browse-layout.is-filters-collapsed .creator-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 2100px) and (max-width: 2399px) {
  .view[data-view="home"] .creator-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .view[data-view="favorites"] .creator-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 2400px) and (max-width: 2999px) {
  .view[data-view="home"] .creator-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .view[data-view="favorites"] .creator-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 3000px) {
  .view[data-view="home"] .creator-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .view[data-view="favorites"] .creator-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
