/* PELISPLUS · layout · canonical source */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--header-height);
  background: linear-gradient(#0c0e0def,#0c0e0d80,transparent);
  transition: background .2s;
}

.site-header.scrolled {
  background: #0c0e0df5;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 178px;
  line-height: 1;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: #aab2a7;
  white-space: nowrap;
}

.nav-link:hover,.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-chevron {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  opacity: .65;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  width: min(700px,72vw);
  padding: 26px;
  background: #141815fa;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 70px #000a;
  backdrop-filter: blur(20px);
  display: none;
}

.nav-group:hover .mega-menu,.nav-group:focus-within .mega-menu,.nav-group.open .mega-menu {
  display: block;
}

.mega-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.mega-title a {
  color: var(--accent);
  font-size: 12px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 4px 16px;
}

.mega-grid a {
  padding: 8px 6px;
  font-size: 12px;
  color: #9da899;
  border-radius: 5px;
}

.mega-grid a:hover {
  background: #c5f46b0b;
  color: var(--accent);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 198px;
  height: 40px;
  padding: 0 13px;
  background: #ffffff07;
  color: #959e91;
  border: 1px solid #ffffff16;
  border-radius: 7px;
  font-size: 11px;
  text-align: left;
}

.header-search:hover {
  border-color: #c5f46b66;
}

.header-search kbd {
  margin-left: auto;
  font: 11px var(--font);
  opacity: .6;
  border: 1px solid #ffffff30;
  padding: 0 4px;
  border-radius: 3px;
}

.login-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--white);
  border: 0;
  padding: 0;
  min-height: 40px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.login-button .user-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #c5f46b12;
  color: var(--accent);
  border: 1px solid #c5f46b38;
  display: grid;
  place-items: center;
}

.mobile-trigger {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg);
  overflow: auto;
  padding: 24px;
}

.drawer-links {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.drawer-links a {
  padding: 13px;
  border-bottom: 1px solid var(--line);
}

.drawer-links a:hover {
  color: var(--accent);
}

.drawer-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 35px;
}

.drawer-categories a {
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  margin-top: 90px;
  padding: 60px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  background: #090b0a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr .8fr;
  gap: 36px;
}

.footer-brand .brand {
  width: 190px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 280px;
  font-size: 13px;
  line-height: 1.8;
  margin: 24px 0;
}

.footer-brand .pill {
  border-radius: 5px;
  font-size: 11px;
}

.footer-group h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ccd6c8;
  margin-bottom: 24px;
}

.footer-group a {
  display: block;
  color: #818d7d;
  font-size: 12px;
  margin-bottom: 12px;
}

.footer-group a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #6f7a6b;
  font-size: 11px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 415px;
  max-width: calc(100vw - 40px);
  background: linear-gradient(135deg, #1b2518, #131a10);
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  z-index: 120;
  padding: 20px;
  box-shadow: 0 20px 80px #0007;
  backdrop-filter: blur(20px);
}

.cookie-banner h2 {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 18px;
}

.cookie-banner p {
  font-size: 13px;
  color: #a5af9c;
  line-height: 1.7;
}

.cookie-banner .row > * {
  flex: 1;
  border-radius: 30px;
  font-size: 12px;
  padding-inline: 10px;
}

.cookie-banner a {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: #27351d;
  border: 1px solid #647d45;
  border-radius: 12px;
  z-index: 250;
  box-shadow: 0 12px 50px #0008;
  max-width: 90vw;
  text-align: center;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #030609dd;
  backdrop-filter: blur(16px);
  overflow: auto;
  padding: 7vh 20px;
  display: grid;
  place-items: start center;
}

.modal-panel {
  background: #141815;
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(520px, 100%);
  padding: 30px;
  position: relative;
  box-shadow: 0 30px 100px #0009;
}

.modal-panel .modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
}

.modal-panel h2 {
  font-size: 25px;
  padding-right: 38px;
}

.modal-panel form {
  display: grid;
  gap: 15px;
}

.form-field {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.form-footer {
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

.form-footer a {
  color: var(--accent);
}

.check-field {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.check-field input {
  margin-top: 5px;
}

.search-dialog {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: #080d08f7;
  backdrop-filter: blur(18px);
  overflow-y: auto;
  padding: 34px max(6.7vw, 20px);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid #34442b;
  border-radius: 40px;
  padding: 7px 18px;
  background: #141c12;
  box-shadow: 0 0 0 4px #c5f46b0b;
}

.search-input-wrap input {
  border: 0;
  background: none;
  outline: none;
  box-shadow: none;
  padding: 10px 14px;
  width: 100%;
  font-size: 20px;
}

.search-dialog .close-search {
  width: 60px;
  height: 60px;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.search-meta small {
  color: #586575;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.search-grid .media-card {
  width: auto;
}

.search-heading {
  font-size: 20px;
  margin: 28px 0 18px;
}

@media (max-width: 1250px) {
  .header-inner {
    gap: 25px;
  }

  .main-nav {
    gap: 16px;
  }

  .header-search {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .header-search span,.header-search kbd {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-row: span 2;
  }
}

@media (max-width: 1000px) {
  .main-nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 12px;
  }

  .login-button .label {
    display: none;
  }

  .header-inner {
    gap: 22px;
  }

  .brand {
    width: 158px;
  }
}

@media (max-width: 850px) {
  .main-nav {
    display: none;
  }

  .mobile-trigger {
    display: grid;
    border: 0;
  }

  .header-inner {
    gap: 18px;
  }

  .search-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .header-search {
    border: 0;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 140px;
  }

  .header-inner {
    gap: 9px;
  }

  .header-actions {
    gap: 8px;
  }

  .login-button .user-icon {
    width: 33px;
    height: 33px;
  }

  .header-search {
    width: 30px;
  }

  .mobile-trigger {
    width: 30px;
    height: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 2;
    grid-row: auto;
  }

  .footer-group:last-child {
    display: none;
  }

  .site-footer {
    margin-top: 45px;
    padding-top: 40px;
  }

  .footer-bottom {
    font-size: 10px;
  }

  .search-dialog {
    padding: 20px 16px;
  }

  .search-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px 12px;
  }

  .search-input-wrap {
    padding-inline: 12px;
  }

  .search-input-wrap input {
    font-size: 15px;
    padding-inline: 8px;
  }

  .search-dialog .close-search {
    width: 42px;
    height: 42px;
  }

  .search-meta small {
    display: none;
  }

  .modal-panel {
    padding: 25px 20px;
  }

  .cookie-banner {
    left: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}
