/* ===== TennisOggi – Next Match Full Page ===== */
.to-next-full {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--theme-border-color, #e5e7eb);
  border-radius: 10px;
  background: var(--theme-card-background, #ffffff);
}

/* ===== VS block ===== */
.to-vs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

@media (min-width: 1024px) {
  .to-vs {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

.to-vs-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.to-vs-side:last-child {
  justify-content: flex-end;
}

.to-vs img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--theme-border-color, #e5e7eb);
}

.to-vs a {
  text-decoration: none;
  color: inherit;
}

.to-vs a:hover strong {
  text-decoration: underline;
}

.to-vs strong {
  font-weight: 600;
}

.to-vs .vs-label {
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

/* ===== Match details ===== */
.to-next-full p {
  margin: 6px 0;
  line-height: 1.45;
}

.to-next-full p strong {
  font-weight: 600;
}

/* ===== Empty state ===== */
.to-next-empty {
  margin-top: 10px;
  opacity: 0.85;
}

.to-next-empty p:first-child {
  font-weight: 600;
}

/* ===== Teaser on oggi page ===== */
.to-next-teaser {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--theme-palette-color-1, #2563eb);
  background: rgba(37, 99, 235, 0.04);
  border-radius: 6px;
  font-size: 15px;
}

.to-next-teaser a {
  margin-left: 6px;
  font-weight: 600;
  text-decoration: none;
}

.to-next-teaser a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .to-vs {
    flex-direction: column;
    gap: 8px;
  }

  .to-vs-side {
    justify-content: center !important;
  }

  .vs-label {
    margin: 4px 0;
  }
}

.to-today-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.to-today-img img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--theme-border-color, #e5e7eb);
}

.to-today-status {
  flex: 1;
}

@media (max-width: 640px) {
  .to-today-img img {
    width: 48px;
    height: 48px;
  }
}

.to-avatar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.to-flag{
  font-size:16px;
  line-height:1;
}

.to-avatar{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.to-avatar .f16 { line-height: 16px; }

.to-vs-name{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.1;
}
.to-vs-name .f16{
  height:16px;
}

.to-today-info{
  margin: 12px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--theme-border-color, #e5e7eb);
  border-radius: 10px;
  background: var(--theme-card-background, #fff);
}
.to-today-info-title{ margin-bottom: 8px; }
.to-today-info-list{
  margin: 0;
  padding-left: 18px;
}
.to-today-info-list li{
  margin: 6px 0;
}
.to-today-info-list span{
  opacity: .75;
}

.to-next-teaser {
  margin: 10px 0 14px;
  padding-left: 12px;
  border-left: 3px solid #2563eb;
}

.to-next-note {
  font-size: 13px;
  opacity: .7;
  margin-top: 4px;
}

.to-footnote {
  font-size: 13px;
  opacity: .7;
  margin-top: 10px;
}

/* Player Oggi content spacing */
.to-player-oggi h2,
.entry-content h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

/* First H2 slightly tighter */
.entry-content h2:first-of-type {
  margin-top: 24px;
}

/* Paragraph spacing under each H2 */
.entry-content h2 + p,
.entry-content h2 + div,
.entry-content h2 + ul {
  margin-top: 6px;
}

/* Lists inside player sections */
.to-today-info-list,
.entry-content ul {
  margin-top: 6px;
  margin-bottom: 12px;
}

/* Subtle divider effect (optional but nice) */
.entry-content h2 {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Dark mode support (Blocksy) */
[data-color-scheme="dark"] .entry-content h2 {
  border-bottom-color: rgba(255,255,255,0.08);
}

.to-home-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin: 14px 0;
}

.to-card{
  border:1px solid var(--theme-border-color, #e5e7eb);
  border-radius:12px;
  background:var(--theme-card-background, #fff);
  overflow:hidden;
}

.to-card-link{
  display:block;
  padding:12px;
  text-decoration:none;
  color:inherit;
}

.to-card-top{
  display:flex;
  gap:12px;
  align-items:center;
}

.to-card-avatar{
  width:54px;
  height:54px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid var(--theme-border-color, #e5e7eb);
}

.to-card-status{
  margin-top:10px;
  font-size:14px;
  opacity:.9;
}

.to-card-actions{
  display:flex;
  gap:10px;
  padding: 0 12px 12px;
}

.to-btn{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--theme-border-color, #e5e7eb);
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}

@media (max-width: 900px){
  .to-home-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px){
  .to-home-grid{ grid-template-columns:1fr; }
}

.to-last-match-scoreline{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 0;
  flex-wrap:wrap;
}

.to-last-match-scoreline .to-pname{
  font-weight:700;
}

.to-last-match-scoreline .to-score{
  padding:2px 10px;
  border-radius:8px;
  font-weight:800;
  background: rgba(0,0,0,.06);
  line-height:1.6;
}

.to-last-match-scoreline .to-score.win{
  color:#1e7e34;
}

.to-last-match-scoreline .to-score.loss{
  color:#b02a2a;
}

.to-last-match-note{
  margin-top:10px;
  opacity:.9;
}

.to-last-match p {
  margin: 4px 0;
  line-height: 1.4;
}

/* =========================
   TennisOggi: Teaser "playing today" mini card
   ========================= */
.to-next-teaser-playing{
  background:#f7fbff;
  border:1px solid #e6f0fb;
  /*border-left:4px solid #2872fa;*/
  padding:14px 14px 12px;
  border-radius:10px;
  margin:12px 0 18px;
}

/* VS block inside teaser */
.to-next-teaser-playing .to-vs{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:8px 0 12px;
  flex-wrap:wrap;
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}

.to-next-teaser-playing .to-vs-side{
  display:flex;
  align-items:center;
  gap:10px;
  width:280px;
}

.to-next-teaser-playing .to-vs-left{justify-content:flex-end;text-align:right;}
.to-next-teaser-playing .to-vs-right{justify-content:flex-start;text-align:left;}

.to-next-teaser-playing .vs-label{
  width:44px;
  text-align:center;
  font-weight:700;
  opacity:.7;
}

.to-next-teaser-playing .to-vs-name{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:190px;
}

.to-next-teaser-playing .to-vs-name strong{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Mini details */
.to-next-mini-details p{
  margin:8px 0;
  /*line-height:1.25;*/
}

.to-next-mini-details{
  margin-top:6px;
}

/* Link + note */
.to-next-teaser-playing a{
  text-decoration:none;
}

.to-next-teaser-playing .to-next-note{
  margin-top:8px;
  font-size:13px;
  opacity:.75;
}

/* Mobile: stack nicely */
@media (max-width:560px){
  .to-next-teaser-playing .to-vs-side{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .to-next-teaser-playing .vs-label{
    width:100%;
  }
  .to-next-teaser-playing .to-vs-name{
    justify-content:center;
  }
}
