#pc-main-menu .menu a.movie-menu-link::before {
  background-image: url(../images/movie.svg);
}

.movie-channel .channel-heading img {
  width: 20px;
  height: 20px;
}

.movie-channel .channel-tools {
  gap: 16px;
}

.movie-tabs {
  scrollbar-width: none;
}

.movie-tabs::-webkit-scrollbar {
  display: none;
}

.movie-filter {
  flex-shrink: 0;
  gap: 4px;
}

.movie-filter button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px 10px;
}

.movie-item {
  min-width: 0;
}

.movie-item a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background-color: var(--base-color05);
}

.movie-item a::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.92) 100%);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.movie-item a:hover::after {
  opacity: 0.78;
}

.movie-item a img {
  width: 100%;
  aspect-ratio: 140 / 180;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-item a:hover img {
  transform: scale(1.02);
}

.movie-item a span {
  position: absolute;
  bottom: 5px;
  left: 3px;
  color: #fff;
  padding: 1px 3px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.movie-item a .movie-cover-play {
  top: auto;
  left: auto;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(14, 14, 16, 0.55);
  color: #fff;
  pointer-events: none;
}
.movie-item a > span:not([class]) {
  max-width: calc(100% - 44px);
  overflow: hidden;
  white-space: nowrap;
}
.movie-cover-play svg { width: 16px; height: 16px; }
.movie-item a:hover .movie-cover-play { color: var(--main-color); border-color: var(--main-color); }

.movie-item a .movie-cover-genres {
  top: 6px;
  bottom: auto;
  left: 6px;
  max-width: calc(100% - 12px);
  display: block;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(14, 14, 16, 0.78);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-item a.has-new .movie-cover-genres {
  max-width: calc(100% - 46px);
}

.movie-item a .movie-cover-new {
  top: 6px;
  right: 6px;
  bottom: auto;
  left: auto;
  padding: 2px 4px;
  border: 1px solid var(--main-color);
  border-radius: 4px;
  background: rgba(14, 14, 16, 0.88);
  color: var(--main-color);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.movie-item>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.movie-item>div h6 {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-item>div>div {
  display: flex;
  gap: 5px;
  align-items: center;
}

.movie-item>div>div small {
  font-size: .6rem;
  border-radius: 3px;
  padding: 1px 3px;
}

.movie-item>div>div small.up {
  color: var(--main-color);
  border: 1px solid var(--main-color);
}

.movie-item>div>div small.hot {
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
}

.movie-detail {
  width: 100%;
}

.movie-detail .detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--base-color04);
}

.movie-detail .detail-breadcrumb a:hover {
  color: var(--main-color);
}

.movie-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(235px, 17vw, 295px);
  align-items: flex-start;
  gap: 20px;
}

.movie-watch {
  flex: 1;
  min-width: 0;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: #000;
}

.movie-description {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  font-size: .9rem;
}

.movie-description summary {
  display: block;
  cursor: pointer;
}

.movie-description summary::-webkit-details-marker {
  display: none;
}

.movie-description summary span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-description summary strong {
  display: inline-flex;
  color: var(--main-color);
  margin-top: 5px;
  font-size: .9rem;
}

.movie-description[open] summary span,
.movie-description[open] .movie-description-more {
  display: none;
}

.movie-description p {
  margin: 0;
}

.movie-description-less {
  display: inline-flex;
  border: 0;
  padding: 0;
  margin-top: 5px;
  background-color: transparent;
  color: var(--main-color);
  font-weight: 800;
  font-size: .9rem;
}

.movie-stat-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--base-color04);
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-stat-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
}

.movie-comments {
  padding: 16px 18px 18px;
  border-radius: 8px;
  background-color: var(--base-color05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.movie-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.movie-comment-count {
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border: 1px solid var(--main-color);
  color: var(--main-color);
  font-weight: 800;
}

.movie-comment-form {
  padding: 12px;
  border-radius: 8px;
  background-color: var(--base-color03);
}

.movie-comment-form textarea {
  min-height: 92px;
  resize: vertical;
  background-color: var(--base-color01);
  color: #fff;
}

.movie-comment-item {
  background-color: var(--base-color03);
}

.movie-side {
  width: 100%;
  justify-self: end;
  position: sticky;
  top: 72px;
}

.movie-side-card {
  padding: 12px;
  border-radius: 8px;
  background-color: var(--base-color05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.movie-info-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.movie-info-hero>img {
  width: 100%;
  aspect-ratio: 140 / 180;
  object-fit: cover;
  border-radius: 8px;
}

.movie-info-copy {
  min-width: 0;
}

.movie-info-copy h5 {
  margin-top: 5px;
  line-height: 1.25;
}

.movie-info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--main-color);
  font-weight: 800;
  font-size: .9rem;
}

.movie-info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
}

.movie-info-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 5px 0;
}

.movie-info-list dt {
  color: var(--base-color04);
  font-weight: 800;
  line-height: 1.45;
}

.movie-info-list dd {
  margin: 0;
  color: #fff;
  line-height: 1.45;
}

.movie-info-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.movie-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  height: 38px;
  gap: 10px;
  width: 100%;
  text-wrap: nowrap;
}

.movie-episode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.movie-episode-head>div:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.movie-episode-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-episode-sort button {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  font-weight: 800;
  font-size: .82rem;
}

.movie-episode-sort button.active {
  color: var(--main-color) !important;
}

.movie-episode-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 285px;
  overflow-y: auto;
  padding-right: 4px;
}

.movie-episode-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: var(--base-color03);
  border: 1px solid transparent;
}

.movie-episode-list a:hover,
.movie-episode-list a.active {
  border-color: var(--main-color);
  color: var(--main-color);
}

.movie-episode-list a span {
  color: var(--base-color04);
  font-size: .9rem;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .movie-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

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

@media (max-width: 768px) {
  .movie-item a .movie-cover-play { width: 24px; height: 24px; }
  .movie-cover-play svg { width: 13px; height: 13px; }
  .movie-channel .channel-tools {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px;
  }

  .movie-filter {
    padding-bottom: 0 !important;
    width: 100%;
  }

  .movie-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .movie-item>div h6 {
    font-size: .9rem;
  }

  .movie-detail-layout {
    display: flex;
    flex-direction: column;
  }

  .movie-side {
    position: static;
    width: 100%;
    order: 3;
  }

  .movie-watch {
    width: 100%;
    display: contents;
  }

  .movie-player {
    order: 1;
    width: 100%;
  }

  .movie-comments {
    order: 3;
    width: 100%;
  }

  .movie-info-hero {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .movie-episode-list {
    max-height: 220px;
  }

  .movie-comments-head {
    align-items: flex-start;
  }
}

@media (min-width: 360.01px) and (max-width: 768px) {
  .home-recommendations > :nth-child(n + 16) {
    display: none;
  }
}

@media (max-width: 360px) {
  .movie-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.movie-tabs,
.comic-tabs {
  display: grid;
  gap: 8px;
  width: 100%;
}

.movie-tabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.comic-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 480px;
}

.comic-tabs a {
  gap: 6px;
}

.movie-tabs a,
.comic-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid var(--base-color03);
    border-radius: 7px;
    background: var(--base-color05);
    font-size: 14px !important;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.movie-tabs a.active,
.comic-tabs a.active {
    color: var(--base-color01);
    background: var(--main-color);
    border-color: var(--main-color);
    border-bottom-width: 1px;
}

.movie-tabs a:focus-visible,
.comic-tabs a:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .movie-tabs,
  .comic-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: none;
  }

  .movie-tabs a,
  .comic-tabs a {
    padding: 8px 6px;
    font-size: 13px !important;
  }
}
