html {
  height: 100%;
}

body.castings-body {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.castings-body > .castings-page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  padding-top: 20px;
  padding-bottom: 48px;
  margin-bottom: 0;
}

body.castings-body > footer {
  margin-top: auto;
}

.castings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.castings-hero h1 {
  margin: 0 0 6px;
  color: #111;
  font-family: "AvenirNext-DemiBold", "Avenir Next", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.castings-hero p {
  margin: 0;
  color: #8a8a8a;
  font-size: 15px;
}

.castings-hero-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.castings-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 420px;
  max-width: 100%;
  margin: 0;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
}

.castings-search i {
  color: #b0b0b0;
}

.castings-search input {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  height: 44px;
  font-size: 14px;
}

.castings-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.castings-filters-head,
.castings-main-head,
.castings-card-top,
.casting-card-top,
.castings-card-foot,
.casting-card-foot,
.castings-age-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.castings-filters-head h2,
.castings-filter-toggle,
.castings-main-head h2 {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.castings-filters-head button {
  margin: 0;
  border: 0;
  background: transparent;
  color: #7ebc11;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.castings-filter {
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
}

.castings-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}

.castings-filter-toggle i {
  color: #888;
}

.castings-filter.is-closed .castings-filter-body {
  display: none;
}

.castings-filter.is-closed .castings-filter-toggle i:before {
  content: "\f107";
}

.castings-filter-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.castings-filter-body label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #555;
  font-size: 14px;
  cursor: pointer;
}

.castings-filter-body label span {
  margin-left: auto;
  color: #b0b0b0;
  font-size: 13px;
}

.castings-filter-body input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.castings-filter-body input[type="checkbox"]:checked {
  background: #7ebc11;
  border-color: #7ebc11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M3.5 8.2l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.castings-age-labels {
  color: #888;
  font-size: 13px;
}

.castings-age-labels strong {
  color: #111;
}

.castings-age {
  position: relative;
  height: 28px;
}

.castings-age input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
}

.castings-age input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: #e5e5e5;
  border-radius: 99px;
}

.castings-age input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: #7ebc11;
}

.castings-main-head h2 {
  font-size: 22px;
}

.castings-main-head p,
.castings-more p {
  margin: 4px 0 0;
  color: #8a8a8a;
  font-size: 14px;
}

.castings-sort select {
  margin: 0;
  border: 1px solid #ececec;
  border-radius: 999px;
  box-shadow: none;
  background: #fff;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.castings-status {
  margin: 0 0 16px;
  color: #888;
  font-size: 15px;
}

.castings-status.is-error {
  color: #c0392b;
}

.castings-status a {
  color: #7ebc11;
  font-weight: 600;
}

.castings-filter-body label span:empty {
  display: none;
}

.castings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.castings-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f4f4;
  color: #333;
  font-size: 13px;
}

.castings-chip button {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.castings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.casting-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #efefef;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.casting-card[hidden] {
  display: none !important;
}

.casting-card-media {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 210px;
  background: #111;
}

.casting-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casting-card-media span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.casting-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f3f3f3;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.casting-save {
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #c4c4c4;
  font-size: 16px;
  cursor: pointer;
  box-shadow: none;
}

.casting-save.is-on {
  color: #111;
}

.casting-card-body h3 {
  margin: 8px 0 4px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.casting-meta,
.casting-place,
.casting-dates,
.casting-pay,
.casting-closes,
.casting-applied {
  margin: 0 0 4px;
  color: #8a8a8a;
  font-size: 13px;
}

.casting-desc {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.casting-pay {
  color: #111;
  font-weight: 600;
}

.casting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.casting-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f6f6;
  color: #666;
  font-size: 12px;
}

.casting-card-foot {
  margin-top: auto;
}

.casting-apply {
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.casting-apply.is-sent,
.casting-apply.is-shortlisted {
  background: #f3f3f3;
  color: #666;
  cursor: default;
}

.castings-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.castings-more button {
  margin: 0;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.casting-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #7ebc11;
  font-size: 14px;
  font-weight: 600;
}

[hidden],
.casting-detail-status[hidden] {
  display: none !important;
}

.casting-detail-status {
  color: #888;
  font-size: 15px;
  margin-bottom: 16px;
}

.casting-detail-status.is-error {
  color: #c0392b;
}

.casting-detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.casting-detail-media {
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  min-height: 360px;
}

.casting-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.casting-detail h1 {
  margin: 10px 0 8px;
  color: #111;
  font-size: 32px;
  font-weight: 700;
}

.casting-detail h2 {
  margin: 0 0 14px;
  color: #111;
  font-size: 20px;
  font-weight: 700;
}

.casting-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.casting-facts div {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.casting-facts span,
.casting-detail-note {
  display: block;
  color: #8a8a8a;
  font-size: 13px;
}

.casting-facts strong {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 16px;
}

.casting-roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casting-role {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #efefef;
  border-radius: 14px;
  padding: 16px 18px;
}

.casting-detail-note {
  margin-top: 16px;
}

.casting-detail-note.is-error {
  color: #c0392b;
}

@media only screen and (max-width: 1100px) {
  .castings-hero,
  .castings-layout,
  .castings-grid,
  .casting-card,
  .casting-detail-hero,
  .casting-facts,
  .casting-role {
    grid-template-columns: 1fr;
  }

  .castings-hero,
  .castings-hero-tools,
  .castings-main-head {
    flex-direction: column;
    align-items: stretch;
  }

  .castings-hero-tools,
  .castings-search {
    width: 100%;
    margin-left: 0;
  }
}
