/* Tangxin mobile edition. Desktop typography and artwork remain in their own layers. */
@media(max-width:600px){
 html{scroll-padding-top:18px}
 body{font-size:14px;overflow-wrap:break-word}
 .wrap{width:calc(100% - 32px)}
 .site-header{display:grid;grid-template-columns:132px minmax(0,1fr);gap:4px 12px;align-items:center;padding:12px 0 0;min-height:0}
 .site-header .brand{gap:8px;min-width:0}
 .site-header .brand-mark{width:29px;height:34px}
 .site-header .brand-type{font-size:18px;letter-spacing:-.5px}
 .site-header .brand-type small{font-size:5px;letter-spacing:1.1px;margin-top:5px;gap:4px}
 .site-header .brand-type small:before{width:9px}
 .site-header .search{grid-column:2;grid-row:1;order:initial;margin:0;width:100%;height:44px;min-height:44px;border-radius:8px;background:#ffffff07;border-color:#ffffff12}
 .site-header .search input{font-size:16px;padding:8px 0 8px 12px;letter-spacing:0;min-width:0}
 .site-header .search button{padding:0;min-width:44px;min-height:44px;display:grid;place-items:center}
 .site-header nav{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;gap:0;border-bottom:1px solid #ffffff0c;font-size:16px;letter-spacing:0}
 .site-header nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 5px;color:#c8bac5;border-radius:0}
 .site-header nav a[aria-current=page]{color:#ffa4c4;background:transparent;font-weight:600}
 .site-header nav a[aria-current=page]:after{left:calc(50% - 13px);right:calc(50% - 13px);bottom:4px;height:2px}
 .cinematic-home .mood-stage{display:block;padding:18px 0 14px}
 .cinematic-home .mood-copy{padding:0}
 .cinematic-home .hero-kicker{display:none}
 .cinematic-home .mood-copy h1{font-size:clamp(22px,6vw,26px);line-height:1.4;letter-spacing:-.025em;margin:0 0 8px}
 .cinematic-home .mood-copy h1 br{display:none}
 .cinematic-home .mood-subtitle{font-size:13px;line-height:1.7;margin:0 0 10px;max-width:31em;color:#e1d3df}
 .cinematic-home .mood-tabs{display:flex;flex-wrap:nowrap;width:100%;max-width:none;gap:6px;justify-content:space-between}
 .cinematic-home .mood-tabs a{font-size:14px;min-height:44px;align-items:center;padding:9px 0 12px;letter-spacing:-.2px}
 .cinematic-home .mood-message{padding:10px 0 0;gap:12px;align-items:center;min-height:0}
 .cinematic-home .mood-word{gap:7px;min-width:0}
 .cinematic-home .mood-word>span{font-size:24px}
 .cinematic-home .mood-word i{font-size:17px}
 .cinematic-home .mood-description{font-size:12px;line-height:1.65;flex:1;color:#ddcfd9}
 .cinematic-home .mood-cta{display:none}
 .cinematic-home .mood-hint,.cinematic-home .hero-now{display:none}
 .cinematic-home .mood-panels{padding:12px 0 0}
 .cinematic-home .hero-shade{background:linear-gradient(90deg,#141116df,#14111688),linear-gradient(0deg,#141116,transparent 65%)}
 .cinematic-home .hero-backdrop{object-position:65% 20%;will-change:auto}
 .cinematic-home .auto-deck .feature-card>a{display:grid;grid-template-columns:43% minmax(0,1fr);border-radius:11px;background:#231b24;border-color:#ffffff24;box-shadow:0 8px 20px #0002}
 .cinematic-home .auto-deck .feature-art{aspect-ratio:2/3;width:100%;align-self:stretch}
 .cinematic-home .auto-deck .feature-caption{display:flex;flex-direction:column;justify-content:center;min-height:0;padding:16px 14px;background:linear-gradient(145deg,#352431,#201921);backdrop-filter:none}
 .cinematic-home .auto-deck .feature-caption>span{font-size:11px;line-height:1.5;padding-left:7px}
 .cinematic-home .auto-deck .feature-title,.cinematic-home .auto-deck .feature-card:nth-child(2) .feature-title{font-size:20px;line-height:1.4;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:12px 0 9px}
 .cinematic-home .auto-deck .feature-caption p{font-size:12px;line-height:1.75;-webkit-line-clamp:3;color:#cdbfc9}
 .cinematic-home .auto-deck .feature-caption:after{content:"了解剧情 ↗";display:block;color:#ffb0cd;font-size:12px;margin-top:13px}
 .auto-deck .feature-card{will-change:auto}
 .home-shelves>.shelf,.home-shelves>.slow-shelf,.home-shelves>.ranking-section{padding:28px 0 32px}
 .section-heading{gap:10px;align-items:center;margin-bottom:16px}
 .section-heading h2,.slow-intro h2{font-size:22px;line-height:1.35}
 .section-heading .eyebrow{font-size:9px;margin-bottom:8px;letter-spacing:1.3px}
 .section-heading .section-note{font-size:12px;line-height:1.65;margin-top:8px}
 .section-heading>a{font-size:12px;min-height:44px;display:flex;align-items:center}
 .genre-links{gap:8px;margin:16px 0 20px}
 .genre-links a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:12px;padding:8px 12px;border-radius:7px;background:#ffffff03}
 .drama-grid,.short-shelf .drama-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px}
 .drama-card .poster{border-radius:7px;isolation:isolate}
 .drama-card h3,.short-shelf .drama-card h3{font-size:13px;line-height:1.55;font-weight:500;margin:9px 0 4px;min-height:2.9em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
 .drama-card p,.short-shelf .drama-card p{font-size:11px;line-height:1.5;margin-top:0;color:#b4a9b4}
 .episode-badge,.short-shelf .episode-badge{font-size:10px;bottom:0;left:0;right:0;padding:20px 6px 7px;background:linear-gradient(transparent,#100d12dd);text-align:right;line-height:1.4}
 .slow-shelf .landscape-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
 .slow-shelf .landscape-card a>div{padding:12px 10px}
 .slow-shelf .landscape-card h3{font-size:15px;line-height:1.5}
 .slow-shelf .landscape-card p{font-size:11px}
 .rank-column{padding:20px 16px 3px;border-radius:10px}
 .rank-column>h3{font-size:19px}.rank-column>p{font-size:12px;line-height:1.6}
 .rank-column li h3{font-size:14px}.rank-column li p{font-size:12px;line-height:1.5}
 .rank-column li:first-child>a{grid-template-columns:82px minmax(0,1fr);gap:15px}
 .rank-column li:first-child img{width:82px;height:123px}
 .rank-column li:first-child h3{font-size:18px}
 .rank-column li:first-child .rank-synopsis{font-size:12px;-webkit-line-clamp:2}
 .rank-column li>a{min-height:82px}.rank-column img{width:42px;height:63px}
 .rank-masthead nav a{min-height:44px;display:flex;align-items:center;font-size:13px}
 .rank-masthead-copy>p:not(.eyebrow){font-size:14px;line-height:1.8}
 .ranking-method{font-size:13px;line-height:1.8}
 .page-main{padding:22px 0 32px}
 .page-main>h1{font-size:28px;margin:12px 0 14px;line-height:1.4}
 .page-intro{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
 .detail-layout{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px 18px;margin:24px 0 30px;align-items:start}
 .detail-layout>div{display:contents}
 .detail-layout .detail-poster{grid-column:1;grid-row:1/span 3;width:104px;aspect-ratio:2/3;object-fit:cover;border-radius:8px}
 .detail-layout .eyebrow{display:none}
 .detail-layout h1{grid-column:2;grid-row:1;font-size:25px;line-height:1.35;margin:0;overflow-wrap:anywhere}
 .detail-layout .page-intro{grid-column:2;grid-row:2;font-size:12px;line-height:1.75;margin:0;color:#c2b5c0}
 .detail-layout .button{grid-column:2;grid-row:3;justify-self:start;min-height:44px;padding:10px 14px;font-size:13px;border-radius:6px}
 .detail-layout .detail-facts{grid-column:1/-1;grid-row:4;display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:15px 0;border-block:1px solid #ffffff10;font-size:13px;line-height:1.85}
 .detail-layout .synopsis-heading{grid-column:1/-1;grid-row:5;font-size:19px;margin:8px 0 0}
 .detail-layout .synopsis{grid-column:1/-1;grid-row:6;font-size:14px;line-height:1.95;margin:0;color:#c5b9c3}
 .detail-layout .section-note{grid-column:1/-1;grid-row:7;min-width:0;font-size:13px;line-height:1.85;margin:0;overflow-wrap:anywhere}
 .pagination{gap:16px;margin-top:30px;flex-wrap:wrap;font-size:13px}
 .pagination .button{min-height:44px;padding:10px 16px;font-size:13px}
 .page-main .play-title{font-size:24px;line-height:1.45;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
 .page-main .play-title small{font-size:13px}
 .page-main .player-navigation{gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}
 .page-main .player-navigation .button{min-height:44px;padding:10px 4px;font-size:13px;border-radius:6px;gap:0}
 .page-main .episode-section{padding:18px 12px}
 .episode-section .episodes .episode-item{min-height:48px}
 .info-page article p{font-size:14px;line-height:1.95}
 .site-footer.editorial-footer{padding-top:28px}
 .footer-grid{gap:24px 18px;padding-bottom:24px}
 .footer-intro>p,.footer-about p{font-size:13px;line-height:1.85}
 .footer-grid h2{font-size:15px;margin-bottom:10px}
 .footer-grid nav>a{font-size:13px;margin:0;min-height:44px;display:flex;align-items:center}
 .footer-about>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
 .footer-base{font-size:11px;padding-bottom:max(22px,env(safe-area-inset-bottom));line-height:1.7}
 .footer-base>a{min-height:44px;display:inline-flex;align-items:center;margin-top:0}
}
@media(max-width:360px){
 .site-header{grid-template-columns:125px minmax(0,1fr);gap:4px 8px}
 .site-header .brand-type{font-size:17px}
 .site-header nav{font-size:15px}
 .cinematic-home .mood-tabs a{font-size:13px}
 .cinematic-home .auto-deck .feature-caption{padding:12px}
 .cinematic-home .auto-deck .feature-title,.cinematic-home .auto-deck .feature-card:nth-child(2) .feature-title{font-size:18px}
 .cinematic-home .auto-deck .feature-caption p{-webkit-line-clamp:2}
 .drama-grid,.short-shelf .drama-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
 .drama-card h3,.short-shelf .drama-card h3{font-size:14px}
 .detail-layout{grid-template-columns:94px minmax(0,1fr);gap:12px 14px}
 .detail-layout .detail-poster{width:94px}
}
@media(min-width:601px) and (max-width:900px){
 .site-header .search input{font-size:16px}
 .drama-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .detail-layout{grid-template-columns:180px minmax(0,1fr);gap:26px}
}

@media(max-width:600px){
 body[data-page="search"] .page-main .drama-grid{grid-template-columns:1fr;gap:16px}
 body[data-page="search"] .drama-card>a{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto 1fr;gap:9px 16px;padding:12px;background:#1b171e;border:1px solid #ffffff0d;border-radius:10px}
 body[data-page="search"] .drama-card .poster{grid-column:1;grid-row:1/3}
 body[data-page="search"] .drama-card h3{grid-column:2;grid-row:1;min-height:0;font-size:18px;margin:10px 0 0}
 body[data-page="search"] .drama-card p{grid-column:2;grid-row:2;font-size:12px;white-space:normal;line-height:1.9}
}
