* {
  box-sizing: border-box;
}

body.cf-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f2f3f5;
  color: #1e2430;
}

a {
  color: inherit;
  text-decoration: none;
}

.cf-wrap {
  width: min(720px, 100% - 20px);
  margin: 0 auto;
}

.cf-header {
  padding-top: 12px;
}

.cf-header-inner {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px 12px;
  box-shadow: 0 4px 16px rgba(28, 39, 68, .06);
}

.cf-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 10px;
  color: #e85b2f;
  font-size: 28px;
  font-weight: 700;
}

.cf-logo img {
  width: 34px;
  height: 34px;
  display: block;
}

.cf-logo span {
  line-height: 1;
}

.cf-search {
  position: relative;
}

.cf-search input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border-radius: 999px;
  border: 1px solid #eceef2;
  background: #f7f8fb;
  color: #2b3342;
  font-size: 15px;
}

.cf-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.cf-main {
  padding: 10px 0 90px;
}

.cf-hot h2,
.cf-head h3 {
  margin: 0;
  font-size: 32px;
}

.cf-entry-card {
  margin-top: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  box-shadow: 0 4px 16px rgba(28, 39, 68, .06);
  cursor: grab;
}

.cf-entry-card::-webkit-scrollbar {
  display: none;
}

.cf-entry-card.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cf-entry-track {
  display: flex;
  gap: 8px;
  width: max-content;
}

.cf-entry {
  text-align: center;
  display: block;
  flex: 0 0 68px;
  padding: 8px 0;
}

.cf-entry i {
  display: block;
  font-size: 30px;
}

.cf-entry span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #4f5f7f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-hot-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cf-panel {
  margin-top: 10px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: 0 4px 16px rgba(28, 39, 68, .06);
}

.cf-head a {
  color: #f06d37;
  font-size: 13px;
}

.cf-tags {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
}

.cf-tags.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.cf-tags span {
  background: #eef1f6;
  color: #63718f;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.cf-tags .active {
  background: #ffece0;
  color: #f06d37;
}

.cf-list-cats {
  margin: 0 0 12px;
  padding: 2px 0 6px;
}

.cf-list-cats a {
  display: inline-block;
}

.cf-list-cats span {
  padding: 6px 12px;
  border: 1px solid #e6ebf3;
  background: #fff;
  color: #5b6a88;
  font-size: 13px;
}

.cf-list-cats .active {
  border-color: #f7c4ad;
  background: #fff3ec;
  color: #e85b2f;
  font-weight: 600;
}

.cf-hot-item {
  display: block;
}

.cf-hot-item img {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.cf-hot-item b,
.cf-hot-item span {
  display: block;
  padding: 6px 10px 0;
  font-size: 13px;
}

.cf-hot-item span {
  color: #ec9d24;
}

.cf-section {
  margin-top: 26px;
}

.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cf-card {
  display: block;
}

.cf-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.cf-card b {
  display: block;
  padding: 6px 2px 10px;
  font-size: 14px;
  line-height: 1.4;
  min-height: 44px;
}

.cf-pager {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.cf-pager a {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  color: #4f5f7f;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.cf-pager a:hover {
  border-color: #f4b89f;
  color: #e85b2f;
  background: #fff6f1;
}

.cf-pager a.active {
  color: #fff;
  background: #f06d37;
  border-color: #f06d37;
  font-weight: 700;
}

.cf-pager span {
  padding: 0 4px;
  color: #9aa5bb;
  font-size: 13px;
}

.cf-breadcrumb {
  color: #7c899f;
  margin: 6px 0 14px;
  font-size: 13px;
}

.cf-detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 14px;
  padding: 16px;
}

.cf-detail-pic {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 3/4;
}

.cf-detail-main h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.cf-detail-main p {
  margin: 6px 0;
  color: #7b879e;
}

.cf-btn {
  display: inline-block;
  margin-top: 8px;
  background: #ffb11a;
  color: #101317;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.cf-desc {
  margin-top: 12px;
  color: #444f64;
  line-height: 1.8;
}

.cf-player-wrap {
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 14px;
  padding: 16px;
}

.cf-player-wrap h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.cf-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cf-player .art-video-player,
.cf-player .art-video {
  width: 100% !important;
  height: 100% !important;
}

.cf-player video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.cf-episodes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-episodes a {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #dee4ef;
  background: #f6f8fc;
  font-size: 13px;
}

.cf-episodes a.active {
  background: #ffb11a;
  border-color: #ffb11a;
  color: #121212;
  font-weight: 700;
}

.cf-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-sources a {
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #dee4ef;
  background: #f6f8fc;
  font-size: 13px;
}

.cf-sources a.active {
  background: #ffb11a;
  border-color: #ffb11a;
  color: #121212;
  font-weight: 700;
}

.cf-pn {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cf-player-nav-gap {
  margin-top: 24px;
}

.cf-pn a,
.cf-pn span {
  background: #fff;
  border: 1px solid #eceff4;
  padding: 11px 12px;
  border-radius: 10px;
  color: #4e5d79;
}

.cf-footer {
  color: #9aa5bb;
}

.cf-footer .cf-wrap {
  padding: 8px 0 14px;
  text-align: center;
  font-size: 13px;
}

.cf-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, 100%);
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #eceff4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.cf-bottom-nav a {
  text-align: center;
  color: #7d8aa4;
}

.cf-bottom-nav a.active {
  color: #f06d37;
}

.cf-bottom-nav i {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.cf-bottom-nav span {
  display: block;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .cf-hot-row,
  .cf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .cf-logo { font-size: 22px; }
  .cf-logo img { width: 30px; height: 30px; }
  .cf-hot h2, .cf-head h3 { font-size: 28px; }

  .cf-detail {
    grid-template-columns: 1fr;
  }

  .cf-pn {
    grid-template-columns: 1fr;
  }
}