/* === Video Header Inline Styles ===
 * Merged from video-header-inline.css + shortcodes-inline.css ===
 */

/* --- From video-header-inline.css --- */
/* Force title colors with maximum specificity */
.cfv-fixed-header .cfv-page-title,
.cfv-fixed-header h2.cfv-page-title {
    color: #FFFFFF !important;
    font-family: 'Outfit', 'Futura', sans-serif !important;
}
.cfv-fixed-header .title-white {
    color: #FFFFFF !important;
}
.cfv-fixed-header .title-primary {
    color: #EC1B61 !important;
}

/* Special override for video header search button */
        .cfv-fixed-header .search-button {
            position: relative !important;
            top: 0px !important; /* Move button down by 20px from previous -20px */
        }

/* --- From shortcodes-inline.css --- */
/* Essential fixed header styling */
    .cfv-fixed-header {
      padding: 50px 0 0 0 !important; /* Added 50px top padding to extend bg above title */
      margin-top: -40px !important; /* Pull the entire header up to compensate for padding */
      position: sticky !important;
      top: 0 !important;
      z-index: 100 !important;
      background-color: rgba(0, 0, 0, 0.85) !important;
      width: 100% !important; /* 🔥 MOBILE FIX: Safe responsive width */
      box-shadow: none !important;
      left: 0 !important;
      right: 0 !important;
      margin-left: 0 !important; /* 🔥 MOBILE FIX: No breakout on mobile */
      margin-right: 0 !important; /* 🔥 MOBILE FIX: No breakout on mobile */
    }
    
    .cfv-header-flex {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      gap: 10px !important;
      margin-top: -45px !important; /* Move up 45px (adjusted down by 5px) */
    }
    
    .cfv-header-title {
      width: 100% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      margin-bottom: 5px !important;
    }
    
    .cfv-page-title {
      margin: 0 !important;
      font-size: 1.5rem !important;
      white-space: nowrap !important;
      line-height: 30px !important;
      text-align: center !important;
    }
    
    .title-white {
      color: #FFFFFF !important;
      font-weight: 700 !important;
    }
    
    .title-primary {
      color: #EC1B61 !important;
      font-weight: 700 !important;
    }
    
    .cfv-header-search {
      width: 100% !important;
      max-width: 100% !important;
      display: flex !important;
      justify-content: flex-end !important;
      align-items: center !important;
    }

    .cfv-header-search .advanced-search-container,
    .cfv-header-search .compact-search {
      width: auto !important;
      max-width: 100% !important;
    }
    
    /* Ensure search form is styled correctly */
    .cfv-header-search .advanced-search-form {
      width: 100% !important;
      display: flex !important;
      flex-wrap: nowrap !important;
    }
    
    .cfv-header-search .search-input-container {
      flex: 1 !important;
    }
    
    .cfv-header-search input[type="text"] {
      background-color: rgba(0, 0, 0, 0.35) !important;
      border: 1px solid rgba(255, 255, 255, 0.2) !important;
      color: white !important;
      padding: 10px 15px !important;
      border-radius: 20px !important; /* More rounded borders */
      width: 100% !important;
    }
    
    .cfv-header-search button[type="submit"] {
      background-color: #EC1B61 !important;
      color: white !important;
      border: none !important;
      padding: 10px 20px !important;
      border-radius: 20px !important; /* More rounded borders */
      margin-left: 10px !important;
      cursor: pointer !important;
      font-weight: bold !important;
    }
    
    /* Fix any mobile issues */
    @media (max-width: 768px) {
      .cfv-header-search .advanced-search-form {
        flex-direction: column !important;
      }
      
      .cfv-header-search button[type="submit"] {
        margin-left: 0 !important;
        margin-top: 10px !important;
        width: 100% !important;
      }
    }
    
    /* Ensure dropdown selects are styled properly */
    .advanced-search-form select {
      background-color: rgba(0, 0, 0, 0.35) !important;
      border: 1px solid rgba(255, 255, 255, 0.2) !important;
      color: white !important;
      padding: 10px 15px !important;
      border-radius: 20px !important; /* Match the rounded borders */
      margin-right: 10px !important;
      appearance: none !important;
      -webkit-appearance: none !important;
      -moz-appearance: none !important;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
      background-repeat: no-repeat !important;
      background-position: right 15px center !important; /* Adjusted for rounded borders */
      background-size: 16px !important;
      padding-right: 40px !important; /* More padding for the icon */
    }
    
    /* Fix container width */
    .cfv-fixed-header .container {
      max-width: 1400px !important;
      margin: 0 auto !important;
      padding: 0 15px !important;
      box-sizing: border-box !important;
    }
    
    /* Add space below the header */
    .cfv-fixed-header + * {
      margin-top: 70px !important; /* Increased distance by 40px (from 30px to 70px) */
    }

/* === Nav-block overrides — kill all old rounded/spaced styles === */
.cfv-nav-block .advanced-search-form select,
.cfv-nav-block .advanced-search-form select.select-field {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    border-radius: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 10px 30px 10px 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px !important;
    padding-right: 28px !important;
}

.cfv-nav-block .cfv-header-search input[type="text"],
.cfv-nav-block input[type="search"].search-field {
    background-color: rgba(0, 0, 0, 0.35) !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    padding: 10px 14px !important;
}

.cfv-nav-block .cfv-header-search button[type="submit"],
.cfv-nav-block button.search-button {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cfv-nav-block .compact-filter-container {
    margin: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cfv-nav-block .cfv-header-search .advanced-search-form,
.cfv-nav-block .cfv-unified-search-form {
    width: auto !important;
    gap: 0 !important;
}

.cfv-nav-block .search-row {
    gap: 0 !important;
}
