:root {
  --bg: #fffaf6;
  --card: #ffffff;
  --text: #2b2421;
  --muted: #766961;
  --line: #eadfd7;
  --primary: #f36f45;
  --primary-dark: #ca4f2d;
  --soft: #fff0e5;
  --green: #348a67;
  --red: #d94a4a;
  --shadow: 0 18px 38px rgba(105, 67, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  min-height: 360px;
  padding: 24px clamp(20px, 5vw, 72px) 80px;
  background:
    linear-gradient(rgba(255, 245, 236, 0.2), rgba(255, 245, 236, 0.26)),
    var(--hero-image, url("assets/hero-custom.jpg")) center 36% / cover;
  color: #fff;
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  font-weight: 800;
}

.hero-content {
  max-width: 1180px;
  margin: 120px auto 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #ffe0c9;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  margin: 0;
}

.hero-desc {
  max-width: 720px;
  margin: 28px 0 0;
  color: #fff5ef;
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.form-actions,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 0;
}

.primary-btn,
.ghost-btn,
.buy-btn,
.detail-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.buy-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(243, 111, 69, 0.28);
}

.ghost-btn,
.detail-btn {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}

.primary-btn:hover,
.ghost-btn:hover,
.buy-btn:hover,
.detail-btn:hover {
  transform: translateY(-2px);
}

.stats {
  max-width: 1180px;
  margin: -58px auto 0;
  padding: 0 clamp(20px, 5vw, 0px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats article,
.panel,
.filters,
.notice,
.site-notice,
.deal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats article {
  border-radius: 20px;
  padding: 24px;
}

.stats span {
  display: block;
  font-size: 32px;
  font-weight: 950;
  color: var(--primary-dark);
}

.stats p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  max-width: 1180px;
  margin: 80px auto;
  padding: 0 clamp(20px, 5vw, 0px);
}

.section.soft {
  max-width: none;
  padding: 70px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.section.soft > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.section-sub,
.section-text {
  color: var(--muted);
  line-height: 1.8;
}

.section-sub {
  max-width: 470px;
  margin: 0;
}

.filters,
.notice,
.site-notice,
.panel {
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.site-notice {
  max-width: 1160px;
  margin: 0 auto 24px;
  display: flex;
  gap: 12px;
  align-items: start;
}

.site-notice[hidden] {
  display: none;
}

.site-notice strong {
  flex: 0 0 auto;
  color: var(--primary-dark);
}

.site-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice {
  display: flex;
  gap: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.notice[hidden] {
  display: none;
}

.notice strong {
  color: var(--primary-dark);
  flex: 0 0 auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf5;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  color: var(--text);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.filter-grid,
.form-grid,
.admin-grid {
  display: grid;
  gap: 12px;
}

.check-filter {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.check-filter input {
  width: auto;
}

.filter-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.form-grid {
  grid-template-columns: repeat(2, 1fr);
}

.full {
  grid-column: 1 / -1;
}

.deal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.deal-card {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  background: transparent;
}

.poster.musical {
  background: transparent;
}

.poster.play {
  background: transparent;
}

.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  background: transparent;
}

.poster::after {
  display: none;
}

.badges {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(51, 37, 32, 0.68);
  box-shadow: 0 8px 18px rgba(25, 18, 15, 0.12);
}

.badge.red {
  background: var(--red);
}

.badge.green {
  background: var(--green);
}

.discount {
  position: relative;
  font-size: 38px;
  font-weight: 950;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(25, 18, 15, 0.35);
}

.card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.card-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.favorite-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8ef;
  color: #c9aaa0;
  font-size: 18px;
}

.favorite-btn.active {
  background: #ffe0df;
  color: var(--red);
}

.info {
  margin: 14px 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.period {
  color: var(--text);
  font-weight: 900;
}

.seat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.seat-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff8ef;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.seat-chip b {
  color: var(--primary-dark);
}

.seat-chip em {
  border-radius: 999px;
  padding: 2px 6px;
  background: #f1e5dc;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.seat-chip small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.seat-chip s {
  color: #ad9b92;
  font-size: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 26px;
  font-weight: 950;
  color: var(--primary-dark);
}

.original-price {
  color: #ad9b92;
  text-decoration: line-through;
}

.buy-btn {
  flex: 1 1 140px;
  text-align: center;
  display: grid;
  gap: 2px;
  place-items: center;
  line-height: 1.25;
}

.buy-btn small {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.86;
}

.booking-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-btn {
  flex: 0 0 76px;
}

.empty-message,
.empty-inline {
  padding: 26px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.admin-lock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.admin-area[hidden],
.admin-lock[hidden],
.admin-section[hidden] {
  display: none;
}

.notice-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.admin-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-item:first-child {
  border-top: 0;
}

.admin-item div:first-child {
  display: grid;
  gap: 6px;
}

.admin-item span,
.admin-item small,
.admin-item a {
  color: var(--muted);
  line-height: 1.5;
  word-break: break-all;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff8ef;
  color: var(--primary-dark);
  font-weight: 900;
}

footer {
  padding: 44px 20px;
  text-align: center;
  background: #33221c;
  color: #fff4e8;
}

footer p {
  margin: 8px 0 12px;
  color: #f6c7a5;
}

footer small {
  color: #d9b69d;
}

@media (max-width: 900px) {
  .stats,
  .deal-list,
  .filter-grid,
  .form-grid,
  .two-column,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    display: block;
  }

  .section-sub {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .nav,
  .admin-lock,
  .notice-form,
  .notice {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-form {
    grid-template-columns: 1fr;
  }

  .nav {
    display: flex;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 14px;
    font-size: 14px;
  }

  .hero-content {
    margin-top: 70px;
  }

  .stats,
  .deal-list,
  .filter-grid,
  .form-grid,
  .two-column,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: column;
  }
}
