/* RoPhim Clean-Room Theme v3 — Pure CSS & Modern Web Platform Features
 * Palette: #191B24 surface | #0F111A deep | #282B3A raised | #FFD875 RoGold | #FFFFFF text | #AAAAAA muted
 */

:root {
  --bg-color: #191b24;
  --bg-deep: #0f111a;
  --bg-2: #282b3a;
  --bg-3: #2f3346;
  --bg-4: #3e435c;
  --bg-toolbar: #08080a;
  --primary-color: #ffd875;
  --primary-hover: #ffde8a;
  --primary-color-hover: #f7c752;
  --primary-text: #191b24;
  --primary-button-text: #191b24;
  --text-base: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #7f849a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', Arial, sans-serif;
  --container-max: 1900px;
  --gutter: 50px;
}

@media (max-width: 1599px) {
  :root {
    --gutter: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg-color);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-color);
  color: var(--text-base);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.rp-container,
.rp-fluid-gap {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rp-fluid-gap {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 50px;
}

.rp-home-section {
  position: relative;
  margin-block: 0;
}

@media (max-width: 1023px) {
  .rp-fluid-gap {
    gap: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 767px) {
  .rp-fluid-gap {
    gap: 28px;
    padding-bottom: 28px;
  }
}

.rp-content-gap {
  margin-top: 28px;
}

.rp-main {
  min-height: calc(100dvh - 340px);
}

.rp-page-pad {
  padding-top: 102px;
  padding-bottom: 56px;
}

@media (max-width: 1359px) {
  .rp-page-pad {
    padding-top: 80px;
  }
}

/* ==============================
   Header & Navigation (Floating 90px -> 70px scrolled, Mobile 60px)
   ============================== */
.rp-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 80;
  height: 90px;
  background: linear-gradient(180deg, rgba(15, 17, 26, 0.9) 0%, rgba(15, 17, 26, 0) 100%);
  transition: background-color 0.25s ease, height 0.25s ease;
}

.rp-header.is-scrolled {
  height: 70px;
  background: rgba(15, 17, 26, 0.94);
  backdrop-filter: blur(16px);
}

.rp-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
}

.rp-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.rp-brand-logo {
  height: 40px;
  width: auto;
}

.rp-menu-btn,
.rp-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.rp-search {
  position: relative;
  flex: 0 1 360px;
  min-width: 220px;
}

.rp-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 6.4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rp-search-box:focus-within {
  background: rgba(25, 27, 36, 0.96);
  border-color: rgba(255, 216, 117, 0.55);
}

.rp-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 13.5px;
}

.rp-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.rp-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.rp-suggest {
  position: absolute;
  inset-block-start: calc(100% + 10px);
  inset-inline-start: 0;
  width: max(100%, 380px);
  max-height: 460px;
  overflow-y: auto;
  border-radius: 14px;
  background: rgba(25, 27, 36, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  z-index: 95;
  contain: layout style paint;
}

.rp-suggest-head {
  padding: 6px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.rp-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.rp-suggest-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rp-suggest-item img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-2);
  flex-shrink: 0;
}

.rp-suggest-meta {
  min-width: 0;
  flex: 1;
}

.rp-suggest-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-suggest-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-suggest-all {
  display: block;
  margin-top: 6px;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 216, 117, 0.12);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13px;
}

.rp-nav-group {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.rp-nav {
  margin-inline: auto;
}

.rp-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.rp-menu-list > a,
.rp-nav-item-pop > .rp-pop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rp-menu-list > a:hover,
.rp-menu-list > a.is-active,
.rp-nav-item-pop > .rp-pop-trigger:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.rp-nav-item-pop {
  position: relative;
}

/* Native [popover] & Anchor / Fallback dropdowns */
.rp-dropdown {
  margin: 0;
  inset: auto;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(23, 25, 35, 0.98);
  backdrop-filter: blur(20px);
  color: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 14px;
  contain: layout style paint;
}

.rp-dropdown:not(:popover-open):not(.\:popover-open) {
  display: none;
}

.rp-dropdown:is(:popover-open, .\:popover-open) {
  display: block;
}

.rp-dropdown-grid {
  width: min(880px, calc(100vw - 32px));
  max-height: min(calc(100dvh - 104px), 540px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px 8px;
  --scrollbar-thumb: #7b839e;
  --scrollbar-track: #1b1e29;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.rp-dropdown-genres {
  width: min(900px, calc(100vw - 32px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.rp-dropdown-countries {
  width: min(1080px, calc(100vw - 32px));
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px 6px;
}

@media (max-width: 1439px) {
  .rp-dropdown-countries {
    width: min(980px, calc(100vw - 32px));
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .rp-dropdown-countries {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .rp-dropdown-genres {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .rp-dropdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@supports not (scrollbar-color: auto) {
  .rp-dropdown-grid {
    scrollbar-width: auto;
  }
  .rp-dropdown-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .rp-dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }
  .rp-dropdown-grid::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
  }
}

.rp-dropdown-grid:not(:popover-open):not(.\:popover-open) {
  display: none;
}

.rp-dropdown-grid:is(:popover-open, .\:popover-open) {
  display: grid;
}

.rp-dropdown-grid a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rp-dropdown-user a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rp-dropdown-grid a:hover,
.rp-dropdown-user a:hover,
.rp-dropdown-grid a[aria-current="page"] {
  background: rgba(255, 216, 117, 0.14);
  color: var(--primary-color);
}

.rp-dropdown-grid a[aria-current="page"] {
  font-weight: 600;
}

.rp-dropdown-grid a:focus-visible,
.rp-dropdown-user a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.rp-dropdown-user {
  width: 220px;
  padding: 8px;
}

.rp-user-pill,
.rp-nav-item-pop > .rp-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #ffffff;
  color: #191b24;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.rp-user-pill:hover,
.rp-nav-item-pop > .rp-user-pill:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #191b24;
}

.rp-mobile-search-btn .rp-icon-close {
  display: none;
}

.rp-header.is-search-open .rp-mobile-search-btn .rp-icon-search {
  display: none;
}

.rp-header.is-search-open .rp-mobile-search-btn .rp-icon-close {
  display: inline-flex;
}

@media (max-width: 1359px) {
  .rp-header {
    height: 60px;
    background: rgba(15, 17, 26, 0.94);
    backdrop-filter: blur(14px);
  }
  .rp-header.is-scrolled {
    height: 60px;
  }
  .rp-header-inner {
    padding-inline: 12px;
    gap: 10px;
    justify-content: space-between;
  }
  .rp-menu-btn,
  .rp-mobile-search-btn {
    display: inline-flex;
  }
  .rp-brand-logo {
    height: 34px;
  }
  .rp-nav-group {
    display: none;
  }
  .rp-search {
    display: none;
  }
  .rp-header.is-search-open .rp-menu-btn,
  .rp-header.is-search-open .rp-brand {
    display: none;
  }
  .rp-header.is-search-open .rp-search {
    display: block;
    position: relative;
    inset: auto;
    flex: 1;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .rp-suggest {
    width: 100%;
  }
}

/* Mobile Navigation Drawer (<dialog>) */
.rp-drawer {
  margin: 0;
  padding: 0;
  border: 0;
  width: min(320px, 86vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  background: #171923;
  color: #fff;
  overscroll-behavior: contain;
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.65);
}

.rp-drawer::backdrop {
  background: rgba(6, 7, 12, 0.72);
  backdrop-filter: blur(4px);
}

.rp-drawer-scroller {
  height: 100%;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.rp-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rp-drawer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rp-drawer-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 13.5px;
  font-weight: 500;
}

.rp-drawer-links a:hover {
  background: rgba(255, 216, 117, 0.16);
  color: var(--primary-color);
}

.rp-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-drawer-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.rp-drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rp-drawer-chips a {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

.rp-drawer-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rp-drawer-user,
.rp-drawer-user-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.rp-drawer-user {
  background: var(--primary-color);
  color: var(--bg-color);
}

.rp-drawer-user-alt {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: #fff;
}

/* ==============================
   Notice Strip (Subtle Demo / News Banner)
   ============================== */
.rp-notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-top: 18px;
  border-radius: 12px;
  background: rgba(40, 43, 58, 0.72);
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.rp-notice-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-color);
  color: var(--bg-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ==============================
   Hero Carousel (#top_slide)
   ============================== */
.rp-hero {
  position: relative;
  width: 100%;
  height: 760px;
  min-height: 760px;
  margin-bottom: -100px;
  overflow: hidden;
  background: #202331;
}

.rp-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 200px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, rgb(25, 27, 36) 0%, rgba(25, 27, 36, 0) 100%);
}

.rp-hero-track {
  position: relative;
  height: 100%;
  min-height: 760px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.rp-hero-track.is-dragging,
.rp-hero-track.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.rp-hero-track.is-dragging .rp-hero-slide {
  transition: none !important;
}

.rp-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #202331;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.rp-hero-slide::before,
.rp-top-detail-wrap::before,
.rp-s2-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/static/images/dotted.webp?v=1');
  background-repeat: repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
}

.rp-hero-slide:not(.is-active) .rp-slide-content {
  opacity: 0;
}

.rp-hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.rp-slide-url {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
}

.rp-bg-fade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0.2;
  filter: blur(80px);
  z-index: 0;
}

.rp-cover-fade {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  height: calc(100% - 60px);
  z-index: 1;
  mask-image: linear-gradient(to top, transparent 0px, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, transparent 0px, #000 20%, #000 80%, transparent 100%);
}

.rp-cover-image {
  position: relative;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to right, transparent 10px, rgba(0, 0, 0, 0.2) 15%, #000 40%, #000 80%, transparent 99%);
  -webkit-mask-image: linear-gradient(to right, transparent 10px, rgba(0, 0, 0, 0.2) 15%, #000 40%, #000 80%, transparent 99%);
}

.rp-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.06);
}

.rp-hero-safe {
  position: relative;
  z-index: 4;
  max-width: var(--container-max);
  margin-inline: auto;
  height: calc(100% - 100px);
  padding: 100px var(--gutter) 104px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.rp-slide-content {
  max-width: 610px;
  pointer-events: auto;
}

.rp-hero-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.rp-hero-title a:hover {
  color: var(--primary-color);
}

.rp-hero-alias {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
}

.rp-hl-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.rp-tag-imdb,
.rp-tag-model,
.rp-tag-classic,
.rp-tag-topic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rp-tag-imdb {
  border: 1px solid rgba(255, 216, 117, 0.72);
  color: #fff;
  background: rgba(25, 27, 36, 0.72);
}

.rp-tag-imdb strong {
  color: var(--primary-color);
}

.rp-tag-model {
  background: linear-gradient(135deg, #fff1c2, var(--primary-color));
  color: var(--bg-color);
}

.rp-tag-classic {
  height: 26px;
  padding: 0 8px;
  border-radius: 5.28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.rp-tag-topic {
  height: 26px;
  padding: 0 8px;
  border-radius: 5.28px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 400;
}

.rp-tag-topic:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.rp-hl-genres {
  margin-top: 10px;
}

.rp-hero-desc {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-hero-touch {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.rp-button-play {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(39deg, #fecf59 0%, #fff1cc 100%);
  color: var(--bg-color);
  box-shadow: 0 5px 12px 4px rgba(255, 218, 125, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.rp-button-play:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px 4px rgba(255, 218, 125, 0.28);
}

.rp-touch-group {
  display: inline-flex;
  align-items: center;
  height: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.rp-tg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.rp-tg-item + .rp-tg-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rp-tg-item:hover,
.rp-tg-item.is-active {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

.rp-hero-thumbs {
  position: absolute;
  inset-inline-end: max(var(--gutter), calc((100% - var(--container-max)) / 2 + var(--gutter)));
  inset-block-end: 217px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.rp-hero-thumb-btn {
  padding: 0;
  width: 65px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-2);
  opacity: 0.85;
  transform: scale(0.95);
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rp-hero-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.rp-hero-thumb-btn:hover {
  opacity: 1;
}

.rp-hero-thumb-btn.is-active {
  opacity: 1;
  border-color: #ffffff;
  transform: scale(1);
}

@media (max-width: 1599px) {
  .rp-hero,
  .rp-hero-track {
    height: 700px;
    min-height: 700px;
  }
  .rp-hero {
    margin-bottom: -80px;
  }
  .rp-hero-safe {
    height: calc(100% - 80px);
    padding: 100px var(--gutter) 104px;
  }
  .rp-hero-thumbs {
    inset-block-end: 197px;
  }
}

@media (max-width: 1023px) {
  .rp-hero,
  .rp-hero-track,
  .rp-hero-safe {
    height: auto;
    min-height: 460px;
    margin-bottom: 0;
  }
  .rp-hero-safe {
    padding: 84px var(--gutter) 92px;
  }
  .rp-hero-thumbs {
    inset-inline: 0;
    inset-block-end: 18px;
    justify-content: center;
  }
  .rp-hero-thumb-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: none;
  }
  .rp-hero-thumb-btn.is-active {
    transform: none;
  }
}

@media (max-width: 767px) {
  .rp-hero-track,
  .rp-hero-safe {
    min-height: 440px;
  }
  .rp-hero-safe {
    padding: 84px var(--gutter) 92px;
  }
  .rp-hero-desc {
    display: none;
  }
  .rp-button-play {
    width: 54px;
    height: 54px;
  }
}

/* ==============================
   Section Headers & Row Shell
   ============================== */
.rp-section-block {
  margin-top: 40px;
}

.rp-section-block:first-child {
  margin-top: 24px;
}

.rp-row-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 18px;
}

.rp-cat-name,
.rp-page-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.rp-cat-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, padding 0.18s ease;
}

.rp-topics-collapse {
  margin-left: auto;
}

a.rp-cat-more {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  gap: 0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.88);
}

a.rp-cat-more > span:first-child {
  display: none;
  font-size: 12px;
  padding: 0 2px 0 8px;
}

a.rp-cat-more .rp-more-chev {
  width: 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

a.rp-cat-more:is(:hover, :focus-visible) {
  width: auto;
  padding: 0 6px 0 2px;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

a.rp-cat-more:is(:hover, :focus-visible) > span:first-child {
  display: inline;
}

.rp-cat-more:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* ==============================
   Topic Cards ("Bạn đang quan tâm gì?")
   ============================== */
.rp-topics-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

.rp-topics-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rp-topic-card,
.rp-topic-more {
  position: relative;
  min-height: 142px;
  padding: 20px 22px;
  border-radius: 20px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--topic-color, #4a558c);
  color: #fff;
  box-shadow: 0 -10px 20px 0 rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.22s ease, filter 0.22s ease;
}

@media (max-width: 1439px) {
  .rp-topics-grid:not(.rp-topics-full) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.rp-topic-card:hover,
.rp-topic-more:hover {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

.rp-topic-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, rgba(15, 17, 26, 0.36) 100%);
  pointer-events: none;
}

.rp-topic-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(-45deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(-45deg, #000 0%, transparent 45%);
  background-image: url('/static/images/wave.webp?v=1');
  background-repeat: no-repeat;
  background-size: 200px 140px;
  background-position: right bottom;
  opacity: 0.3;
}

.rp-topic-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rp-topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.rp-topic-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.rp-topic-more {
  border: 0;
  background: linear-gradient(155deg, #8a7a82 0%, #6d6169 100%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rp-topics-grid .rp-topic-hub-card {
  min-height: 142px;
  padding: 14px 16px;
}

.rp-topics-grid .rp-topic-hub-title {
  font-size: 1rem;
}

.rp-topics-grid .rp-topic-more {
  min-height: 142px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(58, 63, 88, 0.92), rgba(28, 31, 46, 0.96));
  border: 1px dashed rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rp-topics-grid .rp-topic-more:hover {
  transform: translateY(-4px);
  border-color: rgba(254, 207, 89, 0.6);
  filter: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.rp-topic-more-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.rp-topic-more-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(254, 207, 89, 0.9);
}

@media (max-width: 1279px) {
  .rp-topics-grid:not(.rp-topics-full) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rp-topics-grid:not(.rp-topics-full) {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .rp-topics-grid:not(.rp-topics-full)::-webkit-scrollbar {
    display: none;
  }
  .rp-topics-grid:not(.rp-topics-full) .rp-topic-card,
  .rp-topics-grid:not(.rp-topics-full) .rp-topic-hub-card,
  .rp-topics-grid:not(.rp-topics-full) .rp-topic-more {
    flex: 0 0 165px;
    min-height: 112px;
    scroll-snap-align: start;
  }
  .rp-topics-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==============================
   Redesigned /chu-de Topic Discovery Hub
   ============================== */
.rp-topics-page {
  padding-bottom: 48px;
}

.rp-topics-hero {
  position: relative;
  margin-bottom: 26px;
  padding: 28px 30px 24px;
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(254, 207, 89, 0.14), rgba(32, 35, 49, 0.72) 48%, rgba(20, 22, 30, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.rp-topics-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.rp-topics-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.14);
  border: 1px solid rgba(254, 207, 89, 0.36);
  color: #fecf59;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.rp-topics-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.rp-topics-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.rp-topics-sub strong {
  color: #fecf59;
  font-weight: 700;
}

.rp-topics-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 400px;
  min-width: 260px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(12, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rp-topics-search:focus-within {
  border-color: rgba(254, 207, 89, 0.65);
  box-shadow: 0 0 0 3px rgba(254, 207, 89, 0.14);
}

.rp-topics-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
}

.rp-topics-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.rp-topics-clear {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rp-topics-match {
  font-size: 11.5px;
  font-weight: 700;
  color: #fecf59;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.12);
}

.rp-topics-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-quick-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.rp-quick-chip:hover {
  background: rgba(254, 207, 89, 0.16);
  border-color: rgba(254, 207, 89, 0.5);
  color: #fecf59;
}

.rp-quick-chip.is-gold {
  background: rgba(254, 207, 89, 0.16);
  border-color: rgba(254, 207, 89, 0.45);
  color: #fecf59;
}

.rp-topics-hub-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.rp-topic-hub-card {
  position: relative;
  min-height: 158px;
  padding: 16px 18px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--tc-a, #2f3c7e), var(--tc-b, #19204a));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.24s ease;
}

.rp-topic-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(254, 207, 89, 0.55);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(254, 207, 89, 0.22);
}

.rp-topic-art {
  position: absolute;
  inset: 0 0 0 26%;
  width: 74%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.62;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.36) 36%, rgba(0, 0, 0, 0.94) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.36) 36%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
  transition: transform 0.38s ease, opacity 0.25s ease;
}

.rp-topic-hub-card:hover .rp-topic-art {
  transform: scale(1.08);
  opacity: 0.82;
}

.rp-topic-hub-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.12) 0%, rgba(12, 14, 22, 0.58) 100%);
  pointer-events: none;
}

.rp-topic-hub-top,
.rp-topic-hub-foot {
  position: relative;
  z-index: 2;
}

.rp-topic-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rp-topic-count-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rp-topic-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rp-topic-hub-card:hover .rp-topic-arrow {
  background: #fecf59;
  color: #14161e;
  transform: translate(2px, -2px);
}

.rp-topic-hub-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-topic-hub-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.rp-topic-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s ease;
}

.rp-topic-hub-card:hover .rp-topic-hub-cta {
  color: #fecf59;
}

.rp-topics-empty {
  margin-top: 24px;
  text-align: center;
}

.rp-topics-empty .rp-btn-gold {
  margin-top: 12px;
}

@media (max-width: 1439px) {
  .rp-topics-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .rp-topics-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rp-topics-hero {
    padding: 20px 16px 18px;
  }
  .rp-topics-search {
    flex: 1 1 100%;
    min-width: 0;
  }
  .rp-topics-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .rp-topic-hub-card {
    min-height: 132px;
    padding: 13px 14px;
  }
  .rp-topic-hub-title {
    font-size: 0.98rem;
  }
}

/* ==============================
   Country Featured Band (3 Horizontal Rows in Dark Gradient Shell)
   ============================== */
.rp-country-band {
  margin-top: 0;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 43, 58, 0.52) 0%, rgba(25, 27, 36, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rp-country-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.rp-country-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.rp-country-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 800;
  background: linear-gradient(120deg, var(--country-accent, #ffd875), #ffffff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-country-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.rp-country-all:hover {
  color: var(--primary-color);
}

@media (max-width: 1023px) {
  .rp-country-band {
    padding: 18px;
  }
  .rp-country-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rp-country-intro {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==============================
   Horizontal Carousels & Movie Cards
   ============================== */
.rp-carousel-shell {
  position: relative;
}

.rp-h-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 6 * 16px) / 7);
  gap: 16px;
  padding: 8px 4px 10px;
  margin: -8px -4px -10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}

@media (hover: hover) and (pointer: fine) {
  .rp-h-track {
    cursor: grab;
  }
}

.rp-h-track.is-dragging {
  cursor: grabbing !important;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
  -webkit-user-select: none;
}

.rp-h-track.is-dragging * {
  cursor: grabbing !important;
}

.rp-h-track-land {
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
}

.rp-h-track::-webkit-scrollbar {
  display: none;
}

.rp-h-slide {
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 1439px) {
  .rp-h-track {
    grid-auto-columns: calc((100% - 5 * 14px) / 6);
  }
}

@media (max-width: 1199px) {
  .rp-h-track {
    grid-auto-columns: calc((100% - 3 * 14px) / 4);
  }
  .rp-h-track-land {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 767px) {
  .rp-h-track {
    grid-auto-columns: calc((100% - 2 * 12px) / 3);
    gap: 12px;
  }
  .rp-h-track-land {
    grid-auto-columns: 78%;
  }
}

.rp-sw-nav {
  position: static;
}

.rp-sw-btn {
  position: absolute;
  inset-block-start: calc(50% - 27px);
  z-index: 10;
  padding: 6px;
  border: none;
  background: transparent;
  color: #fff;
  opacity: 0.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rp-sw-btn svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.6;
  display: block;
}

.rp-sw-prev {
  left: 0;
  right: auto;
  transform: translate(-100%, -50%);
}

.rp-sw-next {
  right: 0;
  left: auto;
  transform: translate(100%, -50%);
}

.rp-sw-btn:hover {
  opacity: 1;
  color: #fff;
}

@media (max-width: 1999px) {
  .rp-sw-nav:not(.rp-sw-nav-white) .rp-sw-prev {
    left: 6px;
    transform: translateY(-50%);
  }
  .rp-sw-nav:not(.rp-sw-nav-white) .rp-sw-next {
    right: 6px;
    transform: translateY(-50%);
  }
  .rp-sw-nav:not(.rp-sw-nav-white) .rp-sw-btn {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.78));
  }
  .rp-sw-nav:not(.rp-sw-nav-white) .rp-sw-btn svg {
    width: 34px;
    height: 34px;
  }
}

/* Country Band: 40px crisp white circular arrows */
.rp-sw-nav-white .rp-sw-btn {
  inset-block-start: calc(50% - 28px);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #111;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.25);
}

.rp-sw-nav-white .rp-sw-prev {
  left: -20px;
  right: auto;
  transform: translateY(-50%);
}

.rp-sw-nav-white .rp-sw-next {
  right: -20px;
  left: auto;
  transform: translateY(-50%);
}

.rp-sw-nav-white .rp-sw-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  color: #111;
  position: relative;
  right: -1px;
}

.rp-sw-nav-white .rp-sw-prev svg {
  right: auto;
  left: -1px;
}

.rp-sw-nav-white .rp-sw-btn:hover {
  background: #fff;
  color: #000;
  opacity: 1;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
}

/* Top Discuss: 40px dark bordered circular arrows */
.rp-top-discuss .rp-sw-nav .rp-sw-btn {
  inset-block-start: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  opacity: 1;
  filter: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.rp-top-discuss .rp-sw-nav .rp-sw-prev {
  left: -10px;
  right: auto;
  transform: translateY(-50%);
}

.rp-top-discuss .rp-sw-nav .rp-sw-next {
  right: -10px;
  left: auto;
  transform: translateY(-50%);
}

.rp-top-discuss .rp-sw-nav .rp-sw-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.rp-top-discuss .rp-sw-nav .rp-sw-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Auto-hide arrow at start/end edge or when row fits cleanly */
.rp-sw-btn.is-disabled,
.rp-sw-btn:disabled {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 767px) {
  .rp-sw-btn {
    display: none;
  }
}

/* Portrait & Unified Card Cinema Hover */
.rp-card,
.rp-land-card,
.rp-s3-card {
  container-type: inline-size;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-top-up-card {
  container-type: inline-size;
}

.rp-card:is(:hover, :focus-within),
.rp-land-card:is(:hover, :focus-within),
.rp-s3-card:is(:hover, :focus-within) {
  transform: translateY(-3px);
}

.rp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-thumb,
.rp-land-thumb,
.rp-s3-hoz {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  transition: box-shadow 0.26s ease;
}

.rp-thumb {
  aspect-ratio: 2 / 3;
}

.rp-thumb::before,
.rp-land-thumb::before,
.rp-s3-hoz::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(16, 19, 30, 0.14) 0%, rgba(16, 19, 30, 0.58) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 216, 117, 0.88);
  transition: opacity 0.24s ease;
}

.rp-thumb::after,
.rp-land-thumb::after,
.rp-s3-hoz::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  background: rgba(255, 216, 117, 0.94)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23191b24'%3E%3Cpath d='M8 5.5v13l10.5-6.5L8 5.5z'/%3E%3C/svg%3E")
    54% 50% / 20px 20px no-repeat;
  box-shadow: 0 8px 22px rgba(255, 216, 117, 0.36), 0 0 0 6px rgba(255, 216, 117, 0.16);
  transition: opacity 0.24s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-card:is(:hover, :focus-within) .rp-thumb,
.rp-land-card:is(:hover, :focus-within) .rp-land-thumb,
.rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.48);
}

.rp-card:is(:hover, :focus-within) .rp-thumb::before,
.rp-land-card:is(:hover, :focus-within) .rp-land-thumb::before,
.rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz::before,
.rp-card:is(:hover, :focus-within) .rp-thumb::after,
.rp-land-card:is(:hover, :focus-within) .rp-land-thumb::after,
.rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz::after {
  opacity: 1;
}

.rp-card:is(:hover, :focus-within) .rp-thumb::after,
.rp-land-card:is(:hover, :focus-within) .rp-land-thumb::after,
.rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz::after {
  transform: translate(-50%, -50%) scale(1);
}

.rp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-card:is(:hover, :focus-within) .rp-thumb img {
  transform: scale(1.06);
}

.rp-card-info {
  text-align: center;
  padding-inline: 4px;
}

.rp-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-card-title a,
.rp-land-title a,
.rp-s3-title a,
.rp-w-title a {
  transition: color 0.2s ease;
}

.rp-card:is(:hover, :focus-within) .rp-card-title a,
.rp-land-card:is(:hover, :focus-within) .rp-land-title a,
.rp-s3-card:is(:hover, :focus-within) .rp-s3-title a,
.rp-top-up-card:is(:hover, :focus-within) .rp-w-title a {
  color: var(--primary-color);
}

.rp-card-alias {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Landscape Card (Country Band 16:9) */
.rp-land-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-land-thumb {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.rp-land-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-land-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 44%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 14, 22, 0) 0%, rgba(12, 14, 22, 0.68) 100%);
}

.rp-land-thumb img.is-portrait-art,
.rp-s3-hoz img.is-portrait-art,
.rp-cover-image img.is-portrait-art,
.rp-topic-art.is-portrait-art {
  object-position: center 12%;
}

.rp-land-card:is(:hover, :focus-within) .rp-land-thumb img {
  transform: scale(1.05);
}

.rp-land-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-land-alias {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom-Centered Multi-Segment Pins */
.rp-pin-new {
  position: absolute;
  z-index: 4;
  inset-block-end: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-width: 92%;
}

@media (prefers-reduced-motion: reduce) {
  .rp-card,
  .rp-land-card,
  .rp-s3-card,
  .rp-thumb,
  .rp-land-thumb,
  .rp-s3-hoz,
  .rp-thumb::before,
  .rp-land-thumb::before,
  .rp-s3-hoz::before,
  .rp-thumb::after,
  .rp-land-thumb::after,
  .rp-s3-hoz::after,
  .rp-thumb img,
  .rp-land-thumb img,
  .rp-s3-hoz img,
  .rp-skew-mask,
  .rp-top-up-thumb img,
  .rp-top-up-thumb .rp-pin-new {
    transition: none;
  }

  .rp-card:is(:hover, :focus-within),
  .rp-land-card:is(:hover, :focus-within),
  .rp-s3-card:is(:hover, :focus-within),
  .rp-card:is(:hover, :focus-within) .rp-thumb img,
  .rp-land-card:is(:hover, :focus-within) .rp-land-thumb img,
  .rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz img {
    transform: none;
  }
}

.rp-pin-left {
  inset-inline-start: 10px;
  transform: none;
}

.rp-pin-seg {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.rp-pin-seg.line-pd {
  background: #5e6070;
}

.rp-pin-seg.line-tm {
  background: #2f8f5b;
}

.rp-pin-seg.line-lt {
  background: #3570b6;
}

.rp-pin-seg.line-coming {
  background: #c84b31;
}

/* ==============================
   Community & Rankings (#community)
   ============================== */
.rp-comm-wrap {
  margin-top: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

.rp-top-discuss {
  padding: 24px 32px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rp-comm-title {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
}

.rp-comm-title svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.rp-td-track {
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 16px) / 5);
  gap: 16px;
}

@media (max-width: 1359px) {
  .rp-td-track {
    grid-auto-columns: calc((100% - 2 * 16px) / 3);
  }
}

@media (max-width: 899px) {
  .rp-td-track {
    grid-auto-columns: calc((100% - 14px) / 2);
  }
}

@media (max-width: 599px) {
  .rp-td-track {
    grid-auto-columns: 82%;
  }
}

.rp-td-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(15, 17, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 182px;
  transition: border-color 0.2s ease;
}

.rp-td-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.rp-td-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: blur(6px);
  transform: scale(1.1);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.rp-td-card:hover .rp-td-bg {
  opacity: 0.65;
}

.rp-td-poster {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 48px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.rp-td-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.rp-td-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rp-td-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.rp-user-ava,
.rp-ava-sm {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ava-ring, linear-gradient(135deg, var(--primary-color), #f59e0b));
  border: 2px solid color-mix(in srgb, var(--ava-ring, #ffd875) 68%, rgba(255, 255, 255, 0.28));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-user-ava img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.rp-ava-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.rp-td-card .rp-user-ava {
  width: 44px;
  height: 44px;
}

.rp-td-card:hover .rp-user-ava,
.rp-new-cmt-row:hover .rp-user-ava {
  border-color: var(--primary-color);
  transform: scale(1.06);
}

.rp-td-user {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  padding-right: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-td-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-td-stats {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.rp-td-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rp-irt-table {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr 1.35fr;
}

.rp-it-col {
  padding: 24px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-it-col:last-child {
  border-right: 0;
}

@media (max-width: 1199px) {
  .rp-irt-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rp-it-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 639px) {
  .rp-irt-table {
    grid-template-columns: 1fr;
  }
  .rp-it-col {
    border-right: 0;
  }
}

.rp-chart-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rp-chart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  font-size: 13.5px;
}

.rp-chart-pos {
  width: 18px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.rp-dev {
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.rp-dev-up {
  color: #bedc33;
}

.rp-dev-stand {
  color: rgba(255, 255, 255, 0.25);
}

.rp-chart-item img {
  width: 26px;
  height: 38px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
}

.rp-chart-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
}

.rp-chart-name:hover {
  color: var(--primary-color);
}

.rp-genre-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rp-genre-pill:hover {
  background: var(--primary-color);
  color: var(--bg-color);
}

.rp-chart-more {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  text-align: left;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.rp-chart-more:hover {
  color: var(--primary-color);
}

.rp-new-cmt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 286px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.rp-new-cmt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.rp-new-cmt-row:hover {
  background: rgba(0, 0, 0, 0.44);
  border-color: rgba(255, 255, 255, 0.22);
}

.rp-new-cmt-body {
  min-width: 0;
  flex: 1;
}

.rp-new-cmt-line {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-new-cmt-line strong {
  color: #fff;
  font-weight: 600;
  margin-right: 5px;
}

.rp-new-cmt-movie {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-play-tri {
  font-size: 9px;
  color: var(--primary-color);
}

/* ==============================
   Style 3: Overlap Poster + Horizontal Card ("Top Phim Lẻ")
   ============================== */
.rp-s3-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-s3-hoz {
  aspect-ratio: 16 / 9;
}

.rp-s3-hoz img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-s3-card:is(:hover, :focus-within) .rp-s3-hoz img {
  transform: scale(1.05);
}

.rp-s3-pin {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 114px;
}

.rp-s3-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-inline: 10px;
}

.rp-s3-thumb {
  margin-top: -54px;
  position: relative;
  z-index: 2;
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--bg-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.rp-s3-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.rp-s3-info {
  min-width: 0;
  flex: 1;
}

.rp-s3-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-s3-alias {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-s3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}

/* ==============================
   Style 4: Top 10 Skewed Alternating Clip-Path Posters
   ============================== */
.rp-top-up {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.rp-top-up::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1279px) {
  .rp-top-up {
    grid-auto-columns: calc((100% - 3 * 14px) / 4);
  }
}

@media (max-width: 767px) {
  .rp-top-up {
    grid-auto-columns: 44%;
  }
}

.rp-top-up-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-top-up-thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: transparent;
}

.rp-skew-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 0;
  transition: background-color 0.2s ease;
  clip-path: polygon(94.239% 100%, 5.761% 100%, 5.761% 100%, 4.826% 99.95%, 3.94% 99.803%, 3.113% 99.569%, 2.358% 99.256%, 1.687% 98.87%, 1.111% 98.421%, 0.643% 97.915%, 0.294% 97.362%, 0.075% 96.768%, 0% 96.142%, 0% 3.858%, 0% 3.858%, 0.087% 3.185%, 0.338% 2.552%, 0.737% 1.968%, 1.269% 1.442%, 1.92% 0.984%, 2.672% 0.602%, 3.512% 0.306%, 4.423% 0.105%, 5.391% 0.008%, 6.4% 0.024%, 94.879% 6.625%, 94.879% 6.625%, 95.731% 6.732%, 96.532% 6.919%, 97.272% 7.178%, 97.942% 7.503%, 98.533% 7.887%, 99.038% 8.323%, 99.445% 8.805%, 99.747% 9.326%, 99.935% 9.88%, 100% 10.459%, 100% 96.142%, 100% 96.142%, 99.925% 96.768%, 99.706% 97.362%, 99.357% 97.915%, 98.889% 98.421%, 98.313% 98.87%, 97.642% 99.256%, 96.887% 99.569%, 96.06% 99.803%, 95.174% 99.95%, 94.239% 100%);
}

.rp-top-up-card:nth-child(2n) .rp-skew-mask {
  clip-path: polygon(5.761% 100%, 94.239% 100%, 94.239% 100%, 95.174% 99.95%, 96.06% 99.803%, 96.887% 99.569%, 97.642% 99.256%, 98.313% 98.87%, 98.889% 98.421%, 99.357% 97.915%, 99.706% 97.362%, 99.925% 96.768%, 100% 96.142%, 100% 3.858%, 100% 3.858%, 99.913% 3.185%, 99.662% 2.552%, 99.263% 1.968%, 98.731% 1.442%, 98.08% 0.984%, 97.328% 0.602%, 96.488% 0.306%, 95.577% 0.105%, 94.609% 0.008%, 93.6% 0.024%, 5.121% 6.625%, 5.121% 6.625%, 4.269% 6.732%, 3.468% 6.919%, 2.728% 7.178%, 2.058% 7.503%, 1.467% 7.887%, 0.962% 8.323%, 0.555% 8.805%, 0.253% 9.326%, 0.065% 9.88%, 0% 10.459%, 0% 96.142%, 0% 96.142%, 0.075% 96.768%, 0.294% 97.362%, 0.643% 97.915%, 1.111% 98.421%, 1.687% 98.87%, 2.358% 99.256%, 3.113% 99.569%, 3.94% 99.803%, 4.826% 99.95%, 5.761% 100%);
}

.rp-top-up-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 1;
  clip-path: polygon(94.239% 100%, 5.761% 100%, 5.761% 100%, 4.826% 99.95%, 3.94% 99.803%, 3.113% 99.569%, 2.358% 99.256%, 1.687% 98.87%, 1.111% 98.421%, 0.643% 97.915%, 0.294% 97.362%, 0.075% 96.768%, 0% 96.142%, 0% 3.858%, 0% 3.858%, 0.087% 3.185%, 0.338% 2.552%, 0.737% 1.968%, 1.269% 1.442%, 1.92% 0.984%, 2.672% 0.602%, 3.512% 0.306%, 4.423% 0.105%, 5.391% 0.008%, 6.4% 0.024%, 94.879% 6.625%, 94.879% 6.625%, 95.731% 6.732%, 96.532% 6.919%, 97.272% 7.178%, 97.942% 7.503%, 98.533% 7.887%, 99.038% 8.323%, 99.445% 8.805%, 99.747% 9.326%, 99.935% 9.88%, 100% 10.459%, 100% 96.142%, 100% 96.142%, 99.925% 96.768%, 99.706% 97.362%, 99.357% 97.915%, 98.889% 98.421%, 98.313% 98.87%, 97.642% 99.256%, 96.887% 99.569%, 96.06% 99.803%, 95.174% 99.95%, 94.239% 100%);
  transition: transform 0.2s ease;
}

.rp-top-up-card:nth-child(2n) .rp-top-up-thumb img {
  clip-path: polygon(5.761% 100%, 94.239% 100%, 94.239% 100%, 95.174% 99.95%, 96.06% 99.803%, 96.887% 99.569%, 97.642% 99.256%, 98.313% 98.87%, 98.889% 98.421%, 99.357% 97.915%, 99.706% 97.362%, 99.925% 96.768%, 100% 96.142%, 100% 3.858%, 100% 3.858%, 99.913% 3.185%, 99.662% 2.552%, 99.263% 1.968%, 98.731% 1.442%, 98.08% 0.984%, 97.328% 0.602%, 96.488% 0.306%, 95.577% 0.105%, 94.609% 0.008%, 93.6% 0.024%, 5.121% 6.625%, 5.121% 6.625%, 4.269% 6.732%, 3.468% 6.919%, 2.728% 7.178%, 2.058% 7.503%, 1.467% 7.887%, 0.962% 8.323%, 0.555% 8.805%, 0.253% 9.326%, 0.065% 9.88%, 0% 10.459%, 0% 96.142%, 0% 96.142%, 0.075% 96.768%, 0.294% 97.362%, 0.643% 97.915%, 1.111% 98.421%, 1.687% 98.87%, 2.358% 99.256%, 3.113% 99.569%, 3.94% 99.803%, 4.826% 99.95%, 5.761% 100%);
}

.rp-top-up-thumb .rp-pin-new {
  z-index: 3;
  transition: transform 0.2s ease;
}

.rp-top-up-card:is(:hover, :focus-within) .rp-skew-mask {
  background-color: var(--primary-color);
}

.rp-top-up-card:is(:hover, :focus-within) .rp-top-up-thumb img {
  transform: scale(0.96);
}

.rp-top-up-card:is(:hover, :focus-within) .rp-top-up-thumb .rp-pin-new {
  transform: translateY(-4px);
}

.rp-w-chart {
  position: relative;
  padding-left: 58px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  isolation: isolate;
}

.rp-w-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  text-align: center;
  font-size: 3.7rem;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(39deg, #fecf59 0%, #fff1cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
}

.rp-w-title,
.rp-w-alias,
.rp-w-tags {
  margin: 0;
  min-width: 0;
}

.rp-w-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-w-alias {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-w-tags {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

/* ==============================
   Style 2: Spotlight ("Kho Tàng Anime Mới Nhất")
   ============================== */
.rp-s2-shell {
  position: relative;
  overflow: visible;
  margin-bottom: 0;
}

.rp-s2-stage {
  position: relative;
  min-height: 500px;
  height: 500px;
  border-radius: 19px;
  overflow: hidden;
  background: var(--bg-3);
  border: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.rp-s2-stage.is-dragging,
.rp-s2-stage.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.rp-s2-content a,
.rp-s2-content button,
.rp-slide-content a,
.rp-slide-content button {
  cursor: pointer;
}

.rp-s2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  padding: 48px;
  transition: opacity 0.35s ease;
}

.rp-s2-slide.is-active {
  position: relative;
  min-height: 500px;
  height: 100%;
  opacity: 1;
  pointer-events: auto;
}

.rp-s2-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: calc(100% - 500px);
  z-index: 0;
  background-size: cover;
  background-position: center 20%;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 100%);
  pointer-events: none;
}

.rp-s2-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.rp-s2-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.rp-s2-alias {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
}

.rp-s2-desc {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-s2-thumbs {
  position: relative;
  z-index: 3;
  margin: -70px auto 0;
  max-width: 1200px;
  width: calc(100% - 32px);
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  padding-block: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rp-s2-thumbs::-webkit-scrollbar {
  display: none;
}

.rp-s2-thumb {
  flex: 0 0 84px;
  aspect-ratio: 2 / 3;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--bg-2);
  opacity: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rp-s2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-s2-thumb:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px);
}

.rp-s2-thumb.is-active {
  border-color: #fff;
  background: #fff;
  transform: none;
}

@media (max-width: 1023px) {
  .rp-s2-stage,
  .rp-s2-slide.is-active {
    height: auto;
    min-height: 440px;
  }
  .rp-s2-slide {
    padding: 28px 24px 86px;
  }
  .rp-s2-bg {
    width: 100%;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .rp-s2-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 27, 36, 0.65) 0%, rgba(25, 27, 36, 0.92) 100%);
  }
}

@media (max-width: 767px) {
  .rp-s2-thumbs {
    justify-content: flex-start;
    margin-top: -54px;
    gap: 10px;
  }
  .rp-s2-thumb {
    flex: 0 0 68px;
    border-radius: 10px;
  }
}

/* Compact in-card hover rules defined in Card section above. */

/* ==============================
   Catalog Listing (movies.html)
   ============================== */
.rp-page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.rp-count-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  font-size: 12.5px;
  font-weight: 700;
}

.rp-v-filter {
  margin-bottom: 24px;
}

.rp-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--border-color);
  background: var(--bg-2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.rp-funnel-ic {
  color: var(--primary-color);
}

.rp-filter-elements {
  padding: 18px;
  border-radius: 0 14px 14px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rp-fe-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 767px) {
  .rp-fe-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.rp-fe-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 6px;
}

.rp-fe-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-fe-item {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 17, 26, 0.55);
  border: 1px solid var(--border-color);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.rp-fe-item.is-active,
.rp-fe-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 216, 117, 0.12);
}

.rp-fe-end .rp-fe-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-btn-filter-go,
.rp-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.rp-btn-filter-close,
.rp-btn-filter-reset,
.rp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.rp-movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}

.rp-suggest-heading {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.rp-movie-grid-compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 14px;
}

@media (max-width: 1279px) {
  .rp-movie-grid,
  .rp-movie-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rp-movie-grid,
  .rp-movie-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

@media (max-width: 479px) {
  .rp-movie-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

.rp-v-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.rp-page-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rp-page-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rp-page-circle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.rp-page-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-page-input {
  width: 44px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  text-align: center;
  font-weight: 700;
}

/* ==============================
   Movie Detail (movie_detail.html)
   ============================== */
.rp-top-detail-wrap {
  position: relative;
  width: 100%;
  height: 640px;
  background-color: #202331;
  overflow: hidden;
}

.rp-top-detail-wrap .rp-cover-fade {
  height: 100%;
}

.rp-top-detail-wrap .rp-cover-image {
  opacity: 0.65;
  mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

.rp-top-detail-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg-color) 0%, rgba(25, 27, 36, 0) 100%);
}

@media (max-width: 1023px) {
  .rp-top-detail-wrap {
    height: 460px;
  }
}

@media (max-width: 767px) {
  .rp-top-detail-wrap {
    height: 340px;
  }
}

.rp-detail-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--container-max);
  margin: -240px auto 0;
  padding: 0 var(--gutter) 56px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
}

@media (max-width: 1119px) {
  .rp-detail-container {
    flex-direction: column;
    margin-top: -140px;
    gap: 20px;
  }
}

.rp-dc-side {
  flex: 0 0 440px;
  width: 440px;
  padding: 38px 36px;
  border-radius: 20px 48px 20px 20px;
  background: rgba(25, 27, 36, 0.56);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 1119px) {
  .rp-dc-side {
    flex: none;
    width: 100%;
    padding: 24px;
    border-radius: 20px;
  }
}

.rp-dc-main {
  flex: 1;
  min-width: 0;
  padding: 32px 38px 40px;
  border-radius: 48px 20px 20px 20px;
  background: rgba(25, 27, 36, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1119px) {
  .rp-dc-main {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

.rp-detail-poster {
  width: 160px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.rp-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.rp-detail-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.rp-detail-alias {
  margin: 4px 0 14px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--primary-color);
}

.rp-detail-more {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-detail-more .rp-hl-tags {
  margin-top: 0;
}

.rp-detail-toggle {
  display: none;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  font-size: 12.5px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .rp-detail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

.rp-status-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(34, 203, 76, 0.12);
  color: #22cb4c;
  margin: 2px 0 4px;
}

.rp-status-pill.is-ongoing {
  background: rgba(255, 131, 0, 0.14);
  color: #ff9b3d;
}

.rp-de-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.rp-detail-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.rp-detail-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.rp-detail-line.rp-detail-chips {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rp-de-k {
  color: #ffffff;
  font-weight: 600;
}

.rp-de-v a:hover {
  color: var(--primary-color);
}

.rp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rp-meta-chip {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rp-meta-chip:hover {
  border-color: var(--primary-color);
  background: rgba(255, 216, 117, 0.1);
  color: var(--primary-color);
}

.rp-muted-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

.rp-child-top,
.rp-child-box {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-child-box {
  margin-top: 30px;
}

.rp-child-header,
.rp-child-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-outline-top-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rp-outline-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-outline-rank {
  width: 28px;
  font-size: 1.75rem;
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  flex-shrink: 0;
}

.rp-outline-top-item img {
  width: 54px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-mini-info {
  min-width: 0;
  flex: 1;
}

.rp-mini-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-outline-top-item:hover .rp-mini-title {
  color: var(--primary-color);
}

.rp-mini-alias {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-mini-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}

.rp-dm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.rp-dm-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.rp-watch-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe9a8, var(--primary-color));
  color: var(--bg-color);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(255, 216, 117, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rp-watch-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 216, 117, 0.45);
}

.rp-dm-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.rp-dm-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 66px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.rp-dm-icon-btn:hover,
.rp-dm-icon-btn.is-active {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.rp-ro-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, #2d4ea8, #3d63cc);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.rp-ro-rating:hover {
  transform: translateY(-1px);
  border-color: rgba(254, 207, 89, 0.65);
  filter: brightness(1.08);
}

.rp-ro-rating-sm {
  height: 36px;
  width: 100%;
  justify-content: center;
}

/* Accessible Tabs + Anchor-Positioned Tab Underline */
.rp-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  anchor-scope: --active-tab;
}

.rp-tab {
  position: relative;
  padding: 12px 2px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.rp-tab:hover,
.rp-tab[aria-selected="true"] {
  color: var(--primary-color);
}

.rp-tab[aria-selected="true"] {
  anchor-name: --active-tab;
}

/* Draw the underline with a border. DO NOT use a background or box-shadow: forced colors mode removes both, leaving no indicator. */
/* DO NOT use position-area, which can not be transitioned. */
.rp-tabs::after {
  content: "";
  position: absolute;
  position-anchor: --active-tab;
  inset-block-end: -1px;
  inset-inline-start: anchor(left);
  inset-inline-end: anchor(right);
  border-block-end: 2px solid var(--primary-color);
  pointer-events: none;
}

/* MANDATORY: The transition must be wrapped in a prefers-reduced-motion media query to respect user preferences. */
@media (prefers-reduced-motion: no-preference) {
  .rp-tabs::after {
    transition: inset-inline-start 0.22s ease, inset-inline-end 0.22s ease;
  }
}

@supports not (position-anchor: --active-tab) {
  .rp-tabs::after {
    display: none;
  }
  .rp-tab[aria-selected="true"] {
    border-block-end: 2px solid var(--primary-color);
  }
}

/* DO NOT put padding, borders, margins, or backgrounds on the panel element itself. */
.rp-tab-panel {
  display: block;
}

.rp-tab-panel-inner {
  padding-top: 22px;
}

/* Episode Selector & Toolbar */
.rp-ep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rp-ep-toolbar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rp-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.rp-season-caret {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.rp-season-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rp-season-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.rp-season-btn:hover,
.rp-season-btn[aria-expanded="true"] {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255, 216, 117, 0.08);
}

.rp-season-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 170px;
  background: #232736;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-season-option,
.rp-season-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rp-season-option:hover,
.rp-season-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.rp-season-option.is-active,
.rp-season-opt.is-active {
  background: rgba(255, 216, 117, 0.14);
  color: var(--primary-color);
  font-weight: 700;
}

.rp-ep-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.rp-ep-range-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-ep-range-btn:hover {
  border-color: rgba(255, 216, 117, 0.45);
  color: var(--primary-color);
}

.rp-ep-range-btn.is-active,
.rp-ep-range-btn[aria-selected="true"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
}

.rp-v-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.14);
}

.rp-server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-srv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.rp-srv-btn:hover {
  border-color: rgba(254, 207, 89, 0.55);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.rp-srv-btn.is-active {
  border-color: rgba(254, 207, 89, 0.78);
  color: var(--primary-color);
  background: rgba(254, 207, 89, 0.16);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(254, 207, 89, 0.18);
}

.rp-compact-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.rp-compact-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rp-switch-pill {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rp-switch-pill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.rp-compact-toggle[aria-pressed="true"] .rp-switch-pill,
.rp-compact-toggle:has(input:checked) .rp-switch-pill {
  background: rgba(255, 216, 117, 0.35);
  border-color: var(--primary-color);
}

.rp-compact-toggle:has(input:checked) .rp-switch-pill::after {
  transform: translateX(16px);
  background: var(--primary-color);
}

.rp-compact-toggle[aria-pressed="true"] .rp-switch-pill::after {
  transform: translateX(16px);
  background: var(--primary-color);
}

.rp-de-eps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.rp-de-eps.is-compact {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.is-loading-season .rp-ep-panel {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.rp-ep-empty {
  margin: 12px 0 0;
}

@media (max-width: 1360px) {
  .rp-de-eps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .rp-de-eps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .rp-de-eps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rp-ep-item {
  height: 46px;
  padding: 0 10px;
  border-radius: 8px;
  background: #282b3a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rp-ep-item:hover {
  background: #303447;
  color: var(--primary-color);
  border-color: rgba(255, 216, 117, 0.35);
}

.rp-ep-item.is-active {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
  font-weight: 700;
}

.rp-cast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 767px) {
  .rp-cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rp-cast-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-cast-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--primary-color);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* OST & Trailers Grid */
.rp-ost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.rp-ost-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.rp-ost-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0d14;
}

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

.rp-ost-meta {
  padding: 10px 14px;
}

.rp-ost-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.rp-ost-title {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.rp-gallery-heading {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.rp-gallery-heading + .rp-gallery-grid {
  margin-bottom: 18px;
}

/* Movie SEO Intro Article & FAQ Accordion */
.rp-movie-seo-block,
.rp-faq-block {
  margin-top: 22px;
}

.rp-movie-seo-article {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  line-height: 1.72;
}

.rp-movie-seo-article h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #fecf59;
  margin: 18px 0 10px;
  padding-left: 12px;
  border-left: 3px solid #fecf59;
}

.rp-movie-seo-article h2:first-child {
  margin-top: 4px;
}

.rp-movie-seo-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffd97a;
  margin: 14px 0 8px;
}

.rp-movie-seo-article p {
  margin: 0 0 12px;
}

.rp-movie-seo-article ul,
.rp-movie-seo-article ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.rp-movie-seo-article li {
  margin: 4px 0;
}

.rp-movie-seo-article a {
  color: #fecf59;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rp-faq-list {
  display: flex;
  flex-direction: column;
}

.rp-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-faq-item:last-child {
  border-bottom: 0;
}

.rp-faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: color 0.16s ease;
}

.rp-faq-q::-webkit-details-marker {
  display: none;
}

.rp-faq-q:hover,
.rp-faq-item[open] > .rp-faq-q {
  color: #fecf59;
}

.rp-faq-caret {
  display: inline-block;
  color: #fecf59;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.rp-faq-item[open] > .rp-faq-q .rp-faq-caret {
  transform: rotate(90deg);
}

.rp-faq-q-text {
  flex: 1;
  min-width: 0;
}

.rp-faq-a {
  padding: 0 10px 14px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

/* Discuss & Comments Box */
.rp-discuss-box {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.rp-discuss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.rp-seg-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-seg-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.rp-seg-btn.is-active {
  background: var(--primary-color);
  color: var(--bg-color);
}

.rp-cmt-composer {
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-cmt-composer textarea {
  width: 100%;
  min-height: 82px;
  border: 0;
  background: transparent;
  outline: none;
  resize: vertical;
  color: #fff;
}

.rp-cmt-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-spoiler-chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.rp-cmt-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rp-char-cnt {
  font-size: 12px;
  color: var(--text-muted);
}

.rp-cmt-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
  cursor: pointer;
}

.rp-cmt-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-cmt-row {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(40, 43, 58, 0.55);
  border: 1px solid var(--border-color);
}

.rp-cmt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ==============================
   Watch Player Page (movie_watch.html)
   ============================== */
.rp-watch-page {
  padding-bottom: 56px;
}

.rp-wp-bread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.rp-wp-bread-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rp-back-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rp-back-circle:hover {
  background: rgba(254, 207, 89, 0.16);
  border-color: rgba(254, 207, 89, 0.68);
  color: var(--primary-color);
  transform: translateX(-2px);
}

.rp-wp-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-wp-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rp-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.rp-mode-pill:hover,
.rp-mode-pill.is-active {
  background: rgba(254, 207, 89, 0.15);
  border-color: rgba(254, 207, 89, 0.72);
  color: var(--primary-color);
}

#rp-player {
  position: relative;
  z-index: 45;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.rp-player-ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.rp-player-ratio iframe,
.rp-player-ratio video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rp-player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(40, 43, 58, 0.72), #07080d);
}

.rp-player-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 216, 117, 0.16);
  border: 1px solid rgba(255, 216, 117, 0.5);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
}

.rp-player-top-overlay {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 600;
  pointer-events: auto;
}

.rp-player-top-overlay a {
  color: var(--primary-color);
}

/* ArtPlayer v5 Modern Cinema Stage */
.rp-art-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  user-select: none;
}

.rp-embed-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.rp-pip-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(32, 35, 49, 0.85), #090b10);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
}

.rp-pip-restore-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.16);
  border: 1px solid rgba(254, 207, 89, 0.55);
  color: #fecf59;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rp-pip-restore-btn:hover {
  background: #fecf59;
  color: #14161e;
}

body.has-mini-pip .rp-watch-player,
body.is-cinema-mode .rp-watch-player {
  z-index: 150;
}

#rp-player.is-mini-pip {
  z-index: 150;
  overflow: visible;
}

#rp-player.is-mini-pip .rp-pip-placeholder {
  display: flex;
}

.rp-art-stage .art-video-player {
  width: 100% !important;
  height: 100% !important;
  font-family: inherit !important;
  --art-theme: #fecf59;
  --art-control-height: 44px;
}

.rp-art-stage .art-video-player .art-video {
  object-fit: contain !important;
  background: #000;
}

/* Cover poster prevents ugly vertical portrait pillarbox bars */
.rp-art-stage .art-video-player .art-poster {
  background-size: cover !important;
  background-position: center 22% !important;
  filter: brightness(0.76);
}

.rp-art-stage .art-video-player .art-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 10, 16, 0.14) 0%, rgba(8, 10, 16, 0.78) 100%);
  pointer-events: none;
}

.rp-art-stage .art-video-player .art-state {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50%;
  background: rgba(16, 18, 28, 0.78);
  border: 2px solid rgba(254, 207, 89, 0.85);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.rp-art-stage .art-video-player .art-state:hover {
  transform: scale(1.08);
  background: rgba(254, 207, 89, 0.94);
  box-shadow: 0 12px 42px rgba(254, 207, 89, 0.35);
}

.rp-art-stage .art-video-player .art-state:hover svg path {
  fill: #14161e !important;
}

.rp-art-stage .art-video-player .art-settings,
.rp-art-stage .art-video-player .art-contextmenus {
  background: rgba(16, 18, 28, 0.92) !important;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px !important;
}

.rp-art-stage .art-video-player .art-notice-inner {
  background: rgba(14, 16, 24, 0.86) !important;
  border: 1px solid rgba(254, 207, 89, 0.4);
  color: #fecf59 !important;
  font-weight: 700;
  border-radius: 999px !important;
  padding: 6px 14px !important;
}

/* Top header badge synced with ArtPlayer controls */
.rp-art-top {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 14px 18px 28px;
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.82) 0%, rgba(8, 9, 14, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.art-control-show .rp-art-top {
  opacity: 1;
}

.art-control-show .rp-art-eplist-link {
  pointer-events: auto;
}

.rp-art-top-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.rp-art-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.rp-art-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
}

.rp-art-eplist-link {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fecf59;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.rp-art-stage .art-layers > .art-layer-rpTopBar,
.rp-art-stage .art-layers > .art-layer-rpSeekLeft,
.rp-art-stage .art-layers > .art-layer-rpSeekRight,
.rp-art-stage .art-layers > .art-layer-rpSkipFloat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}

/* Left / Right Click Seek Ripple Animations */
.rp-seek-fx {
  position: absolute;
  top: 0;
  bottom: 52px;
  width: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.2s;
  color: #fff;
}

.rp-seek-fx-left {
  left: 0;
  border-radius: 0 55% 55% 0;
  background: radial-gradient(circle at 28% 50%, rgba(254, 207, 89, 0.28) 0%, rgba(254, 207, 89, 0.08) 58%, rgba(254, 207, 89, 0) 100%);
}

.rp-seek-fx-right {
  right: 0;
  border-radius: 55% 0 0 55%;
  background: radial-gradient(circle at 72% 50%, rgba(254, 207, 89, 0.28) 0%, rgba(254, 207, 89, 0.08) 58%, rgba(254, 207, 89, 0) 100%);
}

.rp-seek-fx.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.rp-seek-fx-arrows {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 2px;
  color: #fecf59;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.rp-seek-fx-label {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.84);
  border: 1px solid rgba(254, 207, 89, 0.45);
  color: #fecf59;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.rp-art-seek-pill {
  font-size: 12px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0 7px !important;
}

.rp-art-seek-pill:hover {
  color: #fecf59 !important;
}

.rp-art-skip-float {
  position: absolute;
  right: 18px;
  bottom: 70px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(16, 18, 26, 0.88);
  border: 1px solid rgba(254, 207, 89, 0.55);
  color: #fecf59;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.rp-art-upnext {
  position: absolute;
  right: 18px;
  bottom: 70px;
  z-index: 65;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(14, 16, 24, 0.94);
  border: 1px solid rgba(254, 207, 89, 0.42);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-art-upnext-meta {
  font-size: 12.5px;
  color: #fff;
}

.rp-art-upnext-actions {
  display: flex;
  gap: 8px;
}

.rp-art-upnext-go {
  padding: 6px 12px;
  border-radius: 7px;
  background: linear-gradient(90deg, #fecf59, #ff9e2c);
  color: #14161e;
  font-size: 12px;
  font-weight: 800;
}

.rp-art-upnext-cancel {
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.rp-art-error {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(8, 9, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.rp-art-error-box {
  max-width: 440px;
}

.rp-art-error-box h3 {
  margin: 0 0 8px;
  color: #fecf59;
  font-size: 16px;
}

.rp-art-error-box p {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.rp-art-error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-art-err-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rp-art-err-btn.is-primary {
  background: #fecf59;
  border-color: #fecf59;
  color: #14161e;
}

/* Scroll-Follow Mini-PiP Floating Mode */
@keyframes rpPipIn {
  from {
    opacity: 0.72;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rp-art-stage.is-floating-pip,
.rp-embed-stage.is-floating-pip {
  position: fixed;
  inset: auto 24px 24px auto;
  width: 384px;
  height: 216px;
  z-index: 150;
  border-radius: 12px;
  border: 1.5px solid rgba(254, 207, 89, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
  animation: rpPipIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-mini-bar {
  display: none;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 6px 8px 18px;
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0) 100%);
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: grab;
  pointer-events: auto;
}

.rp-mini-bar:active {
  cursor: grabbing;
}

.rp-art-stage.is-floating-pip .rp-mini-bar,
.rp-embed-stage.is-floating-pip .rp-mini-bar {
  display: flex;
}

.rp-mini-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.rp-mini-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.rp-mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.rp-mini-btn:hover {
  background: #fecf59;
  color: #14161e;
}

.rp-art-stage.is-floating-pip .rp-art-top,
.rp-art-stage.is-floating-pip .rp-art-skip-float,
.rp-art-stage.is-floating-pip .rp-art-seek-pill,
.rp-art-stage.is-floating-pip .art-control-aspectRatio,
.rp-art-stage.is-floating-pip .art-control-fullscreenWeb,
.rp-art-stage.is-floating-pip .art-control-setting,
.rp-art-stage.is-floating-pip .art-control-screenshot,
.rp-embed-stage.is-floating-pip .rp-player-top-overlay {
  display: none !important;
}

.rp-art-stage.is-floating-pip .art-video-player .art-state {
  width: 46px !important;
  height: 46px !important;
}

.rp-art-stage.is-floating-pip .art-video-player {
  --art-control-height: 36px;
}

.rp-art-stage.is-floating-pip .rp-seek-fx-arrows {
  font-size: 18px;
}

.rp-art-stage.is-floating-pip .rp-seek-fx-label {
  font-size: 12px;
  padding: 2px 8px;
}

body.has-mini-pip .rp-totop {
  inset-block-end: 254px;
}

body.has-mini-pip .rp-toast {
  inset-block-end: 308px;
}

@media (max-width: 639px) {
  .rp-art-eplist-link,
  .rp-art-seek-pill {
    display: none !important;
  }
  .rp-art-stage .art-video-player .art-state {
    width: 54px !important;
    height: 54px !important;
  }
  .rp-art-stage.is-floating-pip,
  .rp-embed-stage.is-floating-pip {
    inset: auto 12px 16px auto;
    width: min(268px, calc(100vw - 24px));
    height: auto;
    aspect-ratio: 16 / 9;
  }
  body.has-mini-pip .rp-totop {
    inset-block-end: 184px;
  }
  body.has-mini-pip .rp-toast {
    inset-block-end: 238px;
  }
}

.rp-player-control {
  min-height: 64px;
  padding: 10px 18px;
  background: var(--bg-toolbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-pc-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.rp-pc-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-pc-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.rp-pc-item:hover,
.rp-pc-item.is-active {
  border-color: rgba(254, 207, 89, 0.72);
  background: rgba(254, 207, 89, 0.08);
  color: var(--primary-color);
}

.rp-pc-gold {
  background: rgba(254, 207, 89, 0.12);
  border-color: rgba(254, 207, 89, 0.55);
  color: var(--primary-color);
}

.rp-pc-gold:hover {
  background: #fecf59;
  border-color: #fecf59;
  color: #14161e;
}

.rp-toggle-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 800;
}

.rp-pc-item.is-on .rp-toggle-badge {
  background: var(--primary-color);
  color: var(--bg-color);
}

.rp-watch-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: 28px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1119px) {
  .rp-watch-container {
    grid-template-columns: 1fr;
  }
}

.rp-wc-main,
.rp-wc-side {
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  min-width: 0;
}

.rp-wm-info {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.rp-wm-thumb {
  width: 100px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.rp-wm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-wm-meta {
  min-width: 0;
  flex: 1;
}

.rp-wm-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
}

.rp-wm-alias {
  margin: 4px 0 8px;
  color: var(--primary-color);
  font-size: 13.5px;
}

.rp-wm-episodes {
  margin-top: 20px;
}

.rp-wc-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rp-ws-rate {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-ws-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rp-ws-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.rp-ws-action-btn:hover {
  border-color: rgba(254, 207, 89, 0.6);
  color: var(--primary-color);
  background: rgba(254, 207, 89, 0.1);
}

.rp-ws-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid rgba(254, 207, 89, 0.3);
  background: linear-gradient(135deg, rgba(48, 72, 148, 0.34) 0%, rgba(254, 207, 89, 0.12) 100%);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.rp-ws-score-card:hover {
  border-color: rgba(254, 207, 89, 0.72);
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.rp-ws-score-left {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
}

.rp-ws-score-star {
  color: var(--primary-color);
  font-size: 15px;
}

.rp-ws-score-left strong {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.rp-ws-score-max {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.rp-ws-score-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
}

.rp-ws-actors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-ws-actors .rp-detail-line {
  line-height: 1.5;
  gap: 6px;
}

.rp-ws-actors .rp-de-k {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  font-weight: 600;
}

.rp-ws-actors .rp-de-v {
  color: #ffffff;
  font-weight: 600;
}

.rp-ws-actors,
.rp-ws-top {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.rp-ws-rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rp-ws-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-ws-rec-item img {
  width: 52px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-focus-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 40;
}

body.is-cinema-mode .rp-header {
  z-index: 30;
}

body.is-cinema-mode #rp-player {
  z-index: 90;
}

/* ==============================
   Dialogs (<dialog>), Scroll Entry & Utility
   ============================== */
.rp-dialog {
  width: min(500px, calc(100vw - 24px));
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
  contain: layout style paint;
}

.rp-dialog::backdrop {
  background: rgba(6, 7, 12, 0.78);
  backdrop-filter: blur(4px);
}

.rp-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rp-dialog-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.rp-chart-dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rp-rate-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.rp-rate-score {
  width: auto;
  min-width: 58px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.rp-rate-score:hover,
.rp-rate-score.is-active {
  background: var(--primary-color);
  color: var(--bg-color);
  border-color: var(--primary-color);
}

.rp-empty-box {
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rp-detail-panel {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-static-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 0 36px;
}

.rp-static-wrap.is-narrow {
  max-width: 800px;
}

.rp-static-wrap > .rp-page-title {
  margin: 0 0 22px;
}

.rp-page-title.is-centered {
  text-align: center;
}

.rp-static-body {
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
}

.rp-static-body p {
  margin: 0 0 14px;
}

.rp-static-body p:last-child {
  margin-bottom: 0;
}

.rp-static-body h3,
.rp-faq-heading {
  margin: 26px 0 10px;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.rp-static-body .rp-faq-heading {
  color: #fecf59;
  scroll-margin-top: 96px;
}

.rp-static-body ul:not(.rp-question-box),
.rp-static-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.rp-static-body li {
  margin-bottom: 8px;
}

.rp-static-body a {
  color: #fecf59;
  text-decoration: none;
}

.rp-static-body a:hover {
  text-decoration: underline;
}

.rp-question-box {
  margin: 0 0 28px;
  padding: 20px 24px;
  max-width: 620px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  list-style: none;
}

.rp-question-box li + li {
  margin-top: 8px;
}

.rp-question-box a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14.5px;
}

.rp-question-box a:hover {
  color: #fecf59;
}

.rp-social-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 20px;
}

.rp-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: #11131a !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rp-social-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.rp-social-pill img {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.rp-ceo-hero {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  padding: 6px 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-ceo-avatar-wrap {
  flex-shrink: 0;
}

.rp-ceo-avatar {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 24%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.rp-ceo-name {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.rp-ceo-role {
  margin: 0 0 14px;
  color: #4fc3f7;
  font-size: 15px;
  font-weight: 600;
}

.rp-ceo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-ceo-pill {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none !important;
}

.rp-ceo-pill.is-blue { background: rgba(79, 195, 247, 0.15); border-color: rgba(79, 195, 247, 0.3); color: #4fc3f7 !important; }
.rp-ceo-pill.is-green { background: rgba(102, 187, 106, 0.15); border-color: rgba(102, 187, 106, 0.3); color: #66bb6a !important; }
.rp-ceo-pill.is-orange { background: rgba(255, 167, 38, 0.15); border-color: rgba(255, 167, 38, 0.3); color: #ffa726 !important; }
.rp-ceo-pill.is-cyan { background: rgba(38, 198, 218, 0.15); border-color: rgba(38, 198, 218, 0.3); color: #26c6da !important; }
.rp-ceo-pill.is-red { background: rgba(239, 83, 80, 0.15); border-color: rgba(239, 83, 80, 0.3); color: #ef5350 !important; }
.rp-ceo-pill.is-purple { background: rgba(171, 71, 188, 0.15); border-color: rgba(171, 71, 188, 0.3); color: #ab47bc !important; }
.rp-ceo-pill.is-gold { background: rgba(254, 207, 89, 0.15); border-color: rgba(254, 207, 89, 0.35); color: #fecf59 !important; }

.rp-ceo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.rp-ceo-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rp-ceo-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.rp-ceo-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.rp-ceo-card.is-blue { background: rgba(79, 195, 247, 0.06); border-color: rgba(79, 195, 247, 0.18); }
.rp-ceo-card.is-blue h4 { color: #4fc3f7; }
.rp-ceo-card.is-green { background: rgba(102, 187, 106, 0.06); border-color: rgba(102, 187, 106, 0.18); }
.rp-ceo-card.is-green h4 { color: #66bb6a; }
.rp-ceo-card.is-orange { background: rgba(255, 167, 38, 0.06); border-color: rgba(255, 167, 38, 0.18); }
.rp-ceo-card.is-orange h4 { color: #ffa726; }
.rp-ceo-card.is-cyan { background: rgba(38, 198, 218, 0.06); border-color: rgba(38, 198, 218, 0.18); }
.rp-ceo-card.is-cyan h4 { color: #26c6da; }
.rp-ceo-card.is-red { background: rgba(239, 83, 80, 0.06); border-color: rgba(239, 83, 80, 0.18); }
.rp-ceo-card.is-red h4 { color: #ef5350; }
.rp-ceo-card.is-purple { background: rgba(171, 71, 188, 0.06); border-color: rgba(171, 71, 188, 0.18); }
.rp-ceo-card.is-purple h4 { color: #ab47bc; }

.rp-ceo-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  margin: 14px 0 22px;
  font-size: 14px;
}

.rp-ceo-contact p {
  margin: 0 0 8px;
}

.rp-ceo-contact p:last-child {
  margin-bottom: 0;
}

.rp-cta-wrap {
  text-align: center;
  margin: 26px 0 6px;
}

.rp-cta-btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fecf59 0%, #f59e0b 100%);
  color: #14161e !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(254, 207, 89, 0.25);
}

@media (max-width: 639px) {
  .rp-static-body {
    padding: 20px 18px;
  }

  .rp-ceo-contact {
    grid-template-columns: 1fr;
  }

  .rp-ceo-avatar {
    width: 148px;
    height: 148px;
  }
}

.rp-totop {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(25, 27, 36, 0.92);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.rp-totop:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.rp-toast {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 74px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
}

/* Scroll-Driven Section Reveal (View Timeline) */
@keyframes rpFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The (animation-range: entry) check MUST be included here, to filter out browsers with only partial support. */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .rp-reveal {
      animation: rpFadeSlideUp 0.55s ease both;
      /* Declared after animation shorthand to prevent resetting them */
      animation-timeline: view();
      animation-range: entry 0% entry 24%;
    }
  }
}

/* ==============================
   Centered SEO Intro Card (Above Footer)
   ============================== */
.rp-seo-section {
  padding-top: 8px;
}

.rp-seo-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.rp-seo-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #fecf59;
}

.rp-seo-text {
  margin: 0 0 11px;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
}

.rp-seo-text strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.rp-seo-header {
  margin-bottom: 18px;
}

.rp-seo-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
}

.rp-seo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.14);
  border: 1px solid rgba(254, 207, 89, 0.35);
  color: #fecf59;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rp-seo-lead {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.rp-seo-tldr {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(254, 207, 89, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(254, 207, 89, 0.24);
}

.rp-seo-tldr-head {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fecf59;
  margin-bottom: 10px;
}

.rp-seo-tldr-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.rp-seo-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-seo-toc-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 4px;
}

.rp-seo-toc a {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-seo-toc a:hover {
  background: rgba(254, 207, 89, 0.14);
  border-color: rgba(254, 207, 89, 0.32);
  color: #fecf59;
}

.rp-seo-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: 84px;
}

.rp-seo-h3 {
  margin: 0 0 12px;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.rp-seo-inline-link {
  color: #fecf59;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rp-seo-figure {
  margin: 18px 0 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-seo-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rp-seo-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-seo-gallery-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.rp-seo-gallery-2 .rp-seo-figure {
  margin-top: 0;
}

.rp-seo-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.rp-seo-card {
  padding: 15px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-seo-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.rp-seo-card h4 a {
  color: #fecf59;
}

.rp-seo-card h4 a:hover {
  text-decoration: underline;
}

.rp-seo-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.rp-seo-card p a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rp-seo-card p a:hover {
  color: #fecf59;
}

.rp-seo-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.rp-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 580px;
}

.rp-seo-table th,
.rp-seo-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  line-height: 1.55;
}

.rp-seo-table thead th {
  background: rgba(254, 207, 89, 0.09);
  color: #fecf59;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rp-seo-table tbody tr:last-child td {
  border-bottom: 0;
}

.rp-seo-table td {
  color: rgba(255, 255, 255, 0.78);
}

.rp-seo-table td a {
  color: #fecf59;
}

.rp-seo-bullets,
.rp-seo-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
}

.rp-seo-bullets a,
.rp-seo-steps a {
  color: #fecf59;
  font-weight: 600;
}

.rp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rp-faq-item {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.rp-faq-item[open] {
  border-color: rgba(254, 207, 89, 0.28);
  background: rgba(254, 207, 89, 0.04);
}

.rp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-faq-item summary::-webkit-details-marker {
  display: none;
}

.rp-faq-item summary::after {
  content: "+";
  color: #fecf59;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.rp-faq-item[open] summary::after {
  content: "−";
}

.rp-faq-ans {
  padding: 0 16px 14px;
  font-size: 13px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
}

.rp-faq-ans p {
  margin: 0;
}

.rp-faq-ans a {
  color: #fecf59;
  font-weight: 600;
}

@media (max-width: 767px) {
  .rp-seo-gallery-2,
  .rp-seo-cards {
    grid-template-columns: 1fr;
  }
}

.rp-seo-collapsible {
  position: relative;
}

.rp-seo-collapsible.is-collapsed {
  max-height: 430px;
  overflow: hidden;
}

.rp-seo-collapsible.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(28, 30, 41, 0) 0%, rgba(28, 30, 41, 0.88) 65%, #1d202b 100%);
  pointer-events: none;
}

.rp-seo-toggle-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.rp-seo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.12);
  border: 1px solid rgba(254, 207, 89, 0.36);
  color: #fecf59;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.rp-seo-toggle-btn:hover {
  background: rgba(254, 207, 89, 0.2);
  border-color: #fecf59;
  box-shadow: 0 6px 20px rgba(254, 207, 89, 0.16);
  transform: translateY(-1px);
}

.rp-seo-toggle-ic {
  transition: transform 0.2s ease;
}

.rp-seo-toggle-btn[aria-expanded="true"] .rp-seo-toggle-ic {
  transform: rotate(180deg);
}

.rp-brand-spotlight {
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(254, 207, 89, 0.05);
  border: 1px solid rgba(254, 207, 89, 0.18);
}

.rp-brand-spotlight-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #fecf59;
}

.rp-brand-spotlight-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.rp-seo-links {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(254, 207, 89, 0.04);
  border: 1px dashed rgba(254, 207, 89, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
}

.rp-seo-links a {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fecf59;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.rp-seo-links a:hover {
  opacity: 0.88;
  text-decoration: underline;
}

.rp-seo-links a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rp-seo-dot {
  color: rgba(254, 207, 89, 0.4);
  font-size: 13px;
}

@media (max-width: 767px) {
  .rp-seo-box {
    padding: 20px 18px;
  }

  .rp-seo-title {
    font-size: 15px;
  }
}

/* ==============================
   4-Band Dark Footer (Shared on / & /rophim)
   ============================== */
.rp-footer {
  margin-top: 64px;
  padding: 42px 0 28px;
  background: linear-gradient(180deg, rgba(16, 18, 26, 0.35) 0%, #10121a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-footer-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.rp-footer-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 32px;
  background: #78140f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.rp-footer-explore {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-footer-explore a {
  display: inline-flex;
  align-items: center;
  padding: 5.5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rp-footer-explore a:hover {
  background: rgba(254, 207, 89, 0.14);
  border-color: rgba(254, 207, 89, 0.28);
  color: var(--primary-color);
}

.rp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

@media (max-width: 1023px) {
  .rp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 639px) {
  .rp-footer-grid {
    grid-template-columns: 1fr;
  }
}

.rp-footer-brand p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
  max-width: 340px;
}

.rp-gold-brand {
  color: #fecf59;
}

.rp-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rp-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rp-social-btn img {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.rp-social-btn:hover {
  border-color: var(--primary-color);
  background: rgba(254, 207, 89, 0.12);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.rp-footer-heading {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.rp-footer-heading::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #fecf59;
}

.rp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.rp-footer-links a:hover {
  color: var(--primary-color);
}

.rp-footer-active-pill {
  width: 100%;
  max-width: 290px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 12px;
  margin-bottom: 6px;
  border-radius: 9px;
  background-image: linear-gradient(90deg, rgba(254, 207, 89, 0.14) 0%, rgba(254, 207, 89, 0.03) 100%);
  border: 1px solid rgba(254, 207, 89, 0.28);
  color: #fecf59;
  font-size: 13px;
}

.rp-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fecf59;
  box-shadow: 0 0 8px rgba(254, 207, 89, 0.85);
  flex-shrink: 0;
}

.rp-pill-badge {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #fecf59, #ff9e2c);
  color: #14161e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rp-footer-bullet-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.rp-footer-bullet-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.rp-footer-bullet-link:hover::before {
  background: #fecf59;
}

.rp-footer-support-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.rp-footer-support-link span:first-child {
  color: rgba(255, 255, 255, 0.42);
  font-size: 14px;
  line-height: 1;
}

.rp-footer-support-link:hover span:first-child {
  color: #fecf59;
}

.rp-footer-subhead {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  line-height: 1.4;
}

.rp-footer-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rp-footer-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.rp-footer-info-row a {
  color: inherit;
  transition: color 0.15s ease;
}

.rp-footer-info-row a:hover {
  color: var(--primary-color);
}

.rp-info-ic {
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border-radius: 8px;
  background: rgba(254, 207, 89, 0.08);
  color: #fecf59;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rp-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1960px) {
  .rp-footer-bottom {
    padding-right: 52px;
  }
}

.rp-copy-left,
.rp-copy-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-footer-dot {
  color: rgba(255, 255, 255, 0.35);
}

.rp-copy-pill {
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(254, 207, 89, 0.3);
  background: rgba(254, 207, 89, 0.08);
  color: #fecf59;
  font-weight: 700;
}

.rp-copy-right strong {
  color: #fecf59;
  font-size: 12px;
  font-weight: 600;
}

.rp-copy-right a {
  color: #fecf59;
  font-weight: 600;
}

.rp-copy-right a:hover {
  text-decoration: underline;
}

/* ==============================
   Gallery, Actors, Schedule, Topic Hero & Library Parity
   ============================== */

/* Gallery Tab Grid */
.rp-gallery-heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}

.rp-gallery-grid + .rp-gallery-heading {
  margin-top: 20px;
}

.rp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1199px) {
  .rp-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .rp-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 479px) {
  .rp-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.rp-gallery-grid > a,
.rp-gallery-grid > figure,
.rp-gallery-item {
  position: relative;
  display: block;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a2e;
  aspect-ratio: 16 / 9;
}

.rp-gallery-grid.is-posters > a,
.rp-gallery-grid.is-posters > figure,
.rp-gallery-grid.is-posters .rp-gallery-item {
  aspect-ratio: 2 / 3;
}

.rp-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rp-gallery-grid > a:hover img,
.rp-gallery-grid > figure:hover img,
.rp-gallery-item:hover img,
.rp-gallery-grid > img:hover {
  transform: scale(1.05);
}

/* Actor Directory & Actor Detail */
.rp-actor-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px 14px;
}

@media (max-width: 1439px) {
  .rp-actor-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .rp-actor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .rp-actor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rp-actor-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-actor-card:hover {
  transform: translateY(-3px);
}

.rp-actor-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-actor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rp-actor-card:hover .rp-actor-thumb {
  border-color: rgba(255, 216, 117, 0.5);
}

.rp-actor-card:hover .rp-actor-thumb img {
  transform: scale(1.05);
}

.rp-actor-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-actor-card:hover .rp-actor-name {
  color: var(--primary-color);
}

.rp-actor-count {
  font-size: 12px;
  color: var(--text-muted);
}

.rp-actor-profile {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 959px) {
  .rp-actor-profile {
    grid-template-columns: 1fr;
  }
}

.rp-actor-side {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
}

.rp-actor-main {
  min-width: 0;
}

/* Schedule 12-day Timeline */
.rp-sched-days {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  scrollbar-width: none;
}

.rp-sched-days::-webkit-scrollbar {
  display: none;
}

.rp-sched-day {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rp-sched-day:hover {
  border-color: rgba(255, 216, 117, 0.45);
  color: var(--primary-color);
}

.rp-sched-day.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
}

.rp-sched-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1023px) {
  .rp-sched-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .rp-sched-list {
    grid-template-columns: 1fr;
  }
}

.rp-sched-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-color);
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.rp-sched-item:hover {
  border-color: rgba(255, 216, 117, 0.4);
  background: var(--bg-3);
  transform: translateY(-2px);
}

.rp-sched-thumb {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-deep);
}

.rp-sched-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-sched-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-sched-time {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 216, 117, 0.14);
  color: var(--primary-color);
  font-size: 11.5px;
  font-weight: 700;
}

/* Genre Page Topic Banner */
.rp-topic-hero {
  padding: 26px 30px;
  margin-bottom: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--topic-accent, #5e72e4) 24%, transparent), transparent 65%), var(--bg-2);
}

@media (max-width: 639px) {
  .rp-topic-hero {
    padding: 20px 18px;
  }
}

/* Library Tabs, Progress Bar & Item Remove */
.rp-lib-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.rp-lib-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rp-lib-tab:hover {
  border-color: rgba(255, 216, 117, 0.45);
  color: var(--primary-color);
}

.rp-lib-tab.is-active,
.rp-lib-tab[aria-current="page"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 700;
}

.rp-lib-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 17, 26, 0.86);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rp-card:is(:hover, :focus-within) .rp-lib-remove {
  opacity: 1;
}

@media (hover: none) {
  .rp-lib-remove {
    opacity: 0.92;
  }
}

.rp-lib-remove:hover {
  background: #e53935;
  border-color: #e53935;
  color: #ffffff;
}

.rp-watch-progress {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.rp-watch-progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 0 2px 2px 0;
}

/* Below-the-fold layout/paint skipping */
.rp-fluid-gap > .rp-home-section:nth-child(n+4) {
  content-visibility: auto;
  contain-intrinsic-size: auto 28rem;
}

.rp-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 26rem;
}

/* ==============================
   2-Column Sidebar Layout (Static Pages, Genres & Catalogs)
   ============================== */
.rp-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 26px;
  align-items: start;
}

.rp-layout-main {
  min-width: 0;
}

.rp-page-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.rp-sidebar-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.rp-sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.rp-sidebar-title svg {
  color: #fecf59;
  flex-shrink: 0;
}

.rp-sidebar-more {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.rp-sidebar-more:hover {
  color: #fecf59;
}

.rp-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rp-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.rp-sidebar-link.is-active,
.rp-sidebar-link[aria-current="page"] {
  background: rgba(254, 207, 89, 0.12);
  border-color: rgba(254, 207, 89, 0.42);
  color: #fecf59;
  font-weight: 700;
}

.rp-sidebar-chevron {
  font-size: 15px;
  line-height: 1;
  opacity: 0.65;
}

.rp-sidebar-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rp-sidebar-cat-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-sidebar-cat-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 216, 117, 0.4);
  color: #fecf59;
}

.rp-sidebar-cat-item.is-active {
  background: #fecf59;
  border-color: #fecf59;
  color: #14161e;
  font-weight: 700;
}

.rp-sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rp-sidebar-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rp-sidebar-chip:hover {
  border-color: rgba(254, 207, 89, 0.45);
  background: rgba(254, 207, 89, 0.1);
  color: #fecf59;
}

.rp-sidebar-chip.is-active {
  background: #fecf59;
  border-color: #fecf59;
  color: #14161e;
  font-weight: 700;
}

.rp-sidebar-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.rp-sidebar-top-list .rp-outline-top-item img {
  width: 50px;
  height: 74px;
}

.rp-outline-rank.is-top3 {
  color: #fecf59;
  opacity: 0.92;
}

.rp-outline-top-item .rp-mini-title {
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: none;
}

.rp-layout-with-sidebar .rp-static-wrap,
.rp-layout-with-sidebar .rp-static-wrap.is-narrow {
  max-width: none;
  margin: 0;
  padding: 0 0 28px;
}

.rp-layout-with-sidebar .rp-page-title.is-centered {
  text-align: left;
}

.rp-layout-with-sidebar .rp-movie-grid:not(.rp-movie-grid-compact) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
}

.rp-layout-with-sidebar .rp-topics-hub-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1359px) {
  .rp-layout-with-sidebar .rp-movie-grid:not(.rp-movie-grid-compact) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .rp-layout-with-sidebar .rp-topics-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1159px) {
  .rp-layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .rp-page-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .rp-layout-with-sidebar .rp-movie-grid:not(.rp-movie-grid-compact) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .rp-layout-with-sidebar .rp-topics-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 479px) {
  .rp-layout-with-sidebar .rp-movie-grid:not(.rp-movie-grid-compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}


/* Single Post & Blog Archive (.rp-post-*, .rp-article-body) */
.rp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.rp-breadcrumb a:hover {
  color: var(--rp-gold);
}

.rp-post-header {
  margin-bottom: 18px;
}

.rp-post-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.32;
  color: #fff;
}

.rp-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.rp-post-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(254, 207, 89, 0.14);
  border: 1px solid rgba(254, 207, 89, 0.3);
  color: var(--rp-gold);
  font-size: 12px;
  font-weight: 600;
}

.rp-post-card {
  padding: 26px 28px;
}

.rp-article-body {
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.rp-article-body h2 {
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--rp-gold);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.38;
  color: #fff;
}

.rp-article-body h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--rp-gold);
}

.rp-article-body p {
  margin: 0 0 14px;
}

.rp-article-body ul,
.rp-article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.rp-article-body li {
  margin-bottom: 6px;
}

.rp-article-body a {
  color: var(--rp-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rp-article-body a:hover {
  color: #fff;
}

.rp-article-body figure.wp-block-image {
  margin: 20px auto;
  background: #14161e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}

.rp-article-body figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

.rp-article-body figure.wp-block-image figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-article-body figure.wp-block-table {
  margin: 18px 0;
  overflow-x: auto;
}

.rp-article-body table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.rp-article-body th,
.rp-article-body td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

.rp-article-body th {
  background: rgba(254, 207, 89, 0.1);
  color: var(--rp-gold);
  font-weight: 700;
}

.rp-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-post-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rp-gold);
}

.rp-post-tag-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.rp-side-search {
  display: flex;
  gap: 8px;
}

.rp-side-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13.5px;
}

.rp-side-search button {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--rp-gold-grad);
  color: #191b24;
  font-weight: 700;
  font-size: 13px;
}

.rp-sidebar-post-list img {
  width: 84px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.rp-post-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.rp-post-cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rp-post-cat-tab:hover,
.rp-post-cat-tab.is-active {
  background: rgba(254, 207, 89, 0.16);
  border-color: rgba(254, 207, 89, 0.5);
  color: var(--rp-gold);
}

.rp-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rp-post-tile {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rp-post-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 207, 89, 0.4);
}

.rp-post-tile-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #14161e;
  overflow: hidden;
}

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

.rp-post-tile-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-post-tile-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.rp-post-tile-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.rp-post-tile-title a:hover {
  color: var(--rp-gold);
}

.rp-post-tile-excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 767px) {
  .rp-post-card {
    padding: 18px 16px;
  }
  .rp-post-grid {
    grid-template-columns: 1fr;
  }
}
