:root {
  --t107-bg: #f4f0e8;
  --t107-ink: #151719;
  --t107-muted: #687078;
  --t107-panel: #fffaf0;
  --t107-panel-2: #e9f4f0;
  --t107-line: rgba(21, 23, 25, .12);
  --t107-coral: #e6533c;
  --t107-teal: #087b78;
  --t107-gold: #d49b28;
  --t107-night: #18222b;
  --t107-radius: 8px;
  --t107-shadow: 0 18px 42px rgba(24, 34, 43, .13);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--t107-ink);
  background:
    linear-gradient(180deg, rgba(8, 123, 120, .10), transparent 360px),
    repeating-linear-gradient(90deg, rgba(21, 23, 25, .035) 0 1px, transparent 1px 72px),
    var(--t107-bg);
  overflow-x: hidden;
}

body,
input,
button,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

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

a:hover {
  color: var(--t107-coral);
}

img,
iframe,
video {
  max-width: 100%;
}

.t107-shell {
  width: min(1340px, calc(100% - 40px));
  margin: 0 auto;
}

.t107-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--t107-line);
  background: rgba(244, 240, 232, .92);
  backdrop-filter: blur(18px);
}

.t107-header-inner {
  display: grid;
  grid-template-columns: 178px minmax(260px, 1fr) minmax(360px, auto) 42px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
}

.t107-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.t107-brand img {
  display: block;
  width: 162px;
  height: auto;
}

.t107-search,
.t107-mobile-search {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: rgba(255, 250, 240, .86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  overflow: hidden;
}

.t107-search-icon {
  position: relative;
  width: 42px;
  height: 44px;
  flex: 0 0 42px;
}

.t107-search-icon:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--t107-teal);
  border-radius: 50%;
}

.t107-search-icon:after {
  content: "";
  position: absolute;
  left: 28px;
  top: 27px;
  width: 9px;
  height: 2px;
  background: var(--t107-teal);
  transform: rotate(45deg);
  transform-origin: left center;
}

.t107-search input,
.t107-mobile-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--t107-ink);
  background: transparent;
}

.t107-search button,
.t107-mobile-search button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  color: #fff;
  background: var(--t107-night);
  font-weight: 700;
  cursor: pointer;
}

.t107-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.t107-nav::-webkit-scrollbar {
  display: none;
}

.t107-nav a,
.t107-mobile-panel a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--t107-radius);
  color: #37424b;
  font-weight: 700;
}

.t107-nav a.active,
.t107-nav a:hover,
.t107-mobile-panel a.active {
  color: #fff;
  background: var(--t107-teal);
}

.t107-menu {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: var(--t107-panel);
}

.t107-menu span,
.t107-menu:before,
.t107-menu:after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--t107-ink);
}

.t107-menu span {
  top: 20px;
}

.t107-menu:before {
  top: 14px;
}

.t107-menu:after {
  top: 26px;
}

.t107-mobile-panel {
  width: min(330px, 86vw);
  padding: 18px;
  background: var(--t107-panel);
  z-index: 1001;
  overflow-y: auto;
  box-sizing: border-box;
  align-content: start;
  gap: 8px;
  height: 100vh;
}

.ewave-offcanvas-modal {
  z-index: 1000;
}

.t107-mobile-panel a {
  display: flex;
  min-width: 0;
  margin-top: 0;
  justify-content: center;
  background: rgba(255,255,255,.42);
}

.t107-main {
  padding-bottom: 48px;
}

.t107-hero {
  padding: 34px 0 8px;
}

.t107-hero-layout {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.22fr) 300px;
  gap: 20px;
  align-items: stretch;
}

.t107-hero-copy,
.t107-hero-side,
.t107-card,
.t107-news-card,
.t107-panel,
.t107-filter,
.layout-box,
.vod-list,
.art-box,
.star-box,
.links-box,
.mac_msg_l {
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: rgba(255, 250, 240, .88);
  box-shadow: var(--t107-shadow);
}

.t107-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(230,83,60,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,250,240,.94), rgba(233,244,240,.92));
}

.t107-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t107-teal);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.t107-kicker:before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--t107-coral);
}

.t107-hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: .98;
  letter-spacing: 0;
}

.t107-hero-copy p {
  margin: 0;
  color: #53606b;
  font-size: 16px;
  line-height: 1.85;
}

.t107-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.t107-hero-actions a,
.t107-section-head > a,
.t107-type-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: var(--t107-panel);
  color: var(--t107-ink);
  font-weight: 800;
}

.t107-hero-actions a:first-child,
.t107-section-head > a:hover,
.t107-type-links a:hover {
  color: #fff;
  border-color: var(--t107-coral);
  background: var(--t107-coral);
}

.t107-hero-stage {
  min-width: 0;
}

.t107-hero-slider {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: var(--t107-radius);
  overflow: hidden;
  background: var(--t107-night);
  box-shadow: var(--t107-shadow);
}

.t107-hero-slider .swiper-slide {
  position: relative;
  display: block;
  height: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.t107-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24,34,43,.08), rgba(24,34,43,.86)),
    linear-gradient(90deg, rgba(24,34,43,.76), transparent 58%);
}

.t107-slide-copy {
  position: absolute;
  left: clamp(20px, 4vw, 44px);
  right: clamp(20px, 4vw, 44px);
  bottom: clamp(22px, 4vw, 42px);
  z-index: 2;
  color: #fff;
}

.t107-slide-copy em {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 99px;
  color: #fff;
  background: var(--t107-coral);
  font-style: normal;
  font-weight: 800;
}

.t107-slide-copy strong {
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

.t107-slide-copy small {
  color: rgba(255,255,255,.82);
  font-size: 15px;
}

.t107-hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
}

.t107-hero-side {
  padding: 18px;
  background: var(--t107-night);
  color: #fff;
}

.t107-hero-side h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.t107-rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

.t107-rank-item:first-of-type {
  border-top: 0;
}

.t107-rank-item span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--t107-night);
  background: var(--t107-gold);
  font-weight: 900;
}

.t107-rank-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t107-rank-item em {
  color: rgba(255,255,255,.58);
  font-style: normal;
}

.t107-section {
  margin-top: 34px;
}

.t107-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.t107-section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
}

.t107-type-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.t107-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.t107-card {
  min-width: 0;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.t107-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(24, 34, 43, .18);
}

.t107-card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: var(--t107-panel-2);
}

.t107-card-img {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.t107-card:hover .t107-card-img {
  transform: scale(1.04);
}

.t107-card-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(24,34,43,.86);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t107-card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: transparent;
  background: var(--t107-coral);
  box-shadow: 0 10px 24px rgba(230,83,60,.35);
}

.t107-card-play:after {
  content: "";
  position: absolute;
  left: 17px;
  top: 13px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.t107-card h3 {
  margin: 12px 12px 4px;
  font-size: 16px;
  line-height: 1.35;
}

.t107-card h3 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t107-card p {
  margin: 0 12px 14px;
  color: var(--t107-muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t107-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.t107-news-card {
  display: block;
  min-height: 128px;
  padding: 20px;
  background: linear-gradient(135deg, #fffaf0, #e9f4f0);
}

.t107-news-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.t107-news-card p {
  margin: 10px 0 0;
  color: var(--t107-muted);
  line-height: 1.7;
}

.t107-footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--t107-line);
  background: var(--t107-night);
  color: rgba(255,255,255,.78);
}

.t107-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.t107-footer-brand img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.t107-footer p {
  max-width: 760px;
  margin: 12px 0 0;
  line-height: 1.8;
}

.t107-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.t107-footer-links a {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--t107-radius);
}

.t107-copyright {
  color: rgba(255,255,255,.56);
  font-size: 13px;
}

.t107-page-title,
.mac_msg_l {
  padding: 24px;
  margin: 24px auto;
}

.t107-page-title {
  width: min(1340px, calc(100% - 40px));
  background: transparent;
}

.t107-page-title .t107-shell {
  width: 100%;
}

.t107-page-title h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.t107-page-title p,
.text-muted,
.text-muted a,
.ewave-text-muted {
  color: var(--t107-muted);
}

.t107-filter,
.layout-box,
.vod-list,
.art-box,
.star-box,
.links-box {
  padding: 18px;
  margin-bottom: 18px;
}

.t107-filter dl {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--t107-line);
}

.t107-filter dl:first-child {
  border-top: 0;
}

.t107-filter dt {
  color: var(--t107-muted);
  font-weight: 900;
}

.t107-filter dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.t107-filter dd a,
.ewave-tab a,
.t107-playlist a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: rgba(255,250,240,.72);
}

.t107-filter dd a.active,
.ewave-tab a.active,
.t107-playlist a.active {
  border-color: var(--t107-teal);
  color: #fff;
  background: var(--t107-teal);
}

.t107-detail-main {
  margin-top: 24px;
}

.t107-detail-hero {
  position: relative;
  min-height: 520px;
  padding: 44px 0;
  overflow: hidden;
  background: var(--t107-night);
  color: #fff;
}

.t107-detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(.9);
  transform: scale(1.08);
  opacity: .38;
}

.t107-detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24,34,43,.96), rgba(24,34,43,.62)),
    linear-gradient(180deg, rgba(24,34,43,.10), var(--t107-night));
}

.t107-detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.t107-detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--t107-radius);
  background: rgba(255,255,255,.08);
  box-shadow: 0 22px 52px rgba(0,0,0,.34);
}

.t107-detail-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
}

.t107-detail-info {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--t107-radius);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.t107-detail-info h1 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
}

.t107-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t107-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 99px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.12);
}

.t107-desc {
  max-width: 860px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.76);
  line-height: 1.8;
}

.t107-detail-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.t107-detail-lines p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
}

.t107-detail-lines span {
  display: inline-flex;
  width: 64px;
  color: rgba(255,255,255,.52);
  font-weight: 800;
}

.t107-actions,
.t107-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.t107-actions a,
.t107-play-actions a,
.episode-box a,
.playlist-tab li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--t107-line);
  border-radius: var(--t107-radius);
  background: var(--t107-panel);
  color: var(--t107-ink);
  font-weight: 800;
}

.t107-actions a.primary,
.t107-play-actions a.primary,
.episode-box a.active,
.playlist-tab li.active {
  border-color: var(--t107-coral);
  background: var(--t107-coral);
  color: #fff;
}

.playlist-box .playlist-tab-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.playlist-box .playlist-tab {
  flex: 1;
  min-width: 0;
}

.episode-box ul {
  padding: 0;
  margin: 0;
}

.episode-box li {
  list-style: none;
  margin-bottom: 10px;
}

.episode-box a {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t107-player-wrap {
  padding: 28px 0;
  background: var(--t107-night);
}

.t107-player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.t107-player {
  overflow: hidden;
  border-radius: var(--t107-radius);
  background: #000;
}

.t107-play-info {
  padding: 20px;
  border-radius: var(--t107-radius);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.t107-detail-main .t107-panel,
.t107-content {
  line-height: 1.85;
}

.t107-content img {
  border-radius: var(--t107-radius);
}

.t107-playlist,
.t107-related,
.t107-detail-info {
  margin-bottom: 20px;
}

.t107-detail-info {
  border-radius: var(--t107-radius);
  overflow: hidden;
}

.module,
.module-main,
.module-box,
.ewave-box,
.ewave-content {
  border-radius: var(--t107-radius);
}

.btn,
.ewave-btn,
button,
input[type="submit"] {
  border-radius: var(--t107-radius);
}

.btn-primary,
.ewave-btn-primary,
.mac_login .login_form_submit,
.mac_verify_submit {
  border-color: var(--t107-teal) !important;
  background: var(--t107-teal) !important;
  color: #fff !important;
}

.swiper-pagination-bullet {
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--t107-coral);
}

@media (max-width: 1180px) {
  .t107-header-inner {
    grid-template-columns: 166px minmax(220px, 1fr) 42px;
  }

  .t107-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .t107-hero-layout {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  }

  .t107-hero-side {
    grid-column: 1 / -1;
  }

  .t107-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .t107-shell {
    width: min(100% - 28px, 760px);
  }

  .t107-header-inner {
    grid-template-columns: 150px minmax(0, 1fr) 42px;
    gap: 12px;
  }

  .t107-nav {
    display: none;
  }

  .t107-menu {
    display: inline-flex;
  }

  .t107-brand img {
    width: 142px;
  }

  .t107-search button {
    padding: 0 14px;
  }

  .t107-hero-layout {
    grid-template-columns: 1fr;
  }

  .t107-hero-copy,
  .t107-hero-slider,
  .t107-hero-slider .swiper-slide {
    min-height: 330px;
  }

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

  .t107-news-grid,
  .t107-footer-grid {
    grid-template-columns: 1fr;
  }

  .t107-detail-grid,
  .t107-player-grid {
    grid-template-columns: 1fr;
  }

  .t107-detail-poster {
    width: min(220px, 56vw);
    margin: 0 auto;
  }

  .t107-detail-info {
    padding: 20px;
  }

  .t107-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .t107-header-inner {
    grid-template-columns: 1fr 42px;
    min-height: auto;
    padding: 12px 0;
  }

  .t107-brand img {
    width: 136px;
  }

  .t107-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .t107-hero {
    padding-top: 18px;
  }

  .t107-hero-copy {
    min-height: 260px;
    padding: 22px;
  }

  .t107-hero-copy h1 {
    font-size: 36px;
  }

  .t107-hero-copy p {
    font-size: 14px;
  }

  .t107-hero-slider,
  .t107-hero-slider .swiper-slide {
    min-height: 300px;
  }

  .t107-slide-copy strong {
    font-size: 30px;
  }

  .t107-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .t107-type-links {
    justify-content: flex-start;
  }

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

  .t107-mobile-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(360px, 92vw);
    padding: 14px;
  }

  .t107-mobile-search {
    grid-column: 1 / -1;
  }

  .t107-detail-hero {
    min-height: auto;
    padding: 26px 0;
  }

  .t107-detail-info h1 {
    font-size: 30px;
  }

  .playlist-box .playlist-tab-box {
    display: block;
  }

  .t107-card h3 {
    margin: 9px 9px 3px;
    font-size: 14px;
  }

  .t107-card p {
    margin: 0 9px 11px;
    font-size: 12px;
  }

  .t107-card-play {
    width: 34px;
    height: 34px;
  }

  .t107-card-play:after {
    left: 14px;
    top: 10px;
  }
}

@media (max-width: 420px) {
  .t107-shell {
    width: calc(100% - 22px);
  }

  .t107-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t107-search-icon {
    display: none;
  }

  .t107-search input {
    padding-left: 12px;
  }
}
