/* ===== 全体 ===== */
body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', 'Meiryo', 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, #aee1f9 0%, #67d9d3 100%);
  background-size: 400% 400%;
  animation: gradientBG 16s ease-in-out infinite;
}
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  25% {background-position: 50% 100%;}
  50% {background-position: 100% 50%;}
  75% {background-position: 50% 0%;}
  100% {background-position: 0% 50%;}
}

/* ===== プレイヤー ===== */
.player {
  background: rgba(255,255,255,0.48);
  border-radius: 32px;
  box-shadow: 0 6px 36px 0 rgba(30,60,180,0.11);
  max-width: 410px;
  margin: 40px auto 24px auto;
  padding: 34px 22px 30px 22px;
  text-align: center;
  position: relative;
}
.player h1 {
  font-size: 2.25em;
  font-weight: bold;
  color: #191c29;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.album-art img {
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(100,100,100,0.15);
  margin-bottom: 12px;
  width: 170px;
  height: 170px;
  background: #fff;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
  gap: 18px;
}
.btn {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: not-allowed;
}
.btn svg { width: 32px; height: 32px; fill: #fff; }
.btn-play-pause {
  background: linear-gradient(135deg, #f083ba 0%, #e75e8d 100%);
  box-shadow: 0 4px 16px rgba(232, 72, 145, 0.18);
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
}
.status-btn {
  background: #fff2f7;
  color: #e75e8d;
  border: none;
  padding: 7px 24px;
  border-radius: 16px;
  font-weight: bold;
  margin: 16px 0 0 0;
  font-size: 1.1rem;
  cursor: not-allowed;
}
.volume-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 8px 0;
}
.volume-slider { accent-color: #f083ba; width: 120px; }
.volume-percentage { min-width: 44px; text-align: left; font-size: .95em; color: #444; }

/* ===== 通話UI ===== */
.call-area {
  background: rgba(255,255,255,0.52);
  border-radius: 30px;
  box-shadow: 0 0 32px #41ece388;
  max-width: 520px;
  margin: 30px auto 0 auto;
  padding: 34px 32px 30px 32px;
  text-align: center;
  color: #232a34;
  font-size: 1.11em;
  position: relative;
}
.call-area h2 {
  margin-top: 0;
  color: #e75e8d;
  font-size: 1.25em;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.call-area label {
  color: #2ec6e7;
  font-weight: bold;
  margin-bottom: 2px;
  display: block;
  text-align: left;
  margin-left: 8px;
  font-size: 1em;
  letter-spacing: 0.01em;
}
.call-area input[type="file"] { margin: 8px 0 4px 0; }
.call-area audio { margin: 8px 0 14px 0; }
.call-area .btn-main {
  margin: 18px 0 18px 0;
  font-size: 1.11em;
  font-weight: bold;
  padding: 13px 0;
  width: 80%;
  border-radius: 16px;
  background: linear-gradient(135deg, #fa6dc5 0%, #65d8fd 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 18px #7cf8ff50;
  transition: background 0.23s;
}
.call-area .btn-main:hover {
  background: linear-gradient(135deg, #fff 0%, #65d8fd 100%);
  color: #e75e8d;
}
.call-area .btn-main:active { background: #eee; color: #fa6dc5; }
.call-area .status-msg {
  color: #e75e8d;
  font-size: 1.03em;
  font-weight: bold;
  min-height: 22px;
  margin-bottom: 6px;
}
.member-count {
  font-weight: bold;
  color: #e75e8d;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 1.1em;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px #fff4;
  text-align: center;
}
.call-area ul {
  display:flex; gap:14px; justify-content:center; padding:0; list-style:none; margin:8px 0 0 0;
}
.call-area li {
  color: #33b1e7; font-weight: bold; font-size: 1.03em; letter-spacing: 0.04em; text-shadow: 0 1px 6px #fff7;
}

/* ===== 画面共有 ===== */
.screens-area { margin:22px 0 0 0; display:flex; flex-direction:column; gap:16px; align-items:center; width:100%; max-width:520px; }
.peer-screen-video {
  border-radius: 16px; box-shadow: 0 0 18px #37b6ff88; background: #0f162a; margin: 8px 0 0 0; width: 98%; max-width: 500px;
}

/* ===== メニュー ===== */
.menu-section {
  max-width: 370px;
  margin: 48px auto 34px auto;
  padding: 26px 16px 20px 16px;
  background: linear-gradient(135deg, #1e2a45 0%, #13b4c8 100%);
  border-radius: 22px;
  box-shadow: 0 4px 32px #0cd2f14a, 0 1.5px 12px #262a3440;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  border: 2px solid #33eff9;
  position: relative;
}
.menu-section a,
.menu-section button {
  display: block; text-align: center; font-size: 1.18em; font-weight: bold; border-radius: 14px; border: none;
  background: linear-gradient(90deg,#17f3ff 0%,#3998ff 80%); color: #fff; margin: 0; padding: 14px 0 12px 0;
  box-shadow: 0 0 18px #9df4ff30; text-decoration: none; cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.14s; outline: none; letter-spacing: 0.02em;
}
.menu-section a:hover,
.menu-section button:hover {
  background: linear-gradient(90deg,#fff 0%,#83e0ff 100%); color: #279be5; box-shadow: 0 0 16px #aef6ff77;
}
.menu-section button {
  background: #fff; color: #1e2a45; box-shadow: 0 1.5px 6px #7cf8ff40; border: 1.5px solid #eee; font-size: 1.09em;
  padding: 12px 0 10px 0; margin-top: 6px;
}
.menu-section button:hover { background: #ffe6fb; color: #d94f8c; border-color: #fdc0e6; }
.menu-section .memo-emoji { font-size: 1.23em; vertical-align: middle; margin-right: 4px; }

/* ===== チャットUI ===== */
.chat-toggle {
  position: fixed; bottom: 32px; right: 32px; width: 58px; height: 58px;
  background: linear-gradient(135deg,#e0bbf9,#ee8adf); border-radius: 50%; border: none; outline: none;
  cursor: pointer; z-index: 1101; box-shadow: 0 2px 12px rgba(0,0,0,0.14); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle svg { width: 30px; height: 30px; fill: #fff; }
.chat-dropdown {
  display: none; position: fixed; bottom: 100px; right: 30px; width: 325px; max-height: 430px;
  background: rgba(250,250,255,0.97); border-radius: 22px; box-shadow: 0 8px 32px rgba(162,40,200,0.13);
  z-index: 1200; flex-direction: column; overflow: hidden;
}
.chat-dropdown.dropdown-active { display: flex; animation: fadeIn .16s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} }
.chat-header {
  background: linear-gradient(90deg,#e4a7f8 0%,#e96f98 100%); color: #fff; padding: 13px; text-align: center;
  font-weight: bold; border-bottom: 1px solid #f6daf7; font-size: 1.07rem; position: relative;
}
.chat-header .chat-user {
  position: absolute; right: 14px; top: 8px; font-weight: normal; font-size: .95em;
  color: #e75e8d; cursor: pointer; background: #fff7; border-radius: 10px; padding: 2px 10px;
  transition: background .15s;
}
.chat-header .chat-user:hover { background: #fff; color: #a080cf; }
.chat-messages { flex: 1; overflow-y: auto; padding: 13px; background: #f8f2fb; font-size: 1.02rem; }
.chat-input-wrap { display: flex; border-top: 1px solid #eeeef4; background: #fff; padding: 10px; }
.chat-input { flex: 1; border: none; outline: none; padding: 8px 12px; border-radius: 10px; font-size: 1.07rem; margin-right: 8px; background: #f3eafd; }
.chat-send { border: none; background: linear-gradient(135deg, #b383de 0%, #e75e8d 100%); color: #fff; border-radius: 12px; padding: 8px 18px; font-size: 1rem; cursor: pointer; }

/* ===== モーダル ===== */
#nameModal { display: none; position:fixed; top:0; left:0; width:100vw; height:100vh; z-index:5000; background:rgba(0,0,0,.33); }
#nameModal .modal-inner {
  background:#fff; border-radius:20px; padding:32px 24px 24px 24px; max-width:340px; margin:120px auto 0 auto;
  box-shadow:0 6px 24px #0002; text-align:center;
}
#nameModal input[type=text] { width:90%; font-size:1.1em; padding:8px; border-radius:10px; border:1px solid #ddd; }
#nameModal button {
  margin-top:18px; background:linear-gradient(135deg,#b383de,#e75e8d); color:#fff; border:none; border-radius:12px;
  padding:8px 24px; font-size:1.1em; cursor:pointer;
}
