.compare-hero { border-bottom: 1px solid var(--line); }
.compare-layout { width: min(100%,1380px); margin-inline: auto; display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1fr); column-gap: clamp(26px,5vw,84px); align-items: center; padding: clamp(28px,4.3vw,78px) clamp(22px,4.5vw,68px); }
.compare-intro h1 { font-size: clamp(3.25rem,5.7vw,6.65rem); font-weight: 580; line-height: .96; letter-spacing: -.083em; margin: 24px 0; }
.compare-intro h1 :is(span,em) { display: block; }
.compare-intro h1 em { font-style: normal; color: var(--accent); }
.compare-lede { font-size: clamp(1rem,1.22vw,1.2rem); line-height: 1.55; letter-spacing: -.025em; color: #4e4c47; max-width: 39ch; margin: 0; }
.compare-cta { display: flex; align-items: center; gap: clamp(14px,2vw,26px); margin-top: 24px; }
.compare-console { min-width: 0; width: min(100%,610px); justify-self: center; }
.compare-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 0 2px 12px; }
.compare-heading h2 { margin: 0; font-size: 1rem; letter-spacing: -.035em; font-weight: 620; }
.compare-panels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(7px,1vw,16px); }
.compare-card { min-width: 0; display: flex; flex-direction: column; padding: 4px; background: #fff; border-radius: 13px; border: 1px solid #d6d3cb; box-shadow: 0 3px 8px #29211d08; overflow: hidden; }
.compare-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 7px 6px 9px; }
.compare-card-head strong { font-size: .91rem; letter-spacing: -.035em; font-weight: 660; }
.compare-card-head small { font-size: .73rem; line-height: 1.25; color: #68655e; }
.compare-film { flex: 1; position: relative; width: 100%; height: auto; aspect-ratio: 9/16; max-height: min(55svh,465px); background: #252520; border-radius: 9px; overflow: hidden; }
.compare-film video { width: 100%; height: 100%; display: block; object-fit: contain; }
@media (width > 680px) {
 .compare-layout[data-active=after] [data-side=after], .compare-layout[data-active=before] [data-side=before] { border-color: #d64c2e; box-shadow: 0 0 0 1px #d64c2e,0 5px 15px #c74b2d12; }
 .compare-layout[data-playing=true][data-active=before] [data-side=before] .compare-card-head strong, .compare-layout[data-playing=true][data-active=after] [data-side=after] .compare-card-head strong { color: #bb3519; }
}
.compare-card:disabled { cursor: default; }
.compare-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 14px; }
.compare-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; font-size: .84rem; font-weight: 560; letter-spacing: -.025em; }
.compare-play { background: #252621; color: #fff; padding: 7px 16px; border-radius: 30px; border: 1px solid #252621; }
.compare-play:hover { background: #41423b; }
.compare-play svg { fill: currentColor; flex: none; }
.compare-sound { background: transparent; color: #494943; padding: 5px 4px; border: 0; }
.compare-layout[data-playing=true] .cmp-play-shape, .compare-layout:not([data-playing=true]) .cmp-pause-shape, .cmp-mute { display: none; }
.compare-layout[data-sound=false] .compare-sound .cmp-wave { display: none; }
.compare-layout[data-sound=false] .compare-sound .cmp-mute { display: block; }
.compare-toolbar button:disabled { opacity: .55; cursor: default; }
.compare-help, .compare-note { color: #655f55; font-size: .83rem; line-height: 1.45; margin: 0; }
.compare-note:not(:empty) { margin-top: 7px; color: #765538; }
.compare-full { font-family: inherit; background: none; border: 0; }
.compare-reveal, .compare-divider, .compare-drag-hint { display: none; }
@media(max-width: 865px) {
 .compare-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.18fr); padding-inline: 21px; gap: 22px; }
 .compare-intro h1 { font-size: clamp(2.65rem,5.8vw,4.4rem); }
 .compare-card-head { padding-inline: 3px; }
}
@media(max-width: 680px) {
 .compare-layout { grid-template-columns: 1fr; padding: 23px 18px 29px; gap: 21px; }
 .compare-intro { text-align: center; }
 .compare-intro h1 { margin: 13px 0 11px; font-size: clamp(2.85rem,8.5vw,4rem); }
 .compare-lede { font-size: .97rem; line-height: 1.45; margin-inline: auto; max-width: 44ch; }
 .compare-cta { margin-top: 14px; justify-content: center; gap: 18px; }
 .compare-console { width: min(100%, 22rem, max(16rem, 40svh)); }
 .compare-heading { align-items: center; margin: 0 0 9px; }
 .compare-heading h2 { font-size: .95rem; }
 .compare-drag-hint { display: inline; color: var(--muted); font-size: .78rem; }
 .compare-panels {
   --reveal: 50%;
   display: block;
   position: relative;
   isolation: isolate;
   aspect-ratio: 9 / 16;
   overflow: hidden;
   border-radius: 16px;
   background: #242420;
   box-shadow: 0 4px 15px #27221a14;
   cursor: ew-resize;
   touch-action: pan-y pinch-zoom;
   user-select: none;
   -webkit-user-select: none;
 }
 .compare-card, .compare-film {
   position: absolute;
   inset: 0;
   display: block;
   width: 100%;
   height: 100%;
   max-height: none;
   padding: 0;
   border: 0;
   border-radius: 0;
   box-shadow: none;
   pointer-events: none;
 }
 .compare-card[data-side=before] { z-index: 1; clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
 .compare-card-head {
   position: absolute;
   z-index: 1;
   top: 0;
   left: 0;
   width: var(--reveal);
   padding: 0;
   container: compare-label / inline-size;
 }
 [data-side=after] .compare-card-head { right: 0; left: auto; width: calc(100% - var(--reveal)); }
 .compare-card-head small { display: none; }
 .compare-card-head strong {
   position: absolute;
   top: 12px;
   left: 12px;
   padding: 5px 10px;
   color: #fff;
   background: #201e1ce6;
   border-radius: 20px;
   font-size: .76rem;
   line-height: 1.15;
   letter-spacing: .01em;
 }
 [data-side=after] .compare-card-head strong { right: 12px; left: auto; background: #ac341def; }
 @container compare-label (max-width: 68px) {
   .compare-card-head strong { visibility: hidden; }
 }
 .compare-reveal {
   display: block;
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   margin: 0;
   opacity: 0;
   pointer-events: none;
 }
 .compare-divider {
   display: block;
   position: absolute;
   z-index: 2;
   inset-block: 0;
   left: var(--reveal);
   width: 2px;
   transform: translateX(-50%);
   background: #fff;
   box-shadow: 0 0 4px #21170f80;
   pointer-events: none;
 }
 .compare-grip {
   position: absolute;
   left: 50%;
   top: 59%;
   transform: translate(-50%, -50%);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 5px;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: #fff;
   color: #252420;
   box-shadow: 0 2px 10px #160d0945;
 }
 .compare-grip::before, .compare-grip::after {
   content: "";
   width: 7px;
   height: 7px;
   border: solid currentColor;
   border-width: 0 2px 2px 0;
 }
 .compare-grip::before { transform: rotate(135deg); }
 .compare-grip::after { transform: rotate(-45deg); }
 .compare-reveal:focus-visible + .compare-divider .compare-grip { outline: 3px solid #a43016; outline-offset: 2px; }
 .compare-toolbar { padding: 9px 0 0; }
 .compare-toolbar button { min-height: 44px; font-size: .8rem; }
 .compare-play { padding-inline: 12px; }
 .compare-help { display: none; }
}
