/* ATRI PANDYA — iPod Classic · the site is the device */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: radial-gradient(120% 100% at 50% 0%, #FAFAF8 0%, #ECECEA 60%, #DEDEDC 100%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 12px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  overflow: hidden;
}

#device {
  width: min(340px, 92vw);
  background: linear-gradient(145deg, #FDFDFD 0%, #EBECEE 50%, #D3D5D9 100%);
  border-radius: 30px;
  border: 1px solid #C2C4C9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -2px 3px rgba(0, 0, 0, .06), 0 18px 50px rgba(0, 0, 0, .22);
  padding: 24px 22px 30px;
  position: relative;
}

#bezel {
  background: #000;
  border-radius: 10px;
  padding: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .6);
}

#lcd {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #EDF3F9 0%, #DDE7F1 100%);
  box-shadow: inset 0 0 10px rgba(20, 40, 70, .15);
}

#statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, #FBFDFE 0%, #C7D4E1 100%);
  border-bottom: 1px solid #9FAEBC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  color: #33404E;
}

#sb-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  padding: 0 34px;
  white-space: nowrap;
}

#sb-play { font-size: 10px; width: 30px; }

#battery {
  width: 23px;
  height: 11px;
  border: 1.5px solid #5F6B78;
  border-radius: 2.5px;
  position: relative;
  background: #E8EEF4;
}

#battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2.5px;
  width: 2.5px;
  height: 4px;
  background: #5F6B78;
  border-radius: 0 1px 1px 0;
}

#battery-fill {
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(180deg, #9FE07A, #5DBE35);
  border-radius: 1px;
  transform-origin: left;
  transition: transform 1s ease;
  transform: scaleX(1);
}

#battery.low #battery-fill {
  background: linear-gradient(180deg, #F5A6A0, #E2544A);
}

@keyframes battBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

#screen {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.menu-list { flex: 1; overflow: hidden; position: relative; }

.mrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111A24;
  border-bottom: 1px solid rgba(160, 178, 196, .35);
  box-sizing: border-box;
}

.mrow:last-child { border-bottom: none; }
.mrow .chev { color: #7A8896; font-weight: 700; }

.mrow.sel {
  background: linear-gradient(180deg, #8FBCEB 0%, #3E7DCB 55%, #2F6BB8 100%);
  color: #fff;
}

.mrow.sel .chev { color: #DCEAF9; }

.mrow .sub {
  font-weight: 400;
  font-size: 10.5px;
  color: #66727F;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mrow.sel .sub { color: #D7E6F7; }
.mrow .stars { font-size: 10px; letter-spacing: 1px; color: #66727F; }
.mrow.sel .stars { color: #EAF2FC; }

.txt {
  flex: 1;
  overflow: hidden;
  padding: 9px 10px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #1B2530;
  font-weight: 400;
}

.txt .inner { will-change: transform; }
.txt h3 { font-size: 12.5px; margin: 0 0 3px; color: #0F1822; }
.txt .meta { font-size: 10px; color: #5E6B79; margin-bottom: 7px; }
.txt p { margin: 0 0 8px; }
.txt .lnk { color: #1E5AA8; font-weight: 700; text-decoration: underline; cursor: pointer; pointer-events: auto; }
.txt .quote { font-style: italic; color: #3B4A58; }

.scroll-hint {
  position: absolute;
  right: 3px;
  top: 26px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: rgba(120, 140, 160, .25);
}

.scroll-hint b {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 2px;
  background: rgba(70, 100, 140, .55);
  display: block;
}

.cf {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0C0E 0%, #17181B 100%);
}

.cf-stage { position: absolute; inset: 0; perspective: 520px; }

.cf-item {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 41%;
  aspect-ratio: 1 / 1;
  margin-left: -20.5%;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.25, .9, .3, 1), filter .45s ease;
  will-change: transform;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  -webkit-box-reflect: below 2px linear-gradient(transparent 72%, rgba(255, 255, 255, .14));
}

.cf-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  text-align: center;
  color: #EDEFF2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  z-index: 5;
}

.cf-count {
  position: absolute;
  top: 5px;
  right: 8px;
  color: #8C929B;
  font-size: 9px;
  font-weight: 700;
}

.gal { flex: 1; position: relative; background: #0B0C0E; overflow: hidden; }

.gal-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .35s ease;
}

.gal-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 17px;
  background: none;
  color: #9AA1AA;
  font-size: 8.5px;
  font-weight: 700;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 6;
}

.hintline {
  height: 17px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7A8896;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(200, 214, 228, .5));
  border-top: 1px solid rgba(160, 178, 196, .4);
  text-transform: uppercase;
}

.cf .hintline,
.gal .hintline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 11, 13, .7);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9AA1AA;
}

.gal .hintline {
  border-top: none;
}

#boot {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#bootMark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0;
  animation: bootin 1.1s ease forwards .25s;
}

#bootMark .boot-owner {
  font-size: 12px;
  font-weight: 400;
  color: #B9BDC4;
  letter-spacing: .02em;
}

#bootMark span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

@keyframes bootin {
  0% { opacity: 0; transform: scale(.92); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; }
}

#wheelWrap { display: flex; justify-content: center; margin-top: 26px; }

#wheel {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(160deg, #FAFBFC 0%, #DFE1E5 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .9), inset 0 -2px 4px rgba(0, 0, 0, .14), 0 1px 4px rgba(0, 0, 0, .12);
  cursor: grab;
  touch-action: none;
}

#wheel:active { cursor: grabbing; }

.wlabel {
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: #98A0A9;
  letter-spacing: .05em;
  pointer-events: none;
}

.wl-menu { top: 14px; left: 50%; transform: translateX(-50%); }
.wl-play { bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 11px; }
.wl-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; }
.wl-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; }

#centerBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(160deg, #F1F3F5, #D6D9DD);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(255, 255, 255, .85);
  cursor: pointer;
}

#centerBtn:active { background: linear-gradient(160deg, #E3E6E9, #CBCFD4); }

#underRow {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8A8F96;
}

#underRow button,
#underRow a {
  all: unset;
  cursor: pointer;
  color: #6E747C;
  border-bottom: 1px solid #C6C9CE;
  padding-bottom: 2px;
  letter-spacing: .14em;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  touch-action: manipulation;
}

#underRow button:hover,
#underRow a:hover {
  color: #2B2F34;
  border-color: #2B2F34;
}

@media (max-width: 480px) {
  html, body {
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
  }
  body {
    position: fixed;
    inset: 0;
    width: 100%;
    padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  #device { width: min(96vw, 390px); padding: 20px 18px 26px; }
  #wheelWrap { margin-top: 22px; }
  #wheel { width: 236px; height: 236px; }
  #centerBtn { width: 88px; height: 88px; }
  .wlabel { font-size: 13px; }
  .mrow { font-size: 15px; }
  #statusbar { font-size: 13px; }
  .hintline { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-item { transition: none; }
  #bootMark { animation: none; opacity: 1; }
}
