.rs-page {
  padding: 48px 0 72px;
  color: #1c2430;
}

.rs-head h2,
.rs-detail h1,
.rs-card h3 {
  margin: 0;
  font-weight: 700;
}

.rs-head p,
.rs-detail p,
.rs-card p {
  margin: 8px 0 0;
  color: #5c6775;
}

.rs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.rs-filters a,
.rs-actions a,
.rs-cat {
  display: inline-block;
  border: 1px solid #d7dde5;
  border-radius: 999px;
  padding: 7px 14px;
  color: #1c2430;
  background: #fff;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rs-filters a:hover,
.rs-actions a:hover,
.rs-cat:hover {
  background: #1f4b4a;
  border-color: #1f4b4a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(31, 75, 74, .18);
}

.rs-filters a.is-on,
.rs-cat {
  background: #1f4b4a;
  border-color: #1f4b4a;
  color: #fff;
}

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

.rs-card {
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 35, 59, 0.06);
}

.rs-thumb {
  position: relative;
  display: block;
  background: #111;
  aspect-ratio: 16 / 9;
}

.rs-thumb.is-short {
  aspect-ratio: 9 / 14;
}

.rs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-thumb span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.rs-card-body {
  padding: 16px 16px 18px;
}

.rs-card-body small {
  display: block;
  margin-bottom: 6px;
  color: #8c6428;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.rs-card h3 a,
.rs-detail h1 {
  color: #14233b;
  text-decoration: none;
}

.rs-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rs-watch {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 32px;
  align-items: start;
}

.rs-player {
  width: 100%;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
}

.rs-player.is-wide {
  aspect-ratio: 16 / 9;
  max-width: 760px;
}

.rs-player.is-short {
  aspect-ratio: 9 / 16;
  max-width: 380px;
}

.rs-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.rs-detail h1 {
  font-size: 34px;
  line-height: 1.2;
  margin-top: 12px;
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rs-related-head {
  margin: 42px 0 18px;
}

.rs-empty {
  padding: 36px 16px;
  text-align: center;
  border: 1px dashed #d7dde5;
  border-radius: 16px;
  color: #5c6775;
}

.rs-pager {
  margin-top: 28px;
}

@media (max-width: 767px) {
  .rs-watch {
    grid-template-columns: 1fr;
  }
  .rs-player.is-short {
    max-width: 320px;
    margin: 0 auto;
  }
}
