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

/* === Colors === */
:root {
  --bg: #0a0a0f;
  --card: #12121a;
  --border: #1e1e2e;
  --text: #e0e0e0;
  --text-dim: #8888a0;
  --primary: #00f0ff;
  --accent: #ff2d78;
  --rating-s: #ffd700;
  --rating-a: #00ff88;
  --rating-b: #00aaff;
  --rating-c: #ff6600;
  --glow-primary: 0 0 20px rgba(0, 240, 255, 0.3);
  --glow-accent: 0 0 20px rgba(255, 45, 120, 0.3);
}

/* === Base === */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0a14 50%, #0a0a0f 100%);
}

.container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Loading === */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--text-dim);
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === Error === */
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--accent);
  text-align: center;
  padding: 40px 20px;
}

/* === Content === */
.content { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hidden { display: none !important; }

/* === Media === */
.media-section {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--glow-accent);
}

.cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.cover-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 45, 120, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 40px rgba(255, 45, 120, 0.7); }

.video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* === Score === */
.score-section {
  text-align: center;
  padding: 16px 0;
}

.section-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.section-label:first-child {
  margin-top: 0;
}

.rank-value {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.rating {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--rating-s);
  text-shadow: 0 0 40px currentColor;
}

.score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.rating[data-rating="S"] { color: var(--rating-s); }
.rating[data-rating="A"] { color: var(--rating-a); }
.rating[data-rating="B"] { color: var(--rating-b); }
.rating[data-rating="C"] { color: var(--rating-c); }

.score-value {
  display: inline;
  font-size: 56px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.score-unit {
  font-size: 18px;
  color: var(--text-dim);
  margin-left: 4px;
}

/* === Info === */
.info-section {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  font-size: 14px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* === CTA === */
.cta-section {
  text-align: center;
  padding: 8px 0;
}

.cta-section p {
  font-size: 14px;
  color: var(--text-dim);
}

/* === Share Buttons === */
.share-buttons {
  width: 100%;
  text-align: center;
  padding: 12px 0 4px;
}

.share-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.share-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  font-family: inherit;
}

.share-btn:active {
  transform: scale(0.96);
}

.share-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-whatsapp {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:active {
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.35);
  border-color: #25D366;
}

.btn-facebook {
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.3);
}

.btn-facebook:active {
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.35);
  border-color: #1877F2;
}

/* === Branding === */
.branding {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
