@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Inter:wght@400;500&display=swap');

:root {
  --bg: #eef3fb;
  --panel: #ffffff;
  --edge: #d3e0f2;
  --gold: #2f5fac;
  --gold-dim: #7fa1d6;
  --text: #1c2b40;
  --muted: #64748c;
  --movie: #2f6db3;
  --show: #a1568f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, rgba(47,95,172,0.07), transparent 45%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.wrap.wide {
  max-width: 1080px;
}

.marquee {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 0 0 4px;
}

.subhead {
  color: var(--muted);
  margin: 0 0 36px;
  font-size: 0.95rem;
}

nav.tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 12px;
}

nav.tabs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

nav.tabs a.active {
  color: var(--gold);
  font-weight: 500;
}

.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: 28px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input[type=text],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 3px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

.field textarea { resize: vertical; min-height: 60px; }

.radio-row {
  display: flex;
  gap: 20px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

button.save {
  background: var(--gold);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 11px 22px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

button.save:hover { background: #244d8f; }

.notice {
  background: #e5f3ea;
  border: 1px solid #b9dcc4;
  color: #2f6b45;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-bar input[type=text] {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
}

.filter-bar select {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
}

.filter-bar input[type=text]:focus,
.filter-bar select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(47,95,172,0.12);
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 16px rgba(47,95,172,0.08);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 600;
  padding: 16px 22px;
  border-bottom: 2px solid var(--gold);
  background: #dce9fa;
}

tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--edge);
  vertical-align: middle;
  font-size: 1rem;
  position: relative;
}

tbody tr:nth-child(even) td {
  background: #f6f9fe;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #e9f1fc;
}

tbody td:first-child {
  border-left: 4px solid var(--edge);
}

tbody tr[data-type="movie"] td:first-child { border-left-color: var(--movie); }
tbody tr[data-type="show"] td:first-child { border-left-color: var(--show); }

.row-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text);
}

.row-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  color: #ffffff;
}

.badge.movie { background: var(--movie); }
.badge.show { background: var(--show); }

.service-form { margin: 0; }

.col-service {
  text-align: left;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  border-radius: 20px;
  padding: 3px 6px 3px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.service-remove {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
}

.service-remove:hover {
  color: #ffffff;
}

.service-add {
  appearance: none;
  -webkit-appearance: none;
  border: 1px dashed var(--edge);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 3px 10px;
  cursor: pointer;
}

.service-add:focus {
  outline: none;
  border-color: var(--gold);
}

.col-title {
  min-width: 260px;
}

.col-date {
  color: var(--muted);
  white-space: nowrap;
}

.col-remove {
  text-align: right;
  white-space: nowrap;
}

.remove-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}

.remove-icon:hover {
  background: #fbe9e7;
  color: #a13f2e;
}

.empty {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  border: 1px dashed var(--edge);
  border-radius: 4px;
}
