.videos,
.description,
.video-content {
  width: 100%;
  height: 100%;
  background: var(--color-sand);
  position: relative;
}
.description h2 {
  color: var(--color-blue-dark);
}
.description .page-content-narrow {
  padding-bottom: 60px;
}
#post-container.vod-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 50px;
}

.vod-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}

.vod-card:hover {
  transform: scale(1.02);
  z-index: 2;
}

.vod-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--color-white);
}

.vod-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.vod-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vod-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.vod-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  z-index: 5;
  box-sizing: border-box;
}

.vod-title {
  margin: 5px 0 0 0;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

.vod-meta {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.vod-cat {
  color: var(--color-orange, #e50914);
  font-weight: bold;
}

.vod-sep {
  margin: 0 5px;
  font-size: 0.6rem;
}

@media (max-width: 1200px) {
  #post-container.vod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #post-container.vod-grid {
    grid-template-columns: 1fr;
  }
}

.post.hidden {
  display: none !important;
}

.post.scale-out {
  animation: scaleOut 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.post.fade-in-up {
  animation: fadeInUp 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

@keyframes scaleOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.controls-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  z-index: 100;
  position: relative;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-label {
  font-weight: 600;
  color: var(--color-blue);
  font-size: 1rem;
}

.custom-dropdown {
  position: relative;
  width: 220px;
  font-family: inherit;
  user-select: none;
}

.dropdown-header {
  background-color: transparent;
  border: 1px solid rgba(var(--color-orange-rgb), 0.2);
  border-radius: 15px;
  color: var(--color-blue);
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(var(--color-white-rgb), 0.6);
}

.dropdown-header:hover {
  background: rgba(var(--color-white-rgb), 1);
}
.open .dropdown-header {
  border-radius: 15px 15px 0 0;
  background: rgba(var(--color-white-rgb), 1);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-header {
  border-color: var(--color-orange, #e50914);
  border-bottom: 1px solid rgba(var(--color-orange-rgb), 0);
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(var(--color-white-rgb), 1);
  border: 1px solid rgba(var(--color-orange-rgb), 1);
  border-top: 1px solid rgba(var(--color-orange-rgb), 0);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-dropdown.open .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(-2px);
  border-radius: 0 0 15px 15px;
  overflow: hidden;
}
.dropdown-item {
  padding: 12px 15px;
  cursor: pointer;
  color: var(--color-blue);
  font-size: 0.9rem;
  transition: var(--default-transition);
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.dropdown-item:hover {
  background-color: rgba(var(--color-orange-rgb), 0.05);
  color: var(--color-orange);
}

.dropdown-item.selected {
  background-color: rgba(var(--color-orange-rgb), 0.1);
  color: var(--color-orange, #e50914);
  font-weight: bold;
}

@media (max-width: 768px) {
  .controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .custom-dropdown {
    width: 100%;
  }
}

.seo-text-collapsed,
.seo-text-expanded {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.seo-text-collapsed {
  max-height: 250px;
  position: relative;
}

.seo-text-expanded {
  max-height: 2000px;
  position: relative;
}

.seo-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;

  background: linear-gradient(
    to bottom,
    rgba(var(--color-sand-rgb), 0),
    rgba(var(--color-sand-rgb), 1)
  );
  pointer-events: none;
}
.boxed-link {
  margin-top: 15px !important;
}
/* ==========================================================================
   POJEDYNCZY FILM (SINGLE VOD TEMPLATE)
   ========================================================================== */
span.main-title {
  color: var(--color-white);
  font-size: 2.2rem;
}
.video-content .page-content-narrow {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 60px 0 15px;
}
.video-article {
  width: calc(70% - 20px);
}
.video-other {
  width: calc(30% - 20px);
}
/* --- RESPONSYWNY PLAYER YOUTUBE (Zaktualizowany) --- */

.responsive-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #000;
  z-index: 1;
}
.responsive-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vod-meta-top {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 40px;
  font-size: 0.85rem;
}
.vod-cat-badge {
  background-color: var(--color-blue-dark);
  color: var(--color-orange, #e50914);
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}
.vod-text-description h2,
.vod-text-description h3,
.sidebar-title {
  color: var(--color-blue-dark);
}
.sidebar-title {
  margin-top: 0px;
}
.vod-date {
  color: #888;
}
.vod-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  margin-bottom: 60px;
  border-top: 1px solid #333;
  gap: 20px;
}
@media (max-width: 500px) {
  .vod-navigation {
    flex-direction: column;
    gap: 0px;
  }
}
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (max-width: 1024px) {
  .video-content .page-content-narrow {
    flex-direction: column;
    gap: 20px;
  }
  .video-article,
  .video-other {
    width: 100%;
  }
}
