/* Details */
.detail-hero { position: relative; height: min(70vh, 690px); min-height: 510px; overflow: hidden; }
.detail-hero > img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,4,5,.88), rgba(4,4,5,.2)), linear-gradient(0deg, var(--bg), transparent 55%); }
.detail-hero-copy { position: absolute; left: max(24px, calc((100% - var(--max))/2)); bottom: 65px; }
.detail-hero h1 { max-width: 900px; font-size: clamp(3.5rem, 9vw, 8.5rem); text-transform: uppercase; }
.detail-hero-copy > p:last-child { color: #c7c5c3; font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.back-button { margin-bottom: 50px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.32); color: #fff; backdrop-filter: blur(8px); }
.detail-shell { width: min(calc(100% - 48px), 1080px); margin: 0 auto; }
.breadcrumbs { margin: 22px 0 65px; display: flex; flex-wrap: wrap; gap: 9px; color: var(--dim); font-size: .76rem; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs b { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d5d2cf; }
.movie-overview { display: grid; grid-template-columns: minmax(260px, .76fr) 1.2fr; align-items: center; gap: clamp(38px, 7vw, 90px); padding-bottom: 100px; border-bottom: 1px solid var(--line); }
.detail-poster-wrap { position: relative; }
.detail-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 35px 80px rgba(0,0,0,.48); }
.poster-ribbon { position: absolute; left: -13px; top: 30px; padding: 9px 15px; border-radius: 5px; background: var(--accent); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 8px 20px rgba(255,77,46,.25); }
.movie-info h2 { font-size: clamp(2.3rem, 5.3vw, 4.8rem); }
.movie-info h2 em { display: block; margin-top: 7px; color: var(--dim); font-size: .48em; font-style: normal; font-weight: 500; letter-spacing: -.03em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 21px 0 27px; }
.tag-row span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #b4b1ae; font-size: .68rem; }
.detail-description { color: #b3b0ae; line-height: 1.84; }
.movie-info dl { margin: 30px 0 0; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.movie-info dl div { display: grid; grid-template-columns: 100px 1fr; padding: 13px 15px; background: var(--surface); font-size: .8rem; }
.movie-info dt { color: var(--accent); font-weight: 700; }
.movie-info dd { margin: 0; color: #c3c0bd; }
.outline-button { display: inline-flex; margin-top: 24px; padding: 13px 17px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .78rem; font-weight: 700; }
.detail-section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.story-section { text-align: center; }
.story-section h2 { max-width: 810px; margin: auto; }
.story-section > p:last-child { max-width: 760px; margin: 30px auto 0; color: var(--muted); line-height: 1.9; }
.story-section code { color: var(--accent-2); }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.detail-heading > span { color: var(--dim); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.screenshot-window { position: relative; height: clamp(250px, 53vw, 600px); margin-top: 34px; overflow: hidden; border-radius: var(--radius); background: #121214; touch-action: pan-y; }
.screenshot-track figure { flex: 0 0 100%; position: relative; margin: 0; overflow: hidden; }
.screenshot-track img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-track figcaption { position: absolute; left: 24px; bottom: 22px; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .12em; backdrop-filter: blur(7px); }
.slider-arrow { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.52); color: #fff; }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.screenshot-dots { margin-top: 18px; display: flex; justify-content: center; gap: 6px; }
.downloads-section { text-align: center; }
.download-intro { max-width: 590px; margin: 22px auto 35px; color: var(--muted); line-height: 1.7; }
.quality-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.quality-list a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: .25s; }
.quality-list a:hover { border-color: var(--accent); background: #171312; transform: translateY(-2px); }
.quality-list a div { display: grid; gap: 4px; }
.quality-list a span { color: #fff; font-family: "Manrope"; font-size: 1.3rem; font-weight: 800; }
.quality-list a small { color: var(--dim); font-size: .66rem; letter-spacing: .09em; }
.quality-list a b { color: #b9b6b3; font-size: .72rem; }
.quality-list a em { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #242427; color: var(--accent); font-style: normal; }
.legal-note { margin: 20px 0 0; color: #666469; font-size: .7rem; }
.reaction-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.reaction-grid button { min-height: 125px; display: grid; justify-items: center; align-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: #fff; }
.reaction-grid button:hover, .reaction-grid button.selected { border-color: var(--accent); background: #1d1210; }
.reaction-grid button span { font-size: 1.8rem; }
.reaction-grid button strong { font-size: .72rem; }
.reaction-grid button b { color: var(--accent); font-size: .68rem; }
.comment-form { margin: 34px 0 42px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.comment-form input { min-width: 0; height: 58px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #fff; color: #161618; }
.comment-form button { padding: 0 25px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; }
.comment-list { display: grid; gap: 28px; }
.comment { display: grid; grid-template-columns: 48px 1fr; gap: 15px; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #28282c; color: #bbb8b5; font-size: .7rem; font-weight: 800; }
.avatar.admin { background: var(--accent); color: #fff; }
.comment p { margin: 0 0 9px; color: #aaa7a4; line-height: 1.6; }
.comment p:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment p b { color: #fff; font-size: .83rem; }
.comment p small { color: var(--dim); }
.comment button { padding: 0; border: 0; background: none; color: var(--dim); font-size: .72rem; }

/* Footer */
.site-footer { padding: 78px max(24px, calc((100% - var(--max))/2)) 28px; background: #0b0b0d; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 50px; }
.footer-logo { font-size: 1.45rem; }
.footer-grid > div p { max-width: 370px; color: var(--dim); line-height: 1.7; }
.footer-grid nav { display: grid; align-content: start; gap: 12px; }
.footer-grid nav b { margin-bottom: 8px; font-size: .76rem; letter-spacing: .08em; }
.footer-grid nav a { color: var(--dim); font-size: .8rem; }
.footer-grid nav a:hover { color: var(--accent); }
.footer-bottom { margin-top: 65px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #626065; font-size: .66rem; letter-spacing: .08em; }
.bottom-nav { display: none; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 30px; max-width: calc(100% - 30px); padding: 12px 17px; border: 1px solid #3c3b3f; border-radius: 999px; background: rgba(20,20,23,.94); color: #fff; font-size: .76rem; backdrop-filter: blur(12px); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto 1fr auto; gap: 18px; }
  .icon-button { display: block; }
  .desktop-nav { display: none; }
  .movie-grid { grid-template-columns: repeat(3, 1fr); }
  .discovery-bar { grid-template-columns: 1fr; }
  .filter-scroll { padding-bottom: 2px; }
  .detail-shell { width: min(calc(100% - 40px), 900px); }
}

@media (max-width: 700px) {
  body { padding-bottom: 68px; }
  .site-header { background: rgba(7,7,8,.88); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,.08); }
  .header-inner { width: calc(100% - 28px); height: 68px; grid-template-columns: 42px 1fr 42px; }
  .text-logo { justify-self: center; font-size: .95rem; gap: 4px; }
  .search-trigger { width: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .search-trigger b { display: none; }
  .hero { height: 83vh; min-height: 620px; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(4,4,5,.73) 46%, rgba(4,4,5,.18) 100%), linear-gradient(90deg, rgba(4,4,5,.7), transparent); }
  .hero-slide img { object-position: 63% center; }
  .hero-content { top: auto; bottom: 94px; transform: none; width: calc(100% - 40px); left: 20px; }
  .hero h1 { font-size: clamp(3.05rem, 16vw, 5.5rem); }
  .hero-copy { margin-top: 19px; font-size: .88rem; line-height: 1.65; }
  .hero-actions { margin-top: 24px; }
  .primary-button, .play-button { min-height: 48px; padding: 0 17px; font-size: .75rem; }
  .primary-button { gap: 18px; }
  .hero-pagination { left: 20px; right: auto; bottom: 42px; }
  .catalogue { width: calc(100% - 28px); padding: 60px 0 80px; }
  .catalogue-top { align-items: start; }
  .result-count { display: none; }
  .discovery-bar { margin: 26px 0 30px; padding: 10px; gap: 11px; }
  .filter-scroll { margin-inline: -1px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 11px; }
  .poster-box { border-radius: 10px; }
  .quality-badge { top: 8px; left: 8px; padding: 5px 7px; }
  .bookmark-button { opacity: 1; top: 7px; right: 7px; width: 31px; height: 31px; }
  .card-action { display: none; }
  .movie-card h3 { font-size: .88rem; }
  .showcase-band > div { justify-content: start; animation: bandMove 18s linear infinite; }
  @keyframes bandMove { to { transform: translateX(-40%); } }
  .detail-hero { min-height: 520px; height: 72vh; }
  .detail-hero-copy { left: 20px; bottom: 48px; width: calc(100% - 40px); }
  .detail-hero h1 { font-size: clamp(3.1rem, 18vw, 5.8rem); }
  .back-button { margin-bottom: 38px; }
  .detail-shell { width: calc(100% - 28px); }
  .breadcrumbs { margin-bottom: 42px; }
  .movie-overview { grid-template-columns: 1fr; gap: 38px; padding-bottom: 72px; }
  .detail-poster-wrap { width: min(84%, 390px); margin: auto; }
  .movie-info h2 { font-size: 2.6rem; }
  .detail-section { padding: 72px 0; }
  .detail-heading { align-items: start; }
  .detail-heading > span { padding-top: 6px; }
  .screenshot-window { margin-top: 25px; border-radius: 12px; }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .quality-list { grid-template-columns: 1fr; }
  .reaction-grid { grid-template-columns: repeat(2, 1fr); }
  .reaction-grid button:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
  .footer-grid .text-logo { justify-self: start; }
  .footer-bottom { margin-top: 45px; }
  .footer-bottom > span { display: none; }
  .bottom-nav { position: fixed; z-index: 89; left: 0; right: 0; bottom: 0; height: 68px; padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #2a2a2e; background: rgba(11,11,13,.96); backdrop-filter: blur(15px); }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: #838186; font-size: .6rem; }
  .bottom-nav span { font-size: 1.2rem; line-height: 1; }
  .bottom-nav .active { color: var(--accent); }
  .toast { bottom: 82px; }
}

@media (max-width: 430px) {
  .header-inner { gap: 8px; }
  .hero h1 { font-size: 3.1rem; }
  .hero-eyebrow, .section-kicker { font-size: .6rem; }
  .catalogue h2, .detail-section h2 { font-size: 2.2rem; }
  .movie-card h3 { font-size: .8rem; }
  .movie-card > p { font-size: .64rem; }
  .detail-hero h1 { font-size: 3.2rem; }
  .quality-list a { padding: 18px 15px; gap: 10px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form button { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
