.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  max-width: 100%;
  margin: 10px 0px 10px 0px;
  padding: 0 12px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  
  .sidebar {
    display: none !important;
  }
  
  .main-content {
    width: 100%;
  }
}

.panel {
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 14px;
  background: #fff;
}

.sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.mobile-filters {
  display: none;
  padding: 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-filters select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: white;
  font-size: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media (max-width: 900px) {
  .mobile-filters {
    display: block;
  }
}

@media (min-width: 901px) {
  .mobile-filters {
    display: none !important;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .grid {
    padding: 0 10px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.thumb {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

.title {
  padding: 10px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.filters a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #111;
}

.filters a.active {
  background: #01abe5;
  color: #fff;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.btn {
    background: #00ace5;
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
}

.search {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin: 8px 0;
}

.search-container {
  margin: 0 0 12px 0;
}

@media (max-width: 900px) {
  .search-container {
    padding: 0 10px;
  }
}

.player-wrap {
  background: #000;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .player-wrap {
    margin: 0;
    border-radius: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.pagination a,
.pagination span {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: #111;
}

.pagination .current {
    background: #00ace5;
    color: #fff;
    border-color: #00ace5;
}
