/* WTC-LMS Online Admission Stylesheet */
:root {
  --wtc-navy: #1a365d;
  --wtc-navy-dark: #0f172a;
  --wtc-blue: #0284c7;
  --wtc-blue-light: #e0f2fe;
  --wtc-gold: #d97706;
  --wtc-gold-light: #fef3c7;
  --wtc-green: #059669;
  --wtc-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
.admission-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: white;
  border-bottom: 3px solid var(--wtc-gold);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: #93c5fd;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.1), transparent 50%),
              #f8fafc;
  padding: 3.5rem 0 2rem;
}

.badge-year {
  background-color: #dbeafe;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #bfdbfe;
}

/* Cards for Level Selection */
.level-card {
  border: 2px solid transparent;
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--wtc-card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
}

.level-card.card-vc {
  border-color: #e2e8f0;
}
.level-card.card-vc:hover {
  border-color: #3b82f6;
}

.level-card.card-dvt {
  border-color: #fed7aa;
  position: relative;
}
.level-card.card-dvt:hover {
  border-color: #f97316;
}

.card-header-badge {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.level-icon {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.icon-vc {
  background: #eff6ff;
  color: #2563eb;
}

.icon-dvt {
  background: #fff7ed;
  color: #ea580c;
}

.level-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.level-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0;
}

.card-body-content {
  padding: 1.75rem 2rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.feature-list li {
  padding: 0.4rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #475569;
}

.feature-list li i {
  color: #10b981;
  margin-top: 0.25rem;
}

.program-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.program-pill {
  font-size: 0.8rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

/* Card Action Buttons */
.btn-select-level {
  border-radius: 0.75rem;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Quick Status Check Card */
.status-search-card {
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--wtc-card-shadow);
  padding: 2rem;
}

/* ==========================================================================
   Form Card Theming, Step Badges & Responsive Enhancements
   ========================================================================== */

/* Step Number Badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin-right: 0.65rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Card Base Enhancements */
.form-section-card {
  background: #ffffff; /* สีขาวสะอาดตา */
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 2.25rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #cbd5e1;
}

.form-section-card:hover {
  transform: translateY(-2px);
}

.form-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  border-left: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-section-title .title-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* 0. Curriculum / System Selection - Indigo */
.card-theme-curriculum {
  border-color: #c7d2fe;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.08), 0 8px 10px -6px rgba(99, 102, 241, 0.04);
}
.card-theme-curriculum::before {
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}
.card-theme-curriculum .step-badge {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}
.card-theme-curriculum .form-section-title {
  color: #3730a3;
  border-bottom-color: #e0e7ff;
}

/* 1. Personal Info - Sky Blue / Navy */
.card-theme-personal {
  border-color: #bae6fd;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 8px 10px -6px rgba(2, 132, 199, 0.04);
}
.card-theme-personal::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}
.card-theme-personal .step-badge {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}
.card-theme-personal .form-section-title {
  color: #075985;
  border-bottom-color: #e0f2fe;
}

/* 2. Address & Contact - Teal / Emerald */
.card-theme-address {
  border-color: #99f6e4;
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.08), 0 8px 10px -6px rgba(13, 148, 136, 0.04);
}
.card-theme-address::before {
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
}
.card-theme-address .step-badge {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
}
.card-theme-address .form-section-title {
  color: #115e59;
  border-bottom-color: #ccfbf1;
}

/* 3. Education - Warm Amber */
.card-theme-education {
  border-color: #fde68a;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.08), 0 8px 10px -6px rgba(217, 119, 6, 0.04);
}
.card-theme-education::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.card-theme-education .step-badge {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}
.card-theme-education .form-section-title {
  color: #92400e;
  border-bottom-color: #fef3c7;
}

/* 4. Major Selection - Purple / Violet */
.card-theme-major {
  border-color: #ddd6fe;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.08), 0 8px 10px -6px rgba(124, 58, 237, 0.04);
}
.card-theme-major::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}
.card-theme-major .step-badge {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.35);
}
.card-theme-major .form-section-title {
  color: #5b21b6;
  border-bottom-color: #ede9fe;
}

/* 5. Payment - Green / Emerald */
.card-theme-payment {
  border-color: #a7f3d0 !important;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.08), 0 8px 10px -6px rgba(5, 150, 105, 0.04) !important;
}
.card-theme-payment::before {
  background: linear-gradient(90deg, #059669, #34d399);
}
.card-theme-payment .step-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}
.card-theme-payment .form-section-title {
  color: #065f46;
  border-bottom-color: #d1fae5;
}

/* 6. Documents - Cyan / Teal */
.card-theme-docs {
  border-color: #a5f3fc;
  box-shadow: 0 10px 25px -5px rgba(8, 145, 178, 0.08), 0 8px 10px -6px rgba(8, 145, 178, 0.04);
}
.card-theme-docs::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}
.card-theme-docs .step-badge {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  box-shadow: 0 4px 10px rgba(8, 145, 178, 0.35);
}
.card-theme-docs .form-section-title {
  color: #155e75;
  border-bottom-color: #cffafe;
}

/* Interactive Radio Tile Selection Cards */
.radio-tile-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  height: 100%;
}
.radio-tile-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px -3px rgba(0, 0, 0, 0.06);
}
.radio-tile-card:has(input[type="radio"]:checked) {
  border-color: #4f46e5;
  background: #f5f7ff;
  box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.18);
}
.radio-tile-card.theme-danger:has(input[type="radio"]:checked) {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.18);
}
.radio-tile-card.theme-success:has(input[type="radio"]:checked) {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.18);
}
.radio-tile-card.theme-secondary:has(input[type="radio"]:checked) {
  border-color: #475569;
  background: #f8fafc;
  box-shadow: 0 8px 20px -4px rgba(71, 85, 105, 0.15);
}

/* Form Controls & Inputs Polish */
.form-label {
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}
.form-label.fw-semibold {
  font-weight: 600;
}

.form-control, .form-select {
  border: 1.5px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
  background-color: #ffffff;
}

.input-group-text {
  border: 1.5px solid #cbd5e1;
  background-color: #f8fafc;
  color: #64748b;
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
}

.required-star {
  color: #ef4444;
  font-weight: bold;
}

/* Sub-Information Box */
.info-subcard {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.25rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.info-subcard:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Document Item Box */
.doc-item-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.15rem;
  height: 100%;
  transition: all 0.2s ease;
}
.doc-item-box:hover {
  border-color: #0891b2;
  background: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(8, 145, 178, 0.08);
}
.doc-item-box:focus-within {
  border-color: #0891b2;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-box:hover {
  border-color: var(--wtc-blue);
  background: #f0f9ff;
}

.photo-preview-box {
  width: 120px;
  height: 150px;
  border: 2px dashed #94a3b8;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
  margin: 0 auto 0.75rem;
  transition: all 0.2s ease;
}
.photo-preview-box:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Submit Section Box */
.submit-confirmation-card {
  background: #ffffff; /* สีขาวสะอาดตา */
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  padding: 2.5rem;
  margin-bottom: 3rem;
}

/* Responsive Rules for Mobile / Smartphone Screen */
@media (max-width: 767.98px) {
  .form-section-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .form-section-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .step-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    margin-right: 0.5rem;
  }

  .form-control, .form-select {
    padding: 0.6rem 0.8rem;
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  .radio-tile-card {
    padding: 1rem;
  }

  .btn-submit-admission {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
  }

  .submit-confirmation-card {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }

  .table-responsive {
    font-size: 0.85rem;
  }
}

/* Footer */
.admission-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 0 1.5rem;
  font-size: 0.9rem;
}

/* Print Styles (Form อสท.19) */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm 8mm 10mm;
  }
  
  body {
    background: white !important;
    color: black !important;
    font-family: 'Sarabun', 'TH Sarabun New', sans-serif !important;
    font-size: 13pt;
    line-height: 1.35;
    margin: 0;
    padding: 0;
  }

  .no-print {
    display: none !important;
  }

  .print-page-container {
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-header-logo {
    width: 65px;
    height: 65px;
  }
}

/* ป้องกันสีพื้นหลังเพี้ยนจาก Browser Autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #212529 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   YouTube Video Showcase Section Styles
   ========================================================================== */
.youtube-section {
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(2, 132, 199, 0.06), transparent 40%),
              #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.yt-player-card {
  background: #0f172a;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-player-topbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  text-decoration: none;
}

.yt-channel-avatar {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  border: 1.5px solid #ef4444;
  object-fit: contain !important;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.yt-channel-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.2;
}

.yt-channel-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.yt-meta-bar {
  background: #ffffff;
  padding: 1.15rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.yt-video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.yt-video-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

.yt-playlist-container {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--wtc-card-shadow);
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.yt-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.yt-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 2px;
}

.yt-playlist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #f1f5f9;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.yt-playlist-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.yt-playlist-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.yt-playlist-item.active .yt-item-title {
  color: #1d4ed8;
  font-weight: 600;
}

.yt-thumb-wrapper {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
  height: 64px !important;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0 !important;
  background: #0f172a;
}

.yt-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-playlist-item:hover .yt-thumb-wrapper img {
  transform: scale(1.08);
}

.yt-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: rgba(220, 38, 38, 0.92);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.yt-playlist-item:hover .yt-thumb-play {
  transform: translate(-50%, -50%) scale(1.15);
  background: #dc2626;
}

.yt-item-duration {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
}

.yt-item-info {
  flex: 1;
  min-width: 0;
}

.yt-item-title {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.yt-item-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.yt-playing-badge {
  display: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: #ef4444;
  background: #fee2e2;
  padding: 1px 6px;
  border-radius: 4px;
  align-items: center;
  gap: 3px;
}

.yt-playlist-item.active .yt-playing-badge {
  display: inline-flex;
}

@media (max-width: 767.98px) {
  .yt-thumb-wrapper {
    width: 86px;
    height: 52px;
  }
  .yt-video-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   YouTube Controls Bar Styles
   ========================================================================== */
.yt-controls-bar {
  background: #090d16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 0.85rem 0.45rem;
  user-select: none;
  position: relative;
}
.yt-progress-container {
  height: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 0.2rem;
}
.yt-progress-bg {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  transition: height 0.15s ease;
}
.yt-progress-container:hover .yt-progress-bg {
  height: 5.5px;
}
.yt-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}
.yt-progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ef4444;
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}
.yt-progress-scrubber {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}
.yt-progress-container:hover .yt-progress-scrubber {
  transform: translateY(-50%) scale(1);
}
.yt-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 38px;
}
.yt-controls-left, .yt-controls-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.yt-btn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
  text-decoration: none;
}
.yt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.yt-volume-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.yt-volume-slider {
  width: 58px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: #ef4444;
  transition: width 0.2s ease;
}
.yt-time-display {
  color: #e2e8f0;
  font-size: 0.8rem;
  margin-left: 0.45rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.yt-chapter-pill {
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  margin-left: 0.5rem;
  cursor: default;
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.yt-player-card:fullscreen {
  border-radius: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex;
  flex-direction: column;
  background: #000000;
}
.yt-player-card:fullscreen .ratio-16x9 {
  flex-grow: 1;
  height: 100%;
}
.yt-player-card:fullscreen .ratio-16x9 iframe {
  height: 100%;
}
.yt-player-card:fullscreen .yt-player-topbar {
  display: none;
}
.yt-player-card:fullscreen .yt-meta-bar {
  display: none;
}

@media (max-width: 767.98px) {
  .yt-volume-slider {
    width: 44px;
  }
  .yt-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .yt-time-display {
    font-size: 0.72rem;
  }
}



