*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: light;
  --wine: #990000;
  --page-bg: #e9ebee;
  --card: #ffffff;
  --bubble: #f0f2f5;
  --text: #1c1e21;
  --muted: #65676b;
  --name: #385898;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.page {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 24px rgba(0, 0, 0, .12);
}

.header {
  padding: 14px 12px 0;
  overflow: hidden;
  background: var(--wine);
  text-align: center;
}

.header h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.2;
}

.ticker-wrap {
  margin: 0 -12px;
  padding: 6px 0 8px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .15);
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

.player-wrap {
  width: 100%;
  background: #000;
}

.player-placeholder {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .08), transparent 34%),
    #000;
  color: #a9a9a9;
  text-align: center;
}

.player-placeholder p {
  margin: 0;
  font-size: 13px;
  letter-spacing: .2px;
  line-height: 1.3;
}

.play-mark {
  width: 46px;
  height: 46px;
  border: 1px solid #707070;
  border-radius: 50%;
  position: relative;
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 18px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #888;
}

.comments-wrap {
  padding: 12px 10px 28px;
  background: var(--page-bg);
}

.comments-card {
  padding: 14px 12px 8px;
  border: 1px solid #dddfe2;
  border-radius: 8px;
  background: var(--card);
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0 4px;
  font-size: 17px;
  line-height: 1.2;
}

.fb-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
}

.avatar {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #ccd0d5;
  object-fit: cover;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.bubble {
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px;
  overflow-wrap: anywhere;
  border-radius: 18px;
  background: var(--bubble);
}

.bubble strong {
  display: block;
  margin-bottom: 2px;
  color: var(--name);
  font-size: 13px;
  line-height: 1.25;
}

.bubble p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.meta > span:first-child {
  font-weight: 700;
}

.likes {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-right: 22px;
  padding: 0;
  border-radius: 50%;
  background: #f02849;
  color: #fff;
  font-size: 10px;
}

.likes b {
  position: absolute;
  left: 20px;
  top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 360px) {
  .header h1 { font-size: 24px; }
  .bubble p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; padding-left: 0; }
}
