:root {
  --bg: #d4d4d4;
  --bg-dark: #c9c9c9;
  --panel: #ffffff;
  --text: #101215;
  --muted: #4f5257;
  --accent: #111111;
  --line: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Sans", "Noto Sans", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #ececec 0%, transparent 60%),
              radial-gradient(900px 700px at 85% 0%, #bfc3c9 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
  color: var(--text);
}

.top_banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 0 6px;
}

.top_banner img {
  width: min(140px, 50vw);
  height: auto;
}

.site_header {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 24px 0 48px;
}

h1, h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 6px;
}

.button_action_highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  border: 2px solid #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

.media_card {
  background: var(--panel);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.media_card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.media_card:hover img {
  filter: grayscale(0%);
}

.media_title {
  margin-top: 8px;
  font-weight: 600;
}

.upload_panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.upload_form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form_row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form_row input,
.form_row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.form_split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

#map {
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.media_detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.media_player video,
.media_player img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  background: #000;
}

.media_cable {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.cable_block {
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", monospace;
  background: #f4f4f4;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  text-align: center;
  color: var(--muted);
}

.footer_logo img {
  width: min(140px, 50vw);
  margin-top: 10px;
}

.device_notice {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.device_badge {
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 900px) {
  .media_detail {
    grid-template-columns: 1fr;
  }

  .media_grid {
    grid-template-columns: 1fr;
  }
}
