/* VegaMovies.mq — single post sidebar (same-to-same) */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  padding-bottom: 30px;
  align-items: start;
  width: 100%;
}

.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: sticky;
  top: 20px;
}

.post-sidebar .sidebar-widget {
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: transparent;
  margin-bottom: 0;
}

.post-sidebar .widget-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.post-sidebar .recent-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-sidebar .recent-post-item a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
  display: block;
  padding: 5px 10px;
  background: rgb(255 255 255 / 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.post-sidebar .recent-post-item a:hover {
  color: #fff;
  background: #000;
  border-left-color: var(--accent, #ff0080);
}

/* Sidebar search box */
.post-sidebar #vmovies-search-box.vm-sidebar-search {
  max-width: 310px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.post-sidebar #vmovies-search-box.vm-sidebar-search .vms-search-form {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  height: 40px;
  width: 100%;
  box-sizing: border-box;
}

.post-sidebar #vmovies-search-box.vm-sidebar-search .vms-search-input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 15px;
  width: 100%;
  min-width: 0;
  outline: none;
  flex: 1 1 auto;
  font-size: 13px;
}

.post-sidebar #vmovies-search-box.vm-sidebar-search .vms-search-btn {
  background: #c2185b;
  color: #fff;
  border: none;
  padding: 0 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.post-sidebar #vmovies-search-box.vm-sidebar-search .search-text {
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .post-sidebar #vmovies-search-box.vm-sidebar-search {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .post-sidebar {
    grid-template-columns: 1fr;
  }

  .post-sidebar .sidebar-widget {
    padding: 16px;
  }

  .post-sidebar .recent-post-item a {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .post-sidebar .sidebar-widget {
    padding: 14px;
  }

  .post-sidebar .widget-title {
    font-size: 0.92rem;
  }

  .post-sidebar .recent-post-item a {
    font-size: 0.78rem;
    padding: 5px 8px;
  }
}
