:root {
  --navy: #10253f;
  --ink: #243044;
  --muted: #5d6b7c;
  --paper: #f7f4ef;
  --card: #fff;
  --line: #e4ddd2;
  --accent: #1c6e6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 24px;
  margin-bottom: 36px;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 6px 0 0;
  color: #d6c7a8;
  font-size: 0.95rem;
}

.hero h1,
.post h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 12px;
}

.hero p,
.lede {
  font-size: 1.12rem;
  color: var(--muted);
}

.blog-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 48px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
}

.blog-card h2 {
  margin: 6px 0 10px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.blog-card h2 a,
.read-more,
.back a,
.not-found a {
  color: var(--accent);
  text-decoration: none;
}

.blog-card h2 a:hover,
.read-more:hover,
.back a:hover {
  text-decoration: underline;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
}

.go {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.read-more {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.blog-ad {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
  min-height: 100px;
  padding: 8px 0 0;
  background: var(--card);
  border: 0;
  border-radius: 10px;
  text-align: center;
}

.blog-ad-label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  font:
    600 0.65rem/1 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.blog-ad > div {
  margin: 0 auto;
  max-width: 100%;
}

.post .blog-ad {
  margin: 16px 0;
}

.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 36px 40px;
  margin-bottom: 48px;
}

.post h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.post p {
  margin: 0 0 14px;
}

.back {
  margin-top: 36px;
  font-family: Arial, Helvetica, sans-serif;
}

.not-found,
.ads-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 48px;
}

.ads-box h1 {
  margin: 8px 0 12px;
}

.ads-theme {
  --main-text: #ffffff;
  --lightest-gray: #fafafa;
  --light-gray: #bbbbbb;
  --mid-light-gray: #616161;
  --gray: #4b4b4b;
  --mid-gray: #363636;
  --light-mid-gray: #444444;
  --mid-gray-border: #313131;
  --dark-gray: #232323;
  --shadow-dark-gray: #707070;
  --darkest-gray: #161617;
  --main-background: #000;
  --main-theme: #ec567c;
  --main-theme-hover: #e33561;
  --error: #b02020;
  --main-error: #d32f2f;
  --main-enable: #8faf20;
  --main-theme-information: #ed6398;
  --intersti-blue: #00aef1;
  --tooltip-background: #444444;
  --tooltip-text: #eeeeee;
  --light-theme-light-gray: #f2f2f2;
  --light-theme-gray-border: #d9d9d9;
  --light-theme-gray: #e0e0e0;
  --social-twitter: #1da1f3;
  --bubble-text: #ec567c;
  background: var(--main-background);
  color: var(--main-text);
}

.ads-theme .site-header {
  background: var(--main-background);
  border-bottom: 1px solid var(--mid-gray-border);
  margin-bottom: 20px;
}

.ads-theme .logo {
  color: var(--main-theme);
}

.ads-theme .post {
  background: var(--dark-gray);
  border-color: var(--mid-gray-border);
  color: var(--main-text);
}

.ads-theme .post h1,
.ads-theme .post h2,
.ads-theme .related h2,
.ads-theme .related-card h3 {
  color: var(--main-text);
}

.ads-theme .meta,
.ads-theme .lede,
.ads-theme .ads-hint,
.ads-theme .site-footer {
  color: var(--light-gray);
}

.ads-theme .site-footer {
  border-top-color: var(--mid-gray-border);
}

.ads-theme .related-card {
  background: var(--dark-gray);
  border-color: var(--mid-gray-border);
}

.ads-theme .related-thumb {
  background: var(--mid-gray);
}

.floatads {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  opacity: 0;
}

.floatads-1 {
  top: 0;
  height: 33.333vh;
}

.floatads-2 {
  top: 33.333vh;
  height: 33.333vh;
}

.floatads-3 {
  top: 66.666vh;
  height: 33.334vh;
}

.floatads-inner {
  width: 100%;
  max-width: 728px;
  max-height: 100%;
  overflow: hidden;
  text-align: center;
}

.ads-page .ad-slot {
  display: flex;
  justify-content: center;
  margin: 16px 0 24px;
  min-height: 90px;
  overflow: hidden;
}

.player-block {
  width: min(100%, 420px);
  margin: 12px auto 24px;
  container-type: inline-size;
}

.blog-search {
  padding: 8px 10px 8px;
}

.blog-search input {
  display: block;
  width: 100%;
  height: 34px;
  padding: 0 14px 0 32px;
  border: 1px solid var(--mid-gray, #363636);
  border-radius: 20px;
  background: var(--dark-gray, #232323)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23ec567c' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E")
    no-repeat 12px 50%;
  color: var(--main-text, #fff);
  font:
    0.85rem/1 Arial,
    Helvetica,
    sans-serif;
  outline: none;
  -webkit-appearance: none;
}

.blog-search input::placeholder {
  color: var(--shadow-dark-gray, #707070);
}

.blog-search input::-webkit-search-decoration,
.blog-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.paid-sites {
  display: flex;
  width: 100%;
  height: 36px;
  background: var(--main-background, #000);
}

.paid-sites span {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  margin-left: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  font:
    700 clamp(8px, 2.8cqw, 11px)/1 Arial,
    Helvetica,
    sans-serif;
  letter-spacing: 0.03em;
  color: var(--light-gray, #bbbbbb);
  background: var(--dark-gray, #232323);
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.paid-sites span:first-child {
  margin-left: 0;
}

.blog-chips {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 8px 0 10px;
  overflow: hidden;
}

.blog-chips span {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--main-theme, #ec567c);
  border-radius: 999px;
  color: var(--main-theme, #ec567c);
  background: transparent;
  white-space: nowrap;
  text-transform: none;
  font:
    700 clamp(8px, 2.8cqw, 11px)/1 Arial,
    Helvetica,
    sans-serif;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.player-wrap {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: 240px;
}

.player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-gear {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 5px;
  border-radius: 2px;
  background: #ec567c;
  color: #000;
  font:
    900 9px/1 Arial,
    Helvetica,
    sans-serif;
  pointer-events: none;
}

.watch-meta {
  color: var(--light-gray, #bbb);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 0 28px;
}

.watch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.watch-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--light-gray, #bbb);
}

.watch-action-down {
  transform: rotate(180deg);
}

.watch-sep {
  width: 1px;
  height: 18px;
  background: var(--light-gray, #bbb);
  opacity: 0.5;
}

.watch-channel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  border-top: 1px solid #eeeeee1c;
}

.watch-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 56px;
  background: var(--mid-gray, #363636);
}

.watch-channel-name {
  color: var(--main-text, #fff);
  font-weight: 700;
  margin-bottom: 6px;
}

.watch-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
}

.watch-subscribe {
  border: 0;
  border-radius: 3px;
  padding: 6px 12px;
  background: var(--main-theme, #ec567c);
  color: #fff;
  font:
    700 0.8rem/1 Arial,
    Helvetica,
    sans-serif;
  cursor: default;
}

.watch-blurb {
  padding: 4px 10px 12px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--main-text, #fff);
}

.watch-tabs {
  display: flex;
  background: var(--dark-gray, #232323);
  margin: 0 0 12px;
}

.watch-tabs span {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--light-gray, #bbb);
}

.watch-tabs .is-active {
  color: var(--main-text, #fff);
  border-bottom: 2px solid var(--main-theme, #ec567c);
}

.related-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
}

.related-thumb {
  position: relative;
}

.related-name {
  margin: 0;
  padding: 0 12px 10px;
  font-size: 0.75rem;
  color: var(--shadow-dark-gray, #707070);
}

.watch-more {
  display: block;
  width: 75%;
  margin: 8px auto 0;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: var(--main-theme, #ec567c);
  color: #fff;
  font:
    700 0.9rem/1 Arial,
    Helvetica,
    sans-serif;
  cursor: default;
}

.watch-footer {
  background: var(--dark-gray, #232323);
  color: var(--shadow-dark-gray, #707070);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  padding: 20px 16px 28px;
  margin: 0 0 24px;
  border-top: 2px solid var(--main-theme, #ec567c);
}

.watch-footer-title {
  color: var(--light-gray, #bbb);
  font-weight: 700;
  margin: 12px 0 8px;
}

.watch-footer-col div {
  padding: 2px 0;
}

.watch-footer-copy {
  margin-top: 16px;
}

.related {
  margin: 0 0 32px;
}

.related h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.related-grid .player-wrap {
  max-height: none;
}

.related-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.related-thumb {
  aspect-ratio: 16 / 9;
  background: #d9d1c4;
}

.related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h3 {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.ads-hint {
  text-align: center;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  margin: 0 0 40px;
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .ads-theme .ads-page.wrap,
  .ads-theme .site-footer .wrap {
    width: 100%;
  }

  .ads-theme .player-block {
    width: 100%;
    margin: 0 0 16px;
  }

  .ads-theme .post {
    border-radius: 0;
    padding: 18px 12px 24px;
  }
}

.site-footer {
  background: var(--navy);
  color: #b8c3cf;
  margin-top: 56px;
  padding: 0;
  border-top: 3px solid var(--accent);
  font-size: 0.9rem;
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer .wrap {
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px 48px;
  align-items: start;
  padding-bottom: 36px;
}

.footer-logo {
  display: inline-block;
  margin: 0 0 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-brand p {
  margin: 0;
  max-width: 34em;
  line-height: 1.55;
}

.footer-nav h2 {
  margin: 4px 0 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0 0 10px;
}

.footer-nav a {
  color: #b8c3cf;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-logo:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0 22px;
}

.footer-bar p {
  margin: 0;
  font-size: 0.8rem;
  color: #8f9bab;
}

.page h1 {
  margin-top: 0;
}

.page ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.page li {
  margin: 0 0 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--card);
}

@media (max-width: 1024px) {
  body:not(.ads-theme) .wrap {
    width: min(1100px, calc(100% - 24px));
  }

  body:not(.ads-theme) .site-header {
    padding: 18px 0 16px;
    margin-bottom: 22px;
  }

  body:not(.ads-theme) .blog-list {
    margin: 12px 0 28px;
    gap: 14px;
  }

  body:not(.ads-theme) .post {
    padding: 24px 22px 28px;
    margin-bottom: 28px;
  }

  body:not(.ads-theme) .site-footer {
    margin-top: 36px;
  }

  body:not(.ads-theme) .site-footer .wrap {
    padding-top: 28px;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body:not(.ads-theme) .wrap {
    width: calc(100% - 16px);
  }

  body:not(.ads-theme) .site-header {
    padding: 12px 0;
    margin-bottom: 12px;
  }

  body:not(.ads-theme) .logo {
    font-size: 1.12rem;
  }

  body:not(.ads-theme) .blog-list {
    margin: 4px 0 20px;
    gap: 10px;
  }

  body:not(.ads-theme) .blog-card {
    padding: 12px 0;
    background: none;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  body:not(.ads-theme) .blog-ad,
  body:not(.ads-theme) .post .blog-ad {
    width: calc(100% + 16px);
    margin-left: -8px;
    margin-right: -8px;
    padding: 6px 0;
    border-radius: 0;
  }

  body:not(.ads-theme) .blog-card h2 {
    margin: 4px 0 8px;
    font-size: 1.05rem;
  }

  body:not(.ads-theme) .post {
    padding: 0 0 18px;
    margin-bottom: 16px;
    background: none;
    border: 0;
    border-radius: 0;
  }

  body:not(.ads-theme) .post h1 {
    font-size: 1.4rem;
  }

  body:not(.ads-theme) .post h2 {
    margin: 16px 0 6px;
    font-size: 1.1rem;
  }

  body:not(.ads-theme) .lede {
    font-size: 1rem;
  }

  body:not(.ads-theme) .site-footer {
    margin-top: 24px;
  }

  body:not(.ads-theme) .site-footer .wrap {
    padding-top: 20px;
  }

  body:not(.ads-theme) .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 16px;
  }

  body:not(.ads-theme) .footer-nav li {
    margin: 0 0 6px;
  }

  body:not(.ads-theme) .footer-bar {
    padding: 12px 0 14px;
  }

  body:not(.ads-theme) .policy-table th,
  body:not(.ads-theme) .policy-table td {
    padding: 8px;
    font-size: 0.82rem;
  }
}
