/* Spherely 3D Tennis Tactics Library — Apple-minimal sports-tech visual system */
.tactics-page {
  background: #f2f4f8;
  color: #14171d;
}

.tactics-main {
  padding-top: 96px;
  padding-bottom: 64px;
}

.tactics-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.tactics-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5b7091;
  margin-bottom: 16px;
}

.tactics-breadcrumbs a {
  color: #0066ff;
  font-weight: 600;
  text-decoration: none;
}

.tactics-breadcrumbs a:hover {
  text-decoration: underline;
}

.tactics-hero {
  background: #ffffff;
  border: 1px solid rgba(20, 23, 29, 0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055), 0 1px 3px rgba(15, 23, 42, 0.035);
}

.tactics-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066ff;
}

.tactics-hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  color: #0b1b34;
}

.tactics-answer-box {
  margin: 16px 0 0;
  padding: 16px 20px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  color: #1e3a66;
  font-size: 15px;
  line-height: 1.72;
}

.tactics-card {
  background: #ffffff;
  border: 1px solid rgba(20, 23, 29, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055), 0 1px 3px rgba(15, 23, 42, 0.035);
}

.tactics-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tactics-section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  color: #0b1b34;
}

.tactics-sub {
  margin: 4px 0 0;
  color: #5b7091;
  font-size: 14px;
  line-height: 1.6;
}

.tactics-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  background: #eef3f9;
  border-radius: 14px;
}

.tactics-filter-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tactics-filter-btn:hover {
  color: #0066ff;
}

.tactics-filter-btn.is-active {
  background: #0066ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.24);
}

.tactics-featured-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tactics-switch-pill {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tactics-switch-pill:hover {
  border-color: #0066ff;
  color: #0066ff;
}

.tactics-switch-pill.is-active {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

.tactics-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(270px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.tactics-player-frame {
  width: 100%;
  height: 500px;
  border: 1px solid rgba(20, 23, 29, 0.10);
  border-radius: 18px;
  background: #071d31;
  display: block;
}

.tactics-player-frame.is-hub {
  height: 520px;
}

.tactics-featured-brief {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f6f8fb;
  border: 1px solid rgba(20, 23, 29, 0.07);
}

.tactics-featured-title {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.3;
  color: #14171d;
}

.tactics-featured-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

.tactics-featured-cue-box {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 122, 255, 0.14);
}

.tactics-featured-cue-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #007aff;
  margin-bottom: 4px;
}

.tactics-featured-cue {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1e293b;
}

.tactics-featured-brief .tactics-card-cta {
  margin-top: auto;
}

.tactics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.tactics-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tactics-item-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(11, 27, 52, 0.07);
}

.tactics-item-card[hidden] {
  display: none;
}

.tactics-thumb-link {
  display: grid;
  place-items: center;
  background: #0d3a5c;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  text-decoration: none;
}

.tactics-court-svg {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
}

.tactics-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tactics-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
}

.tactics-badge-doubles {
  background: #ecfeff;
  color: #0e7490;
}

.tactics-badge-muted {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.tactics-item-title {
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.35;
  color: #0b1b34;
}

.tactics-item-title a {
  color: inherit;
  text-decoration: none;
}

.tactics-item-title a:hover {
  color: #0066ff;
}

.tactics-item-summary {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.tactics-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eef5ff;
  color: #0052cc;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.tactics-card-cta:hover {
  background: #0066ff;
  color: #ffffff;
}

.tactics-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.tactics-diagram-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.tactics-diagram-box .tactics-court-svg {
  max-width: 240px;
  margin: 0 auto;
}

.tactics-diagram-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.tactics-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tactics-two-col > .tactics-card {
  margin-top: 0;
}

.tactics-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}

.tactics-list li + li {
  margin-top: 8px;
}

.tactics-steps-list {
  display: grid;
  gap: 12px;
}

.tactics-step-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px 16px;
}

.tactics-step-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0066ff;
  margin-bottom: 4px;
}

.tactics-step-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #0b1b34;
}

.tactics-step-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.tactics-guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tactics-guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  color: #0b1b34;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.tactics-guide-link:hover {
  border-color: #0066ff;
  color: #0066ff;
}

.tactics-cta-banner {
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1b34 0%, #103b73 100%);
  color: #ffffff;
}

.tactics-cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  color: #ffffff;
}

.tactics-cta-banner p {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}

.tactics-cta-note {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  color: #bfdbfe !important;
}

.tactics-prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.tactics-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0b1b34;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tactics-nav-pill:hover {
  border-color: #0066ff;
  color: #0066ff;
}

@media (max-width: 920px) {
  .tactics-featured-grid,
  .tactics-stage-grid,
  .tactics-two-col {
    grid-template-columns: 1fr;
  }
  .tactics-player-frame,
  .tactics-player-frame.is-hub {
    height: 420px;
  }
}

@media (max-width: 480px) {
  .tactics-hero,
  .tactics-card,
  .tactics-cta-banner {
    padding: 18px;
    border-radius: 18px;
  }
  .tactics-player-frame,
  .tactics-player-frame.is-hub {
    height: 370px;
  }
}

.tactics-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.tactics-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tactics-search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 460px;
}

.tactics-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0b1b34;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.tactics-search-input:focus {
  background: #ffffff;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.14);
}

.tactics-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.tactics-results-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5b7091;
}

.tactics-phase-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tactics-phase-btn {
  appearance: none;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tactics-phase-btn:hover {
  border-color: #0066ff;
  color: #0066ff;
}

.tactics-phase-btn.is-active {
  background: #0b1b34;
  border-color: #0b1b34;
  color: #ffffff;
}

.tactics-empty-state {
  margin-top: 16px;
  padding: 28px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.tactics-empty-state[hidden] {
  display: none;
}

.tactics-empty-state p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 15px;
}

.tactics-reset-btn,
.tactics-copy-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0b1b34;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.tactics-reset-btn:hover,
.tactics-copy-btn:hover {
  border-color: #0066ff;
  color: #0066ff;
}

.tactics-copy-btn.is-copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.tactics-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.tactics-github-card {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbe6f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tactics-github-copy {
  flex: 1 1 320px;
}

.tactics-github-copy p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.tactics-github-copy h2,
.tactics-github-copy h3 {
  margin: 0;
  font-size: 18px;
  color: #0b1b34;
}

.tactics-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #0b1b34;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tactics-github-btn:hover {
  background: #0066ff;
}
