.club-header {
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 8px 24px rgba(8, 12, 20, 0);
  transition: box-shadow 0.2s ease;
}

.club-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(8, 12, 20, 0.18);
}

.club-header .topbar {
  position: relative;
  z-index: 2;
}

.club-header .topbar-inner {
  min-height: 62px;
}

.club-header .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  font-size: 20px;
}

.club-header .brand-name {
  font-size: 17px;
}

.club-header .brand-sub {
  font-size: 12px;
}

.topbar-login {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 8px;
  font-size: 14px;
}

.club-site-nav {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 29, 0.96);
  backdrop-filter: blur(16px);
}

.topbar a.brand {
  color: inherit;
  text-decoration: none;
}

.club-site-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.club-site-nav-inner::-webkit-scrollbar {
  display: none;
}

.club-site-nav a {
  flex-shrink: 0;
  position: relative;
  padding: 7px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.club-site-nav a:hover,
.club-site-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.club-site-nav a.active::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 3px;
  left: 16px;
  height: 2px;
  background: var(--red, #ff2e42);
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 116px;
}

.club-page {
  min-height: 100vh;
  color: #20242d;
  background: #f5f7fa;
}

.club-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.club-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  color: #ffffff;
  background: linear-gradient(140deg, #0d1017 0%, #162a4b 62%, #223e6c 100%);
}

.club-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.club-hero::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -60%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 46, 66, 0.35);
  transform: rotate(28deg);
  pointer-events: none;
}

.club-hero.has-cover::before {
  opacity: 0.86;
  background:
    linear-gradient(90deg, rgba(10, 13, 20, 0.94), rgba(16, 33, 57, 0.66)),
    var(--club-cover) center / cover no-repeat;
  background-size: auto, cover;
}

.club-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.club-kicker {
  margin: 0 0 12px;
  color: #ff7d89;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
}

.club-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.club-hero-lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.8;
}

.club-hero .club-muted {
  color: rgba(255, 255, 255, 0.72);
}

.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.club-actions .btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 15px;
}

.club-section {
  padding: 64px 0;
}

.club-section.dark {
  color: #ffffff;
  background: #12141d;
}

.club-section.soft {
  background: #eef3fa;
}

.club-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.club-section-head h2 {
  margin: 0;
  color: #12141d;
  font-size: clamp(28px, 4vw, 42px);
}

.club-section.dark .club-section-head h2,
.club-section.dark .club-copy {
  color: #ffffff;
}

.club-copy {
  margin: 0;
  color: #596270;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.club-muted {
  color: #7b8494;
}

.club-grid {
  display: grid;
  gap: 18px;
}

.club-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.club-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.club-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(18, 20, 29, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.club-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.club-card:hover {
  border-color: #c9d4e3;
  box-shadow: 0 16px 36px rgba(18, 20, 29, 0.11);
  transform: translateY(-3px);
}

.club-card:active {
  transform: translateY(-1px);
}

.club-card-body {
  padding: 22px;
}

.club-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.club-card-media {
  height: 220px;
  background: #e8edf3;
}

.club-card h3 {
  margin: 0 0 8px;
  color: #16283a;
  font-size: 21px;
}

.club-card p {
  margin: 0;
  color: #68717f;
  line-height: 1.75;
}

.club-index {
  color: #ff2e42;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.club-empty,
.club-error {
  padding: 46px 24px;
  border: 1px dashed #c5ccd7;
  border-radius: 10px;
  color: #727b89;
  background: #ffffff;
  text-align: center;
}

.club-error strong {
  display: block;
  margin-bottom: 8px;
  color: #c81e2e;
  font-size: 20px;
}

.club-filter {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: #e9eef6;
}

.club-filter button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #5f6878;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.club-filter button.active {
  color: #ffffff;
  background: #27364f;
}

.club-course-card {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 210px;
}

a.club-course-card,
button.club-course-card {
  min-height: 210px;
}

.club-course-card img {
  height: 100%;
}

.club-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #ff2e42;
  font-size: 12px;
  font-weight: 900;
}

.club-state.ended {
  color: #5f6878;
  background: #edf0f4;
}

.club-link {
  color: #d31f31;
  font-weight: 900;
  text-decoration: none;
}

.club-card :focus-visible,
.club-filter button:focus-visible,
.club-site-nav a:focus-visible,
.topbar-login:focus-visible {
  outline: 3px solid rgba(255, 46, 66, 0.45);
  outline-offset: 3px;
}

.club-skeleton-card {
  height: 210px;
  background: linear-gradient(100deg, #e7ecf2 20%, #f7f9fb 40%, #e7ecf2 60%);
  background-size: 200% 100%;
  animation: clubSkeleton 1.2s linear infinite;
}

@keyframes clubSkeleton {
  to { background-position: -200% 0; }
}

.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  padding: 32px;
  place-items: center;
  background: rgba(5, 8, 14, 0.92);
}

.site-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.site-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.has-lightbox {
  overflow: hidden;
}

.course-mobile-action {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #dde3ec;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 30px rgba(18, 20, 29, 0.12);
}

.course-mobile-action .btn.disabled {
  color: #697482;
  background: #e7ebf0;
  pointer-events: none;
}

.course-mobile-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.course-mobile-copy span {
  color: #d31f31;
  font-size: 12px;
  font-weight: 900;
}

.course-mobile-copy strong {
  overflow: hidden;
  color: #27364f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-mobile-action .btn {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 20px;
}

.club-marquee-window {
  overflow: hidden;
  padding: 6px 0 14px;
}

.club-marquee {
  display: flex;
  width: max-content;
  animation: clubMarquee 38s linear infinite;
}

.club-marquee:hover,
.club-marquee.is-paused {
  animation-play-state: paused;
}

.club-marquee-item {
  position: relative;
  flex-shrink: 0;
  width: 330px;
  height: 230px;
  margin-right: 16px;
  overflow: hidden;
  border-radius: 10px;
  background: #dce3eb;
}

.club-marquee-item img,
.club-marquee-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-marquee-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px 14px 12px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(5, 8, 14, 0.8));
  font-size: 14px;
  font-weight: 800;
}

@keyframes clubMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.club-timeline {
  display: grid;
  gap: 14px;
}

.club-timeline-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
}

.club-timeline-index {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: #27364f;
  font-weight: 900;
}

.club-timeline-card {
  padding: 18px 20px;
  border-left: 4px solid #ff2e42;
  border-radius: 0 9px 9px 0;
  background: #f5f7fa;
}

.club-timeline-card h3 {
  margin: 8px 0;
  color: #27364f;
}

.club-timeline-card p {
  margin: 5px 0;
  color: #66707e;
}

.club-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.club-poster-grid img {
  width: 100%;
  border-radius: 10px;
  background: #dce3eb;
}

.club-join-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #12141d, #27364f);
}

.club-join-panel h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

.club-join-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
}

.club-footer {
  padding: 30px 0;
  color: #8a93a5;
  background: #12141d;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .club-grid.two,
  .club-grid.three,
  .club-poster-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .club-course-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .club-course-card > img {
    height: 230px;
  }
}

@media (max-width: 720px) {
  [id] {
    scroll-margin-top: 108px;
  }

  .club-header .topbar-inner {
    width: min(100% - 24px, 1200px);
    min-height: 58px;
  }

  .club-header .brand-sub {
    display: none;
  }

  .club-header .brand-name {
    max-width: 190px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .club-header .brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 18px;
  }

  .club-header .header-actions .status-pill {
    display: none;
  }

  .topbar-login {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .club-site-nav-inner {
    width: 100%;
    padding: 5px 12px 7px;
    scroll-snap-type: x proximity;
  }

  .club-site-nav a {
    padding: 8px 13px;
    font-size: 13px;
    scroll-snap-align: center;
  }

  .course-mobile-action:not([hidden]) {
    display: flex;
  }

  body:has(.course-mobile-action:not([hidden])) .club-footer {
    padding-bottom: 100px;
  }
}

@media (max-width: 620px) {
  .club-container,
  .club-hero-inner,
  .club-site-nav-inner {
    width: min(100% - 24px, 1180px);
  }

  .club-hero {
    padding: 62px 0 70px;
  }

  .club-hero h1 {
    font-size: 38px;
  }

  .club-section {
    padding: 46px 0;
  }

  .club-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .club-join-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .club-card,
  .club-header {
    transition: none;
  }

  .club-marquee {
    animation: none;
  }
}
