.site-header-brand {
  background: #fff;
}

.site-header-brand__desktop {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-bottom: 4px solid #d71920;
  background: #f8fbff;
}

.site-header-brand__desktop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-header-brand__date {
  position: absolute;
  top: 34px;
  left: max(36px, calc((100vw - 1200px) / 2 + 36px));
  z-index: 2;
  width: 150px;
  text-align: center;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header-brand__weekday {
  display: inline-block;
  padding: 4px 18px;
  margin-bottom: 10px;
  border-radius: 2px;
  color: #fff;
  background: #d71920;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.site-header-brand__day {
  display: block;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
}

.site-header-brand__divider {
  display: block;
  width: 78px;
  height: 1px;
  margin: 14px auto;
  background: #d9d9d9;
}

.site-header-brand__weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #333;
}

.site-header-brand__weather img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-header-brand__weather strong {
  color: #111;
  font-weight: 800;
}

.site-header-brand__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  width: min(520px, 52vw);
  transform: translate(-50%, -48%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.site-header-brand__logo-img {
  width: min(500px, 50vw);
  height: auto;
  display: block;
}

.site-header-brand__logo span {
  margin-top: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-header-brand__logo span::after {
  content: "";
  display: block;
  width: 170px;
  height: 14px;
  margin: 12px auto 0;
  background:
    linear-gradient(#d71920, #d71920) left 50% / 74px 1px no-repeat,
    linear-gradient(#d71920, #d71920) right 50% / 74px 1px no-repeat,
    radial-gradient(circle, #d71920 0 3px, transparent 4px) center / 14px 14px no-repeat;
}

.site-header-brand__mobile {
  display: none;
}

@media (max-width: 767px) {
  .site-header-brand {
    padding: 14px 16px 18px;
  }

  .site-header-brand__desktop {
    display: none;
  }

  .site-header-brand__mobile {
    display: block;
  }

  .site-header-brand__mobile-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
  }

  .site-header-brand__mobile-logo {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
  }

  .site-header-brand__mobile-logo-img {
    width: min(270px, 62vw);
    height: auto;
    display: block;
  }

  .site-header-brand__mobile-logo span {
    display: block;
    max-width: 290px;
    margin-top: 3px;
    overflow: hidden;
    color: #333;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .site-header-brand__mobile-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
    border-radius: 6px;
    background: #f7f7f7;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  }

  .site-header-brand__mobile-meta span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-right: 1px solid #e2e2e2;
    white-space: nowrap;
  }

  .site-header-brand__mobile-meta span:last-child {
    border-right: 0;
  }

  .site-header-brand__mobile-meta svg {
    width: 18px;
    height: 18px;
    color: #d71920;
    flex: 0 0 auto;
  }

  .site-header-brand__mobile-meta img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .site-header-brand__mobile-banner {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .site-header-brand__mobile-banner img {
    display: block;
    width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .site-header-brand__desktop {
    min-height: 170px;
  }

  .site-header-brand__date {
    left: 24px;
    top: 26px;
    width: 130px;
  }

  .site-header-brand__day {
    font-size: 22px;
  }
}

/* Header search */
.header-search-actions {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.header-search-toggle:hover {
  background-color: #991b1b;
}

.header-search-toggle__icon {
  width: 20px;
  height: 20px;
}

.header-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 55;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.header-search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search-panel__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-form__field {
  position: relative;
  flex: 1;
}

.header-search-form__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transform: translateY(-50%);
  pointer-events: none;
}

.header-search-form__input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
}

.header-search-form__input:focus {
  outline: none;
  border-color: #d71920;
  box-shadow: 0 0 0 2px rgb(215 25 32 / 0.2);
}

.header-search-form__submit {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 2px;
  background: #d71920;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.header-search-form__submit:hover {
  background-color: #991b1b;
}

/* Search page */
.search-page {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.search-page__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.search-page__header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.search-page__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #d71920;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-page__title-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d71920;
}

.search-page__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin-top: 16px;
}

.search-page__form-field {
  position: relative;
  flex: 1;
}

.search-page__form-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-page__form-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
}

.search-page__form-input:focus {
  outline: none;
  border-color: #d71920;
  box-shadow: 0 0 0 2px rgb(215 25 32 / 0.2);
}

.search-page__form-submit {
  flex-shrink: 0;
  padding: 10px 24px;
  border: 0;
  border-radius: 2px;
  background: #d71920;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-page__form-submit:hover {
  background-color: #991b1b;
}

.search-page__summary {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
}

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

.search-page__main {
  min-width: 0;
}

.search-page__empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.search-page__list {
  display: flex;
  flex-direction: column;
}

.search-page__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.search-page__item:first-child {
  padding-top: 0;
}

.search-page__item-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.search-page__item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.search-page__item:hover .search-page__item-media img {
  transform: scale(1.05);
}

.search-page__item-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-page__item-title {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.375;
}

.search-page__item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-page__item:hover .search-page__item-title a {
  color: #d71920;
}

.search-page__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.search-page__item-meta-sep {
  display: none;
}

.search-page__item-date {
  white-space: nowrap;
}

.search-page__item-desc {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-align: justify;
}

.search-page__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.search-page__pagination-link {
  padding: 8px 16px;
  border: 1px solid #d71920;
  border-radius: 2px;
  color: #d71920;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-page__pagination-link:hover {
  background: #d71920;
  color: #fff;
}

.search-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-page__widget {
  padding: 12px 16px;
  border: 1px solid #f3f4f6;
  border-radius: 2px;
  background: #f9fafb;
}

.search-page__widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #d71920;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-page__widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-page__widget-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.search-page__widget-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.search-page__widget-thumb {
  width: 80px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}

.search-page__widget-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.search-page__widget-item:hover .search-page__widget-thumb img {
  transform: scale(1.05);
}

.search-page__widget-item-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.375;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.search-page__widget-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-page__widget-item:hover .search-page__widget-item-title a {
  color: #d71920;
}

@media (min-width: 640px) {
  .search-page {
    padding: 24px 0;
  }

  .search-page__container {
    padding: 0 16px;
  }

  .search-page__header {
    margin-bottom: 24px;
  }

  .search-page__title {
    font-size: 20px;
  }

  .search-page__form {
    flex-direction: row;
    gap: 12px;
  }

  .search-page__item {
    gap: 16px;
    padding: 20px 0;
  }

  .search-page__item-title {
    font-size: 18px;
  }

  .search-page__item-meta {
    font-size: 12px;
  }

  .search-page__item-meta-sep {
    display: inline;
  }

  .search-page__item-desc {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    text-align: left;
  }

  .search-page__widget {
    padding: 16px;
  }

  .search-page__widget-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .search-page__widget-list {
    gap: 16px;
  }

  .search-page__widget-item {
    gap: 12px;
  }

  .search-page__widget-thumb {
    width: 96px;
    height: 80px;
  }

  .search-page__widget-item-title {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .search-page__container {
    padding: 0 24px;
  }

  .search-page__layout {
    gap: 24px;
  }

  .search-page__item {
    flex-direction: row;
    gap: 20px;
  }

  .search-page__item-media {
    width: 256px;
  }

  .search-page__widget-thumb {
    width: 112px;
    height: 96px;
  }
}

@media (min-width: 1024px) {
  .search-page {
    padding: 32px 0;
  }

  .search-page__layout {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }

  .search-page__widget {
    position: sticky;
    top: 64px;
  }
}
