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

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --ta-bg:          #141414;
  --ta-surface:     #1e1e1e;
  --ta-surface-2:   #272727;
  --ta-border:      rgba(255,255,255,0.08);
  --ta-border-hover:rgba(255,255,255,0.16);
  --ta-text-primary:#f0ede8;
  --ta-text-muted:  #888;
  --ta-green:       #34E0A1;
  --ta-green-dk:    #00aa6c;
  --ta-radius:      10px;
  --ta-font-display:'DM Serif Display', Georgia, serif;
  --ta-font-body:   'DM Sans', system-ui, sans-serif;
}

/* ─── SECTION WRAPPER ────────────────────────────────── */
.ta-section {
  background: var(--ta-bg);
  padding: 64px 24px;
  font-family: var(--ta-font-body);
  color: var(--ta-text-primary);
}

.ta-container {
  max-width: 1160px;
  margin: 0 auto;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.ta-layout {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* ─── SUMMARY CARD ───────────────────────────────────── */
.ta-summary {
  flex: 0 0 200px;
  background: var(--ta-surface);
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.ta-summary__label {
  font-family: var(--ta-font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ta-text-primary);
}

.ta-summary__stars {
  display: flex;
  gap: 5px;
}

.ta-summary__count {
  font-size: 13px;
  color: var(--ta-text-muted);
  line-height: 1.5;
}
.ta-summary__count a {
  color: var(--ta-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ta-summary__count a:hover { opacity: 0.8; }

.ta-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ta-text-primary);
  margin-top: 4px;
}
.ta-brand svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ─── TRACK ──────────────────────────────────────────── */
.ta-track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ta-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ─── REVIEW CARD ────────────────────────────────────── */
.ta-card {
  flex: 0 0 220px;
  background: var(--ta-surface);
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.ta-card:hover {
  border-color: var(--ta-border-hover);
  background: var(--ta-surface-2);
}

.ta-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ta-card__stars { display: flex; gap: 3px; }

.ta-card__date {
  font-size: 12px;
  color: var(--ta-text-muted);
  white-space: nowrap;
}

.ta-card__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ta-text-primary);
  line-height: 1.35;
}

.ta-card__text {
  font-size: 13px;
  color: var(--ta-text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ta-card__author {
  font-size: 13px;
  font-weight: 500;
  color: var(--ta-text-primary);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ta-border);
}

/* ─── STAR SQUARE (TripAdvisor style) ───────────────── */
.star-sq {
  width: 24px; height: 24px;
  background: var(--ta-green-dk);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.star-sq svg { width: 14px; height: 14px; fill: #fff; }

.star-sq--sm {
  width: 17px; height: 17px;
  background: var(--ta-green-dk);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.star-sq--sm svg { width: 10px; height: 10px; fill: #fff; }

/* ─── CONTROLS ───────────────────────────────────────── */
.ta-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.ta-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ta-border-hover);
  background: var(--ta-surface);
  color: var(--ta-text-primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.ta-btn:hover { background: var(--ta-surface-2); border-color: rgba(255,255,255,0.3); }
.ta-btn:disabled { opacity: 0.3; cursor: default; }
.ta-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 700px) {
  .ta-layout { flex-direction: column; }
  .ta-summary {
    flex-direction: row;
    flex: none;
    width: 100%;
    padding: 18px 20px;
    gap: 20px;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .ta-summary__label { font-size: 18px; }
  .ta-summary__count { font-size: 12px; }
}

@media (max-width: 480px) {
  .ta-section { padding: 48px 16px; }
}

.lang-switcher {
      display: flex;
      align-items: center;
      gap: 2px;
    }
    .lang-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: #fff;
      font-family: Inter, sans-serif;
      font-size: .75rem;
      font-weight: 600;
      letter-spacing: 1.3px;
      text-transform: uppercase;
      padding: 4px 6px;
      opacity: .45;
      transition: opacity .15s;
      line-height: 1;
    }
    .lang-btn.active { opacity: 1; }
    .lang-btn:hover  { opacity: .75; }
    .lang-divider {
      color: #fff;
      opacity: .25;
      font-size: .65rem;
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }
