.shop-screen {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.shop-hero {
  padding: 8px 16px 12px;
}

.shop-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffd966;
}

.shop-hero p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.shop-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.shop-tab {
  flex: 1;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.shop-tab.active {
  background: linear-gradient(180deg, rgba(255, 229, 102, 0.22), rgba(212, 175, 55, 0.12));
  border-color: rgba(255, 215, 0, 0.45);
  color: #ffd966;
}

.shop-panel[hidden] {
  display: none !important;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
}

.shop-card {
  background: linear-gradient(145deg, rgba(30, 24, 48, 0.95), rgba(18, 14, 32, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.shop-card-emoji {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.shop-card-info strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.shop-card-info small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.shop-card-meta {
  font-size: 11px;
  color: rgba(255, 214, 102, 0.75);
}

.shop-preview {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: 220px;
}

.shop-player {
  width: 100%;
  border-radius: 12px;
  background: #000;
  max-height: min(62vh, 480px);
}

.shop-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-buy-btn,
.shop-watch-btn {
  flex: 1;
  min-width: 120px;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.shop-buy-btn {
  background: linear-gradient(180deg, #ffe566, #d4af37);
  color: #1a0f00;
}

.shop-buy-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.shop-watch-btn {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.shop-card-owned-video .shop-actions {
  margin-top: 2px;
}

.shop-download-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(110, 231, 183, 0.45);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: #022c22;
  background: linear-gradient(180deg, #6ee7b7 0%, #2dd4bf 42%, #14b8a6 100%);
  box-shadow:
    0 4px 18px rgba(20, 184, 166, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.shop-download-btn:hover {
  filter: brightness(1.06);
  box-shadow:
    0 6px 22px rgba(20, 184, 166, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.shop-download-btn:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.shop-download-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  filter: none;
}

.shop-download-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(2, 44, 34, 0.12);
  flex-shrink: 0;
}

.shop-download-btn__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.shop-download-btn__text {
  line-height: 1;
}

.shop-badge-owned {
  display: inline-block;
  font-size: 11px;
  color: #5eead4;
  font-weight: 700;
}

.shop-badge-active {
  display: inline-block;
  font-size: 11px;
  color: #ffd966;
  font-weight: 700;
}

.shop-badge-sold {
  display: inline-block;
  font-size: 11px;
  color: #fca5a5;
  font-weight: 700;
}

.luck-card-shop .luck-card-glow {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
}

.home-shop-banner .home-luck-icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(236, 72, 153, 0.2));
}
