:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --line: #dfe6f2;
  --text: #162035;
  --muted: #66748f;
  --brand: #0ea5a4;
  --brand-2: #14b8a6;
  --danger: #e2557f;
  --radius: 14px;
}

* { box-sizing: border-box; }

body.rf-body {
  margin: 0;
  background:
    radial-gradient(1000px 600px at 100% -10%, #dbf6f0 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 0%, #e5f0ff 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.rf-wrap { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.rf-main { padding: 24px 0 30px; display: flex; flex-direction: column; gap: 22px; }

.rf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.rf-header-top { min-height: 64px; display: flex; align-items: center; justify-content: space-between; }
.rf-brand { display: flex; align-items: center; gap: 10px; }
.rf-hd-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(20,184,166,.28);
}
.rf-logo-main, .rf-logo-footer {
  line-height: 1;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #101b30;
}
.rf-logo-main { font-size: 24px; }
.rf-logo-footer { font-size: 28px; }
.rf-logo-main span, .rf-logo-footer span { color: var(--brand); }
.rf-slogan { font-size: 12px; color: var(--muted); }

.rf-main-nav { display: flex; gap: 20px; font-size: 14px; }
.rf-main-nav a, .rf-sub-nav a, .rf-footer a { color: #334155; text-decoration: none; }
.rf-main-nav a:hover, .rf-sub-nav a:hover, .rf-footer a:hover { color: var(--brand); }
.rf-user-nav { display: flex; align-items: center; gap: 12px; }
.rf-search-form { display: flex; align-items: center; gap: 8px; }
.rf-search-input {
  width: 210px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  padding: 0 12px;
}
.rf-search-btn, .rf-auth-btn {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rf-search-btn:hover, .rf-auth-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14,165,164,.12);
}
.rf-auth-btn svg, .rf-search-btn svg { width: 16px; height: 16px; display: block; }
.rf-header-sub { background: #fff; border-top: 1px solid #eef2f9; }
.rf-sub-nav { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; padding: 10px 0; color: #64748b; font-size: 12px; }

.rf-box,
.rf-meta-box,
.rf-player-section,
.rf-review-form,
.rf-comment,
.rf-pagination,
.rf-react-inline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rf-box { padding: 18px; }
.rf-box-title { margin: 0 0 14px; color: #0d9488; font-size: 17px; font-weight: 700; }
.rf-scroll { overflow-x: auto; }
.rf-row { display: flex; gap: 14px; padding-bottom: 4px; }

.rf-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.rf-mini-card, .rf-watch-card { text-decoration: none; color: #0f172a; display: block; }
.rf-mini-card { width: 114px; }
.rf-mini-card img { width: 114px; height: 150px; border-radius: 10px; object-fit: cover; margin-bottom: 8px; }
.rf-mini-card h4 { margin: 0 0 4px; font-size: 13px; line-height: 1.35; }
.rf-mini-card div { font-size: 12px; color: var(--muted); }

.rf-grid-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border-radius: 14px;
  border: 1px solid #d9e3f1;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 10px;
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
  transition: .2s ease;
}
.rf-grid-card:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(14,165,164,.12); }
.rf-grid-poster { display: block; position: relative; border-radius: 11px; overflow: hidden; margin-bottom: 10px; }
.rf-grid-poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.38) 100%);
}
.rf-grid-card img { width: 100%; height: 232px; object-fit: cover; border-radius: 11px; display: block; }
.rf-grid-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.35; min-height: 38px; color: #111827; }
.rf-grid-card div { font-size: 12px; color: var(--muted); }

.rf-pagination { margin-top: 16px; padding: 12px; }
.rf-pagination .navigation { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.rf-pagination .navigation a,
.rf-pagination .navigation span {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.rf-pagination .navigation a:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,164,.12); }
.rf-pagination .navigation span:not([class]) { background: #eefdfa; border-color: var(--brand); color: #0f766e; }

.rf-breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.rf-breadcrumbs a { color: #0f766e; text-decoration: none; }
.rf-h1 { margin: 0 0 16px; font-size: 30px; line-height: 1.2; font-weight: 800; color: #0f172a; }

.rf-full-top { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.rf-poster {
  width: 250px;
  height: 375px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  padding: 8px;
  border: 2px solid #19a98a;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(25,169,138,.08);
  transition: .25s ease;
}
.rf-poster-col:hover .rf-poster {
  border-color: #12be98;
  box-shadow: 0 0 0 1px rgba(18,190,152,.22), 0 0 16px rgba(18,190,152,.2);
}

.rf-like-dislike { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; }
.rf-like-dislike > * { flex: 1 1 0; min-width: 0; }
.rf-like-dislike a { display: block; text-decoration: none; }
.rf-like-btn, .rf-dislike-btn {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 700;
}
.rf-like-btn { color: #0f766e; background: #ecfdf5; border-color: #a7f3d0; }
.rf-dislike-btn { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.rf-like-btn:hover, .rf-dislike-btn:hover { box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.rf-like-btn svg, .rf-dislike-btn svg { width: 16px; height: 16px; }
.rf-like-btn span, .rf-dislike-btn span { line-height: 1; }

.rf-info-col { display: flex; flex-direction: column; gap: 12px; }
.rf-meta-box {
  padding: 16px;
  padding-top: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  position: relative;
}
.rf-meta-box div { font-size: 16px; }
.rf-meta-box span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.rf-meta-box b { font-weight: 400; color: #0f172a; }
.rf-meta-box .wide { grid-column: 1/-1; }

.rf-ratings {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rf-ratings > div {
  border-radius: 10px;
  padding: 7px 11px;
  border: 1px solid #19a98a;
  background: #fff;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(25,169,138,.08);
}

.rf-box h2, .rf-section-h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; font-weight: 800; color: #0f172a; }
.rf-desc { font-size: 16px; line-height: 1.75; color: #334155; max-height: 130px; overflow: hidden; }
.rf-desc.rf-open { max-height: none; }
.rf-readmore { margin-top: 12px; background: transparent; border: 0; color: #0f766e; font-size: 14px; cursor: pointer; }
.rf-readmore:hover { color: #0d9488; text-decoration: underline; }

.rf-player-section { padding: 14px; }
.rf-title-2 { margin: 0 0 12px; font-size: 17px; line-height: 1.24; font-weight: 800; color: #0f172a; }
.rf-player-wrap { margin-bottom: 0; }
.rf-tabs { display: flex; flex-direction: column; gap: 10px; }
.rf-tabs-head { display: flex; gap: 10px; flex-wrap: wrap; }
.rf-tabs-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rf-tabs-btn:hover { border-color: var(--brand); color: var(--brand); }
.rf-tabs-btn.is-active { background: #eefdfa; border-color: var(--brand); color: #0f766e; }
.rf-tab-pane { display: none; }
.rf-tab-pane.is-active { display: block; }
.rf-player-box { padding: 0; background: transparent; border: 0; }
.rf-player { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #000; }

.rf-react-inline { margin-top: 2px; padding: 10px; min-height: 66px; }
.rf-meta-box,
.rf-react-inline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}
.rf-react-title { margin: 0 0 10px; text-align: center; font-size: 13px; font-weight: 700; color: #475569; }
.rf-react-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.rf-react-btn {
  min-width: 96px;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  color: #1f2937;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rf-react-btn:hover { background: #f0fdfa; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,165,164,.12); }
.rf-react-btn.is-active { background: #ecfdf5; border-color: var(--brand); }
.rf-react-btn span { font-size: 20px; line-height: 1; }
.rf-react-btn b { font-size: 12px; font-weight: 700; white-space: nowrap; }
.rf-react-btn i { font-size: 11px; color: #6b7280; font-style: normal; }

.rf-watch-card { width: 130px; }
.rf-watch-card img { width: 130px; height: 182px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.rf-watch-card h4 { margin: 0 0 4px; font-size: 12px; line-height: 1.32; color: #0f172a; }
.rf-watch-card div { font-size: 12px; color: var(--muted); }
.rf-watch-scroll { overflow: visible; }
.rf-watch-row { justify-content: center; flex-wrap: wrap; }

.rf-comments { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.rf-review-form, .rf-comment { padding: 22px; }
.rf-review-form h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: #0f172a; }
.rf-review-form label { display: block; font-size: 14px; color: #475569; margin: 0 0 8px; }
.rf-review-form input,
.rf-review-form textarea,
.rf-review-form .bb-editor textarea {
  width: 100%;
  background: #fff;
  color: #111827;
  border: 1px solid #cfd8e7;
  border-radius: 10px;
  padding: 10px 12px;
}
.rf-review-form .bb-editor textarea { min-height: 180px; }
.rf-review-form button[type="submit"] {
  margin-top: 14px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}
.rf-review-form button[type="submit"]:hover { filter: brightness(1.05); }

.rf-comment-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.rf-comment-name { font-size: 16px; margin-bottom: 4px; font-weight: 700; color: #0f172a; }
.rf-comment-date { font-size: 14px; color: #64748b; }
.rf-comment p { margin: 0; color: #334155; font-size: 15px; line-height: 1.65; }

.rf-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 44px; }
.rf-footer-top { display: flex; justify-content: flex-start; padding: 24px 0 18px; }
.rf-footer-brand { display: flex; align-items: flex-start; gap: 12px; max-width: 100%; }
.rf-footer-brand > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.rf-footer-brand .rf-hd-badge { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.rf-footer-brand p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.rf-social { display: flex; gap: 8px; margin: 0 0 10px; }
.rf-social span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e7edf8;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-copy { text-align: center; color: #6b7280; font-size: 13px; padding: 14px 0 22px; }
.rf-copy p { margin: 0 0 8px; }

@media (max-width: 1024px) {
  .rf-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rf-search-input { width: 160px; }
}

@media (max-width: 768px) {
  .rf-logo-main { font-size: 22px; }
  .rf-logo-footer { font-size: 22px; }
  .rf-search-form { display: none; }
  .rf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rf-grid-card { padding: 8px; }
  .rf-grid-card img { height: 200px; }
  .rf-grid-card h4 { font-size: 13px; min-height: 34px; }
  .rf-pagination { padding: 10px; }
  .rf-pagination .navigation a,
  .rf-pagination .navigation span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0 10px;
  }
  .rf-full-top { grid-template-columns: 1fr; }
  .rf-meta-box { padding-top: 16px; }
  .rf-ratings { position: static; margin-top: 2px; justify-content: flex-start; }
  .rf-poster {
    width: 220px;
    height: 330px;
    margin: 0 auto;
    padding: 8px;
    border-width: 2px;
    border-radius: 14px;
  }
  .rf-like-dislike { max-width: 220px; margin: 12px auto 0; }
  .rf-h1 { font-size: 26px; }
  .rf-title-2 { font-size: 15px; }
  .rf-box h2, .rf-section-h3 { font-size: 18px; }
  .rf-player-section { margin-left: -8px; margin-right: -8px; padding: 12px 10px; }
  .rf-player-box { padding: 0 !important; }
  .rf-player-box .rf-player {
    width: 100% !important;
    height: 62vw !important;
    min-height: 260px;
    max-height: 360px;
  }
  .rf-react-row { justify-content: center; flex-wrap: wrap; overflow: visible; }
  .rf-footer-top { justify-content: flex-start; padding: 18px 0 14px; }
  .rf-footer-brand { gap: 10px; }
  .rf-footer-brand .rf-hd-badge { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
  .rf-footer-brand p { font-size: 12px; }
}
