/* Videos: the streaming-site look. Always dark (the view forces data-theme="dark" while it is open), full screen,
   its own navigation. Tokens come from tokens.css; only layout and the cinema-specific surfaces live here. */

html.cine-lock, html.cine-lock body { overflow: hidden; }
body.cp-open, body.cd-open { overflow: hidden; }

.cine {
  --g: clamp(16px, 4vw, 56px);        /* page gutter */
  --cw: clamp(188px, 17.5vw, 300px);  /* card width */
  --nav-h: 64px;
  --cine-bg: #0a0a0c;
  position: fixed; inset: 0; z-index: 60;
  background: var(--cine-bg); color: #f1f1f4;
  font-family: var(--font);
}
.cine__scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: auto; }
.cine__main { padding-bottom: 48px; min-height: 100%; }
.cine button { font: inherit; }
.cine :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Navigation ---------- */
.cine-nav {
  position: sticky; top: 0; z-index: 10; margin-bottom: calc(var(--nav-h) * -1);
  background: linear-gradient(to bottom, rgba(10, 10, 12, .92), rgba(10, 10, 12, 0));
  transition: background 220ms var(--ease);
  padding-top: var(--safe-t);
}
.cine-nav.is-solid { background: rgba(10, 10, 12, .96); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cine-nav__bar { height: var(--nav-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--g); }
.cine-brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: #fff; padding: 0; cursor: pointer; flex: none; }
.cine-brand img { width: 28px; height: 28px; border-radius: 7px; background: #fff; padding: 2px; object-fit: contain; }
.cine-brand span { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.cine-brand small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.cine-nav__links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cine-nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 6px;
  background: none; border: 0; color: #c9c9d0; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: color 160ms, background 160ms;
}
.cine-nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cine-nav__link.is-on { color: #fff; font-weight: 700; }
.cine-nav__link .icon { width: 14px; height: 14px; }
.cine-nav__wrap { position: relative; }
.cine-drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; max-height: 70vh; overflow: auto; padding: 6px;
  background: rgba(20, 20, 24, .98); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
}
.cine-drop__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; height: 38px; padding: 0 12px; background: none; border: 0; border-radius: 6px; color: #e8e8ec; font-size: 14px; cursor: pointer; text-align: left; }
.cine-drop__item:hover { background: rgba(255, 255, 255, .1); }
.cine-drop__item small { color: #8a8a94; font-size: 12px; }
.cine-nav__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cine-search { display: flex; align-items: center; gap: 8px; height: 36px; width: 230px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .09); border: 1px solid transparent; color: #b4b4bc; transition: width 200ms var(--ease), background 160ms, border-color 160ms; }
.cine-search:focus-within { width: 300px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
.cine-search .icon { width: 16px; height: 16px; flex: none; }
.cine-search__in { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: #fff; font-size: 14px; }
.cine-search__in::placeholder { color: #8a8a94; }
.cine-nav__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: none; border: 0; color: #d4d4da; cursor: pointer; }
.cine-nav__icon:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cine-nav__icon .icon { width: 19px; height: 19px; }
.cine-nav__icon--search { display: none; }
.cine-nav__pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: rgba(255, 255, 255, .1); border: 1px solid transparent; color: #e8e8ec; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cine-nav__pill:hover { background: rgba(255, 255, 255, .18); }
.cine-nav__pill .icon { width: 15px; height: 15px; }
.cine-nav__pill.is-on { background: #fff; color: #0a0a0c; }
.cine-nav__pill--quiet { background: none; border-color: rgba(255, 255, 255, .22); }
.cine-chips { display: none; }

/* ---------- Hero ---------- */
.cine-hero { position: relative; min-height: clamp(440px, 74vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.cine-hero-spacer { height: calc(var(--nav-h) + 24px); }
.cine-hero__art { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--h) 45% 26%), hsl(calc(var(--h) + 50) 50% 10%)); }
.cine-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; animation: cine-fade 700ms var(--ease); }
.cine-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .55) 38%, rgba(10, 10, 12, 0) 70%); }
.cine-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 1; background: linear-gradient(to top, var(--cine-bg), rgba(10, 10, 12, 0)); }
.cine-hero__body { position: relative; z-index: 2; width: min(660px, 100%); padding: 120px var(--g) clamp(64px, 11vh, 120px); }
.cine-hero h1 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.cine-hero__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; color: #d8d8de; font-size: 15px; font-weight: 500; }
.cine-hero__meta span + span::before { content: "·"; margin-right: 16px; color: #8a8a94; }
.cine-hero__over { margin-top: 14px; font-size: 16px; line-height: 1.5; color: #e4e4e8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.cine-hero__acts { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.cine-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border: 0; border-radius: 8px; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform 120ms, background 160ms; }
.cine-btn:active { transform: scale(.97); }
.cine-btn .icon { width: 22px; height: 22px; }
.cine-btn--light { background: #fff; color: #0a0a0c; }
.cine-btn--light:hover { background: rgba(255, 255, 255, .82); }
.cine-btn--glass { background: rgba(109, 109, 118, .55); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cine-btn--glass:hover { background: rgba(109, 109, 118, .38); }
@keyframes cine-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Rows and cards ---------- */
.cine-rows { position: relative; z-index: 3; margin-top: clamp(-80px, -7vh, -32px); display: flex; flex-direction: column; gap: 22px; }
.cine-row__head { display: flex; align-items: baseline; gap: 16px; padding: 0 var(--g); margin-bottom: 4px; }
.cine-row__head h2 { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; letter-spacing: -.01em; color: #f1f1f4; }
.cine-row__all { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; color: #9a9aa4; font-size: 13px; font-weight: 600; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.cine-row__all:hover { color: #fff; }
.cine-row__all .icon { width: 14px; height: 14px; }
.cine-row__wrap { position: relative; }
.cine-track { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 14px var(--g) 30px; margin: -14px 0 -30px; scroll-snap-type: x proximity; scroll-padding: 0 var(--g); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cine-track::-webkit-scrollbar { display: none; }
.cine-track > * { scroll-snap-align: start; }
.cine-arrow { position: absolute; top: 14px; bottom: 30px; width: var(--g); min-width: 44px; z-index: 4; display: grid; place-items: center; border: 0; color: #fff; cursor: pointer; opacity: 0; transition: opacity 160ms; }
.cine-arrow--prev { left: 0; background: linear-gradient(to right, rgba(10, 10, 12, .85), rgba(10, 10, 12, 0)); }
.cine-arrow--next { right: 0; background: linear-gradient(to left, rgba(10, 10, 12, .85), rgba(10, 10, 12, 0)); }
.cine-arrow .icon { width: 30px; height: 30px; }
.cine-row__wrap:hover .cine-arrow:not([hidden]), .cine-arrow:focus-visible { opacity: 1; }

.cine-card { flex: 0 0 var(--cw); position: relative; display: block; padding: 0; border: 0; background: none; border-radius: 8px; text-align: left; color: inherit; cursor: pointer; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.cine-card__art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 42% 24%), hsl(calc(var(--h) + 45) 48% 11%)); }
.cine-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .12) 52%, rgba(0, 0, 0, 0) 100%); }
.cine-card__title { position: absolute; left: 12px; right: 12px; bottom: 11px; font-size: 14.5px; font-weight: 700; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -.005em; }
.cine-card__sub { position: absolute; left: 12px; bottom: 34px; font-size: 12px; font-weight: 600; color: #d4d4da; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.cine-card:has(.cine-card__sub) .cine-card__title { bottom: 11px; }
.cine-card__tag { position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(10, 10, 12, .62); color: #fff; font-size: 11.5px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cine-card__tag .icon { width: 12px; height: 12px; }
.cine-card__done { position: absolute; top: 9px; left: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 10, 12, .62); color: #4ddb94; }
.cine-card__done .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.cine-card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .28); }
.cine-card__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--accent); }
.cine-card__hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity 180ms; pointer-events: none; }
.cine-card__play { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #0a0a0c; transform: scale(.85); transition: transform 200ms var(--ease); }
.cine-card__play .icon { width: 22px; height: 22px; margin-left: 2px; }
.cine-card__meta { font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
@media (hover: hover) and (pointer: fine) {
  .cine-card:hover, .cine-card:focus-visible { transform: scale(1.07); z-index: 3; box-shadow: 0 14px 40px rgba(0, 0, 0, .7); }
  .cine-card:hover .cine-card__hover, .cine-card:focus-visible .cine-card__hover { opacity: 1; }
  .cine-card:hover .cine-card__play { transform: scale(1); }
}
.cine-card:active { transform: scale(.98); }

/* ---------- Pages: browse and search ---------- */
.cine-page { padding: calc(var(--nav-h) + 34px) var(--g) 0; }
.cine-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.cine-page__head h1 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.cine-page__head p { color: #9a9aa4; margin-top: 4px; font-size: 14px; }
.cine-sort { display: flex; align-items: center; gap: 10px; color: #9a9aa4; font-size: 13px; }
.cine-select { height: 36px; padding: 0 32px 0 12px; background: rgba(255, 255, 255, .09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9c9d0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; color: #fff; font-size: 14px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cine-select option { background: #17171a; }
.cine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cw), 1fr)); gap: 28px 12px; padding-bottom: 20px; }
.cine-grid .cine-card { flex: none; }
.cine-none { color: #9a9aa4; padding: 40px 0; text-align: center; }

.cine-foot { padding: 40px var(--g) 0; color: #6e6e78; font-size: 12.5px; }
.cine-empty { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 96px var(--g) 48px; }
.cine-empty .icon { width: 44px; height: 44px; color: #55555d; }
.cine-empty h2 { font-size: 24px; font-weight: 700; color: #fff; }
.cine-empty p { color: #9a9aa4; max-width: 460px; margin-bottom: 8px; }
.cine__notice { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 22px; background: rgba(28, 28, 33, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: #e4e4e8; font-size: 13px; max-width: calc(100vw - 32px); }
.cine__notice .spinner { width: 14px; height: 14px; flex: none; }

.cine-skel { padding-bottom: 40px; }
.cine-skel__hero { height: clamp(440px, 74vh, 820px); background: linear-gradient(110deg, #141418 30%, #1b1b21 50%, #141418 70%); background-size: 200% 100%; animation: cine-shim 1.4s linear infinite; }
.cine-skel__row { display: flex; gap: 8px; padding: 20px var(--g) 0; overflow: hidden; }
.cine-skel__row i { flex: 0 0 var(--cw); aspect-ratio: 16 / 9; border-radius: 8px; background: linear-gradient(110deg, #141418 30%, #1b1b21 50%, #141418 70%); background-size: 200% 100%; animation: cine-shim 1.4s linear infinite; }
@keyframes cine-shim { to { background-position-x: -200%; } }

/* ---------- Title modal ---------- */
.cd-ov { position: fixed; inset: 0; z-index: 62; background: rgba(0, 0, 0, .72); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 4vh 16px; animation: cine-fade 180ms var(--ease); }
.cd { position: relative; width: min(900px, 100%); border-radius: 14px; overflow: hidden; background: #141417; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); animation: cd-in 260ms var(--ease); min-height: 200px; color: #f1f1f4; }
@keyframes cd-in { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.cd__x { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(20, 20, 23, .85); color: #fff; cursor: pointer; }
.cd__x:hover { background: #000; }
.cd__x .icon { width: 20px; height: 20px; }
.cd__loading { display: grid; place-items: center; min-height: 240px; color: #9a9aa4; text-align: center; padding: 24px; }
.cd__hero { position: relative; aspect-ratio: 16 / 8.4; background: #0c0c0e; }
.cd__art { position: absolute; inset: 0; background: linear-gradient(135deg, hsl(var(--h) 45% 26%), hsl(calc(var(--h) + 50) 50% 10%)); }
.cd__art img { width: 100%; height: 100%; object-fit: cover; }
.cd__fade { position: absolute; inset: 0; background: linear-gradient(to top, #141417 0%, rgba(20, 20, 23, .55) 34%, rgba(20, 20, 23, 0) 70%); }
.cd__head { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(18px, 4vw, 40px) 22px; }
.cd__head h1 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); margin-bottom: 16px; text-wrap: balance; }
.cd__acts { display: flex; align-items: center; gap: 10px; }
.cd__play { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 24px; border: 0; border-radius: 8px; background: #fff; color: #0a0a0c; font-size: 16px; font-weight: 700; cursor: pointer; }
.cd__play:hover { background: rgba(255, 255, 255, .82); }
.cd__play .icon { width: 20px; height: 20px; }
.cd__round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); background: rgba(20, 20, 23, .6); color: #fff; cursor: pointer; }
.cd__round:hover { border-color: #fff; }
.cd__main { padding: 8px clamp(18px, 4vw, 40px) 36px; }
.cd__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: #c9c9d0; font-size: 15px; font-weight: 500; margin: 10px 0 14px; }
.cd__pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; font-weight: 700; color: #e8e8ec; }
.cd__over { font-size: 15.5px; line-height: 1.55; color: #e4e4e8; max-width: 70ch; margin-bottom: 16px; }
.cd__facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 6px 0 0; font-size: 14px; }
.cd__facts dt { color: #8a8a94; }
.cd__facts dd { margin: 0; color: #e4e4e8; word-break: break-word; }
.cd__tone--ok { color: #4ddb94; } .cd__tone--warn { color: #ffbd4a; }
.cd__ephead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.cd__ephead h2 { font-size: 20px; font-weight: 700; }
.cd__ephead .select { width: auto; min-width: 140px; background-color: #26262b; border-color: rgba(255, 255, 255, .16); color: #fff; }
.cd__eplist { list-style: none; margin: 0; padding: 0; }
.cd__ep { display: flex; align-items: stretch; border-top: 1px solid rgba(255, 255, 255, .09); border-radius: 8px; }
.cd__ep:hover { background: rgba(255, 255, 255, .06); }
.cd__epmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 14px 8px 14px 12px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.cd__epno { flex: none; width: 32px; text-align: center; font-size: 22px; font-weight: 600; color: #8a8a94; }
.cd__epbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cd__epname { font-size: 15px; font-weight: 600; color: #f1f1f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd__epmeta { font-size: 12.5px; color: #8a8a94; }
.cd__epbar { display: block; position: relative; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .2); max-width: 260px; }
.cd__epbar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 2px; background: var(--accent); }
.cd__epplay { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; opacity: 0; transition: opacity 140ms; flex: none; }
.cd__epplay .icon { width: 16px; height: 16px; margin-left: 2px; }
.cd__ep:hover .cd__epplay, .cd__epmain:focus-visible .cd__epplay { opacity: 1; }
.cd__ck { align-self: center; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 8px; border-radius: 50%; border: 0; background: none; color: #55555d; cursor: pointer; }
.cd__ck:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cd__ck.is-on { color: #4ddb94; }
.cd__ck .icon { width: 18px; height: 18px; stroke-width: 2.2; }

/* ---------- Player ---------- */
.cp { position: fixed; inset: 0; z-index: 66; background: #000; color: #fff; cursor: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; font-family: var(--font); }
.cp.is-active, .cp.is-paused { cursor: default; }
.cp__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cp__video::cue { background: rgba(0, 0, 0, .72); color: #fff; font-size: clamp(16px, 2.2vw, 28px); font-family: var(--font); text-shadow: none; }
.cp__top, .cp__bar { position: absolute; left: 0; right: 0; z-index: 3; opacity: 0; transition: opacity 220ms; pointer-events: none; }
.cp.is-active .cp__top, .cp.is-active .cp__bar, .cp.is-paused .cp__top, .cp.is-paused .cp__bar, .cp.has-status .cp__top { opacity: 1; pointer-events: auto; }
.cp.has-status .cp__bar { opacity: 0; pointer-events: none; }
.cp__top { top: 0; display: flex; align-items: center; gap: 12px; padding: calc(14px + var(--safe-t)) calc(18px + var(--safe-r)) 40px calc(14px + var(--safe-l)); background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); }
.cp__heading { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cp__heading strong { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp__heading span { font-size: 13.5px; color: #c9c9d0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp__bar { bottom: 0; padding: 48px calc(18px + var(--safe-r)) calc(12px + var(--safe-b)) calc(18px + var(--safe-l)); background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.cp__btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; font-weight: 700; }
.cp__btn:hover { background: rgba(255, 255, 255, .14); }
.cp__btn .icon { width: 24px; height: 24px; }
.cp__btn--lg .icon { width: 28px; height: 28px; }
.cp__btn--text { font-size: 14px; padding: 0 10px; }
.cp__btn.is-on { color: var(--accent); }
.cp__seekwrap { position: relative; height: 22px; display: flex; align-items: center; }
.cp__seek { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: none; cursor: pointer; --played: 0%; --buffered: 0%; }
.cp__seek::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--played), rgba(255, 255, 255, .55) var(--played), rgba(255, 255, 255, .55) var(--buffered), rgba(255, 255, 255, .22) var(--buffered)); }
.cp__seek::-moz-range-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.cp__seek::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--accent); }
.cp__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -5px; border-radius: 50%; background: var(--accent); border: 0; transform: scale(0); transition: transform 120ms; }
.cp__seek::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 0; }
.cp__seekwrap:hover .cp__seek::-webkit-slider-thumb, .cp__seek:active::-webkit-slider-thumb, .cp__seek:focus-visible::-webkit-slider-thumb { transform: scale(1); }
.cp__tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 3px 8px; border-radius: 4px; background: rgba(20, 20, 23, .95); font-size: 12.5px; font-weight: 600; pointer-events: none; }
.cp__ctrls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp__grp { display: flex; align-items: center; gap: 2px; min-width: 0; }
.cp__time { font-size: 13.5px; font-weight: 600; color: #e4e4e8; margin-left: 6px; font-variant-numeric: tabular-nums; }
.cp__time--end { margin-left: 0; color: #b4b4bc; }
.cp__sep { color: #8a8a94; margin: 0 4px; }
.cp__volwrap { display: flex; align-items: center; }
.cp__vol { -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 22px; background: none; transition: width 160ms var(--ease), opacity 160ms; cursor: pointer; }
.cp__volwrap:hover .cp__vol, .cp__vol:focus-visible { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.cp__vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.cp__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4.5px; border-radius: 50%; background: #fff; }
.cp__vol::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.cp__vol::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.cp__spin { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.cp__spin .spinner { width: 54px; height: 54px; border-width: 4px; border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.cp__flash { position: absolute; left: 50%; top: 16%; z-index: 4; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: rgba(20, 20, 23, .85); font-size: 15px; font-weight: 600; opacity: 0; transition: opacity 180ms; pointer-events: none; }
.cp__flash.on { opacity: 1; }
.cp__status { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .86); }
.cp__msg { width: min(460px, 100%); text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cp__msg strong { font-size: 22px; font-weight: 700; }
.cp__msg p { color: #b4b4bc; line-height: 1.5; }
.cp__err { color: #ff7a70 !important; }
.cp__fine { font-size: 12.5px; color: #77777f !important; }
.cp__meter { width: 100%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 8px; }
.cp__meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 600ms linear; }
.cp__pct { font-size: 13px; color: #b4b4bc; }
.cp__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.cp__cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: #fff; color: #0a0a0c; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cp__cta:hover { background: rgba(255, 255, 255, .85); text-decoration: none; }
.cp__cta--ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.cp__cta--ghost:hover { background: rgba(255, 255, 255, .24); }
.cp__cta .icon { width: 18px; height: 18px; }
.cp__next { position: absolute; right: calc(24px + var(--safe-r)); bottom: calc(110px + var(--safe-b)); z-index: 6; width: min(340px, calc(100% - 32px)); padding: 16px; border-radius: 12px; background: rgba(20, 20, 23, .95); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 48px rgba(0, 0, 0, .6); }
.cp__nlabel { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a8a94; }
.cp__ncount { font-size: 13px; color: #b4b4bc; }
.cp__next .cp__acts { justify-content: flex-start; }
.cp__pop { position: fixed; z-index: 8; min-width: 190px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 10px; background: rgba(24, 24, 28, .98); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 48px rgba(0, 0, 0, .7); }
.cp__pophead { padding: 6px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #77777f; }
.cp__popitem { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 12px 0 6px; border: 0; border-radius: 6px; background: none; color: #e4e4e8; font-size: 14px; text-align: left; cursor: pointer; }
.cp__popitem:hover { background: rgba(255, 255, 255, .1); }
.cp__popitem.is-on { color: #fff; font-weight: 700; }
.cp__tick { width: 18px; display: grid; place-items: center; }
.cp__tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- Library settings dialog ---------- */
.cs { display: flex; flex-direction: column; gap: var(--s4); }
.cs__status { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; padding: var(--s3); border-radius: var(--r); background: var(--sunken); font-size: var(--fs-sm); }
.cs__status dt { color: var(--text-3); } .cs__status dd { margin: 0; }
.cs__form { display: flex; flex-direction: column; gap: var(--s4); }
.cs__acts { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.cs__sp { flex: 1; }

/* ---------- Phone ---------- */
@media (max-width: 899px) {
  .cine-nav__links { display: none; }
  .cine-nav__bar { gap: 8px; }
  .cine-search { display: none; position: absolute; left: var(--g); right: var(--g); top: calc(var(--nav-h) + var(--safe-t)); width: auto; background: rgba(30, 30, 35, .98); border-color: rgba(255, 255, 255, .2); height: 44px; z-index: 12; }
  .cine-search:focus-within { width: auto; }
  .cine-nav.is-search .cine-search { display: flex; }
  .cine-nav.is-search .cine-chips { visibility: hidden; }
  .cine-nav__icon--search { display: grid; }
  .cine-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--g) 10px; scrollbar-width: none; }
  .cine-chips::-webkit-scrollbar { display: none; }
  .cine-chip { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 10, 12, .5); color: #e4e4e8; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .cine-chip.is-on { background: #fff; color: #0a0a0c; border-color: #fff; }
}
@media (max-width: 767px) {
  .cine { --cw: 46vw; --nav-h: 56px; }
  .cine-nav__pill span { display: none; }
  .cine-nav__pill { width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .cine-brand small { display: none; }
  .cine-hero { min-height: 62dvh; }
  .cine-hero__body { padding: 150px var(--g) 36px; }
  .cine-rows { margin-top: 0; gap: 18px; }
  .cine-hero__over { -webkit-line-clamp: 2; font-size: 14.5px; }
  .cine-btn { height: 44px; padding: 0 20px; font-size: 16px; }
  .cine-page { padding-top: calc(var(--nav-h) + 56px); }
  .cine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .cine-card__title { font-size: 13px; left: 9px; right: 9px; bottom: 8px; }
  .cine-card__sub { left: 9px; bottom: 30px; }
  .cine-card__hover { display: none; }
  .cd-ov { padding: 0; }
  .cd { min-height: 100dvh; border-radius: 0; width: 100%; }
  .cd__hero { aspect-ratio: 16 / 11; }
  .cd__facts { grid-template-columns: 90px 1fr; }
  .cd__epplay { display: none; }
  .cp__top { padding-right: calc(10px + var(--safe-r)); }
  .cp__btn { min-width: 40px; height: 40px; }
  .cp__volwrap { display: none; }
  .cp__sep, .cp__time--end { display: none; }
  .cp__next { left: 16px; right: 16px; width: auto; bottom: calc(96px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .cine-card, .cd, .cd-ov, .cine-hero__art img { animation: none !important; transition: none !important; }
}

/* ---------- Episode management and internet subtitles ---------- */
.cd__manage { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.cd__manage strong { font-size: 14px; color: #fff; }
.cd__manacts { display: flex; flex-wrap: wrap; gap: 8px; }
.cd__manacts .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
.cd__manacts .btn:hover { background: rgba(255, 255, 255, .18); }
.cd__manacts .btn--primary { background: #fff; color: #0a0a0c; border-color: #fff; }
.cd__ep.is-hidden .cd__epmain { opacity: .45; }
.cd__tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #d6d6dc; vertical-align: 2px; }
.cd__subs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.cd__subs .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }

.em { display: flex; flex-direction: column; gap: var(--s3); }
.em__nums { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.em__file { display: flex; gap: var(--s3); margin: 0; font-size: var(--fs-sm); color: var(--text-3); word-break: break-all; }
.em__file span { flex: none; font-weight: 600; color: var(--text-2); }
.em__tools { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--border); }

.ss { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.ss__for { margin: 0; color: var(--text-3); font-size: var(--fs-sm); }
.ss__bar { display: grid; grid-template-columns: 1fr minmax(150px, 190px) auto; gap: var(--s2); align-items: center; }
.ss__bar .select { width: 100%; }
.ss__mine h3, .cs__hidden h3 { margin: 0 0 var(--s2); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.ss__list { display: flex; flex-direction: column; max-height: min(52vh, 460px); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r); }
.ss__row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-top: 1px solid var(--border); min-width: 0; }
.ss__list .ss__row:first-child { border-top: 0; }
.ss__row--mine { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: var(--s2); }
.ss__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--text); }
.ss__meta { font-size: var(--fs-sm); color: var(--text-3); }
.ss__note { display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s6) var(--s4); color: var(--text-2); text-align: center; }
.ss__note--bad { color: var(--bad); }
.cs__hidden { margin-top: var(--s4); }
.cs__hidden .ss__row { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: var(--s2); }

@media (max-width: 767px) {
  .ss__bar { grid-template-columns: 1fr; }
  .ss__row { flex-wrap: wrap; }
  .ss__row .badge { order: 3; }
  .em__nums { grid-template-columns: 1fr 1fr; }
  .cd__manage { flex-direction: column; align-items: stretch; }
}

.em__move { display: flex; flex-direction: column; gap: var(--s2); }
.em__also { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.cs__auto { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) 0; }
.cs__auto .hint { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-3); }

.cine-copy { padding: 28px var(--g) calc(32px + var(--safe-b)); color: #6e6e78; font-size: 12.5px; text-align: center; }
