/* styles.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

header {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  /* 渐变背景 */
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* 添加阴影 */
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.ai {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share {
  color: #fff;
}

.tagline {
  font-size: 18px;
  margin: 10px 0 0;
  color: #fff;
  opacity: 0.9;
}

main {
  padding: 20px;
}

.video-player {
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}

.video-player iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border: none;
  background-color: #333;
}

.ad-warning {
  background-color: rgba(255, 59, 48, 0.9);
  /* 红色背景 */
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 10;
  /* 确保提醒在视频上方 */
  display: flex;
  align-items: center;
  max-width: fit-content;
  margin: 0 auto;
}

.input-section {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.input-section input {
  width: 60%;
  max-width: 500px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  height: 40px;
}

.dropdown {
  position: relative;
  display: inline-block;
  flex: 1;
}

.dropdown-toggle {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  /* 移除 <summary> 默认的箭头 */
  justify-content: space-between;
  height: 40px;
  box-sizing: border-box;
}

.dropdown-toggle::-webkit-details-marker {
  display: none;
  /* 隐藏默认的三角箭头 */
}

.dropdown-toggle .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  /* 添加箭头旋转动画 */
}

.dropdown[open] .arrow {
  transform: rotate(180deg);
  /* 展开时箭头旋转 */
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 100%;
}

.dropdown-menu li {
  padding: 10px 20px;
  cursor: pointer;
  color: #333;
  text-align: left;
}

.dropdown-menu li:hover {
  background-color: #f1f1f1;
}

#parse-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#parse-btn:hover {
  background-color: #555;
}

.disclaimer {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 20px;
}