/* =========================================================
   Music Mini App - Exact Figma Mockup with Phone Frame
   Resolution: 393 x 852
   Font: Manrope
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  background-color: #0c0c0d;
  font-family: 'Manrope', -apple-system, sans-serif;
  color: #FFFFFF;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* =========================================================
   CONTAINER: FITS WINDOW CLEANLY
   ========================================================= */
.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background-color: #1A1A1A;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ON DESKTOP: KEEP CONTENT NEAT & CENTERED IN WINDOW */
@media (min-width: 769px) {
  .ios-status-bar,
  .ios-home-indicator {
    display: none;
  }

  .main-content {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
}

/* iOS STATUS BAR */
.ios-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 150;
  pointer-events: none;
}

.status-time {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  margin-left: 6px;
  margin-top: 4px;
}

.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 35px;
  background-color: #000000;
  border-radius: 20px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  margin-top: 4px;
}

/* iOS HOME INDICATOR LINE */
.ios-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background-color: #FFFFFF;
  opacity: 0.65;
  border-radius: 10px;
  z-index: 150;
  pointer-events: none;
}

/* =========================================================
   MAIN SCROLLABLE CONTENT
   ========================================================= */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* SECTIONS */
.section {
  display: flex;
  flex-direction: column;
}

/* TITLE: ТВОИ МИКСЫ (Figma top: 69, left: 13, size: 20, weight: 800) */
.title-mixes {
  margin-top: 69px;
  margin-left: 13px;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

/* TITLE: ПОПУЛЯРНО (Figma top: 363, left: 13, size: 19, weight: 700) */
.title-popular {
  margin-top: 40px;
  margin-left: 13px;
  margin-bottom: 25px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

/* HORIZONTAL CARDS ROW (gap: 21px, left padding: 13px) */
.cards-row {
  display: flex;
  gap: 21px;
  padding-left: 13px;
  padding-right: 13px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cards-row::-webkit-scrollbar {
  display: none;
}

/* INDIVIDUAL CARD (140x140, r: 19) */
.card {
  flex: 0 0 140px;
  width: 140px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card-img {
  width: 140px;
  height: 140px;
  border-radius: 19px;
  object-fit: cover;
  display: block;
  background-color: #222222;
}

/* CARD TITLE (left: 13, top: 257, size: 14, weight: 600) */
.card-title {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CARD SUBTITLE (left: 13, top: 279, size: 12, weight: 500, color: rgba(255, 255, 255, 0.38)) */
.card-subtitle {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  line-height: 15px;
}

/* SPACE AT BOTTOM FOR FLOATING CONTROLS */
.bottom-padding {
  height: 195px;
}

/* =========================================================
   FLOATING BOTTOM CONTROLS
   Mini-Player (Rectangle 11: 348x60, r: 77, #151515)
   Tab Bar (Rectangle 8: 348x83, r: 77.07, #151515)
   Gap between: 10px
   Bottom offset: 22px
   ========================================================= */
.bottom-controls {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  pointer-events: none;
}

/* MINI-PLAYER (348 x 60 px) */
.mini-player {
  pointer-events: auto;
  width: 348px;
  height: 60px;
  background-color: #151515;
  border-radius: 77px;
  display: flex;
  align-items: center;
  padding: 6px;
  cursor: pointer;
}

.mini-player-cover {
  width: 48px;
  height: 48px;
  border-radius: 77px; /* circular */
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.mini-player-text {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mini-player-title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-artist {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  margin-right: 18px;
  margin-left: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-play {
  width: 20px;
  height: 20px;
  display: block;
}

/* TAB BAR (348 x 83 px, r: 77.07) */
.tabbar {
  pointer-events: auto;
  position: relative;
  width: 348px;
  height: 83px;
  background-color: #151515;
  border-radius: 77.07px;
}

/* ACTIVE PILL INDICATOR (100 x 71 px, r: 78, #262626) */
.tab-indicator {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 100px;
  height: 71px;
  background-color: #262626;
  border-radius: 78px;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

/* TAB BUTTONS (EXACT CENTERING OVER INDICATOR SLOTS)
   Slot 1: left 6px,   width 100px -> center is 56px
   Slot 2: left 124px, width 100px -> center is 174px (exact middle of 348px bar)
   Slot 3: left 242px, width 100px -> center is 292px (exact 6px from right edge)
*/
.tab-btn {
  position: absolute;
  top: 6px;
  width: 100px;
  height: 71px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

#tab0 {
  left: 6px;
}

#tab1 {
  left: 124px;
}

#tab2 {
  left: 242px;
}

.tab-svg {
  width: 34px;
  height: 34px;
  display: block;
}
