/* ==========================================================================
   放映时间线 Release Timeline
   烟蓝 #54708c / 深烟 #2e3f52 / 米白 #f7f3ea / 亮橙 #ff8c42
   断点: base(360) / 375 / 768 / 1100
   ========================================================================== */

:root {
    --rt-bg: #f7f3ea;
    --rt-paper: #fffdf7;
    --rt-line: #e4dccc;
    --rt-blue: #54708c;
    --rt-blue-d: #2e3f52;
    --rt-blue-l: #e7edf3;
    --rt-text: #2c3238;
    --rt-mute: #8a8272;
    --rt-orange: #ff8c42;
    --rt-orange-d: #e06f22;
    --rt-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --rt-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --rt-radius: 10px;
    --rt-maxw: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--rt-bg);
    color: var(--rt-text);
    font-family: var(--rt-sans);
    font-size: 16px;
    line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-blue); text-decoration: none; }
a:hover { color: var(--rt-orange-d); text-decoration: underline; }
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--rt-orange);
    outline-offset: 2px;
    border-radius: 4px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.rt-main { max-width: var(--rt-maxw); margin: 0 auto; padding: 0 16px 56px; }

/* ---------- 按钮 / 通用 ---------- */
.rt-btn {
    display: inline-block; padding: 12px 28px; border-radius: var(--rt-radius);
    font-size: 15px; font-weight: 700;
    border: 1px solid var(--rt-blue);
    transition: background .15s, color .15s;
}
.rt-btn--solid { background: var(--rt-blue); color: #fff; }
.rt-btn--solid:hover { background: var(--rt-blue-d); border-color: var(--rt-blue-d); color: #fff; text-decoration: none; }

.rt-block { margin-bottom: 34px; }
.rt-h2 {
    font-size: 18px; margin: 0 0 14px; color: var(--rt-blue-d);
    display: flex; align-items: center; gap: 10px;
}
.rt-h2::before {
    content: ""; width: 10px; height: 10px; border-radius: 50%;
    background: var(--rt-orange); flex: 0 0 auto;
}
.rt-textlink { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--rt-orange-d); }
.rt-textlink:hover { color: var(--rt-blue-d); }

/* ---------- 顶栏(烟蓝) ---------- */
.rt-top { background: var(--rt-blue-d); border-bottom: 3px solid var(--rt-orange); }
.rt-top__bar {
    max-width: var(--rt-maxw); margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; gap: 18px; min-height: 62px; flex-wrap: wrap;
}
.rt-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.rt-logo:hover { text-decoration: none; color: var(--rt-orange); }
.rt-logo__name { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.rt-logo img { max-height: 40px; width: auto; }
.rt-top__nav { margin-left: auto; }
.rt-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.rt-menu a { font-size: 14.5px; color: #c3cfdc; padding: 6px 2px; }
.rt-menu a:hover { color: #fff; }

/* ---------- 搜索 ---------- */
.rt-searchform { display: flex; }
.rt-searchform input {
    background: #24344a; border: 1px solid #3d5470; border-right: 0;
    border-radius: var(--rt-radius) 0 0 var(--rt-radius);
    color: #fff; padding: 8px 12px; font-size: 14px; width: 150px;
}
.rt-searchform input::placeholder { color: #7e93aa; }
.rt-searchform button {
    background: var(--rt-orange); border: 1px solid var(--rt-orange); color: var(--rt-blue-d);
    border-radius: 0 var(--rt-radius) var(--rt-radius) 0; padding: 8px 15px;
    font-size: 14px; font-weight: 800; cursor: pointer;
}
.rt-searchform button:hover { background: var(--rt-orange-d); color: #fff; }
.rt-searchform--page { margin-top: 14px; }
.rt-searchform--page input { width: min(340px, 62vw); padding: 11px 14px; background: #fff; border-color: var(--rt-line); color: var(--rt-text); }
.rt-searchform--page button { padding: 11px 18px; }

/* ---------- 首页宣言 ---------- */
.rt-mast { padding: 44px 0 26px; border-bottom: 2px solid var(--rt-blue-d); }
.rt-mast__kicker { font-size: 12px; letter-spacing: .26em; font-weight: 800; color: var(--rt-orange-d); margin: 0 0 12px; font-family: var(--rt-mono); }
.rt-mast__title { font-size: 32px; margin: 0 0 12px; color: var(--rt-blue-d); }
.rt-mast__text { color: var(--rt-mute); max-width: 660px; margin: 0; font-size: 15px; }

/* ---------- 首页双栏 ---------- */
.rt-home { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
.rt-home__side { display: flex; flex-direction: column; gap: 30px; }
.rt-sideblock__cards { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 日组与时间线 ---------- */
.rt-daygroup { margin-bottom: 34px; }
.rt-daygroup__date {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    margin: 0 0 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--rt-line);
}
.rt-daygroup__ymd { font-size: 20px; color: var(--rt-blue-d); }
.rt-daygroup__count { font-size: 13px; font-weight: 700; color: var(--rt-orange-d); font-family: var(--rt-mono); }

.rt-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; }
.rt-timeline::before {
    content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px;
    width: 2px; background: var(--rt-line);
}
.rt-node { position: relative; margin-bottom: 10px; }
.rt-node__link {
    display: flex; align-items: center; gap: 12px;
    background: var(--rt-paper); border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius); padding: 12px 16px;
    color: var(--rt-text); transition: border-color .15s, box-shadow .15s;
}
.rt-node__link:hover { border-color: var(--rt-orange); box-shadow: 0 6px 16px rgba(46, 63, 82, .1); text-decoration: none; }
.rt-node__dot {
    position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--rt-orange); border: 2px solid var(--rt-bg);
}
.rt-node--pending .rt-node__dot { background: #c9c2b0; }
.rt-node__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-node__drama { font-size: 12.5px; color: var(--rt-blue); font-weight: 700; }
.rt-node__title { font-size: 15px; font-weight: 600; }
.rt-node__date { font-size: 12.5px; color: var(--rt-mute); }
.rt-node__state {
    margin-left: auto; flex: 0 0 auto;
    font-size: 12px; font-weight: 700; color: var(--rt-orange-d);
    font-family: var(--rt-mono);
}
.rt-node--pending .rt-node__state { color: var(--rt-mute); }
.rt-node--pending .rt-node__link { border-style: dashed; background: transparent; }
.rt-node.is-current .rt-node__link { border-color: var(--rt-orange); box-shadow: inset 0 0 0 1px var(--rt-orange); }
.rt-node.is-current .rt-node__dot { background: var(--rt-orange-d); }
.rt-timeline--search { margin-bottom: 14px; }

/* ---------- 作品卡 ---------- */
.rt-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rt-card {
    display: flex; gap: 14px; align-items: stretch;
    background: var(--rt-paper); border: 1px solid var(--rt-line);
    border-radius: var(--rt-radius); padding: 12px;
    transition: box-shadow .15s;
}
.rt-card:hover { box-shadow: 0 8px 20px rgba(46, 63, 82, .12); }
.rt-card__posterwrap { flex: 0 0 74px; }
.rt-card__posterwrap img { width: 74px; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; }
.rt-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; justify-content: center; }
.rt-card__title { font-size: 15.5px; margin: 0; line-height: 1.4; }
.rt-card__title a { color: var(--rt-text); }
.rt-card__title a:hover { color: var(--rt-orange-d); }
.rt-card__date { margin: 0; font-size: 12.5px; color: var(--rt-mute); font-family: var(--rt-mono); }
.rt-card__progress { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--rt-mute); font-family: var(--rt-mono); }
.rt-card__bar { flex: 1; height: 5px; background: var(--rt-line); border-radius: 3px; overflow: hidden; }
.rt-card__fill { display: block; height: 100%; background: var(--rt-orange); border-radius: 3px; }

/* ---------- 面包屑 / chips / 分页 ---------- */
.rt-crumbs { font-size: 13px; margin-bottom: 16px; }
.rt-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-crumbs li { color: var(--rt-mute); }
.rt-crumbs li + li::before { content: "/ "; color: var(--rt-line); margin-right: 8px; }
.rt-crumbs a { color: var(--rt-blue); }

.rt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rt-chip {
    display: inline-block; padding: 7px 16px; font-size: 13.5px;
    background: var(--rt-paper); border: 1px solid var(--rt-line); border-radius: 18px;
    color: var(--rt-text);
}
.rt-chip:hover { border-color: var(--rt-orange); color: var(--rt-orange-d); text-decoration: none; }

.rt-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.rt-pagination .page-numbers {
    min-width: 42px; text-align: center; padding: 8px 12px; font-size: 14.5px;
    background: var(--rt-paper); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); color: var(--rt-text);
}
.rt-pagination .page-numbers.current { background: var(--rt-blue-d); border-color: var(--rt-blue-d); color: #fff; }
.rt-pagination a.page-numbers:hover { border-color: var(--rt-orange); text-decoration: none; }

/* ---------- 归档页头 ---------- */
.rt-archhead { padding: 26px 0 20px; border-bottom: 2px solid var(--rt-blue-d); margin-bottom: 24px; }
.rt-archhead .rt-crumbs { margin-bottom: 10px; }
.rt-archhead__kicker { font-size: 12px; letter-spacing: .22em; font-weight: 800; color: var(--rt-orange-d); margin: 0 0 6px; font-family: var(--rt-mono); }
.rt-archhead__title { font-size: 27px; margin: 0 0 10px; color: var(--rt-blue-d); }
.rt-archhead__desc { color: var(--rt-mute); font-size: 14.5px; margin: 0; max-width: 680px; }

/* ---------- 详情页 ---------- */
.rt-drama { padding-top: 20px; }
.rt-drama__head { margin-bottom: 20px; }
.rt-drama__title { font-size: 28px; margin: 0 0 6px; color: var(--rt-blue-d); }
.rt-drama__original { color: var(--rt-mute); font-size: 13.5px; margin: 0 0 6px; }
.rt-drama__tagline { color: var(--rt-orange-d); font-size: 16px; font-weight: 700; margin: 0; }

.rt-drama__main { display: grid; grid-template-columns: 1fr; gap: 26px; }
.rt-drama__content { min-width: 0; }
.rt-drama__side { display: flex; flex-direction: column; gap: 18px; }
.rt-drama__poster { max-width: 260px; margin: 0 auto; }
.rt-drama__poster img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--rt-radius); border: 1px solid var(--rt-line); }

.rt-dramatl__span {
    display: flex; flex-wrap: wrap; gap: 8px 26px;
    background: var(--rt-blue-l); border-radius: var(--rt-radius);
    padding: 12px 18px; margin-bottom: 18px;
}
.rt-dramatl__row { margin: 0; font-size: 14px; font-weight: 600; color: var(--rt-blue-d); }
.rt-dramatl__k { color: var(--rt-blue); font-weight: 400; margin-right: 8px; font-size: 13px; }

.rt-facts {
    margin: 0; width: 100%;
    background: var(--rt-paper); border: 1px solid var(--rt-line); border-radius: var(--rt-radius);
    padding: 8px 18px;
}
.rt-facts__row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rt-line); font-size: 14.5px; }
.rt-facts__row:last-child { border-bottom: 0; }
.rt-facts__row dt { color: var(--rt-mute); flex: 0 0 76px; font-size: 13.5px; }
.rt-facts__row dd { margin: 0; font-weight: 700; }

.rt-synopsis { font-size: 15.5px; background: var(--rt-paper); border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 18px 20px; }
.rt-synopsis p { margin: 0 0 12px; }
.rt-synopsis p:last-child { margin-bottom: 0; }

/* ---------- 单集观看页 ---------- */
.rt-watch { padding-top: 20px; }
.rt-watch__stage { margin: 0 -16px 18px; }
.rt-player { position: relative; background: #000; }
.rt-player video, .rt-player iframe { width: 100%; aspect-ratio: 16/9; display: block; height: auto; }
.rt-player--pending img { width: 100%; opacity: .5; }
.rt-player__notice {
    position: absolute; inset: auto 0 14px; text-align: center; margin: 0;
    font-size: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}
.rt-watch__head { margin-bottom: 20px; }
.rt-watch__title { font-size: 24px; margin: 0 0 6px; color: var(--rt-blue-d); }
.rt-watch__subtitle { color: var(--rt-orange-d); margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.rt-watch__meta { font-size: 13.5px; color: var(--rt-mute); margin: 0 0 14px; }
.rt-watch__sep { margin: 0 8px; }
.rt-watch__summary {
    margin: 0; font-size: 15px; background: var(--rt-paper);
    border: 1px solid var(--rt-line); border-radius: var(--rt-radius); padding: 14px 18px;
}

.rt-epnav { display: flex; gap: 10px; margin-bottom: 30px; }
.rt-epnav__prev, .rt-epnav__next {
    flex: 1; text-align: center; padding: 12px 8px; font-size: 14.5px; font-weight: 600;
    background: var(--rt-paper); border: 1px solid var(--rt-line); border-radius: var(--rt-radius);
    color: var(--rt-text);
}
.rt-epnav__prev:hover, .rt-epnav__next:hover { border-color: var(--rt-orange); text-decoration: none; }
.rt-epnav .is-disabled { color: var(--rt-line); pointer-events: none; }

/* ---------- 搜索页 / 404 / 静态页 ---------- */
.rt-noresult { padding: 30px 0; color: var(--rt-mute); }
.rt-noresult .rt-chips { margin-top: 16px; }

.rt-404 { text-align: center; padding: 60px 0 52px; }
.rt-404__kicker { letter-spacing: .3em; color: var(--rt-orange-d); font-size: 12px; margin: 0 0 12px; font-weight: 800; font-family: var(--rt-mono); }
.rt-404__title { font-size: 26px; margin: 0 0 12px; color: var(--rt-blue-d); }
.rt-404__text { color: var(--rt-mute); margin: 0 auto 26px; font-size: 15px; max-width: 480px; }
.rt-404 .rt-searchform { justify-content: center; margin-bottom: 26px; }
.rt-404__links { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }

.rt-page { max-width: 720px; margin: 0 auto; padding-top: 26px; }
.rt-page__title { font-size: 26px; margin: 0 0 20px; color: var(--rt-blue-d); border-bottom: 2px solid var(--rt-blue-d); padding-bottom: 14px; }
.rt-page__body { font-size: 15.5px; }
.rt-page__body h2 { font-size: 20px; margin: 28px 0 12px; color: var(--rt-blue-d); }
.rt-page__body h3 { font-size: 17px; margin: 24px 0 10px; }
.rt-page__body p { margin: 0 0 16px; }

/* ---------- 空状态 ---------- */
.rt-empty-state { text-align: center; padding: 42px 0; }
.rt-empty-state__text { color: var(--rt-mute); margin-bottom: 16px; }

/* ---------- 页脚(深烟蓝) ---------- */
.rt-foot {
    background: var(--rt-blue-d); color: #b7c6d6;
    padding: 40px 16px 26px; margin-top: 52px;
    border-top: 3px solid var(--rt-orange);
}
.rt-foot__grid {
    max-width: var(--rt-maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 28px;
}
.rt-foot__logo { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.rt-foot__slogan { color: #7e93aa; font-size: 13.5px; margin: 0; max-width: 380px; }
.rt-foot__h { font-size: 12px; letter-spacing: .2em; color: var(--rt-orange); margin: 0 0 14px; font-family: var(--rt-mono); }
.rt-foot__links { list-style: none; margin: 0; padding: 0; }
.rt-foot__links li { margin-bottom: 10px; }
.rt-foot__links a { color: #b7c6d6; font-size: 14.5px; }
.rt-foot__links a:hover { color: #fff; }
.rt-foot .rt-chip { background: #24344a; border-color: #3d5470; color: #b7c6d6; }
.rt-foot .rt-chip:hover { border-color: var(--rt-orange); color: #fff; }
.rt-foot__copy {
    max-width: var(--rt-maxw); margin: 28px auto 0; padding-top: 16px;
    border-top: 1px solid #3d5470;
    color: #7e93aa; font-size: 12.5px; text-align: center;
}

/* ---------- 375+ ---------- */
@media (min-width: 375px) {
    .rt-mast__title { font-size: 36px; }
    .rt-drama__title { font-size: 30px; }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
    .rt-main { padding: 0 24px 72px; }
    .rt-top__bar { padding: 0 24px; }
    .rt-mast { padding: 56px 0 34px; }
    .rt-mast__title { font-size: 44px; }
    .rt-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rt-watch__stage { margin: 0 0 18px; }
    .rt-watch__title { font-size: 27px; }
    .rt-foot__grid { grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
}

/* ---------- 1100+: 桌面双栏 ---------- */
@media (min-width: 1100px) {
    .rt-mast__title { font-size: 50px; }
    .rt-home { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
    .rt-drama__main { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
    .rt-drama__poster { margin: 0; }
}
