*,
*::before,
*::after {
  box-sizing: border-box;
}

.content__card-link_current{
  background-color: #545050;
}

html {
  block-size: 100%;
}

.page {
  display: flex;
  align-items: center;
  block-size: 100%;
  inline-size: 1200px;
  margin: auto;
  color: #fff;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 18px;
  background-color: #1b1919;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

*:focus { 
  outline: none; 
}

.content {
  display: flex;
  width: 1140px;
  margin-top: 100px;
}

.content__details {
  display: flex;
  flex-direction: column;
  margin-bottom: 70px;
  min-height: 534px;
}

.result {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin-top: 10px;
  flex-direction: row;
  align-items: center;
  margin-bottom: 41px;
}

.content__list {
  display: flex;
  gap: 12px;
  position: relative;
  flex-direction: column;
  overflow: auto;
  max-height: 304px;
  scrollbar-width: none;
  margin-top: 17px;
  height: 304px;
}

.result__video-container {
  position: relative;
  width: 711px;
  height: 386px;
  margin-bottom: 3px;

}

.result__video {
  object-fit: cover;
  min-width: 100%;
  height: 100%;
  width: 100%;
}


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


.content__video-card-thumbnail {
  height: 103px;
  object-fit: cover;
  width: 197px;
  object-position: center;
}

.title {
  font-family: Oswald, sans-serif;
  font-size: 75px;
  font-weight: 700;
  line-height: 70.5px;
  text-transform: uppercase;
  position: relative;
  
}

.content__accent {
  color: #545050;
}

.search-form__fieldset-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 21.6px;
  margin-bottom: 2px;
}

/* ------------------------------------------------------------------------- */
.content__card-link {
  text-decoration: none;
  color: #ffffff;
  display: block;
  margin:2px;
}

.content__card-link:focus-visible {
  outline: 1px solid #ffffff;
}

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

.content__video-card {
  display: flex;
  max-height: 107px;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin-top: 8px;
}

.content__video-card:active {
  background-color: #545050;
}

/* --------------------button-------------------- */
.button {
  font-family: Fira Sans Condensed, sans-serif;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  line-height: 21.6px;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
}

.more-button {
  min-width: 399px;
  min-height: 34px;
  font-size: 18px;
  line-height: 21.6px;
}

.button:focus-visible {
  outline: 1px solid #fff;
}

.content__video-card-title {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  color: #FFFFFF;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
}

.content__video-card-description {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-size: 18px;
  line-height: 26.2px;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
} 

.fieldset {
  border: none;
}

.search-form__checkbox-list {
  display: flex;
  width: fit-content;
  gap: 14px;
}

.search-form__textfield {
  appearance: none;
  border-width: 1px 0 1px 0 ;
  border-style: solid;
  border-color: #FFFFFF;
  background-color: transparent;
  width: 225px;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: -0.3px;
  color: #fff;
}

.search-form__submit-button {
  min-width: 194px;
  min-height: 34px;
  background-color: transparent;
  border: 1px solid #fff;
  font-size: 18px;
  margin-top: 23px;
}

/* ----чекбоксы------ */
.search-form__fieldset {
  border: transparent;
}

.search-form__fieldset:last-child {
  margin-left:10px;
}

.search-form__label {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;            
}

.search-form__label:has(.search-form__textfield:focus-visible) {
  border: 1px solid #ffffff;
  border-left: none;
  border-right: none;
}

.search-form__label:has(:focus-visible):not(:active) {
  outline: 1px solid #fff;
  outline-offset: 1px;
}

.search-form__pseudo-checkbox {
  display:flex;
  width: 20px;
  height: 20px;
  background-color: transparent;
  vertical-align: text-bottom;
  border: 1px solid #ffffff;
}

.search-form__pseudo-checkbox::after {
  content: '';
  display: block; 
  width: 0;
  height: 0;
  background-color: #ffffff; 
  margin: auto;
  margin-top: 1.5px
}

.search-form__label:hover > .search-form__label-text {
  text-decoration: underline;
}

.button:hover {
  text-decoration: underline;
}

.button .search_form__submit-button {
  text-decoration: underline;
}

input[type='checkbox']:checked + .search-form__pseudo-checkbox::after {
  width: 15px; 
  height: 15px; 
}

.search-form__label-text {
  font-weight: 400;
  line-height: 21.6px;
}

.search-form__label-text:hover {
  text-decoration: 1px underline;
}

.search-form__submit-button:active {
  background-color: #545050;
}

.search-form__submit-button:focus-visible {
  outline: 1px solid #ffffff;
}

.more-button:hover {
  text-decoration: underline;
}

.more-button:active {
  background-color: #545050;
}

.more-button:focus-within {
  outline: 2px solid #ffffff;
}