/* ============================================
   CONCEPT DELIVERY - APPLE INSPIRED DESIGN
   ============================================ */

/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ============================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ============================================ */

:root {
  /* Colors - Premium Palette */
  --color-black: #000000;
  --color-near-black: #0a0a0a;
  --color-dark-gray: #1a1a1a;
  --color-white: #ffffff;
  --color-off-white: #f5f5f7;

  /* Accent Colors - Dynamic (can be overridden by JS) */
  --color-accent-primary: #FF6B35;
  --color-accent-secondary: #FF8C00;
  --color-accent-light: #FFA500;
  --color-accent-rgb: 255, 107, 53;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 50%, var(--color-accent-light) 100%);
  --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: 20px;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extra-bold: 800;
  --font-weight-black: 900;

  /* Font Sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 3.75rem;
  /* 60px */
  --text-7xl: 4.5rem;
  /* 72px */
  --text-8xl: 6rem;
  /* 96px */

  /* Spacing */
  --space-xs: 0.5rem;
  /* 8px */
  --space-sm: 1rem;
  /* 16px */
  --space-md: 1.5rem;
  /* 24px */
  --space-lg: 2rem;
  /* 32px */
  --space-xl: 3rem;
  /* 48px */
  --space-2xl: 4rem;
  /* 64px */
  --space-3xl: 6rem;
  /* 96px */
  --space-4xl: 8rem;
  /* 128px */

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-slowest: 1.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.4);

  /* Z-index layers */
  --z-base: 1;
  --z-content: 10;
  --z-nav: 100;
  --z-modal: 1000;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-accent-primary);
  color: var(--color-white);
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl));
  font-weight: var(--font-weight-black);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--font-weight-extra-bold);
}

h3 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

p {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-full {
  width: 100%;
  padding: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0;
  position: relative;
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  position: relative;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-accent-primary) 0%, transparent 70%);
  opacity: 0.15;
  filter: blur(100px);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.15;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.25;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-xl);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Force center alignment for hero title to override any inline styles from contenteditable */
#edit-hero-title,
#edit-hero-title * {
  text-align: center !important;
}

.hero-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.6s forwards;
}

/* ============================================
   TEXT MARKUP SYSTEM
   ============================================ */

/* Bullet point / dot markup - for listing items */
.markup-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.markup-dot {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.markup-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  margin-top: 0.6em;
  flex-shrink: 0;
}

/* Master color highlight - background highlight */
.markup-highlight {
  background: linear-gradient(120deg, rgba(var(--color-accent-rgb), 0.35) 0%, rgba(var(--color-accent-rgb), 0.25) 100%);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: inherit;
}

/* Underline-style highlight alternative */
.markup-underline {
  border-bottom: 3px solid var(--color-accent-primary);
  padding-bottom: 2px;
}

/* Inline dot for inline text */
.markup-dot-inline::before {
  content: '•';
  color: var(--color-accent-primary);
  font-weight: bold;
  margin-right: 0.4em;
}

/* ============================================
   MAGAZINE-STYLE SECTION MARKUP
   ============================================ */

/* Container for a magazine-style section */
.markup-magazine {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: var(--space-xl);
  margin: var(--space-2xl) auto !important;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(var(--color-accent-rgb), 0.2);
  position: relative;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 900px !important;
  /* Keep it centered and readable */
  flex: 1 1 100% !important;
  box-sizing: border-box;
  clear: both !important;
}

/* The vertical title on the left side */
.markup-magazine-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: var(--text-xl);
  font-weight: var(--font-weight-black);
  letter-spacing: 0.15em;
  color: var(--color-accent-primary);
  line-height: 1;
  padding-right: var(--space-md);
  border-right: 3px solid var(--color-accent-primary);
  min-height: 100px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* The main content area */
.markup-magazine-content {
  flex: 1;
  padding-left: var(--space-md);
  line-height: 1.8;
}

/* Alternative: larger, more dramatic magazine style */
.markup-magazine-hero {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin: var(--space-3xl) 0;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
  box-sizing: border-box;
}

.markup-magazine-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-hero);
}

.markup-magazine-hero .markup-magazine-title {
  font-size: var(--text-3xl);
  border-right: none;
  padding-right: 0;
  color: var(--color-accent-primary);
  min-height: 150px;
}

.markup-magazine-hero .markup-magazine-content {
  font-size: var(--text-lg);
}

/* Compact magazine style for tighter layouts */
.markup-magazine-compact {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
  box-sizing: border-box;
}

.markup-magazine-compact .markup-magazine-title {
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  min-height: 80px;
  border-right-width: 2px;
}

/* Wrapper to ensure magazine sections stack vertically or horizontally */
.markup-magazine-wrapper,
.markup-magazines {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Row container for side-by-side units */
.markup-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: var(--space-xl);
  width: 100% !important;
  margin: var(--space-2xl) 0 !important;
  clear: both !important;
}

.markup-row .markup-magazine {
  flex: 1 1 300px !important;
  margin: 0 !important;
  max-width: none !important;
  border-top: none !important;
  border-left: 1px solid rgba(var(--color-accent-rgb), 0.2);
  padding-left: var(--space-md);
}

.markup-row .markup-magazine:first-child {
  border-left: none;
  padding-left: 0;
}

/* Full-width helper for single dramatic segments */
.markup-magazine-full {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 768px) {
  .markup-row {
    flex-direction: column !important;
    gap: var(--space-lg);
  }

  .markup-row .markup-magazine {
    border-left: none;
    border-top: 1px solid rgba(var(--color-accent-rgb), 0.2);
    padding-left: 0;
    padding-top: var(--space-md);
  }

  .markup-row .markup-magazine:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(var(--color-accent-rgb), 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--color-accent-rgb), 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--color-accent-primary);
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-primary);
  box-shadow: 0 16px 48px rgba(var(--color-accent-rgb), 0.3);
}

.feature-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  display: block;
}

.feature-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slowest), transform var(--transition-slowest);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-slowest), transform var(--transition-slowest);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--transition-slowest), transform var(--transition-slowest);
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--transition-slowest), transform var(--transition-slowest);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-md) 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.nav-logo {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-accent-primary);
}

.nav-link {
  white-space: nowrap;
  font-size: var(--text-base);
}

/* SOON Tag Styling */
.soon-tag {
  font-size: 0.6rem;
  vertical-align: middle;
  opacity: 0.7;
  margin-left: 4px;
  border: 1px solid currentColor;
  padding: 1px 3px;
  border-radius: 3px;
  display: inline-block;
}

/* Responsive Menu Text Shrinking */
@media (max-width: 1200px) {
  .nav-link {
    font-size: 0.9rem;
  }

  .nav-logo {
    font-size: var(--text-lg);
  }
}

@media (max-width: 1024px) {
  .nav-container {
    gap: var(--space-sm);
  }

  .nav-links {
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .nav-logo {
    font-size: var(--text-base);
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: var(--space-md);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-near-black);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

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

@media (max-width: 1024px) {
  :root {
    --space-4xl: 6rem;
    --space-3xl: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
    --space-2xl: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2rem;
  }

  .hero {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
  }

  .hero-content {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

#edit-storyline-title {
  margin-bottom: var(--space-4xl);
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

/* ============================================
   THEME VARIANTS
   ============================================ */

.bg-white {
  background: var(--color-white);
  color: var(--color-black);
}

.bg-orange-landscape {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
    linear-gradient(120deg, #ff6b35, #ff8c00, #ff4500, #ff6b35);
  background-size: 200% 200%;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  animation: gradientShift 15s ease infinite;
}

.bg-orange-landscape::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  animation: reflectionMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

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

@keyframes reflectionMove {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(20%, 20%) rotate(360deg);
  }
}

.bg-orange-landscape .glass-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6 {
  color: var(--color-black);
}

.bg-white p {
  color: rgba(0, 0, 0, 0.75);
}

.bg-white .glass-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.bg-white .storyboard-frame {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.1);
}

.bg-white .storyboard-frame .frame-number {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
}

.bg-white .storyboard-frame .frame-caption {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  color: var(--color-black);
}

.bg-orange-subtle {
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-accent-rgb), 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  position: relative;
}

/* ============================================
   NEW SECTION STYLES (PHASE 2)
   ============================================ */

/* Rationale Section */
.quote-large {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Zigzag Layout (Storyline) */
.zigzag-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.zigzag-item {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  flex-direction: row-reverse;
}

.zigzag-content {
  flex: 1;
}

.zigzag-image {
  flex: 0.6;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.zigzag-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-slow);
}

.zigzag-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {

  .zigzag-item,
  .zigzag-item:nth-child(even) {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* Storyboard Grid */
.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}

.storyboard-placeholder {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 500;
}

@media (max-width: 900px) {
  .storyboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .storyboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.storyboard-frame {
  background: var(--color-dark-gray);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color var(--transition-base);
}

.storyboard-frame:hover {
  border-color: var(--color-accent-primary);
}

.frame-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: bold;
  backdrop-filter: blur(4px);
}

.frame-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px 10px 10px;
  font-size: var(--text-sm);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.storyboard-frame:hover .frame-caption {
  transform: translateY(0);
}

/* Video Reference Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: 0 var(--space-md);
}

@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.video-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.play-icon {
  font-size: var(--text-4xl);
  opacity: 0.8;
  transition: transform var(--transition-base);
}

.video-card:hover .play-icon {
  transform: scale(1.2);
  opacity: 1;
}

/* Target Audience / Personas */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.persona-card {
  padding: var(--space-2xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: left;
}

.persona-metric {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-black);
  color: var(--color-accent-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.persona-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
  display: block;
}

/* Fullscreen Immersive Scenes */
.scene-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl);
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.scene-content {
  max-width: 600px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   DELIVERABLES SECTION
   ============================================ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.deliverable-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
}

.deliverable-link:hover {
  gap: 12px;
}

/* ============================================
   SERIES TIMELINE
   ============================================ */

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
  transform: translateY(-50%);
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-step {
  flex: 1;
  text-align: center;
  padding: 0 var(--space-md);
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: var(--color-black);
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-lg);
  position: relative;
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.5);
  /* Gap effect */
  transition: all 0.3s;
}

.timeline-step:hover .timeline-marker {
  background: var(--color-accent-primary);
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.4);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: transform 0.3s;
}

.timeline-step:hover .timeline-content {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline-steps {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .timeline-line {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .timeline-marker {
    margin-bottom: var(--space-md);
  }
}

/* ============================================
   VIDEO REFERENCES SECTION
   ============================================ */

.video-references-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .video-references-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   VIDEO REFERENCES (WIDE LAYOUT)
   ============================================ */

.video-references-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.video-ref-card.wide-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: #111;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
  max-height: 85vh;
  /* Ensure it fits in screen */
}

.video-ref-player-side {
  background: #000;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
}

.video-wrapper video {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ref-tag {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-out;
}

.ref-tag-visual {
  background: rgba(var(--color-accent-rgb), 0.85);
  /* Accent Primary with transparency */
  color: white;
}

.ref-tag-web {
  background: rgba(0, 113, 227, 0.85);
  /* Apple-like Blue */
  color: white;
}

.video-custom-controls {
  padding: 20px 25px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.play-pause-btn {
  background: var(--color-accent-primary);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.play-pause-btn:hover {
  transform: scale(1.1);
}

.video-timeline-container {
  flex: 1;
  height: 8px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.video-timeline-highlights {
  position: absolute;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.video-timeline-marker {
  position: absolute;
  height: 100%;
  border-radius: 2px;
  opacity: 0.6;
}

.video-timeline-progress {
  position: absolute;
  left: 0;
  height: 100%;
  background: transparent;
  border-radius: 4px;
  width: 0;
  z-index: 2;
}

.video-timeline-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  left: 0;
  z-index: 3;
}

.time-display {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'SF Mono', monospace;
  font-size: 0.85rem;
  min-width: 110px;
  text-align: right;
}

.video-ref-info-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  background: #111;
  overflow-y: auto;
  color: #ffffff;
}

.video-ref-title-large {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.highlights-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.highlight-nav-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.highlight-nav-content {
  display: flex;
  flex-direction: column;
}

.highlight-nav-time {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.highlight-nav-item {
  display: flex;
  gap: 20px;
  padding: 1.2rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.highlight-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}

.highlight-nav-item.active {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: rgba(var(--color-accent-rgb), 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-nav-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}


@media (max-width: 1200px) {
  .video-ref-card.wide-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

/* Old styles to remove or override */
.video-ref-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-ref-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 2rem;
}

.play-overlay:hover {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85));
}

.video-ref-title-overlay {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  transition: transform 0.2s ease;
}

.play-overlay:hover .video-ref-title-overlay {
  transform: scale(1.05);
}

.video-ref-content {
  padding: 1.5rem;
}

.video-ref-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border-left: 4px solid var(--color-accent-primary);
}

.highlight-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.highlight-comment {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Video Player Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  pointer-events: all;
}

.video-modal-content {
  max-width: 1200px;
  width: 100%;
  background: var(--color-near-black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-modal-player video {
  width: 100%;
  height: 100%;
}

.video-modal-info {
  padding: var(--space-lg);
}

.video-timeline-highlights {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-highlight-item {
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-left: 4px solid var(--color-accent-primary);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.timeline-highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.timeline-highlight-time {
  font-size: 0.85rem;
  color: var(--color-accent-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-highlight-comment {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Toggle Section Button */
.toggle-section-btn {
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 2px solid var(--color-accent-primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.toggle-section-btn:hover {
  background: var(--color-accent-primary);
  transform: scale(1.1);
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--color-accent-primary);
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.toggle-section-btn:hover .toggle-icon {
  color: white;
}

.toggle-section-btn.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.video-references-grid.collapsed {
  display: none;
}

/* ============================================
   SCRIPT SECTION
   ============================================ */
.script-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fdfdfd;
  padding: 80px 100px;
  border-radius: 4px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  position: relative;
  overflow: hidden;
}

.script-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.script-content {
  white-space: pre-wrap;
  position: relative;
  z-index: 2;
}

.script-content b,
.script-content strong {
  color: var(--color-accent-primary, #FF6B35);
  text-transform: uppercase;
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.script-content i,
.script-content em {
  color: #777;
  margin-left: 20px;
  display: block;
  font-style: italic;
}

#script .container {
  padding-bottom: var(--space-4xl);
}

/* ============================================
   VIDEO BREAKDOWN CUSTOM SECTION
   ============================================ */

.video-breakdown-container {
  padding: var(--space-xl) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.video-breakdown-card {
  margin-bottom: 0;
}

.video-breakdown-empty {
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  background: #000;
}

.breakdown-controls {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  gap: 18px;
}

.breakdown-timeline {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
}

.breakdown-timeline .video-timeline-progress {
  background: #fff;
  height: 100%;
  border-radius: 4px;
}

.breakdown-bubbles {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 24px 20px;
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.video-breakdown-bubble {
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-origin: center center;
  position: relative;
  overflow: hidden;
}

.video-breakdown-bubble:hover {
  opacity: 1;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-breakdown-bubble.active {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(var(--segment-color-rgb, 255, 107, 53), 0.15);
  border-color: var(--segment-color, #FF6B35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(var(--segment-color-rgb, 255, 107, 53), 0.2);
}

.video-breakdown-bubble.active .breakdown-bubble-title {
  color: #fff;
  font-weight: 600;
}

.breakdown-bubble-line {
  height: 4px;
  width: 100%;
  border-radius: 2px;
}

.breakdown-bubble-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.video-breakdown-details {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  gap: 1.5rem;
}

.video-breakdown-placeholder {
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.video-breakdown-placeholder-icon {
  font-size: 2rem;
}

.video-breakdown-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.video-breakdown-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-breakdown-time {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: fit-content;
}

.video-breakdown-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
}

.video-breakdown-text {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
}

.video-breakdown-asset {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-breakdown-asset img,
.video-breakdown-asset video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .video-breakdown-container .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .video-breakdown-container .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CLIENT COMMENT SYSTEM
   ============================================ */

/* Section wrapper needs position relative for comment button */
.section {
  position: relative;
}

/* Comment Toggle Button - Minimal, Unobtrusive */
.section-comment-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-comment-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.section-comment-btn.expanded {
  opacity: 1;
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.section-comment-btn.has-comments {
  opacity: 0.7;
  background: rgba(var(--color-accent-rgb), 0.2);
  border-color: var(--color-accent-primary);
}

.section-comment-btn.has-comments::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--color-accent-primary);
  border-radius: 50%;
  border: 2px solid var(--color-black);
}

.section-comment-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.section-comment-btn:hover svg,
.section-comment-btn.expanded svg {
  color: white;
}

/* Light background sections */
.bg-white .section-comment-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.bg-white .section-comment-btn svg {
  color: rgba(0, 0, 0, 0.5);
}

.bg-white .section-comment-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.bg-white .section-comment-btn:hover svg {
  color: rgba(0, 0, 0, 0.8);
}

.bg-white .section-comment-btn.expanded {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.bg-white .section-comment-btn.expanded svg {
  color: white;
}

/* Comment Box Container */
.comment-box {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 40px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 49;
  opacity: 0;
}

.comment-box.expanded {
  max-height: 500px;
  padding: 20px;
  opacity: 1;
}

.bg-white .comment-box {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Comment Box Header */
.comment-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-box-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.bg-white .comment-box-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.bg-white .comment-box-title {
  color: rgba(0, 0, 0, 0.5);
}

/* Comment Input Area */
.comment-input-area {
  margin-bottom: 12px;
}

.comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.comment-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.bg-white .comment-textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-black);
}

.bg-white .comment-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.bg-white .comment-textarea:focus {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent-primary);
}

/* Submit Button */
.comment-submit-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--color-accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-accent-rgb), 0.4);
}

.comment-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Existing Comments List */
.comments-list {
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.comments-list::-webkit-scrollbar {
  width: 4px;
}

.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.comment-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border-left: 3px solid var(--color-accent-primary);
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-item-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  word-wrap: break-word;
}

.comment-item-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.bg-white .comment-item {
  background: rgba(0, 0, 0, 0.03);
}

.bg-white .comment-item-text {
  color: rgba(0, 0, 0, 0.85);
}

.bg-white .comment-item-meta {
  color: rgba(0, 0, 0, 0.4);
}

/* No Comments Message */
.no-comments-msg {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 10px;
  font-style: italic;
}

.bg-white .no-comments-msg {
  color: rgba(0, 0, 0, 0.4);
}

/* ============================================
   SEGMENT-LEVEL COMMENTS (Video Breakdown)
   ============================================ */

.segment-comment-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-breakdown-bubble:hover .segment-comment-btn {
  opacity: 0.6;
}

.segment-comment-btn:hover {
  opacity: 1 !important;
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
}

.segment-comment-btn.has-comments {
  opacity: 0.8;
  background: rgba(var(--color-accent-rgb), 0.3);
  border-color: var(--color-accent-primary);
}

.segment-comment-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  color: rgba(255, 255, 255, 0.8);
}

/* Comment indicator in details panel */
.segment-comments-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-comments-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

/* Segment Comment Toggle Button */
.segment-comment-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.segment-comment-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.segment-comment-toggle-btn.active {
  background: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  color: #fff;
}

.segment-comment-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Segment Comment Popup Box */
.segment-comment-box {
  margin-top: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease;
}

.segment-comment-box.expanded {
  max-height: 400px;
  opacity: 1;
  padding: 20px;
  margin-top: 20px;
}

.segment-comment-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.segment-comment-box-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.segment-comment-box-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.segment-comment-box-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .comment-box {
    width: 300px;
    right: 10px;
    top: 55px;
  }

  .section-comment-btn {
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   LOOK COMPARE SECTION STYLES
   ============================================ */

.look-compare-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.look-compare-title-bar {
  transition: all 0.3s ease;
  padding: 0 var(--space-md);
}

.look-compare-title-bar h3 {
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.look-compare-title-bar p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.look-compare-mosaic {
  transition: all 0.3s ease;
  background: #000;
  max-height: 48vh;
}

.look-mosaic-cell {
  position: relative;
  overflow: hidden;
}

.look-mosaic-cell img {
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.look-compare-mosaic:hover .look-mosaic-cell img {
  transform: scale(1.02);
}

.look-compare-nav {
  padding: var(--space-sm) 0;
}

.look-nav-btn {
  font-family: inherit;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.look-nav-btn:hover {
  transform: translateY(-2px);
  opacity: 1 !important;
  filter: brightness(1.1);
}

.look-nav-btn.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Light background adjustments */
.bg-white .look-compare-mosaic {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.bg-white .look-nav-btn {
  border-color: var(--text-primary);
}

/* Dark background adjustments */
.bg-dark .look-compare-mosaic {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bg-dark .look-nav-btn {
  border-color: #fff;
}

/* Responsive look compare */
@media (max-width: 900px) {
  .look-compare-wrapper {
    padding: var(--space-sm) 0;
  }

  .look-compare-title-bar h3 {
    font-size: 1.2rem;
  }

  .look-compare-mosaic {
    max-height: 50vh;
  }
}

@media (max-width: 600px) {
  .look-compare-nav {
    gap: 8px;
  }

  .look-compare-mosaic {
    border-radius: 8px;
    max-height: 40vh;
  }

  .look-compare-title-bar h3 {
    font-size: 1rem;
  }

  .look-compare-title-bar p {
    font-size: 0.85rem;
  }

  .look-nav-btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}

/* ============================================
   GLOBAL FLOATING FEEDBACK BUTTON
   ============================================ */

.global-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-accent-primary, #667eea);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.global-feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.global-feedback-btn.active {
  background: #fff;
  color: var(--color-accent-primary, #667eea);
}

.global-feedback-btn svg {
  flex-shrink: 0;
}

/* Feedback Popup */
.global-feedback-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9998;
  width: 360px;
  max-height: 70vh;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
}

.global-feedback-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.global-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.global-feedback-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.global-feedback-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.global-feedback-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.global-feedback-body {
  padding: 16px 20px;
}

.global-feedback-context {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.global-feedback-context label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.global-feedback-context select {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.global-feedback-context select:focus {
  outline: none;
  border-color: var(--color-accent-primary, #667eea);
}

.global-feedback-context select option {
  background: #1a1a1a;
  color: #fff;
}

#global-feedback-text {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 12px;
}

#global-feedback-text:focus {
  outline: none;
  border-color: var(--color-accent-primary, #667eea);
  background: rgba(255, 255, 255, 0.08);
}

#global-feedback-text::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.global-feedback-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-accent-primary, #667eea);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.global-feedback-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Feedback List */
.global-feedback-list {
  max-height: 200px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.global-feedback-list-header {
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
}

.global-feedback-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.global-feedback-item:last-child {
  border-bottom: none;
}

.global-feedback-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.global-feedback-item-section {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-primary, #667eea);
  background: rgba(102, 126, 234, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.global-feedback-item-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.global-feedback-item-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.global-feedback-empty {
  padding: 24px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.global-feedback-more {
  padding: 10px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
}

/* Audio Recording Section */
.audio-recording-section {
  margin: 16px 0 12px;
}

.audio-recording-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.audio-record-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.audio-record-btn .mic-icon {
  stroke: #1a1a1a;
}

.audio-record-btn.recording {
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b5b 100%);
  color: #ffffff;
  animation: pulse-recording 1.5s infinite;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.4);
}

.audio-record-btn.recording .mic-icon {
  stroke: #ffffff;
}

.audio-record-btn.recording:hover {
  background: linear-gradient(135deg, #e8352b 0%, #ff5a4a 100%);
}

@keyframes pulse-recording {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.recording-timer {
  position: absolute;
  right: 16px;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.audio-recording-controls {
  position: relative;
}

.audio-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.audio-preview audio {
  flex: 1;
  height: 40px;
  border-radius: 8px;
}

.audio-remove-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 8px;
  color: #ff3b30;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-remove-btn:hover {
  background: rgba(255, 59, 48, 0.25);
  transform: scale(1.05);
}

/* View Previous Feedback Button */
.view-feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.view-feedback-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.view-feedback-btn svg {
  stroke: #1a1a1a;
}

.feedback-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: linear-gradient(135deg, var(--color-accent-primary, #667eea) 0%, #764ba2 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
}

/* Feedback Viewer Panel */
.feedback-viewer-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 350px;
  overflow-y: auto;
}

.feedback-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.feedback-viewer-close {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.feedback-viewer-list {
  padding: 0;
}

.feedback-viewer-empty {
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.feedback-viewer-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.feedback-viewer-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.feedback-viewer-item:last-child {
  border-bottom: none;
}

.feedback-viewer-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.feedback-viewer-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent-primary, #667eea);
  background: rgba(102, 126, 234, 0.15);
  padding: 3px 10px;
  border-radius: 12px;
}

.feedback-viewer-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.feedback-viewer-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.feedback-viewer-audio {
  margin: 10px 0;
}

.feedback-viewer-audio audio {
  width: 100%;
  height: 36px;
  border-radius: 8px;
}

.feedback-viewer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feedback-viewer-item:hover .feedback-viewer-actions {
  opacity: 1;
}

.feedback-viewer-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-viewer-action-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.feedback-viewer-delete:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

.audio-remove-btn:hover {
  background: rgba(255, 59, 48, 0.3);
  transform: scale(1.1);
}

/* Feedback Buttons Row */
.feedback-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.feedback-buttons-row .global-feedback-submit {
  flex: 1;
  margin-top: 0;
}

.global-feedback-cancel {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.global-feedback-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Feedback Item Actions */
.global-feedback-item {
  position: relative;
}

.global-feedback-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.global-feedback-item:hover .global-feedback-item-actions {
  opacity: 1;
}

.feedback-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.feedback-edit-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.feedback-delete-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
}

/* Feedback Item Audio */
.global-feedback-item-audio {
  margin-top: 8px;
}

.global-feedback-item-audio audio {
  width: 100%;
  height: 32px;
  border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .global-feedback-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .global-feedback-btn span {
    display: none;
  }

  .global-feedback-btn {
    border-radius: 50%;
    padding: 14px;
  }

  .global-feedback-popup {
    bottom: 80px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* ============================================
   MADE BY IIVPA LOGO
   ============================================ */

.made-by-logo {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 10000;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.made-by-logo:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.made-by-logo img {
  height: 32px;
  width: auto;
}

/* ============================================
   VIDEO LIBRARY MODAL
   ============================================ */

.video-library-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  /* Higher than normal modals */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.video-library-modal-content {
  background: var(--color-white);
  width: min(900px, 90vw);
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 0.2s ease-out;
  color: var(--color-black);
  /* Ensure text is visible on white bg */
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Timeline Visualization */
.timeline-preview-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-height: 200px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Voice Wrapper to position icon */
.voice-wrapper {
  position: relative;
}

/* Timeline Custom Section on View Page */
.timeline-section {
  padding: var(--space-2xl) 0;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  position: relative;
  padding: var(--space-lg) 0;
}

.timeline-header {
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
}

.timeline-row {
  margin-bottom: var(--space-md);
  position: relative;
}

.timeline-bar {
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.timeline-bar:hover {
  transform: scale(1.02) translateY(-2px);
  z-index: 10;
}