/* ========================================
   PornBrief.online - Main Stylesheet
   Dark Burgundy/Red Theme
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0a0506;
  --bg-secondary: #120a0c;
  --bg-card: #1a0e10;
  --bg-card-hover: #221216;
  --bg-surface: #2a151a;
  --bg-input: #1e1214;

  --red-primary: #e5232b;
  --red-hover: #ff2d36;
  --red-dark: #8b1a1a;
  --red-glow: rgba(229, 35, 43, 0.3);
  --red-subtle: rgba(229, 35, 43, 0.1);

  --text-primary: #f5f0f0;
  --text-secondary: #a89a9c;
  --text-muted: #6b5a5e;
  --text-accent: #e5232b;

  --border-color: rgba(229, 35, 43, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(229, 35, 43, 0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 480px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Background Gradient ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(ellipse at top center, rgba(139, 26, 26, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- App Shell ---------- */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-secondary);
  box-shadow: -1px 0 0 var(--border-subtle), 1px 0 0 var(--border-subtle);
}

/* ---------- Top Nav ---------- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 5, 6, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 12px var(--red-glow);
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 40px 24px 32px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(139, 26, 26, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 16px;
  position: relative;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.hero h1 .highlight {
  color: var(--red-primary);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red-primary);
  border-radius: 2px;
  opacity: 0.4;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Email Signup ---------- */
.signup-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  margin: 28px 24px 0;
  transition: var(--transition);
}

.signup-bar:focus-within {
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px var(--red-subtle);
}

.signup-bar .icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 12px;
}

.signup-bar .icon svg {
  width: 18px;
  height: 18px;
}

.signup-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}

.signup-bar input::placeholder {
  color: var(--text-muted);
}

.btn-join {
  background: var(--red-primary);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  flex-shrink: 0;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-join:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px var(--red-glow);
  transform: translateY(-1px);
}

.disclaimer {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 0 24px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  margin-top: 32px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--red-primary);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--red-primary);
  border-radius: 2px 2px 0 0;
}

/* ---------- Brief Cards ---------- */
.briefs-feed {
  padding: 20px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brief-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
}

.brief-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

.read-time-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 5, 6, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 2;
}

.card-title {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-body {
  padding: 16px;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ---------- Efficiency Markers (Card) ---------- */
.efficiency-markers {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.efficiency-markers-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-primary);
  margin-bottom: 12px;
}

.efficiency-markers-title svg {
  width: 16px;
  height: 16px;
}

.marker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}

.marker-time {
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 48px;
}

.marker-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---------- Card Footer ---------- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.likes {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.likes:hover {
  color: var(--red-primary);
}

.likes svg {
  width: 18px;
  height: 18px;
}

.btn-full-summary {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-primary);
  padding: 8px 16px;
  border: 1px solid var(--red-primary);
  border-radius: 50px;
  transition: var(--transition);
}

.btn-full-summary:hover {
  background: var(--red-primary);
  color: white;
  box-shadow: 0 4px 16px var(--red-glow);
}

/* ---------- Bottom Navigation ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(10, 5, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--text-muted);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.bottom-nav-item:hover {
  color: var(--text-secondary);
}

.bottom-nav-item.active {
  color: var(--red-primary);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ========================================
   Brief Detail Page
   ======================================== */

/* ---------- Detail Top Bar ---------- */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 5, 6, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.detail-nav .back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border-radius: 50%;
  transition: var(--transition);
}

.detail-nav .back-btn:hover {
  background: var(--bg-surface);
}

.detail-nav .back-btn svg {
  width: 22px;
  height: 22px;
}

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

.detail-nav-center .title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-primary);
}

.detail-nav-center .subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.detail-nav .more-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition);
}

.detail-nav .more-btn:hover {
  background: var(--bg-surface);
}

/* ---------- Detail Hero ---------- */
.detail-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg-secondary));
  pointer-events: none;
}

.detail-hero .category-badge {
  position: absolute;
  bottom: 60px;
  left: 20px;
  background: var(--red-primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 2;
}

.detail-hero .movie-title {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* ---------- Action Bar ---------- */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.action-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--red-primary);
}

.action-btn svg {
  width: 20px;
  height: 20px;
}

.action-btn .count {
  font-weight: 600;
  color: var(--red-primary);
}

.btn-save-inbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red-primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-save-inbox:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px var(--red-glow);
  transform: translateY(-1px);
}

.btn-save-inbox svg {
  width: 16px;
  height: 16px;
}

/* ---------- Plot Section ---------- */
.plot-section {
  padding: 28px 20px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-icon {
  width: 32px;
  height: 32px;
  background: var(--red-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.plot-quote {
  background: var(--bg-card);
  border-left: 3px solid var(--red-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Efficiency Guide ---------- */
.guide-section {
  padding: 0 20px 28px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.guide-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-icon {
  width: 32px;
  height: 32px;
  background: var(--red-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.btn-skip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red-primary);
  padding: 6px 14px;
  border: 1px solid var(--red-primary);
  border-radius: 50px;
  transition: var(--transition);
}

.btn-skip:hover {
  background: var(--red-primary);
  color: white;
}

/* ---------- Timestamp Table ---------- */
.timestamp-table {
  width: 100%;
}

.timestamp-header {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.timestamp-header span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-primary);
}

.timestamp-row {
  display: grid;
  grid-template-columns: 80px 1fr 50px;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.timestamp-row:hover {
  background: var(--red-subtle);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius-sm);
}

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

.ts-time {
  font-family: 'Inter', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--red-primary);
}

.ts-info .ts-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ts-info .ts-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.ts-play {
  width: 40px;
  height: 40px;
  background: var(--red-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  transition: var(--transition);
  justify-self: end;
}

.ts-play:hover {
  background: var(--red-primary);
  color: white;
  box-shadow: 0 4px 16px var(--red-glow);
}

.ts-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* ---------- Tags ---------- */
.tags-section {
  padding: 0 20px 120px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-surface);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background: var(--red-subtle);
}

/* ---------- Stats Counter ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  padding: 20px 24px;
  margin-top: -8px;
}

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

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   Desktop Sidebar (hidden on mobile)
   ======================================== */

.desktop-sidebar {
  display: none;
}

.desktop-topbar {
  display: none;
}

/* ========================================
   Desktop Responsive Overrides
   ======================================== */

@media (min-width: 768px) {
  body {
    background: #050203;
  }
}

@media (min-width: 900px) {
  /* -- Show desktop layout, hide mobile nav -- */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 16px;
    z-index: 200;
    overflow-y: auto;
  }

  .desktop-sidebar .logo {
    margin-bottom: 36px;
    padding: 0 8px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
  }

  .sidebar-item:hover {
    background: var(--bg-surface);
    color: var(--text-secondary);
  }

  .sidebar-item.active {
    background: var(--red-subtle);
    color: var(--red-primary);
  }

  .sidebar-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .sidebar-footer {
    padding: 20px 8px 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
  }

  .sidebar-stat {
    text-align: center;
    margin-bottom: 16px;
  }

  .sidebar-stat-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
  }

  .sidebar-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .sidebar-disclaimer {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
  }

  /* -- Desktop top bar -- */
  .desktop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 5, 6, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .desktop-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    width: 400px;
    max-width: 100%;
    transition: var(--transition);
  }

  .desktop-search:focus-within {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px var(--red-subtle);
  }

  .desktop-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .desktop-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
  }

  .desktop-search input::placeholder {
    color: var(--text-muted);
  }

  .desktop-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* -- Desktop breadcrumb -- */
  .desktop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }

  .breadcrumb-link {
    color: var(--text-muted);
    transition: var(--transition);
  }

  .breadcrumb-link:hover {
    color: var(--red-primary);
  }

  .desktop-breadcrumb svg {
    color: var(--text-muted);
  }

  .breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
  }

  /* -- Hide mobile nav elements on desktop -- */
  .top-nav {
    display: none !important;
  }

  .bottom-nav {
    display: none !important;
  }

  /* -- App shell: no max-width, offset by sidebar -- */
  .app {
    max-width: none;
    margin-left: 240px;
    box-shadow: none;
    background: var(--bg-primary);
  }

  /* -- Hero: wider, left-aligned -- */
  .hero {
    padding: 48px 48px 36px;
    text-align: left;
    max-width: 700px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    margin: 0;
    max-width: 500px;
    font-size: 16px;
  }

  /* -- Signup bar: inline, not full-width -- */
  .signup-bar {
    margin: 28px 48px 0;
    max-width: 480px;
  }

  .disclaimer {
    text-align: left;
    padding: 0 48px;
  }

  .stats-bar {
    justify-content: flex-start;
    padding: 20px 48px;
  }

  /* -- Tabs: desktop padding -- */
  .tabs {
    padding: 0 48px;
  }

  /* -- Briefs feed: grid layout -- */
  .briefs-feed {
    padding: 24px 32px 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .brief-card {
    border-radius: var(--radius-lg);
  }

  .card-image {
    height: 220px;
  }

  /* -- Toast position -- */
  .toast {
    bottom: 32px;
    left: calc(240px + 50%);
    transform: translateX(-50%) translateY(100px);
    white-space: normal;
    max-width: 400px;
    text-align: center;
  }

  .toast.show {
    transform: translateX(-50%) translateY(0);
  }

  /* ====== Brief Detail Desktop ====== */

  .detail-nav {
    display: none !important;
  }

  /* Desktop detail top bar */
  .detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    padding: 0 32px;
  }

  .detail-hero {
    height: 340px;
  }

  .detail-hero .movie-title {
    font-size: 32px;
  }

  .action-bar {
    padding: 16px 32px;
  }

  .plot-section {
    padding: 28px 0;
  }

  .guide-section {
    padding: 28px 0;
  }

  .tags-section {
    padding: 0 0 60px;
    grid-column: 1 / -1;
  }
}

/* 3-column grid on very wide screens */
@media (min-width: 1300px) {
  .briefs-feed {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 52px;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--red-dark);
  border-radius: 4px;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--red-primary);
  color: white;
}

/* ---------- Placeholder images (CSS patterns) ---------- */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}

.placeholder-img.tools {
  background: linear-gradient(135deg, #2a1518 0%, #1a0e10 50%, #241214 100%);
}

.placeholder-img.laptop {
  background: linear-gradient(135deg, #1a1520 0%, #120a0c 50%, #1a1015 100%);
}

.placeholder-img.movie {
  background: linear-gradient(135deg, #1a1218 0%, #0f0a0c 50%, #1a1015 100%);
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Like animation ---------- */
.likes.liked svg {
  color: var(--red-primary);
  animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ---------- Profile Modal ---------- */
#profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#profile-modal.show {
  opacity: 1;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.profile-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--red-glow);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#profile-modal.show .profile-modal-content {
  transform: scale(1) translateY(0);
}

.profile-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.profile-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.profile-modal-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.profile-modal-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-modal-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}

.profile-modal-fill {
  width: 69%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-primary), var(--red-hover));
  border-radius: 4px;
  animation: profileBarFill 1s ease forwards;
}

@keyframes profileBarFill {
  from { width: 0%; }
  to { width: 69%; }
}

.profile-modal-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--red-primary);
  white-space: nowrap;
}

.profile-modal-btn {
  width: 100%;
  padding: 14px;
  background: var(--red-primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  transition: var(--transition);
  margin-bottom: 12px;
}

.profile-modal-btn:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 16px var(--red-glow);
  transform: translateY(-1px);
}

.profile-modal-fine-print {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card-hover) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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