*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  touch-action: manipulation;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button  { cursor: pointer; border: none; background: none; color: inherit; }
a       { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }
ul      { list-style: none; }

#app {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: opacity, transform;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
}

.scroll-y {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-y::-webkit-scrollbar { display: none; }


.city-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--c-surface2);
  border: 1.5px solid var(--c-border2);
  border-radius: var(--r-sm);
  overflow: hidden;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.city-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--c-text);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--c-border);
}

.city-option:last-child { border-bottom: none; }

.city-option:hover,
.city-option.is-active {
  background: var(--c-accent-dim);
  color: var(--c-accent);
}

.city-option svg { color: var(--c-muted); flex-shrink: 0; }

.city-option:hover svg,
.city-option.is-active svg { color: var(--c-accent); }

.city-loading {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--c-muted);
}

#main-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--c-border);
}

.navbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.navbar__item.is-active { color: var(--c-accent); }
.navbar__item i { font-size: 20px; }

.navbar__post {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080808;
  font-size: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.navbar__post:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--c-accent-glow);
}

/* Custom playlist / music-collection icon */
.fa-playlist,
.fa-list-music {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  vertical-align: -0.125em;
  font-style: normal;
  line-height: 1;
}
.fa-playlist::before,
.fa-list-music::before {
  content: "" !important;
  display: none !important;
}


/* ── Revrnu Brand Logo Icon SVG ─────────────────────────────── */
.brand-icon-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.brand-icon-svg--light {
  display: block;
}

.brand-icon-svg--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .brand-icon-svg--light {
    display: none;
  }
  .brand-icon-svg--dark {
    display: block;
  }
}

[data-theme="dark"] .brand-icon-svg--light,
.dark .brand-icon-svg--light,
.dark-theme .brand-icon-svg--light {
  display: none !important;
}

[data-theme="dark"] .brand-icon-svg--dark,
.dark .brand-icon-svg--dark,
.dark-theme .brand-icon-svg--dark {
  display: block !important;
}

[data-theme="light"] .brand-icon-svg--light,
.light .brand-icon-svg--light,
.light-theme .brand-icon-svg--light {
  display: block !important;
}

[data-theme="light"] .brand-icon-svg--dark,
.light .brand-icon-svg--dark,
.light-theme .brand-icon-svg--dark {
  display: none !important;
}
