:root {
  --bg: #edebe9;
  --panel: #ffffff;
  --panel-deep: #f7f6f5;
  --text: #262421;
  --muted: #595652;
  --accent: #d85000;
  --accent-hover: #b84200;
  --line: #d9d6d2;
  --radius: 16px;
  --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: 24px 0 18px;
  background: #e3e0dc;
  border-bottom: 1px solid var(--line);
  margin-bottom: 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;
  color: #3b3936;
  letter-spacing: .01em;
  transition: color .2s ease;
}

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

.top-nav .player-link:hover,
.top-nav .player-link:focus-visible { color: var(--accent); }
.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);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

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

.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 var(--accent);
  border-radius: 13px 5px 13px 5px;
  color: var(--accent);
  font-size: 24px;
  transform: rotate(-7deg);
  background: #fff8f3;
}

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

.brand-text small {
  color: var(--accent);
  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: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #ffffff;
  color: #262421;
}

.search-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 80, 0, .15);
}

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

.search-form button:hover { background: var(--accent-hover); 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: #3692e7;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(54, 146, 231, .25);
  transition: transform .2s ease, background .2s ease;
}

.watch-button:hover,
.watch-button:focus-visible {
  background: #237bcc;
  transform: translateY(-2px);
}

.watch-button span:last-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #ffffff;
  font-size: 13px;
}

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

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,36,33,.02), rgba(38,36,33,.08));
  pointer-events: none;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.share-label strong { color: var(--accent); }
.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: #e6e3df;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  transition: transform .2s ease, filter .2s ease;
}

.share-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-link:nth-of-type(1) { background: #4669b8; }
.share-link:nth-of-type(2) { background: #262421; }
.share-link:nth-of-type(3) { background: #629924; }
.share-link:nth-of-type(4) { background: #3692e7; }
.share-link:nth-of-type(5) { background: #d85000; }
.share-link:nth-of-type(6) { background: #2b8ed7; }

.article-content {
  max-width: 1080px;
  margin: 28px auto 60px;
  padding: 40px 48px 56px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: #1f1d1a;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.article-content h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 38px);
  padding-bottom: 14px;
  border-bottom: 2px solid #ebe8e4;
}

.article-content h2 {
  margin: 34px 0 14px;
  font-size: clamp(22px, 3vw, 28px);
  padding-bottom: 8px;
  border-bottom: 1px solid #ebe8e4;
}

.article-content h3 { margin: 24px 0 10px; font-size: 20px; }

.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content blockquote {
  color: #3d3a36;
  font-size: 15.5px;
}

.article-content code {
  background: #f2f0ed;
  color: #b84200;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.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;
  border-radius: 8px;
}

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

.article-content th {
  color: #1f1d1a;
  background: #f5f3f0;
  font-weight: 700;
}

.article-content tr:nth-child(even) td {
  background: #faf9f8;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: #f7f5f2;
  border-radius: 0 10px 10px 0;
}

.site-footer {
  padding: 24px 0 34px;
  background: #e3e0dc;
  border-top: 1px solid var(--line);
  color: #595652;
  font-size: 13px;
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(216, 80, 0, .45);
  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; }
  .article-content { padding: 30px 26px 40px; }
}

@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: 14px; }
  .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 { padding: 24px 18px 34px; }
  .article-content h1 { font-size: 26px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
}