/* ===================================================================
   video-page.css
   Externalised from video.php (was an inline <style> block) so the
   browser can cache it across video views. Includes the dark-mode
   section at the bottom. Page-specific surfaces only; shared chrome
   (navbar, dropdowns, text utilities) is themed by the central
   bb-dark-mode layer in header_dark_light_mode.php.
   =================================================================== */

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

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: #eef1f5;
      color: #1a1a1a;
      line-height: 1.6;
    }

    /* ===== VIDEO CARDS (Copied from videos.php) ===== */
      .video-card {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      .video-card:hover {
        box-shadow: 0 4px 20px rgba(34,136,153,0.15);
        transform: translateY(-2px);
      }

      .video-thumbnail {
        position: relative;
        overflow: hidden;
        padding-top: 56.25%; /* 16:9 Aspect Ratio */
      }

      .video-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
      }

      .video-card:hover .video-thumbnail img {
        transform: scale(1.05);
      }

      .unpublished-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255,193,7,0.9);
        color: #000;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 2;
      }

      .video-user {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
      }

      .video-user img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
      }

      .video-user a {
        color: #228899;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s;
      }

      .video-user a:hover {
        color: #1a6b77;
      }

      .video-actions {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
      }

      .video-actions i {
        font-size: 20px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
      }

      .video-actions i:hover {
        color: #228899;
        transform: scale(1.1);
      }

      .video-actions i.liked {
        color: #dc3545;
      }

      .video-actions i.bookmarked {
        color: #228899;
      }

      .video-info {
        padding: 12px 16px;
        flex-grow: 1;
      }

      .video-meta {
        color: #228899;
        font-size: 12px;
        margin-bottom: 8px;
      }

      .video-price-badge {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.2s;
      }
      .video-price-badge:hover {
        transform: scale(1.05);
      }
      
      .price-paid {
        background: #228899; 
        color: #fff;        border: 1px solid rgba(255,255,255,0.2);
      }

      .price-free {
        background: linear-gradient(135deg, #28a745 0%, #218838 100%);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
      }

      .video-title {
        color: #1a2e3b;
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .video-description {
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .video-tags {
        padding: 0 16px 16px;
      }

      .video-tag {
        display: inline-block;
        background: #e8f5f7;
        color: #228899;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        text-decoration: none;
        margin: 4px 4px 4px 0;
        transition: all 0.2s;
      }

      .video-tag:hover {
        background: #228899;
        color: #fff;
      }
    /* ===== END VIDEO CARDS ===== */

    .modern-video-container {
      min-height: 100vh;
/* padding-top: 20px;*/
    }

    /* Video Player */
    .video-player-wrapper {
      background: #000;
      box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    }

    .video-player-container {
      max-width: 100%;
      margin: 0 auto;
      position: relative;
    }

    .video-player-container video {
      width: 100%;
      height: auto;
      max-height: 85vh;
      display: block;
    }

    /* â”€â”€ Plyr overrides â”€â”€ */
    .plyr {
      --plyr-color-main:              #228899;
      --plyr-video-control-color:     #fff;
      --plyr-video-control-color-hover: #fff;
      --plyr-video-control-background-hover: #228899;
      --plyr-range-fill-background:   #228899;
      --plyr-range-thumb-background:  #fff;
      --plyr-range-thumb-height:      14px;
      --plyr-range-thumb-shadow:      0 1px 4px rgba(0,0,0,0.4);
      --plyr-range-track-height:      4px;
      --plyr-video-progress-buffered-background: rgba(255,255,255,0.25);
      --plyr-video-controls-background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
      --plyr-control-spacing:         12px;
      --plyr-control-icon-size:       20px;
      --plyr-font-size-base:          14px;
      --plyr-font-size-time:          13px;
      --plyr-tooltip-background:      rgba(0,0,0,0.85);
      --plyr-tooltip-color:           #fff;
      --plyr-tooltip-radius:          6px;
      --plyr-menu-background:         rgba(15,30,35,0.96);
      --plyr-menu-color:              #e0f4f6;
      --plyr-menu-border-color:       rgba(34,136,153,0.3);
      font-family: 'Inter', -apple-system, sans-serif;
    }

    .plyr__controls {
      padding: 20px 16px 14px !important;
      background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important;
    }

    .plyr__control--overlaid {
      background: rgba(34,136,153,0.85) !important;
      border: 2px solid rgba(255,255,255,0.3) !important;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      width: 72px !important;
      height: 72px !important;
      border-radius: 50% !important;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
      transform: translate(-50%, -50%) scale(1) !important;
    }

    .plyr__control--overlaid:hover {
      background: rgba(34,136,153,1) !important;
      transform: translate(-50%, -50%) scale(1.08) !important;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 10px rgba(34,136,153,0.15) !important;
    }

    .plyr__control--overlaid svg {
      width: 28px !important;
      height: 28px !important;
    }

    .plyr__progress input[type=range]::-webkit-slider-thumb {
      box-shadow: 0 0 0 3px rgba(34,136,153,0.35), 0 2px 6px rgba(0,0,0,0.4);
      transition: box-shadow 0.15s ease;
    }

    .plyr__progress input[type=range]:hover::-webkit-slider-thumb {
      box-shadow: 0 0 0 5px rgba(34,136,153,0.45), 0 2px 6px rgba(0,0,0,0.4);
    }

    .plyr__tooltip {
      font-size: 12px !important;
      font-weight: 600 !important;
      letter-spacing: 0.3px;
      padding: 4px 8px !important;
      border-radius: 6px !important;
    }

    .plyr__volume input[type=range] {
      min-width: 80px;
    }

    .plyr__controls .plyr__control:not(.plyr__control--overlaid) {
      border-radius: 6px !important;
      transition: background 0.15s ease, color 0.15s ease !important;
    }

    .plyr__controls .plyr__control:not(.plyr__control--overlaid):hover {
      background: rgba(34,136,153,0.75) !important;
    }

    /* Preview Banner */
    .preview-banner {
      background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
      color: #92400e;
      padding: 12px;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 600;
      font-size: 14px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    /* Content */
    .content-wrapper {
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
      margin-top: 30px;
    }

    @media (min-width: 1280px) {
      .content-grid {
        grid-template-columns: 1fr 380px;
        gap: 40px;
      }
    }

    /* Main Content */
    .main-content {
      min-width: 0;
    }

    .video-info-section {
      background: white;
      border-radius: 20px;
      padding: 30px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
    }

    .video-title-main { /* Renamed to avoid conflict with card title */
      font-size: 28px;
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 20px;
      line-height: 1.3;
    }
    
    /* Using .video-title for main title here if conflict handled by structure, 
       but keeping as is from original video.php */
    .video-title { 
      /* This rule from video.php might conflict with video cards, 
         but cards are inside #moreVideos so we can scope this if needed. 
         However, the properties are different. 
         Let's trust the CSS cascade or specificity. 
         The card uses .video-card .video-title usually, but here they share name.
         To be safe, let's leave this as is, usually specific containers win.
      */
      font-size: 28px;
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 20px;
      line-height: 1.3;
    }

    /* Video Specs */
    .video-specs {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      align-items: center;
      padding: 20px;
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      border-radius: 15px;
      font-size: 14px;
      font-weight: 500;
      color: #0c4a6e;
    }

    .spec-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .quality-badge,
    .feature-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      color: white;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ai-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
      color: white;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      cursor: help;
    }

    .license-info {
      margin-left: auto;
      font-weight: 600;
    }

    /* Creator & Actions */
    .creator-actions-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      background: white;
      padding: 25px 30px;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
    }

    .creator-profile {
      display: flex;
      align-items: center;
      gap: 15px;
      text-decoration: none;
      transition: transform 0.3s ease;
    }

    .creator-profile:hover {
      transform: translateY(-2px);
    }

    .creator-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #228899;
      box-shadow: 0 4px 12px rgba(34, 136, 153, 0.3);
    }

    .creator-info {
      display: flex;
      flex-direction: column;
    }

    .creator-name {
      font-size: 18px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .creator-label {
      font-size: 13px;
      color: #228899;
      font-weight: 600;
    }

    /* Action Buttons */
    .action-buttons {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .action-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: transparent;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      color: #6b7280;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
    }

    .action-btn:hover {
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      border-color: #228899;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(34, 136, 153, 0.3);
    }

    .comment-count {
      background: #228899;
      color: white;
      padding: 2px 8px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 700;
      min-width: 20px;
      text-align: center;
    }

    .comment-count:empty {
      display: none;
    }

    /* Content Sections */
    .content-section {
      background: white;
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 20px;
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-badge {
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 700;
    }

    .section-badge:empty {
      display: none;
    }

    /* Note: .video-description is reused. The card version clamps lines, the main version does not. 
       We need to be careful. The card version has: 
       display: -webkit-box; -webkit-line-clamp: 3;
       The main version has: 
       white-space: pre-wrap;
       
       Solution: The main description is inside .content-section, so we can use specificity 
       or just rely on the fact that the card HTML structure uses .video-card parent.
       
       However, to be safe, let's ensure the main description overrides the card style 
       if they conflict in the global scope.
    */
    .content-section .video-description {
      font-size: 15px;
      line-height: 1.8;
      color: #4b5563;
      white-space: pre-wrap;
      word-break: break-word;
      display: block; /* Override flex/webkit-box from card style if needed */
      -webkit-line-clamp: unset;
    }

    /* Tags */
    .tags-container {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .modern-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 18px;
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      color: #0c4a6e;
      border-radius: 25px;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.3s ease;
      border: 2px solid transparent;
    }

    .modern-tag:hover {
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(34, 136, 153, 0.3);
    }

    /* Comments */
    .comment-composer {
      margin-bottom: 30px;
      background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
      padding: 25px;
      border-radius: 15px;
    }

    .comment-input {
      width: 100%;
      padding: 15px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-size: 15px;
      font-family: inherit;
      resize: vertical;
      margin-bottom: 15px;
      transition: all 0.3s ease;
    }

    .comment-input:focus {
      outline: none;
      border-color: #228899;
      box-shadow: 0 0 0 3px rgba(34, 136, 153, 0.1);
    }

    .comments-table {
      width: 100%;
    }

    .comment-row {
      padding: 20px 0;
      border-bottom: 1px solid #f3f4f6;
    }

    .comment-delete {
      display: none;
      cursor: pointer;
      color: #ef4444;
      font-size: 13px;
      font-weight: 600;
    }

    /* Sidebar */
    .sidebar {
      display: none;
    }

    @media (min-width: 1280px) {
      .sidebar {
        display: block;
      }

      .mobile-payment {
        display: none !important;
      }
    }

    .sidebar-sticky {
      position: sticky;
      top: 100px;
    }

    .mobile-payment {
      margin-top: 25px;
    }

    /* Payment Card */
    .payment-card {
      background: white;
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .payment-card.purchased-card {
      background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
      border: 3px solid #10b981;
    }

    .purchased-status {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      background: white;
      padding: 18px;
      border-radius: 15px;
      font-size: 18px;
      font-weight: 700;
      color: #10b981;
      margin-bottom: 20px;
    }

    .price-display {
      text-align: center;
      margin-bottom: 25px;
      padding: 25px;
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      border-radius: 15px;
    }

    .price-amount {
      font-size: 48px;
      font-weight: 800;
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1;
      margin-bottom: 8px;
    }

    .price-note {
      font-size: 13px;
      color: #6b7280;
      font-weight: 500;
    }

    .payment-divider {
      position: relative;
      text-align: center;
      margin: 25px 0;
    }

    .payment-divider::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    }

    .payment-divider span {
      background: white;
      padding: 0 15px;
      font-size: 12px;
      font-weight: 600;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 1px;
      position: relative;
    }

    .payment-progress {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 15px;
      background: #f3f4f6;
      border-radius: 12px;
      margin-top: 15px;
      font-size: 14px;
      font-weight: 600;
      color: #6b7280;
    }

    .progress-spinner {
      width: 20px;
      height: 20px;
      border: 3px solid #e5e7eb;
      border-top-color: #228899;
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Modern Buttons */
    .modern-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 24px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      text-decoration: none;
      width: 100%;
      margin-bottom: 12px;
    }

    .modern-btn:last-child {
      margin-bottom: 0;
    }

    .modern-btn-primary {
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      color: white;
      box-shadow: 0 4px 15px rgba(34, 136, 153, 0.3);
    }

    .modern-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(34, 136, 153, 0.4);
      color: white;
    }

    .modern-btn-outline {
      background: white;
      color: #228899;
      border: 2px solid #228899;
    }

    .modern-btn-outline:hover {
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      color: white;
      border-color: transparent;
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(34, 136, 153, 0.3);
    }

    .modern-btn-large {
      padding: 18px 32px;
      font-size: 17px;
    }

    /* Recommended Section */
    .recommended-section {
      background: white;
      padding: 60px 0;
      margin-top: 40px;
      border-radius: 30px 30px 0 0;
      box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    }

    .recommended-title {
      font-size: 32px;
      font-weight: 800;
      background: linear-gradient(135deg, #228899 0%, #1a6d7a 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 40px;
      text-align: center;
    }

    /* Unavailable Card */
    .unavailable-card {
      background: white;
      padding: 60px 40px;
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      margin-bottom: 40px;
      margin-top: 50px;
    }

    .unavailable-card svg {
      color: #ef4444;
      margin-bottom: 25px;
    }

    .unavailable-card h2 {
      font-size: 28px;
      font-weight: 700;
      color: #1a1a1a;
      margin-bottom: 15px;
    }

    .unavailable-card p {
      font-size: 16px;
      color: #6b7280;
      margin-bottom: 30px;
    }

    /* Loading Bar */
    .loading-bar {
      background: #e5e7eb;
      height: 4px;
      border-radius: 4px;
      overflow: hidden;
      margin: 30px 0;
    }

    .loading-progress {
      height: 100%;
      background: linear-gradient(90deg, #228899, #1a6d7a, #228899);
      background-size: 200% 100%;
      animation: loading 1.5s ease-in-out infinite;
    }

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

    /* Modal Styling */
    .modal-content {
      border-radius: 20px;
      border: none;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    }

    .modal-header {
      border-bottom: 1px solid #f3f4f6;
      padding: 25px 30px;
    }

    .modal-title {
      font-size: 20px;
      font-weight: 700;
      color: #1a1a1a;
    }

    .modal-body {
      padding: 30px;
    }

    .modal-footer {
      border-top: 1px solid #f3f4f6;
      padding: 20px 30px;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .video-title {
        font-size: 22px;
      }

      .video-specs {
        font-size: 12px;
        gap: 12px;
        padding: 15px;
      }

      .creator-actions-bar {
        padding: 20px;
      }

      .action-buttons {
        width: 100%;
        justify-content: space-between;
      }

      .action-btn span {
        display: none;
      }

      .action-btn {
        padding: 12px;
        flex: 1;
        justify-content: center;
      }

      .content-section {
        padding: 20px;
      }

      .recommended-title {
        font-size: 24px;
      }
    }

    /* ===================================================================
       DARK MODE
       Activated by the `dark-mode` class on <html> (set server-side from the
       bb_theme cookie by the shared header). Shared chrome (navbar, dropdowns,
       text utilities) is handled by the central layer; these rules cover this
       page's own surfaces. Scoped selectors win over the light rules above, so
       no !important is needed. Teal accents are left intact.
       =================================================================== */
    .dark-mode body { background: #0f1216; }

    /* Primary panels / cards */
    .dark-mode .video-card,
    .dark-mode .video-info-section,
    .dark-mode .creator-actions-bar,
    .dark-mode .content-section,
    .dark-mode .payment-card,
    .dark-mode .purchased-status,
    .dark-mode .recommended-section,
    .dark-mode .unavailable-card,
    .dark-mode .modal-content {
      background: #1a1f2e;
      border-color: rgba(255, 255, 255, 0.10);
      color: #e8eaed;
    }

    /* Raised sub-surfaces (one step lighter than the panel) */
    .dark-mode .comment-composer,
    .dark-mode .modern-btn-outline,
    .dark-mode .payment-progress {
      background: #232a3d;
      border-color: rgba(255, 255, 255, 0.12);
      color: #e8eaed;
    }
    .dark-mode .modern-btn-outline:hover { background: #2b3447; }

    /* Accent info panels (were pale-blue gradients) -> faint teal tint */
    .dark-mode .video-specs,
    .dark-mode .modern-tag,
    .dark-mode .price-display {
      background: rgba(43, 166, 187, 0.10);
      border-color: rgba(43, 166, 187, 0.22);
    }
    /* ...with brighter text so specs, license and tags stay readable on dark.
       .license-info and the spec icons inherit this from .video-specs. */
    .dark-mode .video-specs,
    .dark-mode .modern-tag {
      color: #7fd3df;
    }

    /* Headings + primary text */
    .dark-mode .video-title,
    .dark-mode .video-title-main,
    .dark-mode .section-title,
    .dark-mode .creator-name,
    .dark-mode .recommended-title,
    .dark-mode .modal-title,
    .dark-mode .unavailable-card h2 {
      color: #e8eaed;
    }
    /* Secondary / muted text */
    .dark-mode .video-meta,
    .dark-mode .video-description,
    .dark-mode .price-note,
    .dark-mode .creator-label,
    .dark-mode .comment-meta,
    .dark-mode .comment-date,
    .dark-mode .unavailable-card p {
      color: #c7ccd6;
    }

    /* Tags */
    .dark-mode .video-tag {
      background: #232a3d;
      color: #7fd3df;
    }

    /* Comment composer input */
    .dark-mode .comment-input {
      background: #1a1f2e;
      border-color: rgba(255, 255, 255, 0.12);
      color: #e8eaed;
    }
    .dark-mode .comment-input::placeholder { color: #9aa3b2; }
    .dark-mode .comment-input:focus { border-color: #2ba6bb; }

    /* Dividers, borders, rules */
    .dark-mode .video-user,
    .dark-mode .video-actions { border-bottom-color: rgba(255, 255, 255, 0.08); }
    .dark-mode .modal-header { border-bottom-color: rgba(255, 255, 255, 0.10); }
    .dark-mode .modal-footer { border-top-color: rgba(255, 255, 255, 0.10); }
    .dark-mode .payment-divider span { background: #1a1f2e; color: #9aa3b2; }
    .dark-mode .loading-bar { background: #232a3d; }
    .dark-mode .progress-spinner {
      border-color: rgba(255, 255, 255, 0.15);
      border-top-color: #2ba6bb;
    }

    /* Preview/copyright warning banner -> muted amber for dark */
    .dark-mode .preview-banner {
      background: rgba(240, 173, 78, 0.12);
      border-color: rgba(240, 173, 78, 0.30);
      color: #e0b970;
    }