/* ============================================
 * Base
 * ============================================ */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #eaeaf0;
  line-height: 1.6;
  background-color: #050514;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 79px, rgba(0, 229, 255, 0.035) 79px 80px),
    repeating-linear-gradient(45deg, transparent 0 119px, rgba(255, 61, 138, 0.03) 119px 120px),
    radial-gradient(ellipse at 50% -10%, #1e1044 0%, #0a0a22 45%, #030310 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background: rgba(0, 229, 255, 0.4);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a1e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#00e5ff, #ff3d8a);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#66f3ff, #ff70ab);
}

a {
  color: #00e5ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 1;
}

/* ============================================
 * Site header
 * ============================================ */
.site-header {
  position: relative;
  margin-bottom: 32px;
  padding-bottom: 22px;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #00e5ff 30%, #bb00ff 55%, #ff3d8a 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.site-header h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, #00e5ff 0%, #bb00ff 35%, #ff3d8a 65%, #e60033 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(230, 0, 51, 0.4));
}

.site-header h1 a,
.site-header h1 a:link,
.site-header h1 a:visited,
.site-header h1 a:hover,
.site-header h1 a:active {
  color: inherit;
  -webkit-text-fill-color: inherit;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}

.subtitle {
  color: #9090b0;
  margin: 6px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: #6a6a85;
  letter-spacing: 0.06em;
}

.site-footer a:hover {
  color: #9090b0;
  text-shadow: none;
}

/* Generic page h1 (/weepa/submit/ 等、site-header 外の h1) */
.container>h1 {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #00e5ff, #ff3d8a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 8px;
}

/* ============================================
 * Panel (共通の暗色半透明カード)
 * ============================================ */
.announcement,
.form,
.ranking-section,
.event-card {
  background: rgba(20, 20, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
 * WeePA section / Announcement
 * ============================================ */
.weepa-section,
.announcements {
  margin-bottom: 28px;
}

.weepa-section .announcement {
  background:
    linear-gradient(135deg, rgba(187, 0, 255, 0.09), rgba(255, 61, 138, 0.06)),
    rgba(20, 20, 42, 0.7);
}

.recent-events {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-events .recent-event {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-events .recent-event:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.weepa-links {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.weepa-links .sep {
  display: none;
}

.weepa-links a {
  display: inline-block;
  padding: 9px 20px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, text-shadow 0.15s ease;
}

.weepa-links a:hover {
  background: rgba(0, 229, 255, 0.16);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  text-decoration: none;
}

.announcement {
  padding: 18px 22px;
  margin-bottom: 14px;
  border-left: 3px solid #00e5ff;
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.announcement-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.announcement-head .badge {
  display: inline-block;
  padding: 6px 22px;
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 61, 138, 0.25) 0%, rgba(187, 0, 255, 0.25) 100%);
  border: 1px solid rgba(255, 61, 138, 0.5);
  border-radius: 999px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(255, 61, 138, 0.6);
  box-shadow: 0 0 14px rgba(255, 61, 138, 0.25);
}

.weepa-status-card {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
}

.weepa-status-card + .weepa-status-card {
  margin-top: 14px;
}

.weepa-status-body .hint {
  margin: 8px 0 0;
  color: #9090b0;
  font-size: 0.92rem;
}

.weepa-pending {
  display: inline-block;
  padding: 10px 20px;
  color: #c0c0e0;
  background: rgba(20, 20, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.weepa-status-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00e5ff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

.weepa-status-body {
  font-size: 0.95rem;
}

.announcement-body .loading {
  color: #8a8aaa;
}

.announcements .empty {
  color: #8a8aaa;
  padding: 14px 18px;
  background: rgba(20, 20, 42, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin: 0;
}

.announcements .error {
  color: #ff6aa8;
}

/* ============================================
 * Event card / event title
 * ============================================ */
.event-card {
  margin-top: 24px;
  padding: 22px;
  border-left: 3px solid #00e5ff;
}

.event-card h2 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #00e5ff;
  font-weight: normal;
  letter-spacing: 0.14em;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.event-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.event-title .song {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  letter-spacing: 0.02em;
}

span.effect {
  display: inline-block;
  box-sizing: border-box;
  min-width: 64px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  text-align: center;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.6);
  white-space: nowrap;
}

/* エフェクト別の配色（SDVX 本家準拠を意識） */
span.effect.effect-nov {
  color: #3a4fd0;
  background: rgba(58, 79, 208, 0.2);
  border-color: rgba(58, 79, 208, 0.75);
  text-shadow: 0 0 4px rgba(58, 79, 208, 0.85);
}
span.effect.effect-adv {
  color: #ffce00;
  background: rgba(255, 206, 0, 0.16);
  border-color: rgba(255, 206, 0, 0.65);
  text-shadow: 0 0 4px rgba(255, 206, 0, 0.7);
}
span.effect.effect-exh {
  color: #ff3850;
  background: rgba(255, 56, 80, 0.18);
  border-color: rgba(255, 56, 80, 0.65);
  text-shadow: 0 0 4px rgba(255, 56, 80, 0.7);
}
span.effect.effect-mxm {
  color: #e6e6e6;
  background: linear-gradient(135deg, rgba(230, 230, 230, 0.22) 0%, rgba(160, 160, 160, 0.18) 100%);
  border-color: rgba(220, 220, 220, 0.7);
  text-shadow: 0 0 4px rgba(220, 220, 220, 0.7);
}
span.effect.effect-inf {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(255, 50, 170, 0.65) 0%,
    rgba(255, 90, 200, 0.6) 35%,
    rgba(168, 85, 247, 0.5) 75%,
    rgba(80, 112, 255, 0.35) 100%
  );
  border-color: rgba(255, 80, 180, 0.8);
  text-shadow: 0 0 4px rgba(255, 70, 180, 0.85);
}
span.effect.effect-grv {
  color: #ff7c1a;
  background: rgba(255, 124, 26, 0.16);
  border-color: rgba(255, 124, 26, 0.65);
  text-shadow: 0 0 4px rgba(255, 124, 26, 0.7);
}
span.effect.effect-hvn {
  color: #7ed1f0;
  background: rgba(126, 209, 240, 0.2);
  border-color: rgba(126, 209, 240, 0.75);
  text-shadow: 0 0 4px rgba(126, 209, 240, 0.8);
}
span.effect.effect-vvd {
  color: #ff52a8;
  background: rgba(255, 82, 168, 0.18);
  border-color: rgba(255, 82, 168, 0.65);
  text-shadow: 0 0 4px rgba(255, 82, 168, 0.7);
}
span.effect.effect-xcd {
  color: #2ea1ff;
  background: rgba(46, 161, 255, 0.16);
  border-color: rgba(46, 161, 255, 0.65);
  text-shadow: 0 0 4px rgba(46, 161, 255, 0.7);
}
span.effect.effect-ult {
  color: #fff8d6;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 220, 0.45) 0%,
      rgba(255, 215, 0, 0.55) 28%,
      rgba(255, 160, 30, 0.45) 55%,
      rgba(255, 215, 0, 0.55) 78%,
      rgba(255, 255, 220, 0.45) 100%
    );
  border-color: rgba(255, 215, 0, 0.95);
  box-shadow:
    0 0 14px rgba(255, 215, 0, 0.5),
    0 0 24px rgba(255, 165, 0, 0.25),
    inset 0 0 8px rgba(255, 255, 220, 0.45);
  text-shadow:
    0 0 4px rgba(255, 215, 0, 1),
    0 0 10px rgba(255, 165, 0, 0.7);
}

.event-display .period {
  color: #9090b0;
  font-size: 0.9rem;
  margin: 10px 0 0;
  letter-spacing: 0.03em;
}

.event-link-wrap {
  margin: 14px 0 0;
}

.event-link {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff3d8a 0%, #bb00ff 100%);
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.08em;
  box-shadow: 0 0 14px rgba(255, 61, 138, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.event-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 61, 138, 0.7);
  filter: brightness(1.08);
  text-decoration: none;
}

.event-display .empty,
.ranking-section .empty {
  color: #8a8aaa;
  margin: 0;
}

.event-display .loading {
  color: #8a8aaa;
}

.event-display .error {
  color: #ff6aa8;
}

/* ============================================
 * Navigation
 * ============================================ */
.nav {
  margin-top: 28px;
}

.nav ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.nav a {
  display: inline-block;
  padding: 12px 22px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
}

/* ============================================
 * Form
 * ============================================ */
.form {
  padding: 24px;
  margin-top: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #d0d0e6;
  letter-spacing: 0.05em;
}

.field .required {
  color: #ff3d8a;
  font-weight: normal;
  text-shadow: 0 0 4px rgba(255, 61, 138, 0.6);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  color: #fff;
  background: rgba(8, 8, 22, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field input[type="file"]:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #00e5ff;
  background: rgba(8, 8, 22, 0.9);
  box-shadow: 0 0 0 1px #00e5ff, 0 0 14px rgba(0, 229, 255, 0.4);
}

.field input[type="file"] {
  padding: 8px 10px;
  cursor: pointer;
}

.field input[type="file"]::-webkit-file-upload-button {
  padding: 6px 12px;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, #00e5ff 0%, #bb00ff 100%);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  padding: 6px 12px;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, #00e5ff 0%, #bb00ff 100%);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
}

.field .hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #8a8aaa;
}

.field .error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #ff6aa8;
  min-height: 1em;
  text-shadow: 0 0 4px rgba(255, 61, 138, 0.4);
}

.form-actions {
  margin-top: 24px;
}

.form-actions button {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #00e5ff 0%, #bb00ff 55%, #ff3d8a 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow:
    0 0 16px rgba(187, 0, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.form-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 0 22px rgba(255, 61, 138, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

.form-actions button:disabled {
  background: #40405a;
  cursor: not-allowed;
  box-shadow: none;
}

/* Result banner */
.result {
  margin: 18px 0;
  min-height: 0;
}

.result:empty {
  display: none;
}

.result.ok {
  background: linear-gradient(90deg, rgba(0, 255, 150, 0.12), rgba(0, 255, 150, 0.02));
  color: #6affc0;
  border: 1px solid rgba(0, 255, 150, 0.4);
  border-left: 4px solid #00e5a0;
  padding: 14px 18px;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 0 16px rgba(0, 255, 150, 0.2);
  text-shadow: 0 0 6px rgba(0, 255, 150, 0.5);
}

.result.ng {
  background: linear-gradient(90deg, rgba(255, 61, 138, 0.12), rgba(255, 61, 138, 0.02));
  color: #ff6aa8;
  border: 1px solid rgba(255, 61, 138, 0.4);
  border-left: 4px solid #ff3d8a;
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(255, 61, 138, 0.25);
}

.result.info {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.02));
  color: #66f3ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-left: 4px solid #00e5ff;
  padding: 14px 18px;
  border-radius: 4px;
}

/* ============================================
 * Ranking
 * ============================================ */
.ranking-section {
  margin-top: 24px;
  padding: 22px;
}

.ranking-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: #00e5ff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(255, 61, 138, 0.06));
}

.ranking-table th,
.ranking-table td {
  padding: 10px 10px;
  text-align: left;
}

.ranking-table th {
  font-size: 0.8rem;
  color: #00e5ff;
  font-weight: normal;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.ranking-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ranking-table tbody tr {
  transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
  background: rgba(0, 229, 255, 0.06);
}

.ranking-table .name {
  color: #eaeaf0;
}

.ranking-table .score {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: bold;
  color: #fff;
}

.ranking-table .ex {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #9090b0;
}

.ranking-table .status-cell {
  text-align: center;
  white-space: nowrap;
}

.ranking-table .rank {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #9090b0;
  width: 3em;
}

.ranking-table .last-submit {
  font-variant-numeric: tabular-nums;
  color: #9090b0;
  white-space: nowrap;
}

.ranking-table .update-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #9090b0;
}

.ranking-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.ranking-table th.sortable:hover {
  color: #ff3d8a;
  text-shadow: 0 0 6px rgba(255, 61, 138, 0.5);
}

.weepa-status-body .submitter,
.weepa-status-body .submit-reason {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #c0c0d8;
  letter-spacing: 0.02em;
}

.weepa-status-body .submit-reason .label {
  color: #00e5ff;
  margin-right: 4px;
}

.queue-table tbody tr[draggable="true"] {
  cursor: grab;
}

.queue-table tbody tr[draggable="true"]:active {
  cursor: grabbing;
}

.queue-table tbody tr.dragging {
  opacity: 0.4;
  background: rgba(0, 229, 255, 0.12);
}

.queue-table tbody tr.dragging td.rank {
  color: #00e5ff;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.status-active {
  color: #00e5ff;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.status-tallying {
  color: #9090b0;
  letter-spacing: 0.06em;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  vertical-align: middle;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 112, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  background: #eaeaf0;
  border-radius: 50%;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00e5ff 0%, #00a8d8 100%);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: #fff;
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle-label {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.85rem;
  vertical-align: middle;
}

.status-link {
  color: #00e5ff;
  text-decoration: underline;
}

.status-link:hover {
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

/* ============================================
 * Admin
 * ============================================ */
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(8, 8, 22, 0.55);
}

.admin-item p {
  margin: 6px 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.admin-actions .action-approve {
  background: linear-gradient(135deg, #00e5ff 0%, #00a8d8 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.admin-edit-fields {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.admin-edit-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: #c0c0e0;
}

.admin-edit-fields input,
.admin-edit-fields select {
  padding: 8px 10px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  background: #0c0c1f;
  color: #fff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 4px;
  min-width: 160px;
}

.admin-edit-fields input:focus,
.admin-edit-fields select:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.admin-actions .action-reject {
  background: linear-gradient(135deg, #ff3d8a 0%, #bb00ff 100%);
  box-shadow: 0 0 12px rgba(255, 61, 138, 0.35);
}

.admin-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-nav {
  margin: 10px 0 18px;
  font-size: 0.92rem;
}

.inner-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
}

.inner-tabs button {
  padding: 8px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #9090b0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.inner-tabs button:hover {
  color: #c0c0e0;
  background: rgba(0, 229, 255, 0.06);
}

.inner-tabs button.active {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.4);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.schedule-info {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 8px 0 14px;
}

.schedule-info dt {
  color: #9090b0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.schedule-info dd {
  margin: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.schedule-info code {
  padding: 2px 6px;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 3px;
}

.admin-nav .sep {
  color: #505070;
  margin: 0 6px;
}

.db-table-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.db-table-picker label {
  color: #c0c0e0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.db-table-picker select {
  padding: 8px 12px;
  font-size: 1rem;
  background: #0c0c1f;
  color: #fff;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 4px;
}

.db-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.db-table {
  font-size: 0.82rem;
  min-width: max-content;
}

.db-table td.actions {
  white-space: nowrap;
}

.db-table input[type="text"],
.db-table input:not([type]),
.db-table input[type="number"],
.db-table input[type="datetime-local"],
.db-table select {
  padding: 4px 6px;
  font-size: 0.85rem;
  min-width: 60px;
}

.db-table .action-edit,
.db-table .action-save,
.db-table .action-cancel,
.db-table .action-delete {
  padding: 4px 10px;
  font-size: 0.8rem;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  margin-right: 4px;
}

.db-table .action-edit,
.db-table .action-save {
  background: linear-gradient(135deg, #00e5ff 0%, #00a8d8 100%);
}

.db-table .action-cancel {
  background: #505070;
}

.db-table .action-delete {
  background: linear-gradient(135deg, #ff3d8a 0%, #bb00ff 100%);
}

.db-table tr.editing {
  background: rgba(0, 229, 255, 0.06);
}

.db-table .dim {
  color: #7a7a95;
  font-size: 0.78rem;
}

/* ============================================
 * モバイル対応 (〜600px)
 * ============================================ */
@media (max-width: 600px) {
  .container {
    padding: 24px 14px 40px;
  }

  .site-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .site-header h1 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
  }

  .container>h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .announcement,
  .event-card,
  .form,
  .ranking-section {
    padding: 16px 16px;
  }

  .event-title .song {
    font-size: 1.3rem;
  }

  .event-title .effect {
    font-size: 0.75rem;
  }

  .event-display .period {
    font-size: 0.82rem;
  }

  .field label {
    font-size: 0.95rem;
  }

  .form-actions button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

  .nav a {
    display: block;
    padding: 14px 16px;
    text-align: center;
  }

  .event-link {
    display: block;
    padding: 14px 16px;
    text-align: center;
  }

  .ranking-section {
    overflow-x: auto;
  }

  .ranking-table {
    min-width: 320px;
    font-size: 0.88rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 8px 6px;
  }

  .ranking-table .score,
  .ranking-table .ex {
    white-space: nowrap;
  }

  .result {
    font-size: 0.92rem;
  }

  .admin-actions button {
    width: 100%;
  }
}
