:root {
  --card-bg: rgba(33, 28, 59, 0.9);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-blue: #2563eb;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --mono-font: 'JetBrains Mono', 'SFMono-Regular', Consolas, Menlo, monospace;
}

/* Base resets & layout */
#section-4-227>.ct-section-inner-wrap {
  padding-top: 75px;
  align-items: center;
}

#section-4-227 {
  background-image: linear-gradient(#1c1930, #2f2c45);
  height: 100%;
  text-align: left;
  min-height: 90vh;
  background-color: #e21616;
}

#headline-64-227 {
  font-size: 30px;
  text-transform: capitalize;
  margin-bottom: 15px;
}

#text_block-70-227 {
  margin-top: 20px;
  width: 65%;
  margin-bottom: 25px;
  padding: 6px 15px;
  border: 1px solid #02b159;
  border-radius: 5px;
  background-color: rgba(2, 177, 89, 0.1);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 479px) {
  #text_block-70-227 {
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
  }
}

#code_block-18-227 {
  margin-bottom: 25px;
}

#code_block-62-227 {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.supreme-container {
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-main);
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
}

/* Upload & Form Controls */
.analysis-form {
  max-width: 900px !important;
  width: 100% !important;
  margin: 0 auto 30px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.search-wrapper-modern {
  width: 100% !important;
  max-width: 900px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  gap: 12px !important;
  background: rgba(18, 14, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.search-wrapper-modern:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35) !important;
}

.model-select-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #60a5fa;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 12px;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.vertical-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.input-glow-container {
  flex: 1 1 auto !important;
  min-width: 280px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px dashed rgba(255, 255, 255, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.input-glow-container:hover,
.input-glow-container.drag-active {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.input-glow-container i {
  margin-right: 10px;
  color: #60a5fa;
  font-size: 16px;
}

#file-name-display {
  font-size: 15px !important;
  min-width: 220px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Outfit', sans-serif;
}

#submit-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

#submit-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.restriction-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.restriction-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  justify-content: center;
}

.rb-label {
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rb-item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.rb-divider {
  width: 4px;
  height: 4px;
  background: #334155;
  border-radius: 50%;
}

.url-error-msg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
  text-align: center;
}

.options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 10px;
  z-index: 100;
  overflow: hidden;
  list-style: none;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.options li {
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  color: var(--text-dim);
}

.options li:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Status / Loader */
.loader-container {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 700;
}

.progress-track {
  height: 10px;
  background: #1e293b;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

#progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  background-size: 200% 100%;
  animation: progress-glow 2s linear infinite;
  transition: width 0.3s ease-out;
}

@keyframes progress-glow {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ================= REPORT STYLES (BIGGER FONTS & ENHANCED VISUALS) ================= */

/* Verdict Dashboard */
.verdict-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: 20px;
  margin: 20px 0;
}

.gauge-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.gauge-value {
  font-size: 52px;
  font-weight: 800;
  margin: 6px 0;
}

.full-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

.fill-bar {
  height: 100%;
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#res-verdict-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

#res-verdict {
  font-size: 32px;
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.res-subtitle {
  color: var(--text-dim);
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.55;
}

/* Forensic Player Container */
.forensic-player-container {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 25px;
  overflow: hidden;
}

.player-header {
  background: #1e1b35;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.video-viewport {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

video#forensic-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.1s ease-out;
}

video.grayscale {
  filter: contrast(3.5) brightness(1.4) saturate(0.4);
}

video.edge {
  filter: contrast(5) grayscale(1) invert(1) brightness(0.8);
}

video.anomaly {
  filter: contrast(3) brightness(1.2) saturate(0) sepia(0.3);
}

.zoom-lens {
  position: absolute;
  border: 1px solid #60a5fa;
  width: 150px;
  height: 150px;
  pointer-events: none;
  display: none;
  background: rgba(96, 165, 250, 0.12);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  z-index: 10;
}

.video-viewport.zoomed {
  cursor: crosshair;
}

/* Player Controls & Buttons Alignment */
.player-controls-panel {
  background: #1e1b35;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-playback-row {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.master-play-btn {
  background: #2563eb;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.master-play-btn:hover {
  background: #3b82f6;
  transform: scale(1.05);
}

.main-playback-row .step-cluster {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin: 0 !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.step-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.step-btn:hover {
  background: #334155;
  color: #fff;
}

.step-btn.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.time-display {
  font-family: var(--mono-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.control-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.control-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Button clusters - STRICTLY 1 SINGLE LINE ON MOBILE & DESKTOP */
.speed-cluster,
.filter-cluster {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  gap: 6px !important;
}

.speed-btn,
.filter-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-dim);
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.speed-btn:hover,
.filter-btn:hover {
  background: #334155;
  color: #fff;
}

.speed-btn.active,
.filter-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #3b82f6;
}

.filter-info-box {
  background: #1e1b35;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: #94a3b8;
  font-style: italic;
}

/* Report Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.forensic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 18px;
}

.card-head {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.card-head i {
  color: #60a5fa;
}

/* Risk Signals */
.reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reasons-list li {
  font-size: 14.5px;
  padding: 12px 14px 12px 40px;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
  color: #f1f5f9;
  line-height: 1.5;
}

.reasons-list li:before {
  content: "\f057";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 13px;
  color: #ef4444;
  font-size: 16px;
}

/* Detailed Detected Signals (Metrics Grid) */
.metrics-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.metric-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

.metric-box .val {
  font-family: var(--mono-font);
  font-size: 15px;
  color: #60a5fa;
  font-weight: 700;
  white-space: nowrap;
}

.metric-progress-track {
  height: 5px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.metric-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Technical Data Lists */
.data-list div {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.data-list strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.data-list span {
  font-size: 14.5px;
  color: #f1f5f9;
  word-break: break-all;
  line-height: 1.45;
}

.mono {
  font-family: var(--mono-font);
  color: #fff;
  background: #1e293b;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 13px;
}

#res-gemini-reasoning {
  font-size: 14.5px !important;
  color: #e2e8f0 !important;
  line-height: 1.6 !important;
  font-style: italic !important;
  background: rgba(167, 139, 250, 0.06) !important;
  padding: 14px !important;
  border-radius: 10px !important;
  border-left: 3px solid #a78bfa !important;
}

#c2pa-actions-list {
  font-size: 13.5px !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
}

/* Forensic Footer */
.forensic-footer {
  margin-top: 25px;
  padding: 22px;
  background: rgba(2, 6, 23, 0.85);
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-row.second {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: 8px;
}

.f-item {
  font-size: 13.5px;
  color: var(--text-dim);
}

.f-item strong {
  color: #f8fafc;
  font-size: 13.5px;
}

.hidden {
  display: none !important;
}

/* ================= RESPONSIVE DESIGN ================= */

@media (max-width: 850px) {
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .service-container .container {
    padding: 0 16px !important;
  }

  .search-wrapper-modern {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .vertical-divider {
    display: none !important;
  }

  .model-select-pill {
    width: 100% !important;
    justify-content: space-between !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 5px !important;
  }

  .input-glow-container {
    width: 100% !important;
    order: 2 !important;
    min-width: 0 !important;
    margin: 8px 0 !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #submit-btn {
    width: 100% !important;
    order: 3 !important;
    padding: 14px !important;
  }

  #file-name-display {
    min-width: 0 !important;
    max-width: calc(100vw - 120px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .verdict-dashboard {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 22px 18px !important;
  }

  .gauge-value {
    font-size: 52px !important;
  }

  .full-bar {
    margin: 0 auto !important;
    max-width: 220px !important;
  }

  .control-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 600px) {
  .metrics-visual-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Alignment: Strictly 1 line for buttons below video */
@media (max-width: 480px) {
  .service-container .container {
    padding: 0 12px !important;
  }

  .search-wrapper-modern {
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  /* Playback row strictly on 1 line on mobile */
  .main-playback-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .master-play-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 14px !important;
  }

  .main-playback-row .step-cluster {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .step-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  .time-display {
    width: auto !important;
    font-size: 13px !important;
    margin-left: auto !important;
    text-align: right !important;
  }

  /* Velocity & Filter button rows: STRICTLY 1 LINE EACH */
  .control-grid-modern {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .speed-cluster,
  .filter-cluster {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 5px !important;
  }

  .speed-btn,
  .filter-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 9px 2px !important;
    font-size: 11.5px !important;
    text-align: center !important;
  }

  .player-controls-panel {
    padding: 12px !important;
  }

  .restriction-badge {
    padding: 8px 12px !important;
    font-size: 11px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .rb-divider {
    display: none !important;
  }

  .forensic-card {
    padding: 18px 15px !important;
  }
}

/* Seamless mobile header styling */
@media (max-width: 991px) {
  .site-header {
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: #141026 !important;
  }

  .site-main {
    padding-top: 15px !important;
    border-top: none !important;
    background-color: #141026 !important;
  }

  .page-hero {
    border-top: none !important;
    padding-top: 15px !important;
  }
}