* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #e8eaed;
  --text-muted: #bdc1c6;
  --primary: #8ab4f8;
  --hover: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
  background: #202124;
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ---- Blurred background video ---- */
.bg-blur {
  position: fixed;
  inset: -60px;
  z-index: -1;
  overflow: hidden;
}

.bg-blur video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) brightness(0.4) saturate(140%);
  transform: scale(1.15);
}

.bg-blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,33,36,0.4) 0%, rgba(32,33,36,0.7) 100%);
}

/* ---- Top bar ---- */
.top-bar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  background: rgba(32, 33, 36, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.file-info {
  min-width: 0;
}

.file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tb-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.tb-btn:hover {
  background: var(--hover);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--hover);
}

.signin-btn {
  background: var(--primary);
  color: #202124;
  border: none;
  padding: 8px 18px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-left: 8px;
  transition: filter 0.15s;
}

.signin-btn:hover {
  filter: brightness(0.95);
}

/* ---- Viewer ---- */
.viewer {
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 16px;
}

.player-wrap {
  width: min(1100px, 92%);
  max-height: 75vh;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  position: relative;
}

.main-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-info {
  text-align: center;
  max-width: 800px;
}

.player-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.player-stats {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Demo banner ---- */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #fbbc04, #ea4335);
  color: #202124;
  font-size: 13px;
  position: relative;
  z-index: 20;
}

.demo-banner .material-symbols-outlined {
  font-size: 28px;
}

.demo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.demo-text strong {
  font-weight: 700;
  font-size: 13px;
}

.demo-text em {
  font-style: normal;
  font-weight: 600;
}

.demo-tag {
  font-size: 10px;
  font-weight: 700;
  background: #ea4335;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

/* ---- Consent modal ---- */
.consent-overlay,
.rejected-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 15, 18, 0.78);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.consent-card {
  background: #2b2c2f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 32px 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  color: var(--text);
  max-height: 92vh;
  overflow-y: auto;
}

.consent-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbc04, #ea4335);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.consent-icon .material-symbols-outlined {
  font-size: 30px;
  color: #202124;
}

.consent-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.consent-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.consent-desc strong {
  color: var(--text);
}

.consent-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.consent-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.consent-section-title .material-symbols-outlined {
  font-size: 18px;
  color: #8ab4f8;
}

.consent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consent-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-list strong {
  color: var(--text);
}

.consent-list .material-symbols-outlined {
  font-size: 18px;
  color: #8ab4f8;
  flex-shrink: 0;
  margin-top: 1px;
}

.consent-warning {
  display: flex;
  gap: 10px;
  background: rgba(234, 67, 53, 0.1);
  border-left: 3px solid #ea4335;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}

.consent-warning .material-symbols-outlined {
  color: #ea4335;
  flex-shrink: 0;
  margin-top: 1px;
}

.consent-warning strong {
  color: #f6a8a0;
}

.consent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.consent-meta .material-symbols-outlined {
  font-size: 16px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.consent-btn-primary,
.consent-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}

.consent-btn-primary {
  background: linear-gradient(135deg, #fbbc04, #ea4335);
  color: #202124;
  border: none;
}

.consent-btn-primary:hover {
  filter: brightness(1.05);
}

.consent-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.consent-btn-secondary:hover {
  background: rgba(255,255,255,0.06);
}

/* Rejected state card */
.rejected-card {
  background: #2b2c2f;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.rejected-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--text);
}

.rejected-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* ---- Capture panel ---- */
.capture-panel {
  margin: 20px auto 0;
  max-width: 700px;
  background: rgba(32, 33, 36, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.capture-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(234, 67, 53, 0.15);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
  font-size: 14px;
}

.capture-header .icon-btn {
  margin-left: auto;
}

.capture-body {
  padding: 8px 0;
}

.capture-row {
  display: flex;
  padding: 8px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 12px;
}

.capture-row:last-child {
  border-bottom: none;
}

.capture-key {
  flex: 0 0 140px;
  color: var(--text-muted);
  font-weight: 500;
}

.capture-val {
  flex: 1;
  font-family: 'Roboto Mono', monospace;
  word-break: break-all;
  color: var(--text);
}

.capture-val a {
  color: #8ab4f8;
  text-decoration: none;
}

.capture-val a:hover {
  text-decoration: underline;
}

.capture-footer {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Material Symbols sizing */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Responsive */
/* ---- Custom Video Player Overlay ---- */
.censored {
  filter: blur(60px) brightness(0.7);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s;
}

.center-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.video-overlay:hover .center-play-btn {
  background: rgba(255, 0, 0, 0.8);
  transform: scale(1.05);
}

.center-play-btn .material-symbols-outlined {
  font-size: 40px;
  margin-left: 4px; /* Centra visualmente el icono de play */
}

.duration-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 700px) {
  .tb-btn span:not(.material-symbols-outlined) { display: none; }
  .signin-btn { padding: 6px 12px; font-size: 12px; }
  .icon-btn { width: 36px; height: 36px; }
  .player-wrap { width: 100%; }
}
