* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0b0c10; color: #f2f2f2; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
#root { min-height: 100vh; }

.loading { display: flex; align-items: center; justify-content: center; height: 100vh; font-size: 1.2rem; color: #aaa; }

.app { display: flex; flex-direction: column; min-height: 100vh; }

.header { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid #1e2028; flex-wrap: wrap; gap: 12px; }
.header h1 { margin: 0; font-size: 1.4rem; letter-spacing: 0.5px; }

.tabs { display: flex; gap: 10px; }
.tab { background: #14151c; border: 1px solid #2a2c38; color: #ccc; padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 0.9rem; transition: all 0.15s ease; }
.tab:hover { background: #1c1e28; }
.tab-active { background: #1c1e28; font-weight: 600; }

.main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 40px 32px; flex-wrap: wrap; }

.wheel-outer { position: relative; width: 560px; height: 560px; flex-shrink: 0; }
.wheel { position: absolute; inset: 0; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.wheel-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 92px; height: 138px;
  margin: -69px 0 0 -46px;
  border-radius: 8px;
  border: 3px solid transparent;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #14151c;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  opacity: 0.65;
}
.wheel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wheel-item-selected { opacity: 1; box-shadow: 0 8px 24px rgba(0,0,0,0.6); z-index: 5; transform-origin: center; }
.wheel-item-selected { width: 120px; height: 180px; margin: -90px 0 0 -60px; }
.poster-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; text-align: center; padding: 6px; color: #999; }

.wheel-center {
  position: absolute; top: 50%; left: 50%; width: 140px; height: 140px;
  margin: -70px 0 0 -70px; border-radius: 50%; border: 2px dashed;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.85rem; color: #ddd; padding: 10px;
  background: radial-gradient(circle, #14151c 0%, #0b0c10 100%);
}

.detail { position: relative; max-width: 560px; border-radius: 16px; overflow: hidden; background: #14151c; border: 1px solid #22242e; }
.detail-backdrop { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.18; filter: blur(1px); }
.detail-content { position: relative; padding: 28px; }
.detail-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.detail-nav button { background: #1c1e28; border: 1px solid #2a2c38; color: #f2f2f2; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.detail-nav button:hover { background: #262835; }
.detail-position { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }

.detail h2 { margin: 0 0 12px; font-size: 1.6rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font-size: 0.78rem; border: 1px solid #333; border-radius: 999px; padding: 4px 12px; color: #ccc; }
.detail-overview { color: #c6c6c6; line-height: 1.55; margin-bottom: 22px; font-size: 0.95rem; }

.status-badge { display: inline-block; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; color: #0b0c10; }
.status-available { color: #fff; }
.status-processing { background: #3a2f0f; color: #f6c453; }
.status-pending { background: #23324a; color: #7fb0ff; }
.status-unknown { background: #2a2a2a; color: #999; }

@media (max-width: 720px) {
  .wheel-outer { width: 320px; height: 320px; }
  .wheel-item { width: 60px; height: 90px; margin: -45px 0 0 -30px; }
  .wheel-item-selected { width: 78px; height: 117px; margin: -58px 0 0 -39px; }
}
