/* Logo */
.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
}

.logo-accent { color: var(--accent); }

/* Device + browser badge */
.env-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
}

/* Notice bar */
.notice-icon {
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-text {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.2px;
  line-height: 1.6;
}

/* Channel card */
.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  min-height: 72px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.08s;
  user-select: none;
}

.channel-card:last-child { border-bottom: none; }

.channel-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0;
}

.channel-card.hdr::before  { background: var(--green); }
.channel-card.uhd::before  { background: var(--accent); }
.channel-card.hd::before   { background: var(--text-3); }

.channel-card:active { background: var(--bg-3); }

.channel-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-quality {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
}

.channel-card.hdr .channel-quality { color: var(--green); }
.channel-card.uhd .channel-quality { color: var(--accent); }

.channel-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.channel-meta {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.channel-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  padding-left: 8px;
}

.channel-action svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Loading skeleton */
.skeleton-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  min-height: 72px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 0%,
    var(--bg-4) 50%,
    var(--border) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 3px;
  flex-shrink: 0;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modal */
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-2);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.modal-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 22px;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 46px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: opacity 0.1s;
}

.modal-btn:active { opacity: 0.75; }
.modal-btn:last-child { margin-bottom: 0; }

.modal-btn-primary {
  background: var(--accent);
  color: #fff;
}

.modal-btn-secondary {
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}

.modal-btn-ghost {
  background: transparent;
  color: var(--text-3);
  font-weight: 400;
  font-size: 14px;
}

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* QR code */
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* Copy success state */
.copy-success {
  color: var(--green) !important;
}

/* Instructions list */
.instructions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.instruction-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
}

.step-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 10px;
  margin-top: 4px;
  word-break: break-all;
  display: block;
}
