:root{
  --primary:#b91c1c;--primary-hover:#991b1b;--accent:#b91c1c;--secondary:#6c5ce7;
  --nav-red:#b91c1c;--header-black:#0d0d0d;
  --text:#1a202c;--text-secondary:#4a5568;--text-light:#718096;
  --light-bg:#f7fafc;--white:#ffffff;--border:#e2e8f0;
  --card-shadow:0 4px 6px rgba(0,0,0,0.07);
  --card-shadow-hover:0 12px 24px rgba(0,0,0,0.12);
}
*{margin:0;padding:0;box-sizing:border-box}
body.site-body{
  font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;
  background:#fff;
  color:var(--text);
  line-height:1.6;
  font-size:16px;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
body.site-body main{
  flex:1 0 auto;
}
body.site-body .site-footer{
  flex-shrink:0;
}
body.playlist-detail-page{display:block;min-height:auto}
body.playlist-detail-page main{flex:none}
img,video,iframe{
  max-width:100%;
}
video,iframe{
  height:auto;
}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}

/* Header - same on homepage and playlist (match gagoniri.com spacing) */
.site-header{
  background:var(--header-black);
  position:sticky;
  top:0;
  z-index:100;
  margin:0;
  padding:0;
}
/* Top bar: thin, icons on the right only */
.topbar{
  background:var(--header-black);
  color:#fff;
  margin:0;
  padding:0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.topbar .topbar-inner{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding:10px 24px;
  max-width:1200px;
  margin:0 auto;
  gap:1rem;
}
.topbar-greeting{
  margin-right:auto;
}
.user-greeting{
  font-size:0.9rem;
  font-weight:600;
  color:#fff;
}
.topbar-icons{
  display:flex;
  align-items:center;
  gap:20px;
}
.topbar-icon{
  color:#fff;
  text-decoration:none;
  opacity:0.9;
  transition:opacity 0.2s;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.topbar-icon:hover{
  opacity:1;
}
.topbar-admin-link{
  font-size:0.9rem;
  font-weight:600;
}

/* Logo section: separate block with generous padding */
.logo-section{
  background:var(--header-black);
  padding:0;
  margin:0;
}
.logo-section-inner{
  max-width:1200px;
  margin:0 auto;
  padding:24px 24px 28px;
}
.brand-logo{
  display:inline-flex;
  flex-direction:column;
  text-decoration:none;
  line-height:1.2;
}
.brand-name{
  font-size:1.5rem;
  font-weight:700;
  color:#dc2626;
  letter-spacing:-0.02em;
  text-shadow:0 0 1px #fff, 0 0 2px rgba(255,255,255,0.5);
}
.brand-tagline{
  font-size:0.8rem;
  color:#dc2626;
  font-weight:600;
  margin-top:2px;
  margin-left:0;
  text-shadow:0 0 1px #fff, 0 0 2px rgba(255,255,255,0.4);
}

/* Red navigation bar - no gap below topbar */
.nav-red{
  background:var(--nav-red);
  width:100%;
  margin:0;
  padding:0;
}
.nav-red .nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 24px;
  max-width:1200px;
  margin:0 auto;
  gap:1rem;
}
.nav-red .main-nav{
  display:flex;
  gap:1.5rem;
  align-items:center;
  flex-wrap:wrap;
}
.nav-red .main-nav a{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  padding:0.35rem 0.55rem;
  border-radius:6px;
  transition:background-color 0.2s,color 0.2s,transform 0.2s;
  font-size:0.85rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
}
.nav-red .main-nav a:hover{
  color:#fff1f2;
  background:rgba(0,0,0,0.28);
  transform:translateY(-1px);
}
.nav-right-actions{
  display:flex;
  align-items:center;
  gap:1rem;
}
.nav-icon-btn{
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px;
  opacity:0.95;
}
.nav-icon-btn:hover{
  opacity:1;
}
.nav-auth-link{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:0.85rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
  padding:0.35rem 0;
  transition:opacity 0.2s;
}
.nav-auth-link:hover{
  opacity:0.9;
}
.nav-logout-form{
  display:inline;
  margin:0;
}
.nav-logout-btn{
  background:none;
  border:none;
  cursor:pointer;
  font:inherit;
  color:inherit;
}
.search-box{
  position:relative;
  display:inline-flex;
  align-items:center;
  height:100%;
}
.search-box input{
  padding:0.4rem 2.25rem 0.4rem 0.75rem;
  border-radius:4px;
  border:none;
  min-width:280px;
  height:100%;
  min-height:40px;
  font-size:0.85rem;
  background:rgba(255,255,255,0.95);
  color:#1a202c;
}
.search-box input::placeholder{
  color:#64748b;
}
.search-box .search-icon{
  position:absolute;
  left:0.6rem;
  color:#64748b;
  pointer-events:none;
}
.search-box .search-icon-right{
  left:auto;
  right:0.6rem;
}
.search-box .search-submit{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  padding:4px;
  cursor:pointer;
  color:#64748b;
  display:flex;
  align-items:center;
  justify-content:center;
}
.search-box .search-submit:hover{
  color:#1a202c;
}
.nav-red .search-box .search-submit{color:rgba(0,0,0,0.6)}
.nav-red .search-box .search-submit:hover{color:#1a202c}

/* Search dropdown - top 5 videos as you type */
.search-wrap{
  position:relative;
  display:flex;
  align-self:stretch;
  overflow:visible;
}
.nav-red .nav-inner,
.nav-red{
  overflow:visible;
}
.search-dropdown{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  margin-top:4px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:6px;
  box-shadow:0 10px 24px rgba(0,0,0,0.12);
  max-height:320px;
  overflow-y:auto;
  z-index:9999;
  display:none;
}
.search-dropdown.search-dropdown-visible{
  display:block;
}
.search-dropdown-empty{
  padding:12px 14px;
  font-size:0.9rem;
  color:var(--text-secondary);
}
.search-dropdown-section{
  padding:0;
}
.search-dropdown-section:not(:first-child){
  border-top:1px solid #e5e7eb;
}
.search-dropdown-section-title{
  padding:8px 12px 6px;
  font-size:0.7rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color:var(--text-secondary);
  background:#f8fafc;
  position:sticky;
  top:0;
  z-index:1;
}
.search-dropdown-section-list .search-dropdown-item:last-child{
  border-bottom:none;
}
.search-dropdown-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  text-decoration:none;
  color:var(--text);
  border-bottom:1px solid #f3f4f6;
  transition:background 0.15s;
}
.search-dropdown-item:last-child{
  border-bottom:none;
}
.search-dropdown-item:hover{
  background:#f9fafb;
}
.search-dropdown-thumb{
  flex-shrink:0;
  width:64px;
  height:36px;
  border-radius:4px;
  overflow:hidden;
  background:#e5e7eb;
}
.search-dropdown-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.search-dropdown-title{
  font-size:0.9rem;
  font-weight:500;
  line-height:1.35;
  flex:1;
  min-width:0;
  word-wrap:break-word;
  word-break:break-word;
  white-space:normal;
}
.search-dropdown-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.search-dropdown-subtitle{
  font-size:0.75rem;
  color:var(--text-secondary);
  line-height:1.25;
}

/* Static page content (About Us, Our Mission, Contact Us, Pricing) */
.page-content-section{
  padding:2.5rem 2rem 4rem;
  background:#fff;
}
.page-title{
  font-size:1.75rem;
  font-weight:700;
  margin:0 0 1.5rem 0;
  color:var(--text);
}
.page-body{
  font-size:1rem;
  line-height:1.7;
  color:var(--text);
}
.page-body p{ margin:0 0 1rem 0 }
.page-body p:last-child{ margin-bottom:0 }
.page-body strong{ font-weight:600 }
.page-body a{ color:var(--primary); text-decoration:none }
.page-body a:hover{ text-decoration:underline }

.page-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:start;
}
.page-text-left .page-col-text{ order:1 }
.page-text-left .page-col-image{ order:2 }
.page-text-right .page-col-text{ order:2 }
.page-text-right .page-col-image{ order:1 }
.page-col-text{ min-width:0 }
.page-col-image{ min-width:0 }
.page-image{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
}

/* Donation section (Pricing page) */
.donation-section{
  margin-top:2.5rem;
  padding-top:2rem;
  border-top:1px solid #e5e7eb;
}
.donation-title{
  font-size:1.35rem;
  font-weight:700;
  margin:0 0 0.5rem 0;
  color:var(--text);
}
.donation-text{
  font-size:1rem;
  color:var(--text-secondary);
  margin:0 0 1.25rem 0;
}
.donation-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  margin-bottom:0.75rem;
}
.donation-form{ margin:0 }
.donation-btn{
  display:inline-block;
  padding:0.6rem 1.25rem;
  font-size:1rem;
  font-weight:600;
  color:#fff;
  background:var(--primary);
  border:none;
  border-radius:8px;
  cursor:pointer;
  transition:background 0.2s, transform 0.15s;
}
.donation-btn:hover{ background:#991b1b; transform:scale(1.02) }
.donation-btn:disabled{ opacity:0.7; cursor:not-allowed; transform:none }
.donation-hint{
  font-size:0.9rem;
  color:var(--text-secondary);
  margin:0;
}

/* ========== Contact Us page – improved look ========== */
.page-contact .page-content-section{ background:var(--light-bg) }
.page-contact .contact-form-section{
  margin-top:2.5rem;
  padding-top:2rem;
}
.contact-form-card{
  max-width:36rem;
  margin:0 auto;
  padding:2rem 2.25rem;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 24px rgba(0,0,0,0.06);
  border:1px solid var(--border);
}
.contact-form-title{
  font-size:1.5rem;
  font-weight:700;
  margin:0 0 0.35rem 0;
  color:var(--text);
}
.contact-form-subtitle{
  font-size:1rem;
  color:var(--text-secondary);
  margin:0 0 1.5rem 0;
  line-height:1.5;
}
.contact-form-message{
  margin-bottom:1.25rem;
  padding:1rem 1.25rem;
  border-radius:8px;
  font-size:0.95rem;
  line-height:1.5;
}
.contact-form-success{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}
.contact-form-error{
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
}
.contact-form-error a.contact-error-email{
  color:#b91c1c;
  font-weight:600;
  text-decoration:underline;
}
.contact-form-error a.contact-error-email:hover{ color:#991b1b }
.contact-form .form-group{ margin-bottom:1.25rem }
.contact-form .form-actions{ margin-top:1.5rem }
.contact-form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.contact-submit-btn{
  min-width:10rem;
  padding:0.75rem 1.5rem;
  font-size:1rem;
  font-weight:600;
}
.form-label .required{ color:#dc2626 }

/* ========== Pricing page – improved look ========== */
.page-pricing .page-content-section{ background:var(--light-bg) }
.page-pricing .donation-section-card{
  margin-top:2.5rem;
  padding:2rem 2.25rem;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 24px rgba(0,0,0,0.06);
  border:1px solid var(--border);
  max-width:40rem;
  margin-left:auto;
  margin-right:auto;
}
.page-pricing .donation-title{
  font-size:1.5rem;
  font-weight:700;
  margin:0 0 0.5rem 0;
  color:var(--text);
}
.page-pricing .donation-text{
  font-size:1rem;
  color:var(--text-secondary);
  margin:0 0 1.5rem 0;
  line-height:1.6;
}
.donation-amounts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0.75rem;
  margin-bottom:1.5rem;
}
.donation-amount-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem 1.25rem;
  font-size:1.1rem;
  font-weight:700;
  color:#fff;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);
  border:none;
  border-radius:10px;
  cursor:pointer;
  transition:transform 0.15s, box-shadow 0.2s;
  min-height:3.25rem;
}
.donation-amount-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(185,28,28,0.35);
}
.donation-amount-btn:disabled{ opacity:0.7; cursor:not-allowed; transform:none }
.donation-amount-popular{
  background:linear-gradient(135deg,#991b1b 0%,#7f1d1d 100%);
  box-shadow:0 4px 14px rgba(185,28,28,0.25);
  position:relative;
}
.donation-amount-popular::after{
  content:"Popular";
  position:absolute;
  top:-8px;
  right:8px;
  font-size:0.65rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.05em;
  background:#fff;
  color:var(--primary);
  padding:0.2rem 0.5rem;
  border-radius:4px;
}
.donation-custom-wrap{
  padding-top:1.25rem;
  border-top:1px solid var(--border);
}
.donation-custom-label{
  display:block;
  font-size:0.95rem;
  font-weight:600;
  color:var(--text);
  margin-bottom:0.75rem;
}
.donation-custom-inputs{
  display:flex;
  align-items:center;
  gap:0.75rem;
  flex-wrap:wrap;
}
.donation-currency-symbol{
  font-size:1.25rem;
  font-weight:700;
  color:var(--text);
}
.donation-custom-input{
  width:6.5rem;
  padding:0.75rem 1rem;
  font-size:1.1rem;
  font-weight:600;
}
.donation-custom-submit{
  padding:0.75rem 1.5rem;
  font-weight:600;
}
.page-pricing .donation-hint{
  margin-top:1.25rem;
  font-size:0.9rem;
  color:var(--text-secondary);
}

@media(max-width:768px){
  .page-two-col{
    grid-template-columns:1fr;
    gap:1.5rem;
  }
  .page-text-left .page-col-text,
  .page-text-right .page-col-text{ order:1 }
  .page-text-left .page-col-image,
  .page-text-right .page-col-image{ order:2 }
}
.site-header .container{padding:0}
.main-nav{
  display:flex;
  gap:2.5rem;
  align-items:center;
}
.main-nav a{
  color:var(--text);
  text-decoration:none;
  font-size:0.95rem;
  font-weight:600;
  transition:color 0.3s;
  position:relative;
}
.main-nav a:hover{
  color:var(--primary);
}

/* Main content - same spacing below header on all pages */
main{
  margin:0;
  padding:0;
}

/* Hero Banner */
.hero-banner{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 50%,#7f1d1d 100%);
  color:#fff;
  padding:5rem 2rem;
  display:flex;
  align-items:center;
  gap:4rem
}
.hero-content{flex:1}
.hero-title{
  font-size:3rem;
  font-weight:800;
  line-height:1.2;
  margin-bottom:1.5rem;
  letter-spacing:-1px
}
.hero-subtitle{
  font-size:1.25rem;
  opacity:0.95;
  margin-bottom:2.5rem;
  max-width:500px;
  line-height:1.6
}
.hero-cta-group{
  display:flex;
  gap:1.5rem;
  flex-wrap:wrap
}
.hero-visual{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center
}
.hero-image{
  width:100%;
  max-width:500px;
  border-radius:12px;
  box-shadow:0 20px 40px rgba(0,0,0,0.3)
}

/* Buttons */
.btn{
  display:inline-block;
  padding:0.8rem 1.5rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:1rem;
  border:none;
  cursor:pointer;
  transition:all 0.3s ease;
  text-align:center
}
.btn-primary{
  background:var(--primary);
  color:#fff
}
.btn-primary:hover{
  background:var(--primary-hover);
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(185,28,28,0.3)
}
.btn-loading{
  position:relative;
  color:transparent !important;
  pointer-events:none
}
.btn-loading::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:18px;
  margin:-9px 0 0 -9px;
  border:2px solid rgba(255,255,255,0.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:page-loader-spin 0.7s linear infinite
}
.btn-outline{
  border:2px solid rgba(255,255,255,0.8);
  color:#fff;
  background:transparent;
  padding:0.7rem 1.4rem
}
.btn-outline:hover{
  background:rgba(255,255,255,0.1);
  border-color:#fff
}
.btn-outline-secondary{
  background:transparent;
  color:var(--text-secondary);
  border:1px solid var(--border)
}
.btn-outline-secondary:hover{
  background:var(--light-bg);
  color:var(--text)
}
.btn-lg{
  padding:1rem 2rem;
  font-size:1.1rem
}
.btn-success{
  background:#059669;
  color:#fff
}
.btn-success:hover{
  background:#047857;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(5,150,105,0.3)
}

/* Form inputs - used on login, register, and across the site */
.form-card{
  max-width:420px;
  margin:2rem auto;
  padding:2rem;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  border:1px solid var(--border)
}
.form-card.form-card-wide{
  max-width:500px
}
.form-title{
  text-align:center;
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:0.5rem
}
.form-subtitle{
  text-align:center;
  font-size:0.9rem;
  color:var(--text-secondary);
  margin-bottom:1.5rem
}
.form-group{
  margin-bottom:1.25rem
}
.form-label{
  display:block;
  font-weight:600;
  font-size:0.9rem;
  color:var(--text);
  margin-bottom:0.4rem
}
.form-control{
  display:block;
  width:100%;
  padding:0.75rem 1rem;
  font-size:1rem;
  line-height:1.5;
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  border-radius:8px;
  transition:border-color 0.2s, box-shadow 0.2s
}
.form-control:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(0,102,204,0.15)
}
.form-control::placeholder{
  color:#94a3b8
}
textarea.form-control{
  min-height:100px;
  resize:vertical
}
.form-control.input-error{
  border-color:#dc2626
}
.form-control.input-error:focus{
  box-shadow:0 0 0 3px rgba(220,38,38,0.15)
}
.form-hint{
  font-size:0.8rem;
  color:var(--text-secondary);
  margin-top:0.35rem
}
.form-error,
.text-danger{
  font-size:0.85rem;
  color:#dc2626;
  margin-top:0.35rem
}
.form-validation-summary{
  margin-bottom:1rem
}
.form-validation-summary ul{
  list-style:none;
  padding:0;
  margin:0
}
.form-validation-summary li{
  font-size:0.85rem;
  color:#dc2626;
  padding:0.35rem 0
}
.form-check{
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-bottom:1.25rem
}
.form-check-input{
  width:1.125rem;
  height:1.125rem;
  margin:0;
  accent-color:var(--primary);
  cursor:pointer
}
.form-check-label{
  font-size:0.95rem;
  color:var(--text);
  cursor:pointer
}
.form-actions{
  margin-top:1.5rem
}
.form-actions .btn{
  width:100%;
  padding:0.85rem 1.25rem;
  font-size:1rem
}
.form-divider{
  text-align:center;
  font-size:0.85rem;
  color:var(--text-secondary);
  margin:1rem 0
}
.form-link{
  color:var(--primary);
  font-weight:600;
  text-decoration:none
}
.form-link:hover{
  text-decoration:underline
}
.form-card .form-demo-hint{
  font-size:0.85rem;
  color:var(--text-secondary);
  background:var(--light-bg);
  padding:0.75rem 1rem;
  border-radius:8px;
  margin-bottom:1.25rem;
  border:1px solid var(--border)
}
.form-card .form-demo-hint strong{
  color:var(--text)
}
.form-alert{
  padding:0.85rem 1rem;
  border-radius:8px;
  margin-bottom:1.25rem;
  font-size:0.95rem;
  font-weight:500
}
.form-alert-error{
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca
}
.form-alert-error span{
  display:block
}
.form-alert-error span + span{
  margin-top:0.35rem
}
.form-alert-success{
  background:#f0fdf4;
  color:#166534;
  border:1px solid #bbf7d0
}
.form-static{
  margin:0;
  padding:0.35rem 0;
  font-size:1rem;
  color:#374151
}

/* Hero Section - match gagoniri.com: 1 large left, 3 stacked right (flex for reliable stacking) */
.hero-grid-section{
  padding:0 0 0.5rem 0;
  background:#fff;
}
.hero-grid-container{
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  padding:1.5rem 24px 1.5rem;
  max-width:1200px;
  margin:0 auto;
  min-height:420px;
  align-items:stretch;
}
.hero-large-item{
  flex:0 0 calc(50% - 6px);
  min-width:0;
  position:relative;
  display:block;
  border-radius:4px;
  overflow:hidden;
  height:420px;
  background:#eee;
}
.hero-large-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Hero: large = red circle + white triangle, lower-middle; right column = grey triangle top-left only */
.hero-play-btn-large{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:56px;
  height:56px;
  background:#b91c1c;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1;
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
}
.hero-play-btn-large .hero-play-triangle{
  width:0;
  height:0;
  margin-left:5px;
  border-style:solid;
  border-width:9px 0 9px 16px;
  border-color:transparent transparent transparent #fff;
}
.hero-play-icon-small{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(185,28,28,0.88);
  border:1px solid rgba(255,255,255,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 10px rgba(0,0,0,0.35);
  z-index:1;
}
.hero-play-icon-small::before{
  content:"";
  width:0;
  height:0;
  margin-left:3px;
  border-style:solid;
  border-width:6px 0 6px 10px;
  border-color:transparent transparent transparent #fff;
}
.hero-caption{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,0.8));
  color:#fff;
  padding:10px 12px;
  font-weight:600;
  font-size:0.9rem;
  line-height:1.25;
}
.hero-caption.small{
  font-size:0.75rem;
  padding:6px 8px;
}
.hero-small-grid{
  flex:0 0 calc(50% - 6px);
  min-width:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:8px;
  height:420px;
  min-height:0;
}
.hero-small-item:nth-child(1){
  grid-column:1 / -1;
  grid-row:1;
}
.hero-small-item:nth-child(2){
  grid-column:1;
  grid-row:2;
}
.hero-small-item:nth-child(3){
  grid-column:2;
  grid-row:2;
}
.hero-small-item{
  position:relative;
  display:block;
  border-radius:4px;
  overflow:hidden;
  min-height:0;
  background:#eee;
}
.hero-small-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.last-watched-title{
  text-transform:uppercase;
  font-weight:800;
}

@media(max-width:768px){
  .hero-grid-container{
    flex-direction:column;
    min-height:0;
    gap:12px;
    padding:12px 16px;
  }
  .hero-large-item{
    flex:none;
    height:280px;
  }
  .hero-small-grid{
    flex:none;
    height:auto;
    gap:8px;
  }
  .hero-small-item{
    flex:none;
    height:120px;
  }
}

/* Last Watched Section */
.last-watched-section{
  background:#fff;
  padding:2.5rem 2rem 3rem;
  border-bottom:1px solid #e5e7eb;
}
.last-watched-section .container{
  padding:0 2rem;
}
.last-watched-section .section-title{
  margin-bottom:1.25rem;
  font-size:1.25rem;
  text-align:left;
}
.last-watched-thumbnails{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:1rem;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding-bottom:0.5rem;
}
.last-watched-thumbnails::-webkit-scrollbar{
  height:6px;
}
.last-watched-thumbnails::-webkit-scrollbar-track{
  background:#e5e7eb;
  border-radius:3px;
}
.last-watched-thumbnails::-webkit-scrollbar-thumb{
  background:#9ca3af;
  border-radius:3px;
}
.last-watched-thumbnails::-webkit-scrollbar-thumb:hover{
  background:#6b7280;
}
.last-watched-thumb{
  flex:0 0 auto;
  width:180px;
  min-width:180px;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  transition:transform 0.2s,box-shadow 0.2s;
  border:1px solid #e5e7eb;
}
.last-watched-thumb:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(15,23,42,0.12);
}
.last-watched-thumb-media{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  background:#f3f4f6;
  overflow:hidden;
}
.last-watched-thumb-title{
  display:block;
  padding:0.6rem 0.65rem 0.75rem;
  font-size:0.82rem;
  font-weight:700;
  line-height:1.3;
  color:#111827;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:3.1em;
}
.last-watched-empty{
  font-size:0.95rem;
  color:var(--text-secondary);
  margin:0 0 0.5rem 0;
  flex:1 1 auto;
  min-width:100%;
}
.last-watched-view-all{
  font-size:0.9rem;
  font-weight:600;
  color:var(--primary);
  text-decoration:none;
}
.last-watched-view-all:hover{text-decoration:underline}

/* Watch Later add button on playlist items */
.playlist-video-item{position:relative}
.watch-later-add-btn{
  position:absolute;
  top:6px;
  right:6px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.7);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  opacity:0.9;
  z-index:2;
  box-shadow:0 2px 8px rgba(0,0,0,0.25);
  transition:opacity 0.2s,background 0.2s,transform 0.2s;
}
.watch-later-add-btn:hover{
  opacity:1;
  background:rgba(185,28,28,0.95);
  transform:scale(1.08);
}
.watch-later-add-btn:active{transform:scale(0.98)}
.watch-later-add-btn:disabled{cursor:not-allowed;opacity:0.8}
.watch-later-add-btn.watch-later-add-btn--loading{cursor:wait}
.watch-later-add-btn svg{display:block;flex-shrink:0}
/* Video detail page: pill button with label */
.watch-later-add-btn.watch-later-add-btn--page{
  position:static;
  width:auto;
  height:auto;
  border-radius:999px;
  padding:0.5rem 1rem;
  font-size:0.9rem;
  font-weight:600;
  gap:0.4rem;
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
  background:var(--primary);
  color:#fff;
}
.watch-later-add-btn.watch-later-add-btn--page:hover{
  background:#991b1b;
  transform:none;
  opacity:1;
}
.watch-later-add-btn.watch-later-add-btn--page svg{width:18px;height:18px}
.video-title-row{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  margin:1.5rem 0 0.5rem 0;
}
.video-detail-title{margin:0}

/* Watch Later page */
.watch-later-page{
  padding:2.5rem 0 3rem;
  background:#fff;
}
.watch-later-page .container{
  padding:0 2rem;
}
.watch-later-page .section-title{
  margin-bottom:1.25rem;
}
.watch-later-guest,.watch-later-empty{
  text-align:center;
  padding:3rem 1.5rem;
  background:#f8fafc;
  border-radius:12px;
  border:1px solid #e2e8f0;
}
.watch-later-guest-text,.watch-later-empty-text{font-size:1.1rem;color:var(--text);margin:0 0 1rem 0}
.watch-later-guest-sub,.watch-later-empty-hint{font-size:0.95rem;color:var(--text-secondary);margin:0.75rem 0 0 0}
.watch-later-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:1.25rem;
}
.watch-later-card{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e5e7eb;
  transition:box-shadow 0.2s;
}
.watch-later-card:hover{box-shadow:0 10px 24px rgba(0,0,0,0.1)}
.watch-later-card-link{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.watch-later-card-thumb{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  background:#f3f4f6;
  overflow:hidden;
}
.watch-later-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.watch-later-card-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(0,0,0,0.6);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.watch-later-card-title{
  padding:0.75rem 2.5rem 0.75rem 1rem;
  font-weight:700;
  font-size:0.95rem;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
  min-height:3.5em;
}
.watch-later-remove{
  position:absolute;
  top:8px;
  right:8px;
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
  opacity:0.9;
  transition:opacity 0.2s,background 0.2s;
}
.watch-later-remove:hover{opacity:1;background:#b91c1c}

.search-results-section{
  padding:24px 24px 48px;
  background:#fff;
}
.search-results-section .section-title{margin-bottom:0.5rem}
.search-query-info{font-size:1rem;color:var(--text-secondary);margin:0 0 0.5rem 0}
.search-count{font-size:0.9rem;color:var(--text-secondary);margin:0 0 1rem 0}
.search-no-results,.search-hint{font-size:0.95rem;color:var(--text-secondary);margin:1rem 0}
.search-results-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:1.25rem;
  margin-top:1rem;
}
.search-result-card{
  display:flex;
  flex-direction:column;
  border-radius:6px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  transition:box-shadow 0.2s,border-color 0.2s;
  background:#fff;
}
.search-result-card:hover{
  border-color:#d1d5db;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.search-result-main-link{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
}
.search-result-thumb{
  aspect-ratio:16/9;
  overflow:hidden;
  background:#e5e7eb;
}
.search-result-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.search-result-info{
  padding:12px;
}
.search-result-info h3{
  font-size:0.95rem;
  font-weight:600;
  margin:0 0 4px 0;
  line-height:1.3;
}
.search-result-playlist{
  font-size:0.8rem;
  color:var(--primary);
  display:block;
  margin-bottom:2px;
}
.search-result-tags{
  font-size:0.75rem;
  color:var(--text-secondary);
  display:block;
}
.search-result-timestamps{
  display:flex;
  flex-wrap:wrap;
  gap:0.4rem;
  padding:0 12px 12px;
}
.search-result-timestamp-chip{
  text-decoration:none;
  font-size:0.78rem;
  line-height:1.2;
  color:#b91c1c;
  background:#fff1f2;
  border:1px solid #fecdd3;
  border-radius:999px;
  padding:0.25rem 0.55rem;
}
.search-result-timestamp-chip:hover{
  background:#ffe4e6;
  border-color:#fda4af;
}
.last-watched-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Anatomy & Physiology Sections */
.playlist-category-section{
  background:#fff;
  padding:2.5rem 2rem 3rem;
}
.playlist-category-section .container{
  padding:0 2rem;
}
.anatomy-section,.physiology-section{
  background:#fff;
  padding:2.5rem 2rem;
}
.physiology-section{
  background:#f9fafb;
}
.anatomy-section .section-title,
.physiology-section .section-title{
  text-align:left;
  font-size:1.5rem;
  margin-bottom:1.5rem;
}

/* Playlists Grid */
.playlists-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1.5rem;
  max-width:1200px;
  margin:0 auto;
}
.playlist-card{
  grid-column:span 1;
  grid-row:span 1;
  background:#fff;
  border-radius:4px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  box-shadow:0 2px 6px rgba(0,0,0,0.08);
  transition:all 0.25s ease;
  display:flex;
  flex-direction:column;
  border:1px solid #e5e7eb;
  min-width:0;
}
.physiology-section .playlist-card{
  background:var(--white)
}
.playlist-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
  border-color:#d1d5db;
}
.playlist-thumb{
  position:relative;
  aspect-ratio:3/4;
  width:100%;
  overflow:hidden;
  background:#e5e7eb;
}
.playlist-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 0.3s ease;
  display:block;
}
.playlist-card:hover .playlist-thumb img{
  transform:scale(1.04)
}
.video-badge{
  position:absolute;
  top:6px;
  left:6px;
  background:rgba(0,0,0,0.75);
  color:#fff;
  padding:5px 8px;
  border-radius:3px;
  font-size:0.7rem;
  font-weight:700;
  z-index:2;
  letter-spacing:0.02em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.video-badge-play{
  display:inline-block;
  width:0;
  height:0;
  border-style:solid;
  border-width:4px 0 4px 7px;
  border-color:transparent transparent transparent #fff;
  flex-shrink:0;
}
.video-badge.badge-model{
  background:rgba(0,0,0,0.8);
}
.playlist-info{
  padding:10px 12px;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  min-height:48px;
}
.playlist-info h3{
  font-size:0.9rem;
  font-weight:600;
  color:var(--text);
  word-break:break-word;
  margin:0;
  line-height:1.3;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

/* Section Titles */
.section-title{
  font-size:1.5rem;
  font-weight:800;
  color:var(--text);
  margin:0 0 1.25rem 0;
  letter-spacing:-0.02em;
  text-align:left;
}
.site-footer{
  background:var(--header-black);
  color:#cbd5e0;
  padding:0;
}
.footer-main{
  display:flex;
  gap:3rem;
  align-items:flex-start;
  padding:32px 24px;
  max-width:1200px;
  margin:0 auto;
}
.site-footer .footer-left{flex:1}
.site-footer .footer-right{width:280px;flex-shrink:0}
.site-footer p{margin:0.5rem 0;font-size:0.9rem;line-height:1.6}
.brand-logo-footer{
  display:inline-flex;
  flex-direction:column;
  text-decoration:none;
  margin-bottom:1rem;
  line-height:1.2;
}
.brand-logo-footer .brand-name{color:#dc2626;font-size:1.4rem;font-weight:700}
.brand-logo-footer .brand-tagline{color:#fff;font-size:0.8rem;margin-top:2px;margin-left:2px}
.footer-bullets{
  list-style:none;
  margin:0.75rem 0 0 0;
  padding:0;
  font-size:0.9rem;
}
.footer-bullets li{
  position:relative;
  padding-left:1rem;
  margin:0.35rem 0;
}
.footer-bullets li::before{
  content:"•";
  position:absolute;
  left:0;
  color:#94a3b8;
}
.footer-small-list{display:flex;flex-direction:column;gap:1rem}
.footer-small-item{
  display:flex;
  align-items:center;
  gap:0.75rem;
}
.footer-small-item img{
  width:80px;
  height:56px;
  object-fit:cover;
  border-radius:6px;
  flex-shrink:0;
}
.footer-small-caption{font-size:0.85rem;color:#cbd5e0}
.footer-small-item-link{text-decoration:none;color:inherit}
.footer-small-item-link:hover .footer-small-caption{color:#fff}
.footer-bottom{
  background:#000;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  min-height:48px;
}
.footer-copyright{
  font-size:0.8rem;
  color:#94a3b8;
}
.top-btn{
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  background:var(--nav-red);
  color:#fff;
  text-decoration:none;
  padding:8px 12px;
  font-size:0.8rem;
  font-weight:700;
  border:none;
  border-radius:2px;
  transition:opacity 0.2s;
}
.top-btn:hover{
  opacity:0.9;
  color:#fff;
}
.footer-small-thumb{display:flex;flex-direction:column;gap:1rem;margin-left:auto}
.footer-small-thumb img{width:100%;border-radius:8px;transition:transform 0.3s}
.footer-small-thumb img:hover{transform:scale(1.05)}

/* ========== Responsive: large → small ========== */
/* Large tablet / small desktop */
@media(max-width:1200px){
  .container{max-width:100%;padding:0 1.5rem}
  .playlists-grid{grid-template-columns:repeat(4,1fr);gap:1.25rem}
  .hero-grid-container,.nav-red .nav-inner,.logo-section-inner,.topbar .topbar-inner{padding-left:1.5rem;padding-right:1.5rem}
  .playlist-detail-page .playlist-main-row{padding:0 1.5rem}
}

/* Tablet */
@media(max-width:1024px){
  .container{padding:0 1.5rem}
  .playlists-grid{grid-template-columns:repeat(3,1fr);gap:1.25rem}
  .last-watched-section,.playlist-category-section{padding:2rem 1.5rem 2.5rem}
  .playlist-mid-section{padding:2rem 1.5rem 2.5rem}
  .playlist-mid-inner{padding:0 1.5rem}
  .footer-main{padding:2rem 1.5rem}
}

/* Mobile landscape / small tablet */
@media(max-width:768px){
  .container{padding:0 1rem}
  .topbar .topbar-inner{padding:0.5rem 1rem;gap:0.75rem}
  .topbar-icons{gap:0.75rem}
  .logo-section-inner{padding:1rem 1rem 1.25rem}
  .brand-name{font-size:1.25rem}
  .brand-tagline{font-size:0.75rem}
  .nav-red .nav-inner{flex-direction:column;gap:0.75rem;padding:0.75rem 1rem}
  .nav-red .main-nav{flex-direction:row;flex-wrap:wrap;gap:0.25rem;justify-content:center}
  .nav-red .main-nav a{font-size:0.8rem;padding:0.4rem 0.5rem}
  .search-box input{min-width:100%;width:100%;max-width:200px}
  .search-wrap{order:-1;width:100%}
  .nav-red .nav-inner{flex-wrap:wrap}
  
  .hero-grid-section{padding-bottom:0.25rem}
  .hero-grid-container{flex-direction:column;min-height:0;gap:0.75rem;padding:1rem}
  .hero-large-item{flex:none;height:260px}
  .hero-small-grid{flex:none;height:auto;gap:0.5rem}
  .hero-small-item{flex:none;height:100px}
  .hero-caption{font-size:0.8rem;padding:6px 8px}
  .hero-caption.small{font-size:0.7rem;padding:4px 6px}
  
  .hero-banner{flex-direction:column;padding:2rem 1rem}
  .hero-title{font-size:1.75rem}
  .hero-subtitle{font-size:0.95rem}
  .hero-cta-group{flex-direction:column;gap:0.75rem}
  .btn-lg{width:100%;padding:0.85rem 1rem;font-size:1rem}
  
  .section-title{font-size:1.35rem;margin-bottom:1rem}
  .last-watched-section,.playlist-category-section,.anatomy-section,.physiology-section,.watch-later-page{padding:1.5rem 1rem 2rem}
  .last-watched-section .container,.playlist-category-section .container,.watch-later-page .container{padding:0 1rem}
  .playlists-grid{grid-template-columns:repeat(2,1fr);gap:0.75rem}
  .playlist-info{padding:0.5rem 0.5rem}
  .playlist-info h3{font-size:0.85rem;-webkit-line-clamp:2}
  
  .page-content-section{padding:1.5rem 1rem 2.5rem}
  .form-card{padding:1.25rem;max-width:100%}
  .contact-form-card{padding:1.5rem 1.25rem;margin:0}
  .contact-form-row{grid-template-columns:1fr}
  .donation-amounts{grid-template-columns:repeat(2,1fr);gap:0.6rem}
  .donation-amount-btn{min-height:2.75rem;padding:0.85rem 0.75rem;font-size:1rem}
  .page-pricing .donation-section-card{padding:1.5rem 1.25rem;margin:1.5rem 0 0}
  .donation-custom-inputs{flex-direction:column;align-items:stretch}
  .donation-custom-input{width:100%}
  .donation-custom-submit{width:100%}
  
  .footer-main{flex-direction:column;gap:1.5rem;padding:1.5rem 1rem;text-align:center}
  .site-footer .footer-left{flex:1}
  .site-footer .footer-right{width:100%;display:flex;justify-content:center}
  .footer-small-list{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:0.75rem}
  .footer-small-item{flex-direction:column}
  .footer-bottom{padding:0.5rem 1rem;flex-wrap:wrap;gap:0.5rem;justify-content:center;text-align:center}
  .top-btn{position:static;transform:none;margin-top:0.5rem}
  
  .site-modal-box{max-width:100%;margin:0.5rem;max-height:calc(100vh - 1rem)}
  #site-modal-body{padding:1rem}
  .auth-tab-headers{margin-bottom:0.75rem}
  .auth-tab{padding:0.5rem 0.75rem;font-size:0.9rem}
  .playlist-detail-page .playlist-main-row{padding:0 1rem}
}

/* Mobile portrait */
@media(max-width:480px){
  .container{padding:0 0.75rem}
  .topbar .topbar-inner{padding:0.5rem 0.75rem}
  .logo-section-inner{padding:0.75rem 0.75rem 1rem}
  .brand-name{font-size:1.1rem}
  .nav-red .main-nav a{font-size:0.75rem;padding:0.35rem 0.4rem}
  
  .hero-large-item{height:220px}
  .hero-small-item{height:85px}
  .hero-play-btn-large{width:48px;height:48px;top:60%}
  .hero-play-btn-large .hero-play-triangle{border-width:7px 0 7px 12px}
  
  .section-title{font-size:1.2rem;margin-bottom:0.75rem}
  .last-watched-section,.playlist-category-section,.anatomy-section,.physiology-section,.watch-later-page{padding:1.25rem 0.75rem 1.5rem}
  .watch-later-page .container{padding:0 0.75rem}
  .playlists-grid{grid-template-columns:repeat(2,1fr);gap:0.5rem}
  .playlist-info h3{font-size:0.8rem}
  .playlist-thumb{aspect-ratio:3/4}
  .last-watched-thumbnails{gap:0.75rem}
  .last-watched-thumb{width:160px;min-width:160px}
  .last-watched-thumb-title{font-size:0.76rem;padding:0.5rem 0.55rem 0.6rem}
  
  .site-modal-box{margin:0.25rem;max-height:calc(100vh - 0.5rem);border-radius:8px}
  .site-modal-header{padding:0.75rem 1rem}
  .site-modal-title{font-size:1.05rem}
  #site-modal-body{padding:0.75rem}
  .auth-modal-form .form-group{margin-bottom:0.5rem}
  .auth-modal-form .form-actions .btn{padding:0.65rem}
  
  #site-toast-container{top:1rem;right:1rem;left:auto;max-width:min(100vw - 2rem, 360px)}
  .site-toast{max-width:100%;font-size:0.85rem;padding:0.75rem 1rem}
  .playlist-detail-page .playlist-main-row{padding:0 0.75rem}
}

/* Extra small */
@media(max-width:360px){
  .playlists-grid{gap:0.4rem}
  .playlist-info{padding:0.4rem}
  .playlist-info h3{font-size:0.75rem}
  .last-watched-thumb{width:140px;min-width:140px}
  .last-watched-thumb-title{font-size:0.72rem}
  .brand-name{font-size:1rem}
}

/* ========== Playlist detail page (same as reference image) ========== */
body.playlist-detail-page{
  background:#0d0d0d;
  color:#fff;
}
/* Header identical on playlist page - same spacing, no extra styles */
body.playlist-detail-page .site-header{
  background:#0d0d0d;
}
body.playlist-detail-page .site-footer,
body.playlist-detail-page .footer-main,
body.playlist-detail-page .footer-bottom{
  display:none;
}
.playlist-detail-page .playlist-main-row{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:0;
  min-height:70vh;
  max-width:1200px;
  width:100%;
  padding:0 2rem;
  margin:0 auto;
}
.playlist-video-pane{
  background:#000;
  display:flex;
  flex-direction:column;
}
.video-player-wrap{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:1.25rem 1.5rem;
}
.video-player-container{
  position:relative;
  background:#000;
  aspect-ratio:16/9;
  max-height:calc(100vh - 220px);
  border-radius:6px;
  overflow:hidden;
}
.video-player{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.video-player-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
  font-size:1.1rem;
}
.video-title-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  background:rgba(0,0,0,0.35);
  pointer-events:none;
  transition:opacity 0.3s;
  padding-top:1.25rem;
  z-index:2;
}
.video-title-overlay.hidden{
  opacity:0;
  pointer-events:none;
}
.video-title-glowing{
  font-size:clamp(1.5rem,4vw,2.5rem);
  font-weight:800;
  color:#fff;
  text-align:center;
  text-shadow:0 0 20px rgba(220,38,38,0.8),0 0 40px rgba(220,38,38,0.5),0 0 60px rgba(220,38,38,0.3);
  margin:0;
  padding:0 1rem;
  letter-spacing:-0.02em;
}
.video-player-container .plyr{
  width:100%;
  height:100%;
}
.video-player-container .plyr__control--overlaid{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:3;
}

/* Double-tap seek feedback (+10 / −10) */
.player-seek-feedback{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:4;
  pointer-events:none;
  font-size:2rem;
  font-weight:700;
  color:rgba(255,255,255,0.95);
  text-shadow:0 0 8px rgba(0,0,0,0.8);
  animation:playerSeekFade 0.6s ease-out forwards;
}
@keyframes playerSeekFade{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(0.8) }
  15%{ opacity:1; transform:translate(-50%,-50%) scale(1.1) }
  100%{ opacity:0; transform:translate(-50%,-50%) scale(1) }
}
.video-play-btn-overlay{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:80px;
  height:80px;
  border-radius:50%;
  background:rgba(255,255,255,0.95);
  border:none;
  cursor:pointer;
  color:#1a1a1a;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition:transform 0.2s,background 0.2s;
}
.video-play-btn-overlay:hover{
  background:#fff;
  transform:translate(-50%,-50%) scale(1.05);
}
.video-play-btn-overlay svg{
  width:36px;
  height:36px;
  margin-left:4px;
}
.video-controls-bar{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.6rem 0;
  flex-wrap:wrap;
}
.ctrl-btn{
  background:transparent;
  border:none;
  color:#fff;
  cursor:pointer;
  padding:0.25rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.ctrl-btn:hover{opacity:0.9}
.volume-wrap{
  display:flex;
  align-items:center;
  gap:0.35rem;
}
.volume-slider{
  width:70px;
  height:4px;
  accent-color:#dc2626;
}
.progress-wrap{
  flex:1;
  display:flex;
  align-items:center;
  gap:0.5rem;
  min-width:0;
}
.progress-slider{
  flex:1;
  min-width:60px;
  height:6px;
  accent-color:#dc2626;
}
.time-display{
  font-size:0.8rem;
  color:#9ca3af;
  flex-shrink:0;
}
.video-timestamps-wrap{
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid #374151;
}
.video-timestamps-title{
  font-size:0.95rem;
  font-weight:600;
  color:#e5e7eb;
  margin:0 0 0.5rem 0;
}
.video-timestamps-list{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
}
.video-timestamp-btn{
  display:inline-block;
  padding:0.4rem 0.75rem;
  font-size:0.9rem;
  color:#e5e7eb;
  background:#374151;
  border:1px solid #4b5563;
  border-radius:6px;
  cursor:pointer;
  transition:background 0.2s,color 0.2s;
  text-align:left;
}
.video-timestamp-btn:hover{
  background:#4b5563;
  color:#fff;
}

.playlist-sidebar{
  background:#0d0d0d;
  border-left:1px solid #1f2937;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  max-height:calc(100vh - 180px);
}
.playlist-sidebar-title{
  font-size:0.95rem;
  font-weight:700;
  color:#fff;
  text-transform:uppercase;
  letter-spacing:0.05em;
  margin:0;
  padding:1rem 1.25rem;
  border-bottom:1px solid #1f2937;
}
.playlist-cover-wrap{
  padding:0 1.25rem 1rem;
  border-bottom:1px solid #1f2937;
}
.playlist-cover-img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:6px;
  display:block;
}
.now-playing-cover{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
}
.now-playing-cover .playlist-cover-img{
  border-radius:10px;
}
.now-playing-cover::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:70%;
  background:linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.15), transparent);
  pointer-events:none;
}
.now-playing-overlay{
  position:absolute;
  left:0.75rem;
  right:0.75rem;
  bottom:0.65rem;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:0.4rem;
}
.now-playing-badge{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  width:max-content;
  background:rgba(220,38,38,0.9);
  color:#fff;
  border:1px solid rgba(255,255,255,0.2);
  border-radius:999px;
  font-size:0.72rem;
  letter-spacing:0.03em;
  font-weight:700;
  padding:0.25rem 0.55rem;
  text-transform:uppercase;
}
.now-playing-icon{
  display:inline-flex;
  line-height:0;
}
.now-playing-title{
  color:#fff;
  font-size:0.86rem;
  font-weight:700;
  line-height:1.3;
  text-shadow:0 1px 2px rgba(0,0,0,0.5);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.playlist-video-list{
  overflow-y:auto;
  flex:1;
  min-height:0;
  padding:0.5rem 0;
  scrollbar-width:thin;
  scrollbar-color:#dc2626 #121212;
  scrollbar-gutter:stable;
}
.playlist-video-list::-webkit-scrollbar{
  width:10px;
}
.playlist-video-list::-webkit-scrollbar-track{
  background:#121212;
}
.playlist-video-list::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#ef4444,#b91c1c);
  border-radius:999px;
  border:2px solid #121212;
}
.playlist-video-list::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#f87171,#dc2626);
}
.playlist-video-item{
  display:flex;
  align-items:center;
  gap:0.6rem;
  padding:0.6rem 1.25rem;
  color:#fff;
  text-decoration:none;
  border-bottom:1px solid #1a1a1a;
  transition:background 0.2s;
}
.playlist-video-item:hover{
  background:rgba(255,255,255,0.06);
}
.playlist-video-item.is-current{
  background:rgba(220,38,38,0.15);
}
.playlist-item-num{
  font-size:0.85rem;
  color:#9ca3af;
  flex-shrink:0;
  min-width:1.5rem;
}
.playlist-item-play-icon{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(220,38,38,0.92);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.35);
  pointer-events:none;
}
.playlist-item-thumb{
  flex-shrink:0;
  width:100px;
  height:56px;
  border-radius:4px;
  overflow:hidden;
  background:#1f2937;
  position:relative;
}
.playlist-item-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.playlist-item-title{
  font-size:0.85rem;
  line-height:1.3;
  flex:1;
  min-width:0;
}

.playlist-mid-section{
  border-top:1px solid #374151;
  padding:2.5rem 2rem 3rem;
  background:#0d0d0d;
}
.playlist-mid-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 2rem;
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:3rem;
  align-items:start;
}
.playlist-desc-block .brand-logo-dark{
  display:inline-flex;
  flex-direction:column;
  text-decoration:none;
  margin-bottom:1rem;
  line-height:1.2;
}
.playlist-desc-block .brand-name{color:#dc2626;font-size:1.35rem;font-weight:700}
.playlist-desc-block .brand-tagline{color:#fff;font-size:0.8rem;margin-top:2px}
.playlist-desc-block p{
  color:#e5e7eb;
  font-size:0.9rem;
  line-height:1.6;
  margin:0.5rem 0;
}
.playlist-related-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}
.related-card{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:0.75rem;
  background:#1a1a1a;
  border-radius:6px;
  color:#fff;
  text-decoration:none;
  transition:background 0.2s;
  min-width:0;
}
.related-card:hover{background:#262626}
.related-card img{
  width:100px;
  height:66px;
  object-fit:cover;
  border-radius:4px;
  flex-shrink:0;
}
.related-card span{
  font-size:0.9rem;
  font-weight:500;
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.playlist-light-dark-divider{
  height:1px;
  background:linear-gradient(90deg, transparent 0%, #4b5563 20%, #374151 50%, #1f2937 80%, #000 100%);
  margin:0;
}
.playlist-page-footer{
  background:#000;
  padding:0.75rem 2rem;
  border-top:1px solid #1f2937;
}
.playlist-page-footer .footer-copyright{
  font-size:0.8rem;
  color:#9ca3af;
}

@media(max-width:900px){
  .playlist-detail-page .playlist-main-row{grid-template-columns:1fr}
  .playlist-sidebar{border-left:none;border-top:1px solid #1f2937;max-height:56vh;min-height:240px}
  .video-player-container{max-height:38vh}
  .playlist-mid-inner{grid-template-columns:1fr;gap:2rem}
}
@media(max-width:768px){
  .playlist-detail-page .playlist-main-row{min-height:50vh}
  .video-player-wrap{padding:0.75rem 1rem}
  .video-player-container{max-height:36vh}
  .playlist-sidebar{max-height:54vh;min-height:220px}
  .playlist-sidebar-title,.playlist-cover-wrap{padding:0.75rem 1rem}
  .now-playing-overlay{left:0.6rem;right:0.6rem;bottom:0.55rem}
  .now-playing-title{font-size:0.8rem}
  .playlist-video-item{padding:0.5rem 1rem;font-size:0.9rem}
  .related-card{padding:0.6rem;gap:0.75rem}
  .related-card img{width:80px;height:54px}
  .playlist-mid-section{padding:1.5rem 1rem 2rem}
  .playlist-mid-inner{padding:0 1rem;gap:1.5rem}
  .hero-video-modal-content{max-width:100%;width:100%;margin:0.5rem;max-height:calc(100vh - 1rem)}
}
@media(max-width:480px){
  .video-player-wrap{padding:0.5rem}
  .video-player-container{max-height:32vh}
  .video-title-glowing{font-size:1.25rem}
  .video-controls-bar{gap:0.5rem;padding:0.4rem 0}
  .progress-wrap{min-width:0}
  .playlist-sidebar{max-height:52vh;min-height:200px}
  .playlist-cover-wrap{padding:0.5rem 1rem}
  .now-playing-badge{font-size:0.66rem;padding:0.2rem 0.45rem}
  .now-playing-title{font-size:0.75rem}
  .playlist-video-item{padding:0.45rem 0.75rem;font-size:0.85rem}
  .playlist-item-play-icon{width:24px;height:24px}
  .related-card img{width:70px;height:47px}
  .playlist-desc-block .brand-name{font-size:1.15rem}
  .hero-video-modal-content{margin:0.25rem;max-height:calc(100vh - 0.5rem)}
  .hero-video-modal-close{width:36px;height:36px;top:4px;right:4px}
}

/* Hero video popup modal */
.hero-video-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
}
.hero-video-modal[hidden]{ display:none !important; }
.hero-video-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.85);
  cursor:pointer;
}
.hero-video-modal-content{
  position:relative;
  background:#111;
  border-radius:12px;
  overflow:hidden;
  max-width:90vw;
  width:900px;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.hero-video-modal-close{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  width:40px;
  height:40px;
  border:none;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition:background 0.2s;
}
.hero-video-modal-close:hover{ background:rgba(0,0,0,0.9); }
.hero-video-modal-title{
  margin:0;
  padding:12px 16px;
  font-size:1.1rem;
  color:#fff;
  background:#1a1a1a;
}
.hero-video-player{
  width:100%;
  display:block;
  background:#000;
}

/* Site auth modal & toast (sign in / register popup) */
#site-toast-container{
  position:fixed;
  top:24px;
  right:24px;
  z-index:10001;
  display:flex;
  flex-direction:column;
  gap:8px;
  pointer-events:none;
}
.site-toast{
  padding:12px 18px;
  border-radius:8px;
  font-size:0.9rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  pointer-events:auto;
  max-width:320px;
}
.site-toast-success{ background:#059669; color:#fff; }
.site-toast-error{ background:#dc2626; color:#fff; }
.site-toast-info{ background:var(--primary); color:#fff; }

.page-loader{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(248,250,252,0.75);
  backdrop-filter:blur(3px);
  z-index:10005;
}
.page-loader[hidden]{
  display:none !important;
}
.page-loader-spinner{
  position:relative;
  width:58px;
  height:58px;
  border-radius:14px;
  background:#ffffff;
  box-shadow:0 10px 28px rgba(15,23,42,0.16);
  border:1px solid #e2e8f0;
}
.page-loader-spinner::before,
.page-loader-spinner::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:#b91c1c;
  border-radius:3px;
}
.page-loader-spinner::before{
  width:12px;
  height:34px;
}
.page-loader-spinner::after{
  width:34px;
  height:12px;
}
.page-loader-spinner i{
  position:absolute;
  left:50%;
  top:50%;
  width:76px;
  height:76px;
  transform:translate(-50%,-50%);
  border:3px solid rgba(185,28,28,0.2);
  border-top-color:#b91c1c;
  border-radius:50%;
  animation:page-loader-spin 0.9s linear infinite;
}
.page-loader-spinner b{
  position:absolute;
  left:50%;
  top:50%;
  width:92px;
  height:92px;
  transform:translate(-50%,-50%);
  border:2px dashed rgba(30,64,175,0.35);
  border-radius:50%;
  animation:page-loader-spin-rev 1.6s linear infinite;
}
@keyframes page-loader-spin{
  to{transform:rotate(360deg)}
}
@keyframes page-loader-spin-rev{
  to{transform:translate(-50%,-50%) rotate(-360deg)}
}

#site-modal-backdrop,
#site-modal-wrap{
  display:none;
}
#site-modal-backdrop:not([hidden]){ display:block; }
#site-modal-wrap:not([hidden]){ display:flex; }
#site-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:10002;
}
#site-modal-wrap{
  position:fixed;
  inset:0;
  z-index:10003;
  align-items:center;
  justify-content:center;
  padding:1rem;
  overflow-y:auto;
}
.site-modal-box{
  background:#fff;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,0.2);
  max-width:420px;
  width:100%;
  max-height:90vh;
  display:flex;
  flex-direction:column;
}
.site-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--border);
}
.site-modal-user-icon{
  display:inline-flex;
  align-items:center;
  margin-right:0.5rem;
  color:var(--text-secondary);
}
.site-modal-title{ margin:0; font-size:1.2rem; font-weight:600; flex:1; }
.site-modal-close{
  background:none;
  border:none;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  color:var(--text-secondary);
  padding:0 0.25rem;
}
.site-modal-close:hover{ color:var(--text); }
#site-modal-body{
  padding:1.25rem;
  overflow-y:auto;
}
.site-modal-loading{ margin:0; color:var(--text-secondary); }

.auth-modal-form .form-group{ margin-bottom:0.75rem; }
.auth-modal-form .form-actions{ margin-top:1rem; }
.auth-modal-form .form-actions .btn{ width:100%; }

/* Auth popup: Sign in / Sign up tabs */
.auth-tabs{ margin-top:0; }
.auth-tab-headers{
  display:flex;
  gap:0;
  margin-bottom:1rem;
  border-bottom:1px solid var(--border);
}
.auth-tab{
  flex:1;
  padding:0.6rem 1rem;
  font-size:0.95rem;
  font-weight:600;
  color:var(--text-secondary);
  background:none;
  border:none;
  border-bottom:3px solid transparent;
  cursor:pointer;
  transition:color 0.2s, border-color 0.2s;
}
.auth-tab:hover{ color:var(--text); }
.auth-tab.active{
  color:var(--primary);
  border-bottom-color:var(--primary);
}
.auth-tab-panel{ display:none; }
.auth-tab-panel.active{ display:block; }

/* Topbar logout button (matches icon style) */
.topbar-logout-form{ margin:0; padding:0; }
.topbar-logout-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  background:none;
  border:none;
  color:#fff;
  opacity:0.9;
  cursor:pointer;
  font:inherit;
}
.topbar-logout-btn:hover{ opacity:1; }

/* Pay for membership banner (top of every page when on paid plan but not paid) */
.pay-membership-banner{
  background:linear-gradient(135deg,#b91c1c,#7f1d1d);
  color:#fff;
  padding:10px 24px;
  text-align:center;
}
.pay-membership-banner-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
}
.pay-membership-banner-text{ font-weight:600; font-size:0.95rem; }
.pay-membership-banner-btn{
  display:inline-block;
  background:#fff;
  color:var(--primary);
  padding:8px 18px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
  transition:transform 0.2s, box-shadow 0.2s;
}
.pay-membership-banner-btn:hover{ transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,0.2); color:var(--primary); }
