@charset "utf-8";

:root {
  --mz-bg: #2b1c06;
  --mz-panel: #222;
  --mz-panel-dark: #1c1b1e;
  --mz-line: #434145;
  --mz-text: #757575;
  --mz-soft: #dec29a;
  --mz-nav: #9d5656;
  --mz-accent: #dd7350;
  --mz-yellow: #fdf751;
}

html, body { min-height: 100%; }
body { background: var(--mz-bg); letter-spacing: 0; }
.aileqi-shell { padding-bottom: 10px; }
.aileqi-shell a { transition: color .15s ease, background-color .15s ease; }
.aileqi-shell .stui-header { min-height: 50px; }
.aileqi-shell .stui_header__user { display: flex; align-items: center; gap: 26px; }
.aileqi-shell .stui_header__user > li { margin-left: 0; color: #fff; }
.aileqi-shell .stui_header__user > li > a,
.aileqi-shell .stui_header__user > li > span { color: #fff; font-size: 14px; }
.type-menu { position: relative; cursor: pointer; }
.dynamic-type-list { display: none; position: absolute; right: 0; top: 28px; z-index: 30; width: 260px; padding: 10px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.type-menu:hover .dynamic-type-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dynamic-type-list li a { display: block; padding: 6px 4px; border-radius: 2px; background: #f5f5f5; color: #555; text-align: center; font-size: 12px; }

.source-notice { padding: 10px 16px 8px; border-color: #777; }
.source-notice p { margin: 0 0 10px; line-height: 1.5; }
.source-notice p:last-child { margin-bottom: 0; }
.source-notice .save-link { padding: 2px 7px; background: #dd8b3b; color: #fff; }
.source-recommend { margin-top: 14px; }
.source-recommend h2,
.hot-heading { margin: 0 0 8px; color: var(--mz-text); font-size: 16px; line-height: 24px; }
.friend-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.friend-grid a { display: block; min-width: 0; padding: 5px 4px; background: var(--mz-accent); color: #fff; text-align: center; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.friend-grid a:hover { background: #ef8d67; color: #fff; }

.promo-panel { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; align-items: start; min-height: 214px; margin-top: 14px; padding: 10px 60px 18px; background: var(--mz-panel); }
.promo-panel a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 6px; color: var(--mz-text); text-align: center; }
.promo-panel a:nth-child(9) { grid-column: 4 / 5; }
.promo-panel img { width: 62px; height: 62px; border-radius: 7px; object-fit: cover; }
.promo-panel span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.hot-search-block { margin-top: 16px; }
.hot-heading { display: flex; justify-content: space-between; align-items: center; }
.hot-heading a { color: #d89b76; }
.hot-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px 5px; }
.hot-grid a { display: block; min-width: 0; padding: 6px 4px; border-radius: 8px; background: #333235; color: #ddd; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-search { display: flex; margin: 18px 10px 0; border: 1px solid #555; }
.site-search input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; background: #1c1b1e; color: #ddd; }
.site-search button { width: 88px; border: 0; background: var(--mz-nav); color: #fff; }

.content-main { min-height: 260px; }
.video-section { margin-top: 6px; }
.stui-vodlist__head { position: relative; }
.stui-vodlist__head h1,
.stui-vodlist__head h2,
.stui-vodlist__head h3 { margin: 0; color: #aaa; font-size: 16px; }
.more-link { position: absolute; right: 10px; top: 0; color: #aaa; }
.stui-vodlist__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stui-vodlist__detail { min-height: 42px; }
.stui-vodlist__detail .title { line-height: 22px; }
.resource-section { margin-top: 10px; }
.keyword-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1px; margin: 0 10px; background: #333235; }
.keyword-grid a { padding: 8px 4px; color: #999; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.keyword-grid a:hover { background: #444; color: var(--mz-yellow); }

.stui-content { margin-top: 30px; }
.stui-content__thumb .pic img { display: block; width: 220px; aspect-ratio: 3 / 4; object-fit: cover; }
.source-play-line { margin: 4px 0; }
.source-play-line a { margin: 0 5px 5px 0; }
.stui-player { margin-top: 30px; }
.stui-player__side { min-height: 485px; }
.stui-player__side .item { max-height: 420px; overflow: auto; }
/* Keep the dynamically injected MacPlayer inside the 16:9 play surface. */
.play-page .stui-player__video > .MacPlayer {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
}
.play-page .stui-player__video > .MacPlayer > table,
.play-page .stui-player__video > .MacPlayer > table > tbody,
.play-page .stui-player__video > .MacPlayer > table > tbody > tr,
.play-page .stui-player__video > .MacPlayer #playleft,
.play-page .stui-player__video > .MacPlayer #playleft > iframe {
  width: 100% !important;
  height: 100% !important;
}
.empty-state { padding: 50px 10px; color: #bbb; text-align: center; }
.source-footer { padding: 24px 0 8px; }
.source-footer p { margin-bottom: 8px; }
.source-footer a { color: #999; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1024px) {
  .promo-panel { grid-template-columns: repeat(5, minmax(0,1fr)); padding-inline: 30px; }
  .promo-panel a:nth-child(9) { grid-column: auto; }
  .friend-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .hot-grid, .keyword-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .aileqi-shell { width: 100%; padding-inline: 10px; }
  .aileqi-shell .stui-header { margin-top: 12px; }
  .aileqi-shell .stui_header__user { gap: 12px; margin-right: 0; }
  .source-notice { padding: 8px; font-size: 12px; }
  .friend-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; }
  .friend-grid a { padding: 5px 2px; font-size: 12px; }
  .promo-panel { grid-template-columns: repeat(4, minmax(0,1fr)); min-height: 0; gap: 14px 8px; padding: 12px 8px; }
  .promo-panel img { width: 52px; height: 52px; }
  .hot-heading { align-items: flex-start; gap: 8px; font-size: 12px; }
  .hot-heading span:last-child { text-align: right; }
  .hot-grid, .keyword-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hot-grid a, .keyword-grid a { font-size: 12px; }
  .site-search { margin-inline: 5px; }
  .stui-vodlist__head { margin-top: 20px; padding-inline: 5px; }
  .stui-vodlist li { width: 50%; }
  .stui-vodlist__detail { min-height: 38px; }
  .keyword-grid { margin-inline: 5px; }
  .stui-player__side { min-height: 0; }
  .stui-player__side .item { max-height: none; }
  .source-footer { padding-top: 18px; font-size: 12px; }
}
