/* App screens — fidelity mockups (Flutter app layout) */
.app-screens-section {
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 55%);
  overflow: hidden;
}
.app-screens-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}
.app-screens-lead {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.app-screens-stage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.25rem 0.75rem;
  padding: 0.5rem 0 1rem;
}
.app-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  flex-shrink: 0;
}
/* Tilt on wrapper — rotating .app-phone-bezel clips rounded corners (square artifacts). */
.app-phone-tilt {
  width: 100%;
  transform-origin: center bottom;
  transition: transform 0.35s ease;
  will-change: transform;
}
.app-phone-tilt--1 { transform: rotate(-4deg); }
.app-phone-tilt--2 { transform: rotate(2deg) translateY(-14px); }
.app-phone-tilt--3 { transform: rotate(-2deg); }
.app-phone-tilt--4 { transform: rotate(3deg) translateY(-10px); }
.app-phone:hover .app-phone-tilt {
  transform: translateY(-10px) rotate(0deg);
}
.app-phone-bezel {
  position: relative;
  width: 100%;
  height: 458px;
  padding: 0.35rem;
  border-radius: 2.1rem;
  border: 1px solid rgba(0, 212, 255, 0.38);
  background: linear-gradient(145deg, #1a2030 0%, #0d1018 100%);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.22), 0 28px 56px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.app-phone-notch-sm {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  z-index: 20;
  width: 4.75rem;
  height: 1rem;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
  pointer-events: none;
}
.app-phone-ui {
  width: 100%;
  height: 100%;
  border-radius: 1.7rem;
  overflow: hidden;
  background: #07090f;
  position: relative;
  color: #eff2f7;
  font-size: 0.58rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.app-phone-caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon);
}

/* Shell: scroll area grows; dock (mini + nav) pinned to phone bottom */
.app-ui-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  direction: ltr; /* LTR flex column keeps dock at physical bottom */
}
.app-ui-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  direction: rtl;
  padding-bottom: 0.15rem;
  -webkit-mask-image: linear-gradient(#000 92%, transparent 100%);
  mask-image: linear-gradient(#000 92%, transparent 100%);
}
.app-ui-dock {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  direction: rtl;
}
.app-ui-appbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.2rem;
  padding: 1.55rem 0.45rem 0.3rem;
}
.app-ui-appbar--center {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: 1.65rem;
}
.app-ui-welcome {
  font-size: 0.5rem;
  font-weight: 800;
  color: #eff2f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-ui-appbar-title {
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  color: #eff2f7;
}
.app-ui-coins-badge {
  justify-self: end;
  font-size: 0.48rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  border: 1px solid rgba(232, 197, 71, 0.45);
  color: #e8c547;
  background: rgba(232, 197, 71, 0.1);
}
.app-ui-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem 0.2rem;
  font-size: 0.52rem;
  font-weight: 800;
  color: #eff2f7;
}
.app-ui-section-hd--row { margin-top: 0.15rem; }
.app-ui-more,
.app-ui-muted-count {
  font-size: 0.42rem;
  font-weight: 800;
  color: var(--neon);
}
.app-ui-muted-count { color: var(--muted); }

/* Home carousel */
.app-ui-carousel {
  margin: 0 0.45rem 0.35rem;
  height: 4.6rem;
  border-radius: 0.55rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: #10131b;
}
.app-ui-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.app-ui-carousel-slide.is-active { opacity: 1; z-index: 1; }
.app-ui-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.55rem;
}
.app-ui-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.35rem 0.4rem;
  z-index: 2;
}
.app-ui-carousel-title {
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.app-ui-carousel-meta {
  font-size: 0.4rem;
  color: var(--neon);
  margin-bottom: 0.1rem;
}
.app-ui-carousel-dots {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.2rem;
  z-index: 3;
}
.app-ui-carousel-dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}
.app-ui-carousel-dot.is-active {
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
}

.app-ui-search-fake,
.app-ui-search-real {
  margin: 0 0.45rem 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.46rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.app-ui-search-ico { color: var(--neon); font-size: 0.55rem; }

/* Genre chips */
.app-ui-genre-scroll {
  display: flex;
  gap: 0.3rem;
  padding: 0 0.45rem 0.35rem;
  overflow: hidden;
}
.app-ui-genre-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 2.6rem;
  padding: 0.25rem 0.2rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  background: rgba(16, 19, 27, 0.9);
}
.app-ui-genre-chip.is-active {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
}
.app-ui-genre-chip span:first-child {
  font-size: 0.65rem;
  line-height: 1;
}
.app-ui-genre-chip b {
  font-size: 0.38rem;
  font-weight: 800;
  color: var(--muted);
}

/* Landscape poster row (16:11) */
.app-ui-poster-row {
  display: flex;
  gap: 0.3rem;
  padding: 0 0.45rem 0.4rem;
  overflow: hidden;
}
.app-ui-poster {
  flex: 0 0 4.5rem;
  position: relative;
}
.app-ui-poster-cover {
  width: 4.5rem;
  height: 3.1rem;
  border-radius: 0.4rem;
  object-fit: cover;
  display: block;
  background: #1a2030;
  border: 1px solid rgba(0, 212, 255, 0.12);
}
.app-ui-poster-play {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.92);
  color: #000;
  font-size: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.app-ui-poster-dur {
  position: absolute;
  right: 0.15rem;
  bottom: 1.35rem;
  font-size: 0.34rem;
  font-weight: 800;
  padding: 0.08rem 0.2rem;
  border-radius: 0.2rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.app-ui-poster-lock {
  position: absolute;
  left: 0.15rem;
  top: 0.15rem;
  font-size: 0.4rem;
}
.app-ui-poster-title {
  margin-top: 0.15rem;
  font-size: 0.38rem;
  font-weight: 800;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-ui-poster-progress {
  margin-top: 0.12rem;
  height: 2px;
  border-radius: 99px;
  background: rgba(0, 212, 255, 0.15);
  overflow: hidden;
}
.app-ui-poster-progress > span {
  display: block;
  height: 100%;
  background: var(--neon);
}

/* Explore / library list tiles */
.app-ui-list-tiles {
  padding: 0 0.4rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.app-ui-tile {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
}
.app-ui-tile-cover-wrap {
  position: relative;
  flex-shrink: 0;
}
.app-ui-tile-cover {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  object-fit: cover;
  background: #1a2030;
  border: 1px solid rgba(0, 212, 255, 0.12);
}
.app-ui-tile-dur {
  position: absolute;
  right: 0.08rem;
  bottom: 0.08rem;
  font-size: 0.3rem;
  font-weight: 800;
  padding: 0.05rem 0.12rem;
  border-radius: 0.15rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
}
.app-ui-tile-body { flex: 1; min-width: 0; }
.app-ui-tile-title {
  font-size: 0.44rem;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-ui-tile-sub {
  font-size: 0.36rem;
  color: var(--muted);
  margin-top: 0.05rem;
}
.app-ui-tile-play {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
}

/* Library */
.app-ui-vip-card {
  margin: 0 0.45rem 0.4rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(26, 43, 59, 0.6);
  background: linear-gradient(135deg, #122033 0%, rgba(16, 19, 27, 0.95) 100%);
  font-size: 0.44rem;
  line-height: 1.45;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}
.app-ui-vip-card::before {
  content: "★";
  color: var(--neon);
  font-size: 0.55rem;
}
.app-ui-empty {
  margin: 0 0.5rem 0.5rem;
  font-size: 0.42rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Mini player */
.app-ui-mini {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 19, 27, 0.98);
  direction: ltr;
}
.app-ui-mini-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.app-ui-mini-progress > span {
  display: block;
  height: 100%;
  background: var(--neon);
}
.app-ui-mini-body {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
}
.app-ui-mini-cover {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.3rem;
  object-fit: cover;
  background: #1a2030;
}
.app-ui-mini-title {
  flex: 1;
  font-size: 0.42rem;
  font-weight: 800;
  text-align: left;
  direction: rtl;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-ui-mini-ctrl {
  display: flex;
  gap: 0.2rem;
  font-size: 0.5rem;
  color: #eff2f7;
}
.app-ui-mini-ctrl .neon { color: var(--neon); }

/* Bottom tab bar inside phone mock — override global nav.site-nav rules */
.app-ui-nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 1 !important;
  padding: 0 !important;
  flex-shrink: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 2.35rem;
  border-top: 1px solid rgba(26, 43, 59, 0.8);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.6) 0%, #07090f 100%);
}
.app-ui-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  color: var(--muted);
  font-size: 0.38rem;
}
.app-ui-nav-item i {
  font-style: normal;
  font-size: 0.62rem;
  line-height: 1;
}
.app-ui-nav-item b {
  font-weight: 800;
  font-size: 0.36rem;
}
.app-ui-nav-item.is-active {
  color: var(--neon);
}
.app-ui-nav-item.is-active::after {
  content: "";
  width: 0.9rem;
  height: 2px;
  margin-top: 1px;
  background: var(--neon);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.6);
  border-radius: 99px;
}

/* Full player */
.app-ui-player { color: #f5f7fa; }
.app-ui-player-bg {
  position: absolute;
  inset: -12%;
  background: linear-gradient(165deg, #1a2540 0%, #07090f 100%);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.12);
}
.app-ui-player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.app-ui-player-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1.45rem 0.45rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.app-ui-player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.app-ui-bookmark { color: var(--neon); }
.app-ui-player-cover-wrap {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0.1rem auto 0.25rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.45);
}
.app-ui-player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-ui-dur-badge {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  font-size: 0.36rem;
  font-weight: 800;
  padding: 0.1rem 0.22rem;
  border-radius: 0.2rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.app-ui-player-title {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  direction: rtl;
}
.app-ui-player-tags,
.app-ui-player-queue {
  text-align: center;
  margin: 0.12rem 0 0;
  font-size: 0.42rem;
}
.app-ui-player-tags { color: #9ca3af; }
.app-ui-player-queue { color: var(--neon); }
.app-ui-seek {
  position: relative;
  height: 3px;
  margin: 0.45rem 0 0.2rem;
  border-radius: 99px;
  background: rgba(0, 212, 255, 0.2);
}
.app-ui-seek-fill {
  width: 32%;
  height: 100%;
  border-radius: inherit;
  background: var(--neon);
}
.app-ui-seek-thumb {
  position: absolute;
  left: 32%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
.app-ui-player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.38rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
.app-ui-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.55rem;
  margin-bottom: 0.35rem;
}
.app-ui-play-main {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--neon);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.55);
  margin: 0 0.15rem;
}
.app-ui-skip {
  font-size: 0.4rem;
  font-weight: 800;
  min-width: 1rem;
  text-align: center;
}
.app-ui-player-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: auto;
  direction: rtl;
}
.app-ui-player-chips span {
  font-size: 0.38rem;
  font-weight: 800;
  padding: 0.18rem 0.38rem;
  border-radius: 99px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.06);
  color: #eff2f7;
}

.app-screens-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1.1rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .app-screens-strip { grid-template-columns: repeat(4, 1fr); }
  .app-screens-stage { gap: 1.35rem; }
}
.app-screens-strip-item {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.app-screens-strip-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--neon);
  margin-bottom: 0.2rem;
}
