.nmw-app {
  --nmw-text: #3f4249;
  --nmw-muted: #8c919b;
  --nmw-line: rgba(72, 89, 112, .14);
  --nmw-green: #4c956c;
  --nmw-violet: #7b5cff;
  --nmw-red: #e14f52;
  --nmw-blue: #347ee8;
  display: grid;
  gap: 16px;
  color: var(--nmw-text);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.nmw-card {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 8px;
  border: 1px solid rgba(130, 146, 170, .22);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 40px rgba(45, 55, 75, .12);
}

.nmw-glass {
  background:
    linear-gradient(135deg, rgba(229, 240, 255, .92), rgba(255, 240, 249, .88) 55%, rgba(236, 250, 245, .9)),
    rgba(255, 255, 255, .8);
}

.nmw-clock {
  padding: 34px 24px 28px;
  text-align: center;
  border-top: 4px solid #9e7cff;
}

.nmw-eyes {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.nmw-eye {
  width: 76px;
  height: 76px;
  border: 4px solid rgba(76, 149, 108, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  display: grid;
  place-items: center;
}

.nmw-pupil {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #353840;
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform .12s ease;
}

.nmw-pupil::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 5px 0 0 8px;
  border-radius: 50%;
  background: #fff;
}

.nmw-clock-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
}

.nmw-clock-subtitle {
  margin: 14px 0 22px;
  color: var(--nmw-muted);
  font-size: 18px;
  font-weight: 700;
}

.nmw-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, .18);
  background: rgba(255, 255, 255, .54);
  color: var(--nmw-violet);
  font-weight: 800;
}

.nmw-time {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: clamp(34px, 14cqw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.nmw-time span {
  color: var(--nmw-violet);
}

.nmw-date {
  margin-top: 16px;
  color: var(--nmw-muted);
  font-size: 22px;
  font-weight: 800;
}

.nmw-panel {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.9)),
    #fff;
}

.nmw-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 900;
}

.nmw-head-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(76, 149, 108, .1);
  color: var(--nmw-green);
  font-size: 18px;
}

.nmw-head em {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(52, 126, 232, .08);
  color: var(--nmw-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.nmw-market-grid {
  display: grid;
  gap: 10px;
}

.nmw-market-section {
  padding: 13px;
  border: 1px solid rgba(72, 89, 112, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.nmw-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 900;
}

.nmw-row-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nmw-row-head small {
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(76, 149, 108, .08);
  color: var(--nmw-green);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.nmw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nmw-green);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(76, 149, 108, .08);
}

.nmw-dot.gold { background: #d6b64c; }
.nmw-dot.red { background: var(--nmw-red); }

.nmw-market-empty,
.nmw-market-loading {
  min-height: 62px;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 4px;
  color: var(--nmw-muted);
  font-size: 15px;
  font-weight: 800;
}

.nmw-market-empty b,
.nmw-oil-output b {
  color: var(--nmw-text);
  font-size: 16px;
  line-height: 1.2;
}

.nmw-market-empty span,
.nmw-oil-output span {
  color: var(--nmw-muted);
  font-size: 13px;
  font-weight: 700;
}

.nmw-select {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--nmw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--nmw-text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.nmw-oil-output {
  min-height: 56px;
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(72, 89, 112, .14);
  background: rgba(247, 249, 252, .72);
  display: grid;
  align-content: center;
  place-items: center;
  gap: 4px;
  color: var(--nmw-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.nmw-market-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.nmw-market-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(72, 89, 112, .14);
  font-size: 14px;
}

.nmw-market-item strong {
  color: var(--nmw-text);
}

.nmw-market-item span {
  color: var(--nmw-green);
  font-weight: 900;
}

.nmw-ip {
  padding: 26px 34px 30px;
  text-align: center;
  border-top: 4px solid #5d9a74;
}

.nmw-ip-host {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(76, 149, 108, .16);
  background: rgba(255, 255, 255, .46);
  color: var(--nmw-muted);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
}

.nmw-ip-host span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmw-ip-value {
  margin-top: 24px;
  font-size: clamp(30px, 10cqw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  word-break: break-all;
}

.nmw-ip-loc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 20px auto 24px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(76, 149, 108, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(76, 149, 108, .08));
  color: var(--nmw-green);
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
}

.nmw-ip-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--nmw-line);
}

.nmw-ip-chip {
  min-height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border: 1px solid var(--nmw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.nmw-ip-chip span {
  color: var(--nmw-muted);
  font-size: 12px;
  font-weight: 800;
}

.nmw-ip-chip strong {
  color: var(--nmw-text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  word-break: break-word;
}

.nmw-ads {
  padding: 0;
  background: #fff;
}

.nmw-ad-stage {
  position: relative;
  min-height: 380px;
  aspect-ratio: 4 / 5;
}

.nmw-ad-slide {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 8px;
  background: #fff;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.nmw-ad-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(25, 35, 52, .06);
}

.nmw-ad-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.nmw-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  margin: 0;
}

.nmw-dot-btn {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(76, 149, 108, .18);
}

.nmw-dot-btn.active {
  background: var(--nmw-green);
}

.nmw-dance {
  position: relative;
  aspect-ratio: 9 / 14;
  min-height: 430px;
  border: 1px solid rgba(12, 15, 22, .85);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .08), transparent 28%),
    #050506;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.nmw-dance-stage {
  position: absolute;
  inset: 0;
  transition: transform .22s ease-out;
  will-change: transform;
}

.nmw-dance video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: opacity .28s ease;
}

.nmw-dance-video-hidden {
  opacity: 0;
}

.nmw-dance-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), transparent 24%, transparent 64%, rgba(0,0,0,.5)),
    linear-gradient(90deg, rgba(0,0,0,.16), transparent 42%, rgba(0,0,0,.14));
  pointer-events: none;
}

.nmw-dance-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  pointer-events: none;
}

.nmw-dance-title,
.nmw-dance-menu-wrap {
  pointer-events: auto;
}

.nmw-dance-title {
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px 0 8px;
  background: rgba(10, 12, 17, .68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  cursor: pointer;
}

.nmw-dance-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .76);
  box-shadow: inset 0 0 0 3px rgba(255, 47, 88, .92);
}

.nmw-dance-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  pointer-events: none;
}

.nmw-dance-mode-tip {
  max-width: 62px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .26);
  color: #ffdd67;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.nmw-dance-menu-wrap {
  position: relative;
}

.nmw-dance-category {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(24, 27, 34, .72);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 20px rgba(0,0,0,.18);
  cursor: pointer;
}

.nmw-dance-category {
  position: relative;
  max-width: 94px;
  padding: 0 24px 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nmw-dance-category::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,.82);
  border-bottom: 2px solid rgba(255,255,255,.82);
  transform: translateY(-65%) rotate(45deg);
}

.nmw-dance-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 5;
  display: none;
  width: 132px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(9, 10, 12, .92);
  box-shadow: 0 18px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}

.nmw-dance-menu.show {
  display: grid;
  gap: 3px;
}

.nmw-dance-option {
  height: 31px;
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.nmw-dance-option:hover,
.nmw-dance-option.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nmw-dance-side {
  position: absolute;
  right: 8px;
  bottom: 76px;
  z-index: 5;
  display: grid;
  gap: 16px;
  pointer-events: auto;
}

.nmw-dance-action {
  width: 48px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 4px 0;
  display: grid;
  place-items: center;
  gap: 2px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
}

.nmw-dance-action:active {
  transform: scale(.9);
}

.nmw-dance-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .86));
}

.nmw-dance-next svg {
  fill: currentColor;
  stroke: none;
}

.nmw-dance-action span {
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

.nmw-dance-action.is-muted,
.nmw-dance-action.is-liked,
.nmw-dance-action.is-loop {
  color: #ff2d55;
}

.nmw-dance-footer {
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}

.nmw-dance:hover .nmw-dance-footer {
  opacity: 1;
  transform: translateY(0);
}

.nmw-dance-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  pointer-events: none;
}

.nmw-dance-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .16);
  border-left-color: #ff2d55;
  border-radius: 50%;
  animation: nmwDanceSpin .8s linear infinite;
  display: none;
}

@keyframes nmwDanceSpin {
  to {
    transform: rotate(360deg);
  }
}

.nmw-play {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, .9);
  color: #15171d;
  font-size: 22px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  pointer-events: auto;
  cursor: pointer;
}

.nmw-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.nmw-play.show {
  display: grid;
}

@media (max-width: 640px) {
  .nmw-panel,
  .nmw-ip,
  .nmw-clock {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nmw-clock-title {
    font-size: 30px;
  }

  .nmw-clock-subtitle,
  .nmw-date {
    font-size: 17px;
  }

  .nmw-ip-meta {
    grid-template-columns: 1fr;
  }

  .nmw-ad-stage {
    min-height: 390px;
  }
}

@container (max-width: 360px) {
  .nmw-clock {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .nmw-eyes {
    gap: 12px;
    margin-bottom: 16px;
  }

  .nmw-eye {
    width: 58px;
    height: 58px;
    border-width: 3px;
  }

  .nmw-pupil {
    width: 20px;
    height: 20px;
  }

  .nmw-pupil::after {
    width: 6px;
    height: 6px;
    margin: 4px 0 0 7px;
  }

  .nmw-clock-title {
    font-size: 28px;
  }

  .nmw-clock-subtitle {
    font-size: 15px;
    line-height: 1.55;
  }

  .nmw-clock-badge {
    height: 34px;
    padding: 0 18px;
  }

  .nmw-date {
    font-size: 16px;
  }

  .nmw-head {
    font-size: 23px;
  }

}
