/* 复刻原油猴脚本深色卡片 + 绿色脉冲 UI */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0a0c;
  color: #ececec;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 32px;
}

.topbar h1 {
  font-size: 22px;
  margin: 8px 0 4px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.topbar .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  vertical-align: middle;
  letter-spacing: 0.5px;
}
.topbar .hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #888;
}

.form-card {
  background: #18181c;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.form-card input[type="text"] {
  width: 100%;
  background: #0e0e10;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 14px;
  color: #ececec;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-card input[type="text"]:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
.form-card button {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.12s, filter 0.2s;
}
.form-card button:active { transform: scale(0.98); }
.form-card button:hover { filter: brightness(1.1); }
.form-card button:disabled {
  background: #333;
  cursor: not-allowed;
  filter: none;
}

.status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  background: #18181c;
  border: 1px solid #2a2a2a;
}
.status.info  { border-color: #3b82f6; color: #93c5fd; }
.status.ok    { border-color: #10b981; color: #6ee7b7; }
.status.err   { border-color: #ef4444; color: #fca5a5; }

.player-card {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid #2a2a2a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9);
}
.player-header {
  padding: 14px 18px;
  background: #18181c;
  border-bottom: 1px solid #0d0d0f;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-title {
  font-size: 16px;
  font-weight: 600;
  color: #ececec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}
.player-meta {
  font-size: 12px;
  color: #10b981;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.player-meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}
#video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}
.player-actions {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #18181c;
  border-top: 1px solid #0d0d0f;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.player-actions button {
  background: #2a2a2a;
  color: #ececec;
  border: 1px solid #3a3a3a;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.player-actions button:hover { background: #3a3a3a; }
.player-actions a {
  color: #10b981;
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
}
.player-actions a:hover { text-decoration: underline; }

.foot {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #555;
}

.hidden { display: none !important; }
