:root {
  --shared-bg: #090707;
  --shared-paper: #f7f1ec;
  --shared-line: rgba(255, 255, 255, .12);
  --shared-coral: #f25f61;
}

.watch-pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border: 1px solid rgba(17, 17, 17, .14); border-radius: 999px; background: var(--shared-paper); color: #101011; font-size: 16px; font-weight: 800; line-height: 1; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 2px 8px rgba(0, 0, 0, .2); }
.watch-pill svg { flex: 0 0 auto; color: #101011; }
.watch-pill:hover { background: #fff; transform: translateY(-1px); }

.shared-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--shared-line); background: rgba(9, 7, 7, .94); backdrop-filter: blur(12px); }
.shared-header.is-home { position: absolute; right: 0; left: 0; border-bottom: 0; background: linear-gradient(180deg, rgba(4, 3, 4, .8), transparent); }
.shared-header-inner { display: flex; align-items: center; width: min(1320px, calc(100% - 72px)); min-height: 78px; margin: auto; gap: 36px; }
.shared-brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 9px; padding: 5px 7px; border-radius: 999px; text-decoration: none; }
.shared-brand img:first-child { width: 34px; height: 34px; object-fit: contain; }
.shared-brand img:last-child { width: 126px; filter: brightness(0) invert(1); }
.shared-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.shared-nav a { position: relative; min-height: 44px; padding: 14px 0 10px; color: rgba(255, 255, 255, .68); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.shared-nav a::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; border-radius: 999px; background: var(--shared-coral); content: ''; transform: scaleX(0); transition: transform .2s ease; }
.shared-nav a:hover, .shared-nav a.is-active { color: #fff; }
.shared-nav a.is-active::after { transform: scaleX(1); }
.shared-actions { display: flex; align-items: center; gap: 6px; }
.shared-actions > button, .shared-language > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .76); font-size: 11px; font-weight: 700; }
.shared-actions > button:hover, .shared-language > button:hover, .shared-language > button[aria-expanded='true'] { border-color: rgba(242, 148, 135, .68); color: #fff; }
.shared-google-link { display: inline-flex; align-items: center; min-height: 42px; }
.shared-google-link img { display: block; width: 106px; height: auto; }
.shared-menu-button { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--shared-paper); }
.shared-language { position: relative; }
.shared-language-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 190px; padding: 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: #1a1014; box-shadow: 0 18px 42px rgba(0, 0, 0, .44); }
.shared-language-menu p { margin: 4px 8px 7px; color: rgba(255, 255, 255, .44); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shared-language-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 9px; border-radius: 7px; color: rgba(255, 255, 255, .76); font-size: 12px; text-decoration: none; }
.shared-language-menu a:hover, .shared-language-menu a.is-selected { background: rgba(242, 95, 97, .15); color: #fff; }
.shared-language-menu small { color: rgba(255, 255, 255, .42); font-size: 10px; font-weight: 700; }
.shared-language-menu a.is-selected small { color: #f49487; }
.shared-drawer-layer { position: fixed; z-index: 40; inset: 0; display: flex; background: rgba(4, 3, 4, .68); backdrop-filter: blur(5px); }
.shared-drawer { width: min(320px, 86vw); min-height: 100%; padding: 22px; background: #170f13; box-shadow: 18px 0 50px rgba(0, 0, 0, .42); }
.shared-drawer-top { display: flex; align-items: center; justify-content: space-between; }
.shared-drawer-top button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; color: #fff; }
.shared-drawer h2 { margin: 45px 0 14px; color: #fff; font-size: 30px; }
.shared-drawer nav { display: grid; gap: 4px; padding-bottom: 22px; border-bottom: 1px solid var(--shared-line); }
.shared-drawer nav a { min-height: 48px; padding: 14px 10px; border-radius: 7px; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 700; text-decoration: none; }
.shared-drawer nav a:hover, .shared-drawer nav a.is-active { background: rgba(242, 95, 97, .15); color: #fff; }
.shared-footer { display: flex; align-items: center; justify-content: space-between; width: min(1260px, calc(100% - 72px)); margin: 48px auto 0; padding: 28px 0 36px; border-top: 1px solid var(--shared-line); color: rgba(255, 255, 255, .44); font-size: 12px; }
.shared-footer img { width: 120px; filter: brightness(0) invert(1); }

@media (max-width: 1180px) {
  .shared-header-inner { gap: 18px; }
  .shared-nav { gap: 17px; }
  .shared-nav a { font-size: 12px; }
}

@media (max-width: 800px) {
  .shared-header, .shared-header.is-home { min-height: 110px; background: rgba(9, 7, 7, .96); }
  .shared-header.is-home { background: linear-gradient(180deg, rgba(4, 3, 4, .94) 0%, rgba(4, 3, 4, .78) 76%, rgba(4, 3, 4, .3) 100%); }
  .shared-header-inner { display: grid; grid-template-areas: 'brand actions' 'nav nav'; grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 24px); min-height: 110px; gap: 0 6px; }
  .shared-brand { grid-area: brand; min-width: 0; gap: 8px; padding: 4px 0; }
  .shared-brand img:first-child { width: 28px; height: 28px; }
  .shared-brand img:last-child { width: 96px; }
  .shared-nav { grid-area: nav; display: grid; grid-template-columns: .8fr .9fr 1.8fr 1.4fr; gap: 2px; width: 100%; margin: 0; padding: 0 2px; }
  .shared-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; padding: 9px 1px 7px; font-size: clamp(10px, 2.65vw, 12px); letter-spacing: 0; white-space: nowrap; }
  .shared-nav a::after { right: 10%; bottom: 1px; left: 10%; height: 2px; }
  .shared-actions { grid-area: actions; gap: 0; }
  .shared-actions > button, .shared-language > button { width: 40px; min-height: 42px; padding: 8px; }
  .shared-google-link img { width: 76px; }
  .shared-actions > button span, .shared-language > button span, .shared-language > button svg:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shared-language-menu { right: 0; }
  .shared-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .shared-header *, .shared-footer *, .shared-drawer * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
