:root {
  --play-green: #01875f;
  --play-green-soft: #e6f4ea;
  --play-text: #202124;
  --play-muted: #5f6368;
  --play-border: #dadce0;
  --play-chip: #e8f5ef;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  color: var(--play-text);
  background: #fff;
}

* { box-sizing: border-box; }
body.play-home { margin: 0; background: #fff; }

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  color: var(--play-muted);
}

.play-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 1px 3px rgba(60, 64, 67, 0.08);
}

.play-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  min-height: 56px;
}

.play-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--play-muted);
  flex-shrink: 0;
  margin-right: 4px;
}

.play-brand-icon { width: 40px; height: 40px; display: block; }
.play-brand-wordmark { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.play-brand-google { height: 24px; width: auto; display: block; }
.play-brand-play { font-size: 1.375rem; font-weight: 500; line-height: 1.75rem; margin-left: 1px; }

.play-header-tabs { display: none; align-items: stretch; gap: 0; margin-left: 8px; }
.play-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  min-height: 64px;
  font-size: 14px;
  font-weight: 500;
  color: var(--play-muted);
  text-decoration: none;
}
.play-tab--active { color: var(--play-green); }
.play-tab--active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--play-green);
}

.play-header-actions { display: flex; align-items: center; margin-left: auto; }
.play-icon-btn {
  border: 0;
  background: transparent;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.play-icon-btn:hover { background: rgba(60, 64, 67, 0.08); }
.play-header-avatar img { border-radius: 50%; display: block; }

.play-device-bar {
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 9;
}

.play-device-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 14px;
  max-width: 1280px;
  margin: 0 auto;
  scrollbar-width: none;
}
.play-device-scroll::-webkit-scrollbar { display: none; }

.play-device {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--play-border);
  background: #fff;
  color: var(--play-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.play-device .material-icons { font-size: 20px; }
.play-device--active {
  background: var(--play-green-soft);
  border-color: #c8e6d4;
  color: var(--play-green);
}
.play-device--active .material-icons { color: var(--play-green); }

.play-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 88px;
}

.play-section { margin-bottom: 40px; }
.play-section-head { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.play-section-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.play-section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--play-muted);
}

.play-popular-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.play-popular-scroll--compact .play-popular-card { flex-basis: 112px; }
.play-popular-scroll--compact .play-popular-icon,
.play-popular-scroll--compact .play-popular-fallback { width: 112px; height: 112px; border-radius: 20px; }
.play-popular-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}
.play-popular-icon {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.play-popular-fallback {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 500;
  background: var(--play-green-soft);
  color: var(--play-green);
}
.play-popular-title {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.play-popular-rating {
  font-size: 12px;
  color: var(--play-muted);
}
.play-popular-rating .star { color: var(--play-green); }

.play-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.play-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #f1f3f4;
  color: var(--play-text);
}
.play-chip--active {
  background: var(--play-chip);
  color: var(--play-green);
}

.play-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 32px;
}
.play-chart-item {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.play-chart-item:hover { background: rgba(60, 64, 67, 0.04); }
.play-chart-rank {
  font-size: 14px;
  color: var(--play-muted);
  text-align: center;
}
.play-chart-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.play-chart-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--play-green-soft);
  color: var(--play-green);
  font-weight: 600;
}
.play-chart-title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.play-chart-meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--play-muted);
}
.play-chart-meta .star { color: var(--play-green); }

.play-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--play-muted);
  font-size: 14px;
  border: 1px dashed var(--play-border);
  border-radius: 12px;
}

.play-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: var(--play-muted);
  line-height: 1.8;
}
.play-footer a { color: var(--play-muted); text-decoration: none; }
.play-footer a:hover { text-decoration: underline; }
.play-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  margin-bottom: 16px;
}
.play-footer-grid--legal { margin-top: 8px; }
.play-footer-note { margin: 16px 0 0; font-size: 12px; color: #80868b; }

.play-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 8px;
}
.play-bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--play-muted);
  font-size: 11px;
  padding: 4px 0;
}
.play-bottom-nav a.play-bottom-nav--active { color: var(--play-green); }
.play-bottom-nav .material-icons {
  display: block;
  margin: 0 auto 2px;
  font-size: 22px;
}

@media (min-width: 840px) {
  .play-header-inner { padding: 0 24px; min-height: 64px; max-width: none; }
  .play-header-tabs { display: flex; }
  .play-header-help { display: grid; }
  .play-device-bar { top: 64px; }
  .play-device-scroll { max-width: none; padding-left: 24px; padding-right: 24px; }
  .play-main { max-width: none; padding: 32px 24px 56px; }
  .play-footer { max-width: none; padding-left: 24px; padding-right: 24px; }
  .play-bottom-nav { display: none; }
  .play-popular-card { flex-basis: 180px; }
  .play-popular-icon,
  .play-popular-fallback { width: 180px; height: 180px; }
}

@media (max-width: 839px) {
  .play-header-help { display: none; }
  .play-brand-play { font-size: 1.125rem; }
  .play-brand-icon { width: 32px; height: 32px; }
  .play-brand-google { height: 20px; }
  .play-charts-grid { grid-template-columns: 1fr; }
}
