/* ── VR News Ticker — two-line vertical slide style ── */

/* Row height for two lines of content */
:root { --cnt-row: 56px; }

.cnt-ticker-wrap {
  display: flex;
  align-items: stretch;
  background: var(--cnt-bg, #c0392b);
  color: var(--cnt-tc, #fff);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--cnt-fs, 14px);
  height: var(--cnt-row);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  user-select: none;
  border-radius: var(--cnt-br, 2px);
}

/* Label: two lines, max 10 chars each, centred */
.cnt-label {
  flex-shrink: 0;
  background: var(--cnt-label-bg, rgba(0,0,0,.25));
  color: var(--cnt-tc, #fff);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: calc(var(--cnt-fs, 14px) * 0.85);
  border-radius: var(--cnt-br, 2px) 0 0 var(--cnt-br, 2px);
  white-space: normal;
  word-break: break-word;
  text-align: center;
  width: 72px;
  line-height: 1.3;
}

.cnt-viewport {
  flex: 1;
  overflow: hidden;
  height: var(--cnt-row);
  position: relative;
}

.cnt-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each item is exactly one row tall */
.cnt-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--cnt-row);
  min-height: var(--cnt-row);
  padding: 0 20px;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  gap: 2px;
}

/* Line 1: post title — override theme link styles on all states */
.cnt-ticker-wrap .cnt-item a,
.cnt-ticker-wrap .cnt-item a:link,
.cnt-ticker-wrap .cnt-item a:visited,
.cnt-ticker-wrap .cnt-item a:hover,
.cnt-ticker-wrap .cnt-item a:focus,
.cnt-ticker-wrap .cnt-item a:active {
  text-decoration: none !important;
}
.cnt-item a {
  color: var(--cnt-lc, #ffe08a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  font-size: var(--cnt-fs, 14px);
  line-height: 1.3;
  transition: opacity .2s;
}
.cnt-item a:hover { opacity: .75; }

/* Line 2: date */
.cnt-date {
  font-size: calc(var(--cnt-fs, 14px) * 0.78);
  opacity: .65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  display: block;
}

.cnt-loading {
  display: flex;
  align-items: center;
  height: var(--cnt-row);
  padding: 0 20px;
  opacity: .6;
  font-style: italic;
}
