*{box-sizing:border-box}
:root{
  --bg:#E8E1D4; /* Oatmeal Beige - Backgrounds & content areas */
  --card:#F5F1EB; /* Lighter oatmeal for cards */
  --text:#5A3A29; /* Deep Chestnut - Headers & navigation */
  --muted:#8B6B5A; /* Muted chestnut for secondary text */
  --accent:#C06B36; /* Warm Pumpkin - Buttons & interactive elements */
  --accent-pressed:#A55A2B; /* Darker pumpkin for pressed state */
  --ghost:#E8E1D4; /* Oatmeal for ghost buttons */
  --focus:#D98C3E; /* Autumn Leaf - Highlights & calls-to-action */
  --header-bg:#5A3A29; /* Deep Chestnut for header background */
  --header-text:#E8E1D4; /* Oatmeal for header text */
  --accent-secondary:#6B2C3D; /* Burgundy Merlot - Accent text & emphasis */
  --contrast:#2F4F3E; /* Forest Pine - Balance & contrast */
}
html,body{height:100%}
body{
  margin:0;
  background:#E8E1D4; /* Solid oatmeal beige background - no gradient */
  color:var(--text);
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  padding-bottom:80px; /* Space for sticky footer */
}
.container{
  max-width:960px;
  margin:0 auto;
  padding:24px;
  padding-bottom: 80px;
}
.header{
  margin-bottom:16px;
  background:#BD986B;
  color:var(--header-text);
  padding:20px;
  border-radius:16px;
  text-align:center;
}
h1{margin:0 0 6px 0;font-size:28px;letter-spacing:0.2px;color:white}
.subtitle{margin:0;color:white;opacity:0.95}

/* Tab Navigation */
.tab-nav{
  display:flex;gap:2px;margin-bottom:24px;
  background:var(--card);padding:4px;border-radius:12px;
  box-shadow:0 4px 12px rgba(90,58,41,0.1);
}
.tab-btn{
  flex:1;padding:12px 16px;border-radius:8px;border:none;
  background:transparent;color:var(--muted);cursor:pointer;
  font-weight:600;transition:all 0.2s ease;
}
.tab-btn.active{
  background:var(--accent);color:white;
}
.tab-btn:hover:not(.active){
  background:var(--ghost);color:var(--text);
}

.tab-content{
  display:none;
}
.tab-content.active{
  display:block;
}

.input-row{
  display:flex;gap:8px;align-items:center;
  background:var(--card);padding:12px;border-radius:16px;
  box-shadow:0 8px 24px rgba(90,58,41,0.15);
  border:1px solid rgba(90,58,41,0.1);
}
.input-row input{
  flex:1;padding:12px 14px;border-radius:12px;border:1px solid rgba(90,58,41,0.2);background:white;color:var(--text);
  outline:none;
}
.input-row input:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(217,140,62,0.25)}
button{
  border:0;border-radius:12px;cursor:pointer;padding:10px 10px;font-weight:600;color:white;
}
button.primary{background:var(--accent)}
button.primary:active{transform:translateY(1px);background:var(--accent-pressed)}
button.ghost{background:var(--ghost);color:var(--text);border:1px solid rgba(90,58,41,0.2)}
button.ghost:active{transform:translateY(1px)}
button.ghost:hover{background:rgba(90,58,41,0.1)}

.back-link{
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  display: block;
  margin-bottom: 16px;
}

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

.player-section{
  margin-top:16px;
  transition: all 0.3s ease-in-out;
  transform: translateY(0);
  opacity: 1;
}

.hidden{
  display:none;
}

/* Smooth transition for player section appearance */
.player-section:not(.hidden) {
  animation: slideInFade 0.4s ease-out;
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.video-title{
  margin:0 0 8px 0;
  font-size:18px;
  color:var(--accent-secondary);
}

.spacer{flex:1}

.switch{position:relative;display:inline-block;width:52px;height:28px}
.switch input{opacity:0;width:0;height:0}
.slider{
  position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;
  background:var(--accent);border-radius:999px;transition:all .2s ease;
}
.slider:before{
  position:absolute;content:"";height:22px;width:22px;right:3px;bottom:3px;background:white;border-radius:50%;transition:all .2s ease;
}
input:checked + .slider{background:var(--accent)}
input:checked + .slider:before{transform:translateX(-24px)}
.switch-label{color:var(--muted)}

/* Flip toggle specific styling - inverted behavior */
#flipToggle + .slider{
  background:#ccc; /* Grey when not flipped */
}
#flipToggle:checked + .slider{
  background:var(--accent); /* Colored when flipped */
}

.player-wrapper{
  position:relative;
  background:black;border-radius:16px;overflow:hidden;
  box-shadow:0 10px 30px rgba(90,58,41,0.2);
  transition:transform .2s ease;
}

/* Hide YouTube controls when flipped */
.player-wrapper.flipped-video #player{
  transform:scaleX(-1);
  /* Hide YouTube's control bar and other UI elements */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 calc(100% - 48px));
}

/* Custom Video Controls Overlay */
.custom-video-controls{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  background:linear-gradient(transparent, rgba(0,0,0,0.9));
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  opacity:1;
  transition:opacity 0.3s ease;
  z-index:9999;
  pointer-events:auto;
}

/* Hide video controls when modal is open */
body.modal-open .custom-video-controls{
  display:none !important;
}

.player-wrapper.flipped-video .custom-video-controls{
  pointer-events:auto;
  opacity:1;
}

.player-wrapper:hover .custom-video-controls{
  opacity:1;
}

/* Show controls on mobile devices */
@media (max-width: 768px) {
  .custom-video-controls{
    opacity:1;
    pointer-events:auto;
  }
  
  /* Override mobile controls when modal is open */
  body.modal-open .custom-video-controls{
    display:none !important;
  }
  
  /* Make buttons larger and more touch-friendly on mobile */
  .video-control-btn{
    min-width:56px;
    min-height:56px;
    padding:16px;
    font-size:18px;
    touch-action:manipulation;
  }
  
  /* Fix SVG rendering issues on mobile */
  .video-control-btn img{
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* Ensure buttons are easily tappable */
  .video-controls-top{
    gap:16px;
  }
}

/* Video Control Buttons */
.video-controls-top{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
}

.video-control-btn{
  background:#E8E1D4;
  border:1px solid rgba(107,44,61,0.3);
  border-radius:8px;
  padding:4px 6px;
  color:var(--accent-secondary);
  font-size:16px;
  cursor:pointer;
  transition:all 0.2s ease;
  min-width:40px;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-control-btn:hover{
  background:#E8E1D4;
  border-color:rgba(107,44,61,0.6);
  transform:scale(1.05);
}

.video-control-btn:active{
  transform:scale(0.95);
}

/* Progress Bar Container */
.video-progress-container{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Progress Bar */
.video-progress{
  position:relative;
  height:6px;
  background:rgba(255,255,255,0.3);
  border-radius:3px;
  cursor:pointer;
  overflow:visible;
}

.progress-fill{
  height:100%;
  background:var(--accent);
  border-radius:3px;
  transition:width 0.1s ease;
  width:0%;
  position:relative;
}

.progress-handle{
  position:absolute;
  top:50%;
  right:-6px;
  width:12px;
  height:12px;
  background:white;
  border-radius:50%;
  transform:translateY(-50%);
  box-shadow:0 2px 4px rgba(0,0,0,0.3);
  opacity:0;
  transition:opacity 0.2s ease;
}

.video-progress:hover .progress-handle{
  opacity:1;
}

/* Time Display */
.video-time-display{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  font-size:12px;
  color:white;
  font-family:monospace;
}

.video-time{
  min-width:40px;
  text-align:center;
}

.video-time-separator{
  color:rgba(255,255,255,0.6);
}

.badge{
  position:absolute;top:10px;right:12px;z-index:3;
  background:rgba(192,107,54,0.9);
  color:white;font-weight:800;
  padding:6px 10px;border-radius:999px;font-size:14px;
  user-select:none;pointer-events:none;
}

#ytOverlayMask{
  position:absolute;top:0;left:0;width:100%;height:56px;
  background:black;pointer-events:none;z-index:2;
}
#player{
  aspect-ratio:16/9;width:100%;
  z-index:1;
  position:relative;
}

#player iframe {
  z-index:1;
  position:relative;
}

/* Hide YouTube overlays and "More videos" popup */
/* Note: Removed pointer-events: none to allow custom controls to work */

/* Hide YouTube's "More videos" overlay and related elements */
.ytp-pause-overlay,
.ytp-cued-thumbnail-overlay,
.ytp-show-cards-title,
.ytp-show-cards-icon,
.ytp-watermark,
.ytp-show-cards-button,
.ytp-endscreen-content,
.ytp-endscreen-paginate,
.ytp-endscreen-paginate-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Library Styles */
.library-header{
  display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;
  background:var(--card);
  padding:20px;
  border-radius:16px;
  box-shadow:0 4px 12px rgba(90,58,41,0.1);
  border:1px solid rgba(90,58,41,0.1);
}
.library-header h2{margin:0;font-size:24px;color:var(--accent-secondary)}

.library-controls{
  display:flex;align-items:center;gap:16px;
}

.handedness-toggle{
  display:flex;align-items:center;gap:8px;
  background:white;padding:8px 12px;border-radius:12px;
  border:1px solid rgba(90,58,41,0.2);
}

.handedness-label{
  color:var(--muted);font-size:14px;font-weight:500;
}

.info-icon{
  color:var(--accent);
  font-size:16px;
  cursor:pointer;
  margin-left:8px;
  opacity:0.8;
  transition:opacity 0.2s ease;
}

.info-icon:hover{
  opacity:1;
}

.info-modal{
  max-width:500px;
}

.info-content{
  margin-bottom:20px;
}

.info-content p{
  margin-bottom:16px;
  line-height:1.6;
  color:var(--text);
}

.info-content ul{
  margin:16px 0;
  padding-left:20px;
}

.info-content li{
  margin-bottom:8px;
  line-height:1.5;
  color:var(--text);
}

.info-content strong{
  color:var(--accent-secondary);
}

/* Category Navigation */
.category-nav{
  display:flex;gap:2px;margin-bottom:20px;
  background:var(--card);padding:4px;border-radius:12px;
  box-shadow:0 4px 12px rgba(90,58,41,0.1);
}
.category-btn{
  flex:1;padding:10px 16px;border-radius:8px;border:none;
  background:transparent;color:var(--muted);cursor:pointer;
  font-weight:600;transition:all 0.2s ease;font-size:14px;
}
.category-btn.active{
  background:var(--accent);color:white;
}
.category-btn:hover:not(.active){
  background:rgba(90,58,41,0.1);color:var(--text);
}

.library-search{
  margin-bottom:20px;
}
.library-search input{
  width:100%;padding:12px 16px;border-radius:12px;border:1px solid rgba(90,58,41,0.2);
  background:white;color:var(--text);outline:none;
}
.library-search input:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(217,140,62,0.25)}

.skills-grid{
  display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));gap:16px;
}

.skill-card{
  background:var(--card);border-radius:16px;padding:20px;
  box-shadow:0 4px 12px rgba(90,58,41,0.1);transition:all 0.2s ease;
  border:1px solid rgba(90,58,41,0.1);
}
.skill-card:hover{
  transform:translateY(-2px);box-shadow:0 8px 24px rgba(90,58,41,0.2);
  border-color:var(--accent);
}

.skill-title{
  font-size:18px;font-weight:600;margin:0 0 8px 0;color:var(--accent-secondary);
}

.skill-note{
  color:var(--muted);font-size:14px;margin:0 0 16px 0;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

.skill-timestamp{
  display:inline-block;background:var(--contrast);color:white;
  padding:4px 8px;border-radius:6px;font-size:12px;font-family:monospace;
  margin-bottom:12px;
}

.skill-category{
  display:inline-block;background:var(--accent);color:white;
  padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600;
  margin-bottom:12px;margin-left:8px;
  text-transform:capitalize;
}

.skill-tutorial-handedness{
  display:inline-block;background:var(--accent-secondary);color:white;
  padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600;
  margin-bottom:12px;margin-left:8px;
  text-transform:capitalize;
}

.skill-actions{
  display:flex;gap:8px;
}

.skill-actions button{
  flex:1;padding:8px 12px;font-size:14px;
}

.empty-library{
  text-align:center;padding:60px 20px;color:var(--muted);
  background:var(--card);
  border-radius:16px;
  border:2px dashed rgba(90,58,41,0.2);
}

/* Modal Styles */
.modal{
  position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(90,58,41,0.8);
  display:flex;align-items:center;justify-content:center;z-index:999999;
  opacity:1;visibility:visible;transition:opacity 0.2s ease,visibility 0.2s ease;
}
.modal.hidden{
  opacity:0;visibility:hidden;pointer-events:none;
}
.modal-content{
  background:var(--card);border-radius:16px;padding:24px;max-width:500px;width:90%;
  max-height:90vh;overflow-y:auto;
  box-shadow:0 20px 40px rgba(90,58,41,0.3);
  border:1px solid rgba(90,58,41,0.1);
}
.modal-header{
  display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;
}
.modal-header h3{margin:0;font-size:20px;color:var(--accent-secondary)}
.modal-close{
  background:none;border:none;color:var(--muted);font-size:24px;cursor:pointer;
  padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;
}
.modal-close:hover{color:var(--text)}

.form-group{
  margin-bottom:16px;
}
.form-group label{
  display:block;margin-bottom:6px;color:var(--text);font-weight:500;
}
.form-group input,.form-group textarea,.form-group select{
  width:100%;padding:12px;border-radius:8px;border:1px solid rgba(90,58,41,0.2);
  background:white;color:var(--text);outline:none;
  font-family:inherit;
}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{
  border-color:var(--focus);box-shadow:0 0 0 3px rgba(217,140,62,0.25);
}
.form-group textarea{resize:vertical;min-height:80px}
.form-group select{
  cursor:pointer;
}

.form-help{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.form-actions{
  display:flex;gap:12px;justify-content:flex-end;margin-top:24px;
}

.footer{
  margin-top:18px;
  color:var(--muted);
  text-align:center;
  background:var(--card);
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(90,58,41,0.1);
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.footer-link:hover {
  background: rgba(192,107,54,0.1);
  color: var(--accent-secondary);
}

/* Sticky Auth Footer */
.sticky-auth-footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:var(--card);
  border-top:1px solid rgba(90,58,41,0.1);
  padding:12px 24px;
  z-index:10000;
  box-shadow:0 -2px 10px rgba(90,58,41,0.1);
}

.sticky-auth-footer .auth-section{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  max-width:960px;
  margin:0 auto;
}

.sticky-auth-footer .auth-status{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.sticky-auth-footer .auth-status.hidden{
  display:none !important;
}

.sticky-auth-footer .sign-in-section.hidden{
  display:none !important;
}

.sticky-auth-footer .user-email{
  color:var(--text);
  font-size:14px;
  font-weight:500;
}

.sticky-auth-footer .auth-btn{
  padding:8px 12px;
  font-size:14px;
  border-radius:8px;
  font-weight:500;
  white-space:nowrap;
}

.sticky-auth-footer .sign-in-section{
  display:flex;
  align-items:center;
  gap:12px;
  flex-direction:row;
}

.sticky-auth-footer .auth-note{
  margin:0;
  font-size:12px;
  color:var(--muted);
  max-width:200px;
  line-height:1.3;
}

/* Email Verification Prompt */
.email-verification-prompt{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  width:100%;
}

.email-verification-prompt.hidden{
  display:none !important;
}

.verification-top-row{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

.verification-bottom-row{
  display:flex;
  justify-content:flex-end;
}

.verification-message{
  margin:0;
  font-size:13px;
  color:var(--text);
  font-weight:500;
  white-space:nowrap;
  flex-shrink:1;
  min-width:0;
}

/* Auth Mode Toggle */
.auth-mode-toggle{
  display:flex;
  gap:0;
  background:var(--bg);
  border-radius:8px;
  padding:4px;
  margin-bottom:12px;
  width:100%;
}

.auth-mode-btn{
  flex:1;
  padding:8px 16px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  font-weight:500;
  border-radius:6px;
  cursor:pointer;
  transition:all 0.2s;
}

.auth-mode-btn.active{
  background:var(--card);
  color:var(--accent);
  box-shadow:0 1px 3px rgba(0,0,0,0.1);
}

.auth-mode-btn:hover:not(.active){
  color:var(--text);
}

/* Email/Password Form */
.email-auth-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  margin-bottom:12px;
}

.auth-input{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:14px;
  background:var(--bg);
  color:var(--text);
  transition:border-color 0.2s;
  box-sizing:border-box;
}

.auth-input:focus{
  outline:none;
  border-color:var(--accent);
}

.auth-input::placeholder{
  color:var(--muted);
}

/* Password Container with Toggle */
.password-container{
  position:relative;
  width:100%;
}

.password-container .auth-input{
  padding-right:40px;
}

.toggle-password-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  padding:4px 8px;
  font-size:16px;
  opacity:0.6;
  transition:opacity 0.2s;
}

.toggle-password-btn:hover{
  opacity:1;
}

/* Password Requirements */
.password-requirements{
  font-size:11px;
  color:var(--muted);
  margin-top:-6px;
  padding:0 4px;
}

.password-requirements.hidden{
  display:none;
}

/* Auth Buttons */
.auth-btn.full-width{
  width:100%;
}

.auth-btn.small{
  padding:6px 12px;
  font-size:12px;
}

.auth-btn.google{
  background:#fff;
  color:#333;
  border:1px solid #ddd;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.auth-btn.google:hover{
  background:#f8f8f8;
  border-color:#ccc;
}

.google-icon{
  font-weight:bold;
  font-size:16px;
  color:#4285f4;
}

.auth-btn.secondary{
  background:var(--bg);
  color:var(--text);
  border:1px solid var(--border);
}

.auth-btn.secondary:hover{
  background:var(--card);
}

/* Auth Link */
.auth-link{
  color:var(--accent);
  font-size:12px;
  text-decoration:none;
  text-align:center;
  display:block;
  margin-top:4px;
}

.auth-link:hover{
  text-decoration:underline;
}

/* Auth Divider */
.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0;
  width:100%;
}

.auth-divider::before,
.auth-divider::after{
  content:'';
  flex:1;
  height:1px;
  background:var(--border);
}

.auth-divider span{
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}

/* Alternative Sign-In Methods */
.auth-alternatives{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
}

/* Email Link Sent Section */
.email-link-sent-section,
.password-reset-sent-section{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  width:100%;
  text-align:center;
}

.email-link-sent-section.hidden,
.password-reset-sent-section.hidden{
  display:none !important;
}

.success-message{
  margin:0;
  font-size:16px;
  color:#10b981;
  font-weight:600;
}

.auth-note.small{
  font-size:11px;
  max-width:300px;
}

/* Simplified Sign-In Section Layout (Footer) */
.sticky-auth-footer .sign-in-section{
  display:flex;
  align-items:center;
  gap:12px;
  flex-direction:row;
}

.sticky-auth-footer .sign-in-section .auth-note{
  margin:0;
  font-size:12px;
  color:var(--muted);
  max-width:200px;
  line-height:1.3;
}

/* Auth Modal Styles */
.auth-modal-content{
  max-width:450px;
  max-height:90vh;
  overflow-y:auto;
}

.auth-main-section{
  padding:20px 0;
}

/* Responsive design for sticky footer */
@media (max-width: 768px) {
  body{
    /* JavaScript will dynamically adjust padding-bottom */
    padding-bottom: 80px; /* Base padding for sticky footer */
  }
  
  .sticky-auth-footer{
    padding:8px 16px; /* Reduced padding */
    /* Use safe area insets for devices with notches/home indicators */
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    /* JavaScript will dynamically adjust bottom position */
    bottom: env(safe-area-inset-bottom, 0);
  }
  
  .sticky-auth-footer .auth-section{
    justify-content:center;
    flex-direction:row;
    gap:8px;
  }
  
  .sticky-auth-footer .sign-in-section{
    flex-direction:row;
    align-items:center;
    gap:8px;
  }
  
  .sticky-auth-footer .sign-in-section .auth-note{
    text-align:center;
    max-width:150px;
    font-size:11px;
    line-height:1.2;
  }
  
  .sticky-auth-footer .auth-btn{
    padding:6px 10px;
    font-size:12px;
  }
  
  /* Mobile auth modal adjustments */
  .auth-modal-content{
    max-width:95%;
    padding:20px;
  }
  
  .auth-input{
    font-size:16px; /* Prevent iOS zoom on focus */
    padding:10px 12px;
  }
  
  .auth-mode-toggle{
    margin-bottom:10px;
  }
  
  .auth-mode-btn{
    padding:10px 14px;
    font-size:14px;
  }
  
  .email-auth-form{
    gap:8px;
    margin-bottom:10px;
  }
  
  .password-requirements{
    font-size:10px;
  }
  
  .auth-divider{
    margin:10px 0;
  }
  
  .auth-alternatives{
    gap:6px;
  }
  
  .auth-link{
    font-size:13px;
  }
  
  /* Mobile verification prompt */
  .email-verification-prompt{
    gap:6px;
  }
  
  .verification-top-row{
    flex-direction:column;
    align-items:flex-end;
    gap:6px;
  }
  
  .verification-message{
    font-size:11px;
    white-space:normal;
    text-align:right;
    max-width:200px;
  }
  
  /* Mobile success messages */
  .success-message{
    font-size:14px;
  }
  
  .auth-note.small{
    font-size:10px;
  }
  
  /* Mobile responsive library header */
  .library-header{
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    padding:16px;
  }
  
  .library-header h2{
    font-size:20px;
    text-align:center;
  }
  
  .library-controls{
    flex-direction:column;
    gap:12px;
    align-items:stretch;
  }
  
  .handedness-toggle{
    justify-content:center;
    padding:10px 12px;
    gap:6px;
  }
  
  .handedness-label{
    font-size:13px;
  }
  
  .info-icon{
    font-size:14px;
    margin-left:4px;
  }
  
  #addSkillBtn{
    width:100%;
    padding:12px 16px;
    font-size:14px;
  }
  
  /* Mobile responsive input row - stack vertically on small screens */
  .input-row{
    flex-direction:column;
    gap:12px;
  }
  
  .input-row input{
    width:100%;
  }
  
  .input-row button{
    width:100%;
    padding:14px 16px;
    font-size:16px;
  }
  
  /* Ensure video player and content don't get hidden behind browser UI */
  .player-wrapper{
    margin-bottom: 20px;
  }
  
  /* Add extra spacing for the last content elements */
  .tab-content{
    padding-bottom: 20px;
  }
  
  /* Ensure modals are properly positioned above browser UI */
  .modal{
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
}

/* Desktop-specific fix for playerSection overlap with footer */
@media (min-width: 769px) {
  #playerSection {
    margin-bottom: 80px; /* Add space below player section on desktop */
  }
}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ===== FEEDBACK PAGE STYLES ===== */

.feedback-section {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
  margin-bottom: 24px;
  margin-top: 10px;
}

.feedback-intro {
  margin-bottom: 32px;
  text-align: center;
}

.feedback-intro h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--accent-secondary);
}

.feedback-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 2px solid rgba(90,58,41,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  border-color: var(--accent);
  background: rgba(192,107,54,0.05);
}

.radio-option input[type="radio"] {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: var(--accent-secondary);
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(192,107,54,0.1);
}

.radio-label {
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: color 0.2s ease;
  flex: 1;
}

.radio-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2px;
}

.radio-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Radio table layout */
.radio-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.radio-table tr.radio-option {
  display: table-row;
  border: 2px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  background: white;
  transition: all 0.2s ease;
  cursor: pointer;
}

.radio-table tr.radio-option:hover {
  border-color: var(--accent);
  background: rgba(192,107,54,0.05);
}

.radio-table tr.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(192,107,54,0.1);
}

.radio-input-cell {
  width: 60px;
  padding: 16px 12px 16px 16px;
  vertical-align: top;
  text-align: center;
}

.radio-label-cell {
  padding: 16px 16px 16px 0;
  vertical-align: top;
}

.radio-table input[type="radio"] {
  margin: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* Character counter styling */
.character-counter {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.character-counter.warning {
  color: #f39c12;
}

.character-counter.danger {
  color: #e74c3c;
}

.conditional-fields {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(90,58,41,0.1);
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border-radius: 16px;
  border: 2px solid var(--accent);
}

.success-content h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: var(--accent-secondary);
}

.success-content p {
  margin: 0 0 24px 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px auto;
}

/* Mobile responsive feedback styles */
@media (max-width: 768px) {
  .feedback-section {
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
  }
  
  .feedback-intro h2 {
    font-size: 20px;
  }
  
  .radio-option {
    padding: 12px;
    gap: 8px;
  }
  
  .radio-label strong {
    font-size: 15px;
  }
  
  .radio-label small {
    font-size: 13px;
  }
  
  .success-message {
    padding: 30px 16px;
  }
  
  .success-content h3 {
    font-size: 20px;
  }
}

/* ===== ADMIN DASHBOARD STYLES ===== */
.admin-section {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
  margin-bottom: 24px;
  text-align: center;
}

.auth-prompt h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: var(--accent-secondary);
}

.auth-prompt p {
  margin: 0 0 24px 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  margin-top: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(90,58,41,0.1);
}

.stat-card h3 {
  margin: 0 0 8px 0;
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.dashboard-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.filters-section {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
}

.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(90,58,41,0.2);
  background: white;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(217,140,62,0.25);
}

.feedback-list-section {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
}

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

.list-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--accent-secondary);
}

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

.list-controls span {
  color: var(--muted);
  font-size: 14px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(90,58,41,0.1);
  transition: all 0.2s ease;
}

.feedback-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(192,107,54,0.1);
}

.feedback-item.problem {
  border-left: 4px solid #e74c3c;
}

.feedback-item.positive {
  border-left: 4px solid #27ae60;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-type {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.feedback-type.problem {
  background: #e74c3c;
  color: white;
}

.feedback-type.positive {
  background: #27ae60;
  color: white;
}

.feedback-date {
  color: var(--muted);
  font-size: 14px;
}

.feedback-email {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.feedback-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--ghost);
  color: var(--text);
  border: 1px solid rgba(90,58,41,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.feedback-content {
  margin-top: 16px;
}

.feedback-content h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--accent-secondary);
  font-weight: 600;
}

.feedback-content p {
  margin: 0 0 16px 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

.feedback-content p:last-child {
  margin-bottom: 0;
}

.problem-summary {
  font-weight: 600;
  color: var(--accent-secondary);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* Mobile responsive admin styles */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card h3 {
    font-size: 24px;
  }
  
  .dashboard-controls {
    justify-content: center;
  }
  
  .filters-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .list-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .feedback-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .feedback-actions {
    justify-content: center;
  }
}

/* ===== CONTENT CONTAINER STYLES ===== */
.content-container {
  background: var(--card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(90,58,41,0.15);
  border: 1px solid rgba(90,58,41,0.1);
  margin-bottom: 24px;
}

/* ===== CREATOR LETTER STYLES ===== */
.creator-letter {
  background: white;
  border-radius: 16px;
  padding: 32px;
  padding-bottom: 25px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
  line-height: 1.7;
  font-size: 16px;
  overflow: hidden;
}

.letter-image {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 200px;
  width: 40%;
}

.letter-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: rotate(-3deg);
}

.creator-letter p {
  margin: 0 0 20px 0;
  color: var(--text);
  text-align: left;
}

.creator-letter p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--accent-secondary);
}

.letter-signature {
  margin-top: 32px;
  text-align: right;
}

.letter-signature p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.signature-name {
  font-family: 'Segoe Script', 'Bradley Hand', 'Kalam', 'Dancing Script', cursive;
  font-size: 18px !important;
  color: var(--accent-secondary) !important;
  font-weight: 400;
  margin-top: 0 !important;
  letter-spacing: 0.5px;
  transform: rotate(-0.5deg);
}

/* Mobile responsive creator letter */
@media (max-width: 600px) {
  .creator-letter {
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .creator-letter p {
    margin-bottom: 18px;
  }
  
  .letter-image {
    float: none;
    display: block;
    margin: 0 auto 1.5rem auto;
    width: 80%;
    max-width: 300px;
  }
  
  .letter-signature {
    margin-top: 24px;
  }
  
  .signature-name {
    font-size: 22px !important;
  }
}

/* ===== CONTACT TILES STYLES ===== */
.contact-tiles {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-tile {
  flex: 1;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(90,58,41,0.1);
  border: 1px solid rgba(90,58,41,0.1);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Removed hover effects to make tiles non-clickable */

.tile-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.tile-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--accent-secondary);
  font-weight: 600;
}

.tile-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
}

.tile-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.tile-content a:hover {
  text-decoration: underline;
}

/* Values tiles with hover effect */
.values-tile .tile-icon,
.values-tile .tile-content h4 {
  transition: opacity 0.3s ease;
}

.values-tile .tile-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  margin: 0;
  padding: 0 20px;
  text-align: center;
}

.values-tile:hover .tile-icon,
.values-tile:hover .tile-content h4 {
  opacity: 0;
  position: absolute;
  visibility: hidden;
}

.values-tile:hover .tile-description {
  opacity: 1;
  max-height: 300px;
  padding: 20px 20px 20px 20px;
}

.values-tile {
  cursor: pointer;
  transition: transform 0.2s ease, height 0.3s ease;
  position: relative;
  min-height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.values-tile:hover {
  transform: translateY(-2px);
}

/* Mobile responsive contact tiles */
@media (max-width: 768px) {
  .contact-tiles {
    flex-direction: column;
    gap: 12px;
  }
  
  .contact-tile {
    min-width: auto;
    padding: 16px;
  }
  
  .tile-icon {
    font-size: 28px;
    margin-bottom: 10px;
  }
}

/* ===== PIXEL ICON STYLES ===== */
.pixel-icon {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
}

/* Pixelated emoji styles */
.pixel-target,
.pixel-bulb,
.pixel-question {
  font-family: 'Courier New', monospace;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 8px;
  display: inline-block;
  filter: contrast(1.2) brightness(0.9);
}

/* ===== ACCORDION STYLES ===== */
.accordion {
  width: 100%;
  margin-left: 16px;
  margin-right: 8px;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.accordion-header:hover {
  opacity: 0.8;
}

.accordion-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin: 0;
  flex: 1;
}

.accordion-icon {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  transition: transform 0.3s ease;
  margin-left: 12px;
  min-width: 20px;
  text-align: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  opacity: 0;
  transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 1000px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 12px;
}

.accordion-header.active .accordion-icon {
  /* No rotation needed - icon changes from + to − */
}

/* Accordion content styling */
.accordion-content p {
  margin: 0 0 12px 0;
  color: var(--text);
  line-height: 1.6;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.5;
}

.accordion-content strong {
  color: var(--accent-secondary);
}

/* ===== DEBUG MESSAGES SECTION ===== */
/* 
 * Debug messages div for development and testing purposes
 * This div is created dynamically by the showDebugMessage() function in script.js
 * It displays real-time debug information during development and testing
 * Currently hidden for production use - uncomment the display property to show debug messages
 */
#debugMessages {
  /* display: block; */ /* Uncomment this line to show debug messages during development */
  display: none !important; /* Hide debug messages in production */
}

/* ===== INLINE CTA BUTTONS ===== */
.inline-cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  margin: 0 2px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(192, 107, 54, 0.3);
}

.inline-cta-button:hover {
  background: var(--accent-pressed);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(192, 107, 54, 0.4);
  color: white;
  text-decoration: none;
}

.inline-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(192, 107, 54, 0.3);
}

.lead-cta {
  margin-top: 16px;
  font-size: 1.1em;
  font-weight: 500;
}

.hero-cta {
  margin-top: 20px;
  text-align: center;
}

#try-lefti-button-1 {
  display: block !important;
  margin: 0 auto;
  text-align: center;
}

/* ===== CTA BUTTON STYLING ===== */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(192, 107, 54, 0.3);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-pressed);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 107, 54, 0.4);
  color: white;
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(192, 107, 54, 0.3);
}

.cta-button.primary {
  background: var(--accent);
}

.cta-button.secondary {
  background: var(--ghost);
  color: var(--text);
  border: 1px solid rgba(90, 58, 41, 0.2);
}

.cta-button.secondary:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.hero-cta .cta-button {
  font-size: 1.1em;
  padding: 12px 24px;
}
