:root { color-scheme: dark; --pink: #ff6b9a; --pink-light: #ff9fbc; --bg: #111214; --surface: #1c1d21; --muted: #898b96; --line: #2a2b31; --radius: 8px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: #f4f3f7; font: 14px/1.6 "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
button { border: 0; }
svg-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
img { display: block; object-fit: cover; }
[hidden] { display: none !important; }
.content-width { width: calc(100% - 112px); max-width: 1400px; margin: 0 auto; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 200; padding: 10px 20px; background: var(--pink); color: #191119; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-header { position: fixed; inset: 0 0 auto; height: 86px; background: #222326; z-index: 50; transition: background .3s, box-shadow .3s; border-bottom: 1px solid #ffffff08; }
.site-header.is-scrolled { background: #222326db; backdrop-filter: blur(20px); box-shadow: 0 8px 30px #0003; }
.header-inner { width: calc(100% - 96px); max-width: 1490px; height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--pink); transform: rotate(-12deg); }
.brand-mark svg-icon { width: 40px; height: 40px; }
.brand > span:last-child { font-size: 25px; font-weight: 900; color: var(--pink); letter-spacing: -1px; }
.brand em { font-style: normal; color: white; margin-left: 3px; }
.brand small { display: block; color: #c3aab4; font-size: 9px; letter-spacing: 3px; margin-top: 6px; font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: 17px; white-space: nowrap; }
.main-nav a { padding: 6px 16px; border-radius: 24px; font-size: 15px; }
.main-nav a:hover { color: var(--pink-light); }
.main-nav a.active { background: var(--pink); color: #24111a; font-weight: 600; }
.site-search { display: flex; height: 40px; background: #303136; border: 1px solid #ffffff0b; border-radius: 30px; margin-left: auto; width: min(28vw, 360px); min-width: 165px; }
.site-search input { color: #f0edf2; min-width: 0; width: 100%; background: transparent; border: 0; outline: none; padding: 0 0 0 19px; font-size: 12px; }
.site-search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px #ff6b9a18; }
.site-search input::placeholder { color: #8c8c94; }
.site-search button { background: transparent; width: 46px; flex-shrink: 0; border-radius: 30px; }
.app-button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #47474d; padding: 8px 14px; border-radius: 24px; background: transparent; white-space: nowrap; font-size: 12px; }
.app-button:hover { border-color: var(--pink); color: var(--pink-light); }
.profile-button { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 50%; background: #ff6b9a20; color: var(--pink-light); flex-shrink: 0; }
main { min-height: calc(100vh - 250px); padding-top: 86px; }
.hero { position: relative; height: min(540px, 40vw); min-height: 390px; overflow: hidden; background: #231e24; }
.hero-slides, .hero-slide { height: 100%; }
.hero-slide { position: relative; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #111214ed 0%, #1112149e 34%, #11121408 75%), linear-gradient(0deg, #111214 0%, transparent 42%); }
.hero-copy { position: relative; padding-top: 80px; width: calc(100% - 112px); max-width: 1400px; margin: auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #ffc0d5; font-size: 13px; letter-spacing: 2px; }
.hero-copy h1 { font-size: clamp(36px, 4vw, 60px); margin: 19px 0 12px; font-weight: 800; letter-spacing: 5px; line-height: 1.35; }
.hero-copy p { font-size: 17px; color: #d6cbd0; margin: 0 0 32px; letter-spacing: 2px; }
.pink-button { background: var(--pink); color: #251019; border-radius: 30px; padding: 10px 24px; font-weight: 600; border: 1px solid transparent; }
.pink-button:hover { background: #ff85ad; }
.hero-watch { display: inline-flex; align-items: center; gap: 9px; padding: 11px 26px; }
.hero-note { color: #9a8b94; font-size: 11px; margin-left: 20px; }
.hero-controls { position: absolute; bottom: 34px; left: 0; right: 0; width: calc(100% - 112px); max-width: 1400px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 8px; padding: 10px 0; }
.hero-dots button { padding: 0; width: 7px; height: 7px; border-radius: 20px; background: #ffffff40; transition: width .25s; }
.hero-dots button[aria-pressed="true"] { width: 30px; background: var(--pink); }
.hero-arrows { display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: 2px; color: #d8ccd4; }
.hero-arrows button { width: 34px; height: 34px; background: #ffffff0d; border-radius: 50%; border: 1px solid #ffffff20; display: grid; place-items: center; }
.hero-arrows button:hover { background: var(--pink); color: #231019; }
.home-content { padding-top: 16px; padding-bottom: 72px; }
.catalog-section { margin: 24px 0 52px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.section-eyebrow { color: var(--pink); font-size: 10px; letter-spacing: 2.2px; font-weight: 600; }
.section-heading h2 { font-size: 25px; margin: 3px 0 4px; font-weight: 650; }
.pink-dot { display: inline-block; width: 5px; height: 5px; margin-left: 10px; border-radius: 50%; background: var(--pink); vertical-align: middle; }
.section-heading p { font-size: 12px; color: var(--muted); margin: 0; }
.see-more { display: inline-flex; align-items: center; gap: 8px; color: #a6a3ad; font-size: 12px; margin-top: 18px; }
.see-more:hover { color: var(--pink); }
.see-more svg-icon { width: 16px; height: 16px; }
.drama-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 22px; }
.drama-card { min-width: 0; }
.drama-open { display: block; width: 100%; padding: 0; text-align: left; background: transparent; border-radius: var(--radius); }
.cover-wrap { aspect-ratio: 3 / 4; position: relative; overflow: hidden; border-radius: var(--radius); background: #23242a; border: 1px solid #ffffff08; }
.cover-wrap img { width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.drama-open:hover .cover-wrap img { transform: scale(1.075); }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #000a, transparent 34%); pointer-events: none; }
.cover-play { position: absolute; inset: 0; display: grid; place-items: center; background: #0002; opacity: 0; transition: opacity .25s; }
.cover-play svg-icon { width: 50px; height: 50px; color: #fff; filter: drop-shadow(0 2px 12px #0008); }
.drama-open:hover .cover-play { opacity: 1; }
.episode-count { position: absolute; bottom: 11px; right: 12px; color: #fff; font-size: 11px; }
.drama-card h3 { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 13px 0 5px; transition: color .2s; }
.drama-open:hover h3 { color: var(--pink-light); }
.drama-description { margin: 0 0 7px; font-size: 11px; color: #898a96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drama-meta { display: flex; gap: 4px; justify-content: space-between; align-items: center; font-size: 10px; color: #82828e; }
.drama-tags { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat { display: flex; align-items: center; gap: 2px; color: var(--pink); white-space: nowrap; }
.heat svg-icon { width: 12px; height: 12px; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.theme-card { aspect-ratio: 16 / 9; min-width: 0; position: relative; overflow: hidden; display: block; border-radius: var(--radius); background: #25252c; }
.theme-card img { width: 100%; height: 100%; transition: transform .45s; }
.theme-card:hover img { transform: scale(1.05); }
.theme-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #000c, transparent 85%); pointer-events: none; }
.theme-copy { position: absolute; bottom: 18px; left: 18px; right: 18px; }
.theme-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; min-width: 0; }
.theme-title-row strong { flex: 1; min-width: 0; font-size: 22px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-title-row .theme-count-badge { flex: none; padding: 5px 8px; border-radius: 8px; background: rgba(0, 0, 0, .5); color: var(--pink-light); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.theme-copy p { margin: 0; font-size: 12px; color: #ffffffc9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-content { padding-top: 28px; padding-bottom: 80px; }
.search-empty { min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; text-align:center; padding:24px; }
.search-empty svg-icon { width:44px; height:44px; color:var(--pink); }
.search-empty h2 { margin:0; font-size:20px; font-weight:500; }
.search-empty p { margin:0; color:var(--muted); font-size:12px; }
body[data-page="search"] .listing-title { min-width:0; }
body[data-page="search"] .listing-title > div { min-width:0; overflow-wrap:anywhere; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #757681; margin: 0 0 38px; }
.breadcrumb a { display: flex; align-items: center; gap: 7px; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb > span { color: #d4ccd3; }
.breadcrumb svg-icon { width: 14px; height: 14px; }
.listing-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.listing-title h1 { font-size: 32px; letter-spacing: 1px; margin: 7px 0 9px; font-weight: 600; }
.listing-title p { font-size: 12px; color: var(--muted); margin: 0; }
.listing-decoration { background: linear-gradient(135deg, #ff6b9a1f, transparent); color: #ff6b9a6b; border-radius: 24px; padding: 22px; transform: rotate(12deg); }
.listing-decoration svg-icon { width: 44px; height: 44px; }
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #ffffff08; }
.filter-bar button { padding: 7px 20px; border: 1px solid var(--line); border-radius: 24px; background: #1a1b1f; color: #a7a3af; font-size: 13px; }
.filter-bar button.active { color: var(--pink-light); border-color: #ff6b9a55; background: #ff6b9a13; }
.filter-bar > span { margin-left: auto; font-size: 11px; color: #77747f; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 50px; flex-wrap: wrap; font-size: 13px; color: #a5a2ae; }
.pagination > button, .page-numbers button { border-radius: 50%; background: #25262b; width: 36px; height: 36px; padding: 0; }
.pagination > button svg-icon { width: 15px; height: 15px; }
.pagination button:disabled { opacity: .35; cursor: default; }
.page-numbers { display: flex; gap: 10px; align-items: center; }
.page-numbers button[aria-current="page"] { background: var(--pink); color: #24101b; }
.page-numbers button:hover:not([aria-current="page"]) { color: var(--pink); }
.page-jump { display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.page-jump label { display: flex; align-items: center; gap: 8px; }
.page-jump input { width: 54px; height: 36px; background: #25262b; border-radius: 20px; border: 1px solid transparent; text-align: center; color: white; appearance: textfield; }
.page-jump input::-webkit-inner-spin-button { appearance: none; }
.page-jump .pink-button { padding: 7px 22px; height: 36px; }
.ranking-caption { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ranking-caption > span { color: var(--pink-light); display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ranking-caption small { color: #74727d; font-size: 11px; }
.rank-number { position: absolute; left: 11px; bottom: 3px; color: #fff; font-style: italic; font-size: 60px; line-height: 1.2; font-weight: 900; text-shadow: 2px 3px 6px #0008; letter-spacing: -5px; }
.rank-1, .rank-2, .rank-3 { color: #ffb1cc; }
.site-footer { background: #1c1d20; padding: 34px 0 28px; border-top: 1px solid #ffffff05; }
.footer-about { display: flex; align-items: center; gap: 25px; }
.footer-brand { font-size: 22px; font-weight: 750; white-space: nowrap; }
.footer-brand span { color: var(--pink); }
.footer-about p { font-size: 12px; color: #8f8b95; margin: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.footer-links button { background: transparent; color: #a09aa7; padding: 0 16px; border-right: 1px solid #39383f; line-height: 15px; font-size: 12px; }
.footer-links button:first-child { padding-left: 0; }
.footer-links button:last-child { border-right: 0; }
.footer-links button:hover { color: var(--pink); }
.copyright { color: #686874; font-size: 11px; margin: 23px 0 0; }
.copyright span { margin-left: 15px; }
.social-links { display: flex; gap: 12px; }
.social-links button, .social-links a { background: #25262a; border: 1px solid #38383e; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #bcb6c1; }
.social-links button:hover, .social-links a:hover { color: var(--pink); border-color: var(--pink); }
.social-links svg-icon { width: 18px; height: 18px; }
.story-dialog { border: 1px solid #ffffff18; border-radius: 12px; background: #202025; color: #f6f1f5; padding: 0; width: min(720px, calc(100vw - 36px)); max-height: calc(100dvh - 50px); }
.story-dialog[open] { display: flex; }
.story-dialog::backdrop { background: #08080cc7; backdrop-filter: blur(8px); }
.story-dialog > img { width: 40%; min-height: 380px; object-fit: cover; }
.story-details { padding: 40px 30px; flex: 1; }
.story-details h2 { font-size: 25px; margin: 12px 0 18px; }
.story-details p { color: #a7a1ae; font-size: 13px; }
.story-details #story-tags { color: var(--pink-light); font-size: 11px; }
.dialog-close { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; background: #151519c9; border-radius: 50%; display: grid; place-items: center; }
.demo-note { display: flex; align-items: center; gap: 10px; margin: 25px 0; padding: 14px; border-radius: 8px; background: #ff6b9a0d; color: #baa3b0; font-size: 12px; }
.demo-note svg-icon { color: var(--pink); width: 26px; height: 26px; }
.client-toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); padding: 12px 22px; border: 1px solid #ff6b9a40; border-radius: 8px; background: #30232dee; backdrop-filter: blur(8px); color: #ffdae7; font-size: 13px; width:max-content; max-width:calc(100vw - 32px); line-break:strict; text-wrap:pretty; z-index: 100; text-align: center; pointer-events: none; }
.client-toast.error-toast { background:#672f3bee; border-color:#e96b8055; color:#fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #17181c; }
::-webkit-scrollbar-thumb { background: #4d3945; border-radius: 8px; }
@media (min-width: 1600px) { .hero { height: 560px; } .hero-copy { padding-top: 95px; } }
@media (max-width: 1200px) { .header-inner { width: calc(100% - 48px); gap: 16px; } .main-nav { gap: 4px; } .main-nav a { padding: 6px 12px; } .content-width, .hero-copy, .hero-controls { width: calc(100% - 64px); } .app-button { display: none; } .drama-grid { gap: 26px 16px; } .theme-grid { gap: 18px; } .theme-copy { bottom: 14px; left: 14px; right: 14px; } .theme-copy strong { font-size: 20px; } }
@media (max-width: 950px) { .header-inner { gap: 12px; } .brand > span:last-child { font-size: 20px; } .brand-mark, .brand-mark svg-icon { width: 32px; height: 32px; } .main-nav a { font-size: 13px; padding: 6px 10px; } .site-search { width: 200px; } .profile-button { display: none; } .drama-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-copy { padding-top: 65px; } }
@media (max-width: 650px) {
  .content-width, .hero-copy, .hero-controls { width: calc(100% - 32px); }
  .site-header { height: 108px; } .header-inner { width: calc(100% - 32px); flex-wrap: wrap; align-content: center; gap: 12px; }
  .brand { margin-right: auto; } .brand small { font-size: 8px; } .brand > span:last-child { font-size: 20px; }
  .site-search { order: 1; width: 160px; min-width: 100px; height: 34px; margin: 0; } .site-search input { font-size: 10px; padding-left: 12px; } .site-search button { width: 32px; }
  .main-nav { order: 2; width: 100%; justify-content: space-between; gap: 2px; } .main-nav a { font-size: 13px; padding: 4px 17px; } main { padding-top: 108px; }
  .hero { height: 380px; min-height: 0; } .hero-overlay { background: linear-gradient(90deg, #111214bf, #11121410), linear-gradient(0deg, #111214, transparent 85%); }
  .hero-copy { padding-top: 75px; } .hero-copy h1 { font-size: 34px; letter-spacing: 2px; margin-top: 14px; } .hero-copy p { font-size: 13px; letter-spacing: 0; margin-bottom: 22px; } .hero-eyebrow { font-size: 10px; letter-spacing: 1px; } .hero-note { display: none; } .hero-watch { font-size: 12px; padding: 9px 20px; } .hero-controls { bottom: 22px; } .hero-arrows { gap: 10px; }
  .home-content { padding-top: 2px; padding-bottom: 24px; } .catalog-section { margin-top: 20px; margin-bottom: 34px; } .section-heading { margin-bottom: 18px; } .section-heading h2 { font-size: 21px; } .section-heading p { font-size: 10px; } .section-eyebrow { font-size: 8px; letter-spacing: 1.5px; } .see-more { font-size: 10px; gap: 2px; }
  .drama-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .drama-card h3 { font-size: 14px; } .drama-description { font-size: 10px; } .drama-meta { font-size: 10px; }
  .theme-grid { gap: 14px; } .theme-copy { left: 12px; right: 12px; bottom: 12px; } .theme-copy strong { font-size: 18px; } .theme-title-row { gap: 8px; }
  .listing-content { padding-top: 22px; padding-bottom: 44px; } .breadcrumb { margin-bottom: 26px; font-size: 11px; gap: 6px; } .listing-title h1 { font-size: 24px; letter-spacing: 0; } .listing-title p { font-size: 10px; } .listing-decoration { display: none; } .listing-title { margin-bottom: 24px; }
  .filter-bar { gap: 8px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 22px; } .filter-bar button { padding: 6px 16px; font-size: 12px; } .filter-bar > span { font-size: 9px; margin: 4px 0 0; width: 100%; }
  .pagination { gap: 7px; margin-top: 30px; } .page-numbers { gap: 7px; } .pagination > button, .page-numbers button { width: 32px; height: 32px; } .page-jump { justify-content: center; width: 100%; margin-top: 7px; } .ranking-caption small { max-width: 140px; text-align: right; font-size: 9px; } .rank-number { font-size: 50px; }
  .site-footer { padding: 26px 0; } .footer-about { align-items: flex-start; flex-direction: column; gap: 10px; } .footer-about p { font-size: 11px; } .footer-bottom { display: block; } .footer-links { gap: 12px 0; } .footer-links button { font-size: 10px; padding: 0 11px; } .copyright { font-size: 9px; } .copyright span { display: block; margin: 5px 0 0; } .social-links { margin-top: 20px; }
  .story-dialog[open] { flex-direction: column; } .story-dialog > img { height: 220px; min-height: 0; width: 100%; object-position: center 30%; } .story-details { padding: 24px; } .story-details h2 { margin-top: 6px; font-size: 22px; } .demo-note { margin: 18px 0; } .client-toast { bottom: 20px; }
}
.detail-content { padding-top: 28px; padding-bottom: 70px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; }
.detail-main { min-width: 0; }
.detail-overview { display: flex; gap: 30px; padding: 28px; background: linear-gradient(135deg, #292226, #1b1b1e); border: 1px solid #ffffff0a; border-radius: var(--radius); }
.detail-poster { width: 210px; height: 290px; border-radius: var(--radius); flex-shrink: 0; }
.detail-copy { flex: 1; min-width: 0; padding-top: 4px; }
.detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.detail-title h1 { font-size: 28px; margin: 0; }
.detail-title .heat { color: #b9a4af; font-size: 12px; gap: 5px; }
.story-badges { display: flex; gap: 8px; margin: 20px 0; }
.story-badges span { padding: 4px 10px; background: #ff6b9a10; color: var(--pink-light); font-size: 11px; border-radius: 6px; }
.detail-tags { font-size: 12px; color: #ab95a1; margin: 18px 0; }
.detail-description { font-size: 12px; line-height: 2.1; color: #a9a2ad; margin: 18px 0 24px; }
.detail-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-watch { display: inline-flex; gap: 7px; align-items: center; padding: 11px 22px; }
.detail-buttons .app-button { display: inline-flex; }
.story-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-buttons .story-actions { margin-left: auto; }
.story-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #ffffff03; border: 1px solid #ffffff12; border-radius: 24px; padding: 8px 14px; font-size: 11px; color: #b7adb9; }
.story-actions svg-icon { width: 16px; height: 16px; }
.story-actions button:hover, .story-actions button[aria-pressed="true"] { color: var(--pink); border-color: #ff6b9a50; }
.detail-recommendations { border-left: 1px solid var(--line); padding-left: 24px; }
.detail-recommendations h2, .episode-heading h2 { font-size: 18px; margin: 0 0 18px; }
.recommendation-list { display: grid; gap: 24px; }
.episode-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid #ffffff08; }
.episode-heading { display: flex; align-items: center; justify-content: space-between; }
.episode-heading h2 { margin-bottom: 0; }
.episode-heading > span { font-size: 11px; color: var(--muted); }
.episode-range { font-size: 14px; color: #bfb8c4; margin: 18px 0; }
.episode-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.episode-button { width: 62px; height: 62px; display: grid; place-items: center; background: #25262b; border: 1px solid transparent; border-radius: var(--radius); font-size: 18px; }
.episode-button:hover { border-color: var(--pink); color: var(--pink); }
.episode-button.active { background: #ff6b9a22; color: var(--pink-light); border-color: #ff6b9a60; }
.hls-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.hls-player video { width: 100%; height: 100%; display: block; object-fit: contain; }
.player-status { position: absolute; left: 15px; top: 15px; max-width: calc(100% - 30px); font-size: 12px; color: #e1cbd5; background: #191319e6; border-radius: 6px; padding: 8px 12px; margin: 0; pointer-events: none; }
.player-toolbar { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #98909e; font-size: 11px; }
.episode-navigation { display: flex; gap: 18px; margin-right: auto; }
.episode-navigation a { display: flex; align-items: center; gap: 5px; }
.episode-navigation a:hover { color: var(--pink); }
.episode-navigation svg-icon { width: 14px; height: 14px; }
.episode-navigation [aria-disabled] { opacity: .4; }
.player-toolbar label { display: flex; gap: 6px; align-items: center; }
.player-toolbar select { background: #25252b; color: #d1c3cf; border: 1px solid #ffffff12; border-radius: 6px; padding: 4px; font: inherit; }
.watching-label { color: var(--pink); font-size: 12px; margin: 20px 0 8px; }
.play-information h1 { font-size: 24px; margin: 0 0 10px; }
.play-information h1 span { font-weight: 500; }
.play-meta, .sample-disclaimer { color: var(--muted); font-size: 11px; }
.sample-disclaimer { margin-top: 18px; color: #977a88; }
@media (max-width: 1200px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; } .detail-overview { padding: 22px; gap: 22px; } .detail-poster { width: 170px; height: 245px; } .detail-title h1 { font-size: 24px; } .detail-buttons .story-actions { margin-left: 0; } .detail-recommendations { padding-left: 18px; } }
@media (max-width: 950px) { .detail-layout { grid-template-columns: 1fr; } .detail-recommendations { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; } .recommendation-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 650px) {
  .detail-content { padding-top: 20px; padding-bottom: 40px; }
  .detail-overview { display: block; padding: 20px; }
  .detail-poster { width: 160px; height: 215px; margin: 0 auto 24px; }
  .detail-title h1 { font-size: 23px; }
  .detail-title { gap: 6px; } .detail-title .heat { font-size: 11px; }
  .story-badges { margin: 16px 0; } .detail-description { margin: 14px 0 20px; font-size: 11px; }
  .story-actions { gap: 6px; } .story-actions button { padding: 8px 11px; }
  .episode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .episode-button { width: 100%; height: 50px; font-size: 16px; }
  .hls-player { aspect-ratio: 3 / 4; }
  .player-toolbar { flex-wrap: wrap; gap: 12px; } .episode-navigation { width: 100%; justify-content: space-between; }
  .play-information h1 { font-size: 20px; }
  .recommendation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
.account-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; color: #f7eef4; background: #211b27; border: 1px solid #493449; border-radius: 8px; }
.account-dialog::backdrop { background: rgba(0, 0, 0, .65); }
.account-heading, .account-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-heading h2 { margin: 0; font-size: 22px; }
.account-dialog label { display: grid; gap: 8px; margin: 16px 0; }
.account-dialog input { width: 100%; padding: 12px; background: #17131d; color: inherit; border: 1px solid #493449; border-radius: 8px; }
.account-dialog button { padding: 10px 18px; background: #d94e8a; color: white; border: 0; border-radius: 8px; cursor: pointer; }
.account-dialog button:disabled { opacity: .5; }
.account-dialog #close-account { display:grid; place-items:center; width:32px; height:32px; padding:0; background:transparent; color:#b7adb9; }
.account-dialog #close-account:hover { color:var(--pink); background:#ff6b9a15; }
.account-dialog #close-account svg-icon { width:22px; height:22px; }
.detail-description { white-space:pre-line; }
.profile-button { display:grid; }
/* Frame the visible 771x229 artwork, excluding only the PNG's transparent padding. */
.brand,.footer-brand { position:relative; display:block; width:var(--logo-width); aspect-ratio:771 / 229; overflow:hidden; flex-shrink:0; }
.brand { --logo-width:220px; }
.footer-brand { --logo-width:240px; }
.brand-logo,.footer-logo { position:absolute; display:block; width:calc(100% * 1280 / 771); height:auto; max-width:none; left:calc(-100% * 72 / 771); top:calc(-100% * 77 / 229); object-fit:contain; }
@media (max-width:950px) {
  .brand { --logo-width:160px; }
  .site-search { width:auto; min-width:96px; flex:1; }
}
.profile-content { padding-top:28px; padding-bottom:60px; }
.profile-summary { display:flex; align-items:center; gap:24px; padding:28px; border:1px solid var(--line); border-radius:8px; background:#ff6b9a08; margin:24px 0; }
.profile-avatar { display:grid; place-items:center; width:72px; height:72px; flex-shrink:0; border-radius:50%; color:var(--pink); background:#ff6b9a20; }
.profile-avatar svg-icon { width:36px; height:36px; }
.profile-identity { min-width:0; flex:1; }
.profile-identity > span { font-size:12px; color:var(--pink); }
.profile-identity h1 { margin:8px 0; font-size:26px; overflow-wrap:anywhere; }
.profile-identity p,.profile-note { color:var(--muted); font-size:13px; }
.profile-action { padding:10px 18px; border-radius:8px; background:var(--pink); color:#fff; white-space:nowrap; }
.profile-cancel { background:#bd3c5a; }
.profile-tabs { display:flex; gap:12px; border-bottom:1px solid var(--line); padding-bottom:16px; }
.profile-tabs button { padding:10px 18px; border-radius:8px; background:#ffffff08; font-size:14px; }
.profile-tabs button[aria-selected="true"] { background:#ff6b9a20; color:var(--pink); }
.profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.profile-record { display:flex; min-width:0; gap:16px; padding:14px; border:1px solid var(--line); border-radius:8px; }
.profile-record:hover { border-color:var(--pink); }
.profile-cover { display:grid; place-items:center; width:84px; aspect-ratio:3 / 4; flex-shrink:0; background:#ffffff06; border-radius:8px; overflow:hidden; color:var(--pink); }
.profile-cover img { width:100%; height:100%; object-fit:contain; }
.profile-cover svg-icon { width:28px; height:28px; }
.profile-record-copy { min-width:0; display:flex; flex-direction:column; justify-content:center; }
.profile-record h3 { margin:0 0 10px; font-size:15px; overflow-wrap:anywhere; }
.profile-record p,.profile-record time { font-size:12px; color:var(--muted); line-height:1.8; margin:0; }
.profile-empty { min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px; }
.profile-empty svg-icon { width:44px; height:44px; color:var(--pink); }
.profile-empty h2 { font-size:18px; margin:18px 0 8px; }
.profile-empty p { color:var(--muted); font-size:13px; }
@media (max-width:950px) { .profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) {
  .brand { --logo-width:clamp(130px,41vw,160px); }
  .main-nav a { padding:4px 8px; white-space:nowrap; }
  .header-inner { gap:8px; }
  .site-search { order:0; width:auto; min-width:80px; flex:1; }
  .profile-summary { padding:18px; gap:14px; flex-wrap:wrap; }
  .profile-avatar { width:52px; height:52px; }
  .profile-identity { flex-basis:calc(100% - 70px); }
  .profile-action { margin-left:auto; }
  .profile-identity h1 { font-size:22px; }
  .profile-identity p { line-height:1.6; }
  .profile-grid { grid-template-columns:1fr; }
  .profile-tabs { gap:8px; }
  .profile-tabs button { flex:1; padding:10px 8px; white-space:nowrap; font-size:13px; }
}
