/* /clubs, /clubs/<country>[/<place>], /clubs/<slug> and the home page's clubs block (promote.go).
   Each club card carries its club's colours as --cc-* custom properties (clubCardStyle), so a card looks like
   the club's own site whatever the platform's theme. Phone first: one column, 44 px targets, no sideways
   scroll (the Racing now row scrolls inside itself). */

.cc-head .crumbs { margin-bottom: 10px; }
.cc-section { margin-top: var(--s-7, 40px); }
.cc-subhead { margin: var(--s-6, 28px) 0 var(--s-3, 12px); }
.cc-home .cc-spot { margin-bottom: var(--s-4, 16px); }

/* filters */
.cc-filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; max-width: 760px; }
.cc-filters .input, .cc-filters .select, .cc-filters .btn { min-height: 44px; width: 100%; }
@media (min-width: 640px) {
  .cc-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto auto; align-items: center; }
  .cc-filters .btn { width: auto; }
}
.cc-places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cc-places .chip { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.cc-places .chip.is-on { border-color: var(--brand); color: var(--brand); }

/* the grid of cards */
.cc-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cc-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--cc-surface); color: var(--cc-text); border: 1px solid var(--cc-line);
  border-radius: calc(var(--cc-r) * 1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -18px rgba(0, 0, 0, .6);
  transition: transform var(--t-fast, .15s) var(--ease, ease), box-shadow var(--t-fast, .15s) var(--ease, ease), border-color var(--t-fast, .15s);
}
.cc-card:hover { transform: translateY(-2px); border-color: var(--cc-brand); box-shadow: 0 16px 40px -20px var(--cc-brand); }
.cc-card:focus-within { outline: 2px solid var(--cc-brand); outline-offset: 2px; }
.cc-card.is-live { border-color: var(--cc-live); }
.cc-banner { position: relative; aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent)); overflow: hidden; }
.cc-banner[data-empty] { background:
  repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, .06) 23px 24px),
  repeating-linear-gradient(0deg, transparent 0 23px, rgba(255, 255, 255, .06) 23px 24px),
  linear-gradient(135deg, var(--cc-brand), var(--cc-accent)); }
.cc-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--cc-surface)); }
.cc-tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.cc-tag { font: 700 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px;
  background: rgba(5, 8, 15, .72); color: #fff; backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; }
.cc-tag-live { background: var(--cc-live); color: #fff; }
.cc-tag-new { background: var(--cc-brand); color: var(--cc-on-brand); }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: cc-pulse 1.4s ease-in-out infinite; }
@keyframes cc-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cc-dot { animation: none; } .cc-card, .cc-card:hover { transition: none; transform: none; } }

.cc-body { position: relative; padding: 0 16px 6px; margin-top: -30px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cc-logo { width: 56px; height: 56px; border-radius: calc(var(--cc-r) * .9); background: var(--cc-raised); border: 2px solid var(--cc-surface);
  display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.cc-logo img { width: 84%; height: 84%; object-fit: contain; }
.cc-logo span { font: 900 18px/1 var(--font-display); color: var(--cc-brand-text); }
.cc-logo-lg { width: 88px; height: 88px; }
.cc-logo-lg span { font-size: 28px; }
.cc-name { margin: 8px 0 0; font: var(--display-style, italic) var(--display-weight, 800) 1.2rem/1.15 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cc-link { color: inherit; text-decoration: none; }
.cc-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.cc-card .cc-body, .cc-card .cc-actions { position: relative; }
.cc-card .cc-actions { z-index: 1; }
.cc-place { margin: 0; color: var(--cc-muted); font-size: .9rem; }
.cc-pitch { margin: 4px 0 0; color: var(--cc-text); opacity: .92; font-size: .92rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--cc-muted); }
.cc-live-text { color: var(--cc-live); font-weight: 700; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.cc-btn { min-height: 44px; padding: 0 16px; border-radius: calc(var(--cc-r) * .8); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 .92rem/1 var(--font-body); text-decoration: none; border: 1px solid var(--cc-line); color: var(--cc-text); background: var(--cc-raised); cursor: pointer; flex: 1 1 auto; }
.cc-btn:hover { border-color: var(--cc-brand); }
.cc-btn-brand { background: var(--cc-brand); color: var(--cc-on-brand); border-color: transparent; }
.cc-btn-live { background: var(--cc-live); color: #fff; border-color: transparent; }
.cc-btn[aria-pressed="true"] { border-color: var(--cc-brand); color: var(--cc-brand-text); }

/* Racing now */
.cc-live-strip { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); padding: 14px; min-width: 0; }
.cc-strip-title { margin: 0 0 10px; font: 800 .9rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--live); display: flex; align-items: center; gap: 8px; }
.cc-live-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cc-live-pill { scroll-snap-align: start; flex: 0 0 auto; max-width: min(320px, 82vw); min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  border-radius: calc(var(--cc-r) * 1); background: var(--cc-surface); border: 1px solid var(--cc-live); color: var(--cc-text); text-decoration: none; }
.cc-live-pill .cc-logo { width: 40px; height: 40px; border-width: 0; }
.cc-live-pill-text { display: flex; flex-direction: column; min-width: 0; }
.cc-live-pill-text strong, .cc-live-pill-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-live-pill-text span { font-size: .8rem; color: var(--cc-muted); }
.cc-live-go { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--cc-live); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }

/* Club spotlight */
.cc-spot { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: calc(var(--cc-r) * 1.4); background: var(--cc-surface); color: var(--cc-text);
  border: 1px solid var(--cc-brand); box-shadow: 0 24px 60px -30px var(--cc-brand); }
@media (min-width: 820px) { .cc-spot { grid-template-columns: 1.1fr 1fr; } }
.cc-spot-art { position: relative; min-height: 180px; background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent)); }
.cc-spot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-spot-art .osd-label { position: absolute; z-index: 1; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.cc-spot-art .tl { top: 14px; left: 14px; } .cc-spot-art .tr { top: 14px; right: 14px; }
.cc-spot-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-spot-eyebrow { margin: 0; font: 800 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cc-brand-text); }
.cc-spot-name { margin: 0; display: flex; align-items: center; gap: 12px; font: var(--display-style, italic) var(--display-weight, 800) 1.6rem/1.1 var(--font-display); overflow-wrap: anywhere; }
.cc-spot-blurb { margin: 4px 0 0; line-height: 1.55; }
.cc-spot .cc-actions { padding: 8px 0 0; }

.cc-welcome { margin-bottom: 14px; }

/* map + upcoming */
.cc-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .cc-split { grid-template-columns: 1fr 1fr; } }
.cc-split > div { min-width: 0; }
.cc-map { height: 340px; border-radius: var(--r-lg); margin-top: 10px; }
.cc-split .card { margin-top: 10px; }
.cc-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.cc-pager .btn { min-height: 44px; }
.cc-pager > :last-child { justify-self: end; }

/* one club */
.cc-hero { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: calc(var(--cc-r) * 1.4); background: var(--cc-surface); color: var(--cc-text); border: 1px solid var(--cc-line); }
@media (min-width: 900px) { .cc-hero { grid-template-columns: 1fr 1fr; } }
.cc-hero-art { position: relative; min-height: 200px; background: linear-gradient(135deg, var(--cc-brand), var(--cc-accent)); }
.cc-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero-art .osd-label { position: absolute; z-index: 1; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.cc-hero-art .tl { top: 14px; left: 14px; } .cc-hero-art .tr { top: 14px; right: 14px; }
.cc-hero-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-hero-name { margin: 6px 0 0; font: var(--display-style, italic) var(--display-weight, 800) clamp(1.8rem, 6vw, 2.6rem)/1.05 var(--font-display); overflow-wrap: anywhere; }
.cc-hero-pitch { margin: 4px 0 0; font-size: 1.05rem; line-height: 1.5; }
.cc-hero-tag { margin: 0; color: var(--cc-muted); }
.cc-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 0; }
.cc-stats div { display: flex; flex-direction: column-reverse; }
.cc-stats dt { font-size: .75rem; color: var(--cc-muted); text-transform: uppercase; letter-spacing: .08em; }
.cc-stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; }
.cc-hero .cc-actions { padding: 8px 0 0; }
.cc-share-img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }

.cc-admin-months { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .cc-admin-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 520px) {
  .cc-body { padding: 0 14px 4px; }
  .cc-actions { padding: 10px 14px 14px; }
  .cc-hero-body, .cc-spot-body { padding: 16px; }
}
