.tci-ta {
  --tci-cream: #f7f1e7;
  --tci-paper: #fffdf8;
  --tci-beige: #e8dcc8;
  --tci-tan: #c9aa80;
  --tci-brown: #6f4e37;
  --tci-ink: #211c18;
  --tci-muted: #71685f;
  --tci-line: rgba(89, 63, 43, 0.18);
  --tci-soft: rgba(153, 118, 78, 0.09);
  color: var(--tci-ink);
  background: var(--tci-cream);
  border: 1px solid var(--tci-line);
  border-radius: 22px;
  box-sizing: border-box;
  font-family: inherit;
  margin: 24px auto;
  max-width: 1180px;
  overflow: hidden;
  width: 100%;
}

.tci-ta *, .tci-ta *::before, .tci-ta *::after { box-sizing: border-box; }
.tci-ta [hidden] { display: none !important; }
.tci-ta button, .tci-ta input { font: inherit; }

.tci-ta__hero {
  align-items: center;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  min-height: 250px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  position: relative;
}

.tci-ta__hero-copy { max-width: 750px; position: relative; z-index: 1; }
.tci-ta__eyebrow, .tci-ta__platform-label {
  color: var(--tci-brown);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.tci-ta h1, .tci-ta__display-title {
  color: var(--tci-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.35rem, 5.2vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

.tci-ta__intro {
  color: var(--tci-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  margin: 20px 0 18px;
  max-width: 650px;
}

.tci-ta__meta {
  align-items: center;
  color: var(--tci-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.83rem;
  gap: 8px;
  line-height: 1.5;
}

.tci-ta__meta strong { color: var(--tci-ink); }
.tci-ta__hero-mark {
  align-items: center;
  color: var(--tci-brown);
  display: flex;
  flex: 0 0 210px;
  height: 150px;
  justify-content: center;
  position: relative;
}

.tci-ta__hero-mark::before {
  background: linear-gradient(var(--tci-cream), var(--tci-cream)) padding-box, linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  content: '';
  inset: 5px 25px;
  position: absolute;
}

.tci-ta__hero-mark span {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
  border: 0;
  border-radius: 50%;
  display: grid;
  font-family: Georgia, serif;
  color: #fff;
  font-size: 1.45rem;
  height: 56px;
  place-items: center;
  position: absolute;
  width: 56px;
}

.tci-ta__hero-mark span:nth-child(1) { background: linear-gradient(135deg, #f9ce34, #ee2a7b); left: 30px; top: 18px; }
.tci-ta__hero-mark span:nth-child(2) { background: linear-gradient(135deg, #ee2a7b, #6228d7); right: 22px; top: 42px; }
.tci-ta__hero-mark span:nth-child(3) { background: linear-gradient(135deg, #6228d7, #ee2a7b, #f9ce34); bottom: 12px; left: 76px; }

.tci-ta__tabs {
  background: var(--tci-paper);
  border-bottom: 1px solid var(--tci-line);
  border-top: 1px solid var(--tci-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(18px, 4vw, 48px);
}

.tci-ta__tab {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--tci-muted);
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 750;
  gap: 10px;
  justify-content: center;
  min-height: 70px;
  padding: 14px 18px 11px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.tci-ta__tab:hover { background: var(--tci-soft); }
.tci-ta__tab:focus-visible { outline: 3px solid var(--tci-tan); outline-offset: -4px; }
.tci-ta__tab.is-active { border-bottom-color: currentColor; }
.tci-ta__tab[data-platform="youtube"] { color: #e62117; }
.tci-ta__tab[data-platform="instagram"] { color: #c13584; }
.tci-ta__tab[data-platform="instagram"] > span {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7);
  color: transparent;
}
.tci-ta__tab[data-platform="facebook"] { color: #1877f2; }
.tci-ta__tab svg { fill: currentColor; height: 22px; width: 22px; }
.tci-ta__tab svg rect, .tci-ta__tab svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.tci-ta__tab svg .is-fill { fill: currentColor; stroke: none; }

.tci-ta__workspace { padding: clamp(28px, 4vw, 50px); }
.tci-ta__workspace-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.tci-ta__workspace h2 {
  color: var(--tci-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.tci-ta__platform-label { margin-bottom: 8px; }
.tci-ta__platform-label[data-platform="youtube"] { color: #e62117; }
.tci-ta__platform-label[data-platform="instagram"] {
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg, #f9ce34, #ee2a7b, #6228d7);
  color: transparent;
  width: fit-content;
}
.tci-ta__platform-label[data-platform="facebook"] { color: #1877f2; }
.tci-ta__disclaimer {
  border-left: 2px solid var(--tci-tan);
  color: var(--tci-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 25px 0 28px;
  max-width: 900px;
  padding-left: 14px;
}

.tci-ta__column-head, .tci-ta__item {
  column-gap: 16px;
  display: grid;
  grid-template-columns: 72px 110px minmax(280px, 580px) 145px;
  justify-content: start;
}

.tci-ta__column-head {
  color: var(--tci-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 20px 10px;
  text-transform: uppercase;
}

.tci-ta__column-head span:last-child { text-align: left; }
.tci-ta__list { border-top: 1px solid var(--tci-line); }
.tci-ta__item {
  align-items: center;
  background: transparent;
  border-bottom: 1px solid var(--tci-line);
  min-height: 94px;
  padding: 13px 20px;
  transition: background-color .16s ease;
}

.tci-ta__item:hover { background: var(--tci-soft); }
.tci-ta__rank { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; }
.tci-ta__movement { color: #356ac3; font-size: 1rem; font-weight: 850; }
.tci-ta__movement--up { color: #37613c; }
.tci-ta__movement--down { color: #8b493f; }
.tci-ta__movement--same { color: #356ac3; }
.tci-ta__movement--up > span[aria-hidden="true"],
.tci-ta__movement--down > span[aria-hidden="true"],
.tci-ta__movement--same > span[aria-hidden="true"] {
  display: inline-block;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  transform: scaleX(1.3);
  transform-origin: left center;
}
.tci-ta__movement--new span[aria-hidden="true"] {
  background: var(--tci-brown);
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  padding: 5px 8px;
}

.tci-ta__audio { align-items: center; display: flex; gap: 14px; min-width: 0; }
.tci-ta__audio-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}
.tci-ta__audio-button:hover .tci-ta__thumb,
.tci-ta__audio-button:focus-visible .tci-ta__thumb { border-color: var(--tci-brown); box-shadow: 0 0 0 3px rgba(111, 78, 55, .12); }
.tci-ta__thumb {
  align-items: center;
  background: var(--tci-beige);
  border: 1px solid var(--tci-line);
  border-radius: 10px;
  display: flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.tci-ta__thumb img { height: 100%; object-fit: cover; width: 100%; }
.tci-ta__placeholder { color: var(--tci-brown); font-family: Georgia, serif; font-size: 1.55rem; }
.tci-ta__audio h3 {
  color: var(--tci-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.tci-ta__audio p { color: var(--tci-muted); font-size: 0.86rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.tci-ta__find {
  align-items: center;
  border: 1px solid var(--tci-line);
  border-radius: 999px;
  color: var(--tci-brown);
  display: inline-flex;
  font-size: 0.87rem;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.tci-ta__find:hover, .tci-ta__find:focus-visible { background: var(--tci-brown); border-color: var(--tci-brown); color: #fff; }
.tci-ta__player { grid-column: 3 / 5; padding: 8px 0 4px; width: min(100%, 680px); }
.tci-ta__player iframe { aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; width: 100%; }
.tci-ta__empty, .tci-ta__no-results { color: var(--tci-muted); margin: 0; padding: 32px 20px; text-align: center; }
.tci-ta__mobile-label { display: none; }
.tci-ta .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 760px) {
  .tci-ta { border-left: 0; border-radius: 0; border-right: 0; margin: 12px 0; }
  .tci-ta__hero { min-height: 0; padding: 34px 22px 30px; }
  .tci-ta__hero-mark { display: none; }
  .tci-ta h1, .tci-ta__display-title { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .tci-ta__meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .tci-ta__meta > span[aria-hidden="true"] { display: none; }
  .tci-ta__tabs { padding: 0 8px; }
  .tci-ta__tab { flex-direction: column; font-size: 0.78rem; gap: 5px; min-height: 68px; padding: 10px 4px 8px; }
  .tci-ta__tab svg { height: 20px; width: 20px; }
  .tci-ta__workspace { padding: 28px 18px 34px; }
  .tci-ta__workspace-head { align-items: stretch; flex-direction: column; gap: 18px; }
  .tci-ta__disclaimer { font-size: 0.78rem; margin: 21px 0 24px; }
  .tci-ta__column-head { display: none; }
  .tci-ta__list { border-top: 0; display: grid; gap: 12px; }
  .tci-ta__item {
    background: var(--tci-paper);
    border: 1px solid var(--tci-line);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    min-height: 0;
    padding: 15px;
  }
  .tci-ta__rank { font-size: 1rem; grid-column: 1; grid-row: 1; }
  .tci-ta__movement { grid-column: 3; grid-row: 1; text-align: right; }
  .tci-ta__audio { grid-column: 1 / -1; grid-row: 2; }
  .tci-ta__player { grid-column: 1 / -1; grid-row: 4; padding-top: 2px; }
  .tci-ta__thumb { flex-basis: 52px; height: 52px; width: 52px; }
  .tci-ta__find { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; width: 100%; }
  .tci-ta__mobile-label { color: var(--tci-muted); display: inline; font-family: inherit; font-size: 0.72rem; font-weight: 700; margin-right: 5px; text-transform: uppercase; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .tci-ta__column-head, .tci-ta__item {
    column-gap: 12px;
    grid-template-columns: 62px 92px minmax(220px, 1fr) 132px;
  }
}

/* Dark mode: follows the site's light/dark toggle (Foxiz sets body[data-theme="dark"]), not the browser setting */
body[data-theme="dark"] .tci-ta, .dark .tci-ta, body.dark-mode .tci-ta {
  --tci-cream: #1d1916;
  --tci-paper: #27211d;
  --tci-beige: #3b3129;
  --tci-tan: #b89268;
  --tci-brown: #d5b68e;
  --tci-ink: #f5eee4;
  --tci-muted: #c1b6aa;
  --tci-line: rgba(232, 210, 181, 0.18);
  --tci-soft: rgba(220, 186, 143, 0.08);
}
body[data-theme="dark"] .tci-ta__movement { color: #8ab4f8; }
body[data-theme="dark"] .tci-ta__movement--up { color: #9ac59f; }
body[data-theme="dark"] .tci-ta__movement--down { color: #dda399; }
body[data-theme="dark"] .tci-ta__movement--same { color: #8ab4f8; }
body[data-theme="dark"] .tci-ta__movement--new span[aria-hidden="true"] { color: #1d1916; }
body[data-theme="dark"] .tci-ta__find:hover, body[data-theme="dark"] .tci-ta__find:focus-visible { color: #1d1916; }
