* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "맑은 고딕", "Segoe UI", sans-serif;
  background: #121212; color: #eee; line-height: 1.6;
  min-height: 100vh;
}
a { color: #ffd54f; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 헤더 */
header {
  background: #1a1a1a; padding: 16px 24px;
  border-bottom: 2px solid #ffd54f;
  position: sticky; top: 0; z-index: 10;
}
header h1 { font-size: 22px; }
header h1 a { color: #ffd54f; }

/* 레이아웃 */
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 60px; }
section { margin-bottom: 40px; }
section > h2 {
  font-size: 19px; margin-bottom: 12px;
  border-left: 4px solid #ffd54f; padding-left: 12px;
}

/* 미디어 목록 */
.media-list { list-style: none; }
.media-list li {
  padding: 12px 8px; border-bottom: 1px solid #2a2a2a;
  display: flex; align-items: center; gap: 10px;
}
.media-list li:hover { background: #1e1e1e; }
.media-list .icon { font-size: 18px; }
.media-list a { color: #ddd; flex: 1; }
.media-list a:hover { color: #ffd54f; text-decoration: none; }
.media-list .date { font-size: 12px; color: #666; }

/* 플레이어 */
.player-wrap {
  background: #1a1a1a; border-radius: 12px;
  padding: 24px; margin: 20px 0;
}
.player-wrap h2 { color: #ffd54f; margin-bottom: 16px; }
audio { width: 100%; }
video {
  width: 100%; max-height: 80vh;
  border-radius: 8px; background: #000;
}
.media-meta {
  font-size: 13px; color: #888; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid #2a2a2a;
}

/* 카드 (관리자) */
.card {
  background: #1a1a1a; border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.card h3 { color: #ffd54f; margin-bottom: 12px; font-size: 17px; }

/* 폼 */
input[type=text], input[type=password], input[type=file], select {
  width: 100%; padding: 10px; border-radius: 6px;
  border: 1px solid #333; background: #222; color: #eee;
  font-size: 15px; margin: 4px 0 12px;
}
input:focus, select:focus { outline: none; border-color: #ffd54f; }
label { display: block; margin-bottom: 4px; font-size: 14px; color: #aaa; }
button, .btn {
  background: #ffd54f; color: #121212; border: none;
  padding: 10px 20px; border-radius: 6px; cursor: pointer;
  font-size: 15px; font-weight: bold;
}
button:hover, .btn:hover { background: #ffca28; text-decoration: none; }
.btn-danger { background: #e53935; color: #fff; }
.btn-danger:hover { background: #c62828; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* 알림 */
.msg { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.msg-ok { background: #1b5e20; color: #c8e6c9; }
.msg-err { background: #b71c1c; color: #ffcdd2; }

/* 관리자 네비 */
.admin-nav {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px;
}
.admin-nav a {
  background: #1a1a1a; padding: 8px 16px; border-radius: 6px;
  font-size: 14px;
}
.admin-nav a:hover { background: #ffd54f; color: #121212; text-decoration: none; }

/* 반응형 */
@media (max-width: 600px) {
  header h1 { font-size: 18px; }
  main { padding: 16px 12px 40px; }
  .player-wrap { padding: 16px; }
}
