:root {
  --bg: #232428;
  --panel: #2d2e32;
  --panel-deep: #292a2e;
  --text: #f7f7f8;
  --muted: #b8bac2;
  --accent: #ffd66b;
  --accent-hover: #ffe394;
  --line: rgba(255,255,255,.08);
  --radius: 32px;
  --content-width: 1260px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

button, input { font: inherit; }

.player-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 34px 0 24px;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.top-nav .player-link {
  position: relative;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: color .2s ease;
}

.top-nav .player-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: #7291ee;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.top-nav .player-link:hover,
.top-nav .player-link:focus-visible { color: #7291ee; }
.top-nav .player-link:hover::after,
.top-nav .player-link:focus-visible::after { transform: scaleX(1); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 490px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px 72px;
  background: linear-gradient(145deg, #303135, #2b2c30);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 28px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid #7291ee;
  border-radius: 13px 5px 13px 5px;
  color: #7291ee;
  font-size: 22px;
  transform: rotate(-7deg);
}

.brand-text {
  display: grid;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-text small {
  color: #7291ee;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  width: min(100%, 520px);
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #202126;
}

.search-form input:focus {
  box-shadow: 0 0 0 4px rgba(255,214,107,.24);
}

.search-form button {
  display: grid;
  place-items: center;
  height: 52px;
  border: 0;
  border-radius: 11px;
  background: #7291ee;
  color: #151515;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.search-form button:hover { opacity: 0.8; transform: translateY(-1px); }

.search-icon {
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.top-searches {
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.top-searches strong { color: var(--text); }

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  min-width: 222px;
  padding: 16px 26px;
  border-radius: 10px;
  background: #7291ee;
  color: #161616;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.watch-button:hover,
.watch-button:focus-visible {
  opacity: 0.8;
  transform: translateY(-2px);
}

.watch-button span:last-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e1f22;
  color: #7291ee;
  font-size: 13px;
}

.hero-image {
  min-height: 490px;
  position: relative;
  background:
    linear-gradient(90deg, var(--panel) 0%, rgba(45,46,50,.12) 34%, rgba(45,46,50,.04) 100%),
    url("banner.jpg") center / cover no-repeat;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,23,27,.03), rgba(22,23,27,.18));
  pointer-events: none;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 30px 0 24px;
}

.share-label {
  min-width: 155px;
  font-size: 13px;
  line-height: 1.2;
}

.share-label strong { color: #7291ee; }
.share-label span { color: var(--muted); }

.share-link {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: #34363c;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  transition: transform .2s ease, filter .2s ease;
}

.share-link:hover { transform: translateY(-2px); filter: brightness(1.12); }
.share-link:nth-of-type(1) { background: #4669b8; }
.share-link:nth-of-type(2) { background: #050505; }
.share-link:nth-of-type(3) { background: #21c96b; }
.share-link:nth-of-type(4) { background: #4a89ef; }
.share-link:nth-of-type(5) { background: #e85a2a; }
.share-link:nth-of-type(6) { background: #2b8ed7; }

.article-content {
  max-width: 1080px;
  padding: 6px 0 80px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.article-content h1 { margin: 18px 0 22px; font-size: clamp(28px, 4vw, 38px); }
.article-content h2 { margin: 32px 0 12px; font-size: clamp(23px, 3vw, 30px); }
.article-content h3 { margin: 24px 0 10px; font-size: 21px; }

.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content blockquote {
  color: #d0d1d7;
  font-size: 15px;
}

.article-content p { margin: 0 0 16px; }
.article-content ul,
.article-content ol { margin: 14px 0 22px; padding-left: 24px; }
.article-content li { margin: 8px 0; }

.article-content table {
  width: 100%;
  margin: 20px 0 26px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--text);
  background: #2e3035;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #7291ee;
  background: #2a2b30;
  border-radius: 0 10px 10px 0;
}

.site-footer {
  padding: 0 0 34px;
  color: #a5a7af;
  font-size: 13px;
}

:focus-visible {
  outline: 3px solid rgba(255,214,107,.7);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .top-nav { gap: 26px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px 40px; }
  .hero-image { min-height: 370px; order: -1; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 24px, var(--content-width)); }
  .site-header { padding-top: 20px; }
  .top-nav { justify-content: flex-start; gap: 12px 22px; }
  .top-nav .player-link { font-size: 13px; }
  .hero { border-radius: 22px; }
  .hero-copy { padding: 36px 22px 40px; }
  .hero-image { min-height: 260px; }
  .search-form { grid-template-columns: 1fr 48px; }
  .search-form input,
  .search-form button { height: 48px; }
  .watch-button { width: 100%; }
  .share-label { width: 100%; }
  .article-content h1 { font-size: 28px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
