:root {
  color-scheme: dark;
  --bg: #060812;
  --panel: #111727;
  --panel-soft: #151d31;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f5f7fb;
  --muted: #aeb8ca;
  --cyan: #35d9f4;
  --pink: #ff6edc;
  --violet: #8d6bff;
  --green: #8cffd1;
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 0%, rgba(53, 217, 244, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(255, 110, 220, 0.18), transparent 24rem),
    linear-gradient(180deg, #070a14 0%, #090d19 44%, #050711 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 210px;
}

.brand-mark {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(53, 217, 244, 0.55), transparent 42%),
    linear-gradient(45deg, rgba(255, 110, 220, 0.55), transparent 48%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 24px rgba(53, 217, 244, 0.28);
  font-size: 24px;
  font-weight: 950;
}

.brand strong {
  display: block;
  letter-spacing: 0.14em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.top-nav a,
.ghost-button,
.primary-button,
.filter-chip,
.hero-tab {
  min-height: 40px;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a:hover,
.ghost-button:hover,
.filter-chip:hover,
.hero-tab:hover {
  border-color: rgba(53, 217, 244, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  width: min(28vw, 280px);
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 217, 244, 0.14);
}

.ghost-button,
.primary-button,
.filter-chip,
.hero-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  cursor: pointer;
}

.ghost-button,
.filter-chip,
.hero-tab {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.primary-button {
  color: #06101a;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 8vw, 84px) 0 76px;
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: 44px;
  left: -12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.hero-tabs,
.filter-bar,
.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.orb {
  display: grid;
  place-items: center;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(53, 217, 244, 0.45), transparent 38%),
    linear-gradient(45deg, rgba(255, 110, 220, 0.45), transparent 45%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 90px rgba(53, 217, 244, 0.2),
    inset 0 0 70px rgba(255, 255, 255, 0.08),
    var(--shadow);
}

.orb-letter {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(118px, 16vw, 190px);
  font-weight: 950;
  text-shadow:
    0 0 32px rgba(255, 255, 255, 0.22),
    0 20px 36px rgba(0, 0, 0, 0.42);
}

.signal-card {
  position: absolute;
  right: 0;
  bottom: 46px;
  width: min(310px, 74%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 39, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-card span,
.admin-grid span,
.notice span,
.content-item span,
.clip-card span,
.quick-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.hero-tabs {
  position: absolute;
  bottom: 22px;
  left: 0;
}

.hero-tab.active,
.filter-chip.active {
  color: #041019;
  border-color: transparent;
  background: var(--cyan);
  font-weight: 900;
}

.quick-stats,
.clip-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-stats {
  margin-bottom: 96px;
}

.quick-stats article,
.clip-card,
.notice-panel,
.board-section,
.admin-section,
.content-item,
.admin-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 23, 39, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.quick-stats article {
  padding: 20px;
}

.quick-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.section-grid,
.two-column,
.board-section,
.admin-section {
  margin-bottom: 96px;
}

.section-heading {
  margin-bottom: 24px;
}

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

.section-heading p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading.compact h2 {
  font-size: 30px;
}

.filter-bar {
  margin-bottom: 18px;
}

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

.clip-card {
  min-height: 240px;
  overflow: hidden;
}

.clip-thumb {
  display: flex;
  align-items: end;
  min-height: 132px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(53, 217, 244, 0.28), rgba(255, 110, 220, 0.16)),
    linear-gradient(160deg, #162844, #121827);
}

.clip-thumb strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
}

.clip-card-body {
  padding: 16px;
}

.clip-card h3 {
  margin: 8px 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 160px;
}

.empty-card p,
.empty-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.clip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.clip-meta b {
  padding: 5px 8px;
  color: var(--green);
  border: 1px solid rgba(140, 255, 209, 0.24);
  border-radius: 8px;
  font-size: 12px;
  background: rgba(140, 255, 209, 0.06);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px;
  align-items: start;
}

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

.content-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.empty-content {
  grid-template-columns: 1fr;
  min-height: 130px;
}

.content-date {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
}

.content-date strong {
  display: block;
  color: var(--cyan);
  font-size: 24px;
}

.content-item h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}

.content-item p {
  margin: 0;
  color: var(--muted);
}

.status {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.status.live {
  color: #06101a;
  background: var(--green);
}

.status.scheduled {
  color: #06101a;
  background: var(--warning);
}

.notice-panel,
.board-section,
.admin-section {
  padding: clamp(18px, 3vw, 26px);
}

.notice {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.notice strong {
  display: block;
  margin-top: 7px;
}

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

.important span {
  color: var(--pink);
}

.pinned span {
  color: var(--cyan);
}

.board-toolbar {
  margin-bottom: 18px;
}

.board-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.board-row {
  display: grid;
  grid-template-columns: 100px minmax(220px, 1fr) 110px 70px 80px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.board-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.board-row:last-child {
  border-bottom: 0;
}

.empty-row strong {
  color: var(--muted);
}

.board-head {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 900;
}

.admin-grid article {
  padding: 20px;
}

.admin-grid strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 19px;
}

.admin-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  padding: 34px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--text);
  letter-spacing: 0.14em;
}

.is-hidden {
  display: none;
}

.modal {
  width: min(94vw, 520px);
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 30, 0.98);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.modal-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 28px;
}

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

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

.signup-only {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.modal input,
.modal select {
  min-height: 44px;
  padding: 0 12px;
}

.modal textarea {
  resize: vertical;
  min-height: 130px;
  padding: 12px;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 217, 244, 0.14);
}

.form-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-help.error {
  color: #ff9bad;
}

.form-help.success {
  color: var(--green);
}

.verify-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

#recaptchaContainer {
  min-height: 0;
  overflow-x: auto;
}

.verify-status.pending {
  color: var(--warning);
}

.verify-status.success {
  color: var(--green);
}

.verify-status.error {
  color: #ff9bad;
}

.google-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.google-button span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #06101a;
  border-radius: 50%;
  background: var(--text);
  font-weight: 900;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .search-box input {
    width: min(100%, 360px);
  }

  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quick-stats,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-actions .ghost-button,
  .header-actions .primary-button {
    flex: 1 1 120px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .signal-card {
    right: 50%;
    width: 86%;
    transform: translateX(50%);
  }

  .quick-stats,
  .clip-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .content-item {
    grid-template-columns: 1fr;
  }

  .status {
    width: max-content;
  }

  .board-table {
    overflow-x: auto;
  }

  .board-row {
    min-width: 680px;
  }

  .verification-row {
    grid-template-columns: 1fr;
  }
}
