

.site-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 1rem;
  align-items: start;
}

.site-layout:not(:has(> [data-site-side])) {
  grid-template-columns: minmax(0, 1fr);
}

.site-layout--wide .site-center--automax {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
  min-height: calc(100vh - 88px);
}

body[data-site-page="hirdetesfeladas"] .site-layout--wide .site-center--automax {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 32%);
  gap: 1rem;
  padding: 1rem 1rem 2rem;
  background: #e8eef3;
}

body[data-site-page="hirdetesfeladas"] .automax-main {
  background: transparent !important;
  padding: 0.25rem 0.25rem 2rem !important;
  min-width: 0;
}

body[data-site-page="hirdetesfeladas"] .automax-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  align-self: start;
}

body.site-page .page-automax.site-page-main {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-center {
  min-width: 0;
}

.site-side-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body:not(.home-page) .site-side-card {
  position: sticky;
  top: 1rem;
}

body.theme-automax .site-side-card {
  background: #111;
  border-color: #333;
  box-shadow: none;
}

.site-side-title {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
}

body.theme-automax .site-side-title {
  color: #fff;
}

.site-video-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-video-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #eef0f3;
  border: 1px solid #e0e4ea;
}

body.theme-automax .site-video-slot {
  background: #1a1a1a;
  border-color: #333;
}

.site-video-slot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-video-placeholder {
  font-size: 0.72rem;
  color: #888;
  text-align: center;
  padding: 0.35rem;
}

body.theme-automax .site-video-placeholder {
  color: #666;
}

.site-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-video-edit-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #555;
  height: 100%;
  padding: 0.35rem;
}

body.theme-automax .site-video-edit-label {
  color: #aaa;
}

.site-video-input,
.site-side-input,
.site-side-textarea {
  width: 100%;
  font: inherit;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  background: #fff;
  color: #111;
}

.site-side-textarea {
  resize: vertical;
  min-height: 120px;
}

body.theme-automax .site-video-input,
body.theme-automax .site-side-input {
  background: #222;
  border-color: #444;
  color: #eee;
}

.site-side-edit {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

body.theme-automax .site-side-edit {
  background: var(--ax-orange, #ff5500);
  color: #111;
}

.site-content-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  border-top: 2px solid #111;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1rem;
}

body.theme-automax .site-content-bar {
  background: rgba(17, 17, 17, 0.98);
  border-top-color: var(--ax-orange, #ff5500);
}

.site-content-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body.site-page {
  padding-bottom: 5rem;
}

body.home-page.site-page {
  overflow: hidden;
}

body.home-page .site-side,
body.home-page .home-info-sidebar,
body.home-page .home-filter-sidebar,
body.home-page .home-filter-card,
body.home-page .site-side-card {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}

.site-side-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-side-toolbar[hidden] {
  display: none !important;
}

.site-side-btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.site-side-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #d5d9e0;
}

@media (max-width: 1200px) {
  .site-layout {
    grid-template-columns: 1fr;
  }

  .site-side {
    order: 2;
  }

  .site-center {
    order: 1;
  }

  .site-video-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-video-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-site-page="hirdetesfeladas"] .site-layout--wide .site-center--automax {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  body[data-site-page="hirdetesfeladas"] .automax-panel {
    display: block !important;
    order: 2;
    border-left: 0;
    border-top: 0;
    margin-top: 0.25rem;
  }

  body[data-site-page="hirdetesfeladas"] .automax-main {
    order: 1;
  }

  body[data-site-page="hirdetesfeladas"] .automax-panel-content {
    padding: 1rem 1.1rem 1.15rem;
  }
}
