/* Layar utama: grid ikon, widget, dock */

.home {
  z-index: 2;
  padding: 58px 22px 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.12);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.35s,
    filter 0.35s;
}
.home.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.home.behind {
  transform: scale(0.92);
  filter: blur(2px) brightness(0.9);
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  justify-content: space-between;
  row-gap: 22px;
  grid-auto-flow: dense;
}
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 64px;
}
.icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s,
    filter 0.15s;
}
.app-icon:active .icon {
  transform: scale(0.9);
  filter: brightness(0.85);
}
.icon > svg {
  width: 36px;
  height: 36px;
}
.label {
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ff3b30;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.widget {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 22px;
  text-align: left;
  padding: 14px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 152px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.w-weather {
  background: linear-gradient(170deg, #4aa3ff, #2165d8);
}
.ww-city {
  font-size: 14px;
  font-weight: 600;
}
.ww-temp {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.05;
}
.ww-icon svg {
  width: 20px;
  height: 20px;
  color: #ffd34d;
  margin-top: auto;
}
.ww-desc {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.ww-hl {
  font-size: 13px;
  opacity: 0.9;
}
.ww-icon {
  margin-top: auto;
}
/* Halaman layar utama (geser kiri/kanan) */
.home-pages {
  display: flex;
  margin: 0 -22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}
.home-pages::-webkit-scrollbar {
  display: none;
}
.home-pages > .home-grid {
  flex: 0 0 100%;
  align-content: start;
  padding: 0 22px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.home-dots {
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.home-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s;
}
.home-dots i.on {
  background: #fff;
}

/* Widget YouTube Music */
.w-music {
  position: relative;
  overflow: hidden;
  background: #222;
}
.wm-bg {
  position: absolute;
  inset: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  filter: blur(18px) brightness(0.55);
}
.w-music > *:not(.wm-bg) {
  position: relative;
}
.wm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.wm-top img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.wm-logo svg {
  width: 22px;
  height: 22px;
}
.wm-label {
  margin-top: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0.75;
}
.w-music b,
.w-music small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-music b {
  font-size: 14px;
}
.w-music small {
  font-size: 13px;
  opacity: 0.8;
}
.dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 92px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
}
