:root {
  --navy-950: #061628;
  --navy-900: #071a2f;
  --navy-800: #0b2943;
  --navy-700: #123c58;
  --teal-500: #18b9aa;
  --teal-400: #23d1be;
  --teal-100: #d9f6f2;
  --ink: #102235;
  --muted: #627486;
  --line: #dfe7ec;
  --surface: #fff;
  --soft: #f4f7f9;
  --danger: #c53e4d;
  --shadow-sm: 0 2px 12px rgba(13, 35, 54, .07);
  --shadow-lg: 0 22px 55px rgba(2, 21, 37, .14);
  --radius: 16px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(6, 22, 40, .96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 230px minmax(280px, 620px) 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--teal-400); box-shadow: 0 8px 20px rgba(35,209,190,.25); }
.brand-mark::before { content: ""; position: absolute; width: 9px; height: 18px; left: 13px; top: 11px; background: var(--navy-950); border-radius: 2px; }
.brand-mark::after { content: ""; position: absolute; left: 21px; top: 11px; border-block: 9px solid transparent; border-left: 12px solid var(--navy-950); }
.brand-copy { display: grid; line-height: 1; letter-spacing: .01em; }
.brand-copy strong { font-size: 1.06rem; letter-spacing: .15em; }
.brand-copy small { margin-top: 5px; color: #b8cbd8; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.header-search { height: 44px; display: flex; align-items: center; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.header-search svg, .mobile-search-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-search > svg { margin-left: 15px; color: #718090; flex: 0 0 auto; }
.header-search input { width: 100%; height: 100%; min-width: 0; padding: 0 13px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.header-search input::placeholder { color: #82909e; }
.header-search button { height: 100%; padding: 0 20px; color: var(--navy-900); font-weight: 750; border: 0; background: var(--teal-400); cursor: pointer; }
.mobile-search-toggle { display: none; justify-self: end; padding: 9px; color: #fff; background: transparent; border: 0; }

.hero { position: relative; min-height: 390px; display: flex; align-items: center; color: #fff; overflow: hidden; background: radial-gradient(circle at 82% 12%, rgba(26,205,186,.23), transparent 29%), linear-gradient(120deg, var(--navy-950), #0b3652 72%, #0a5d66); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(30deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%); background-size: 56px 56px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 64px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #87f4e6; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--teal-400); }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(2.15rem, 5vw, 4.15rem); line-height: 1.05; letter-spacing: -.045em; }
.hero-copy > p:not(.hero-kicker) { max-width: 620px; margin: 22px 0 28px; color: #c8dbe5; font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.primary-button { display: inline-flex; align-items: center; gap: 9px; padding: 13px 19px; color: var(--navy-950); font-weight: 800; background: var(--teal-400); border-radius: 11px; box-shadow: 0 12px 28px rgba(27,202,183,.22); }
.primary-button svg { width: 19px; fill: currentColor; }
.hero-stat { color: #d4e2e9; font-size: .87rem; }
.hero-stat strong { display: block; color: #fff; font-size: 1.15rem; }
.hero-visual { position: relative; min-height: 220px; }
.hero-screen { position: absolute; inset: 10px 0 0 30px; padding: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.1); box-shadow: var(--shadow-lg); transform: rotate(2deg); backdrop-filter: blur(10px); }
.hero-screen-inner { height: 100%; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #102e49, #071a2f); }
.hero-play { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-900); background: var(--teal-400); box-shadow: 0 0 0 14px rgba(35,209,190,.1); }
.hero-play svg { width: 35px; fill: currentColor; transform: translateX(3px); }
.floating-pill { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 13px; color: var(--navy-900); font-size: .76rem; font-weight: 800; background: #fff; border-radius: 100px; box-shadow: var(--shadow-lg); }
.floating-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.pill-top { top: -6px; right: -5px; }
.pill-bottom { bottom: -9px; left: 0; }

.category-bar { background: #fff; border-bottom: 1px solid var(--line); }
.category-scroll { display: flex; align-items: center; gap: 9px; padding-block: 17px; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; color: #425669; font-size: .85rem; font-weight: 700; border: 1px solid #dce5ea; border-radius: 100px; transition: .2s ease; }
.chip:hover, .chip.is-active { color: #073a3e; border-color: #89ded4; background: var(--teal-100); }

.content-section { padding-block: 58px; }
.content-section + .content-section { padding-top: 10px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading p { margin: 0 0 6px; color: var(--teal-500); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.section-heading > a { flex: 0 0 auto; color: var(--navy-700); font-size: .86rem; font-weight: 800; border-bottom: 2px solid var(--teal-400); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.video-card { min-width: 0; }
.video-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-800); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.thumb-overlay { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(3,18,31,.28); transition: opacity .25s ease; }
.thumb-overlay svg { width: 43px; height: 43px; padding: 10px; fill: #fff; border-radius: 50%; background: rgba(9,29,46,.8); }
.video-thumb:hover img { transform: scale(1.035); filter: saturate(1.08); }
.video-thumb:hover .thumb-overlay { opacity: 1; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; color: #fff; font-size: .72rem; font-weight: 750; line-height: 1.3; background: rgba(3,14,24,.85); border-radius: 5px; }
.video-card-body { padding: 14px 2px 0; }
.eyebrow { display: block; width: max-content; max-width: 100%; margin-bottom: 6px; color: #168f86; font-size: .71rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.video-card h3 { margin: 0; font-size: .98rem; line-height: 1.4; letter-spacing: -.01em; }
.video-card h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.video-card h3 a:hover { color: #087f78; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 8px 0 0; color: var(--muted); font-size: .76rem; }
.video-meta i { width: 3px; height: 3px; background: #9aa8b4; border-radius: 50%; }
.empty-state { padding: 55px 24px; text-align: center; color: var(--muted); border: 1px dashed #cdd9e0; background: #fff; border-radius: var(--radius); }
.empty-state svg { width: 48px; margin: 0 auto 15px; color: #83a0af; fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty-state h2, .empty-state h3 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { margin: 0; }

.page-hero { padding: 48px 0 42px; color: #fff; background: linear-gradient(120deg, var(--navy-950), #0b435b); }
.page-hero .breadcrumb { margin: 0 0 13px; color: #9fbac8; font-size: .8rem; }
.page-hero .breadcrumb a:hover { color: var(--teal-400); }
.page-hero h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.04em; }
.page-hero > .shell > p:last-child { max-width: 700px; margin: 13px 0 0; color: #c6d9e3; }
.result-summary { margin: 0 0 24px; color: var(--muted); }
.result-summary strong { color: var(--ink); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; font-weight: 750; border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.pagination .is-current { color: var(--navy-950); border-color: var(--teal-400); background: var(--teal-400); }

.watch-page { background: #eef3f6; }
.watch-shell { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 30px; padding-block: 30px 60px; }
.player-column { min-width: 0; }
.player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; border-radius: 15px; box-shadow: 0 18px 48px rgba(3,19,31,.2); }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; }
.playback-rate { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; align-items: center; gap: 7px; padding: 6px 8px 6px 10px; color: #fff; font-size: .7rem; font-weight: 700; background: rgba(5,15,24,.76); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; backdrop-filter: blur(8px); }
.playback-rate select { padding: 3px 5px; color: #fff; font-size: .7rem; border: 0; outline: 0; background: #173d55; border-radius: 5px; }
.watch-details { margin-top: 21px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.watch-category { margin: 0 0 8px; }
.watch-details h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
.watch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }
.watch-meta span + span::before { content: "•"; margin-right: 8px; color: #a0adb8; }
.watch-actions { display: flex; align-items: center; gap: 11px; margin-top: 17px; }
.share-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--navy-900); font-size: .78rem; font-weight: 800; border: 1px solid #bed3dc; background: #eef8f8; border-radius: 9px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.share-button:hover { border-color: var(--teal-400); background: #e1f7f4; transform: translateY(-1px); }
.share-button:focus-visible { outline: 3px solid rgba(27,202,183,.28); outline-offset: 2px; }
.share-button svg { width: 17px; height: 17px; fill: currentColor; }
.share-feedback { color: #178477; font-size: .76rem; font-weight: 750; }
.watch-description { margin-top: 20px; padding-top: 19px; color: #405568; border-top: 1px solid var(--line); white-space: pre-line; }
.related-column { min-width: 0; }
.related-heading { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 15px; }
.related-heading h2 { margin: 0; font-size: 1.16rem; }
.related-list { display: grid; gap: 15px; }
.related-item { display: grid; grid-template-columns: 155px 1fr; gap: 12px; min-width: 0; }
.related-item .video-thumb { border-radius: 10px; }
.related-copy { min-width: 0; padding-top: 2px; }
.related-copy h3 { margin: 0; font-size: .83rem; line-height: 1.35; }
.related-copy h3 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.related-copy .eyebrow { margin-bottom: 4px; font-size: .62rem; }
.related-copy .video-meta { margin-top: 5px; font-size: .68rem; }

.site-footer { margin-top: 30px; padding-top: 55px; color: #b8cad5; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .65fr 1fr; gap: 70px; }
.brand-footer { color: #fff; }
.footer-grid > div > p { max-width: 420px; margin: 18px 0 0; font-size: .88rem; }
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid strong { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-grid nav a { width: max-content; font-size: .86rem; }
.footer-grid nav a:hover { color: var(--teal-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-block: 20px; font-size: .75rem; border-top: 1px solid rgba(255,255,255,.1); }

@media (max-width: 1050px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .watch-shell { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .related-item { grid-template-columns: 145px 1fr; }
}

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
  .header-search { position: absolute; top: 64px; left: 14px; right: 14px; display: none; z-index: 10; box-shadow: 0 14px 35px rgba(0,0,0,.2); }
  .header-search.is-open { display: flex; }
  .mobile-search-toggle { display: block; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 55px; }
  .hero-visual { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .related-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(calc(100% - 22px), var(--shell)); }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-mark::before { left: 12px; top: 9px; }
  .brand-mark::after { left: 20px; top: 9px; }
  .hero-inner { padding-block: 43px 48px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-copy > p:not(.hero-kicker) { font-size: .95rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .content-section { padding-block: 40px; }
  .video-grid { grid-template-columns: 1fr; gap: 29px; }
  .video-card h3 { font-size: 1rem; }
  .page-hero { padding-block: 35px; }
  .watch-shell { width: 100%; padding-top: 0; gap: 18px; }
  .player-wrap { border-radius: 0; }
  .watch-details { margin: 0 11px; padding: 20px 17px; }
  .related-column { padding-inline: 11px; }
  .related-item { grid-template-columns: 148px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

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