@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Urbanist:wght@500;600;700;800;900&display=swap");

:root {
  --background: #fdf4f9;
  --card-bg: #ffffff;
  --border-color: #e9e8ff;
  --text-color: #4e5665;
  --heading-color: #282424;
  --font-body: "DM Sans", sans-serif;
  --font-title: "Urbanist", sans-serif;
  --primary: #6a4ee9;
  --secondary: #ff2aac;
  --blue: #43c4f5;
  --purple: #c084fc;
  --yellow: #f9a825;
  --green: #34c759;
  --shadow-small: 0 2px 5px rgba(0, 0, 0, .05);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.45;
  font-size: 19.2px;
  font-weight: 400;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(96%, 1200px);
  min-height: 68px;
  margin: 32px auto 70px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 36, 36, .04);
  transition: width .25s ease, margin .25s ease, border-radius .25s ease, padding .25s ease, box-shadow .25s ease;
}

.header-scrolled .navbar {
  width: 100%;
  min-height: 82px;
  margin: 0 0 70px;
  padding: 12px max(24px, calc((100vw - 1200px) / 2));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: 0 3px 10px rgba(40, 36, 36, .05);
}

.navbar .search-container {
  display: flex;
  align-items: center;
  justify-self: start;
  width: 100%;
  max-width: 320px;
  background-color: transparent;
  border: 0;
  padding: 0;
}

.search-container .icon {
  margin-right: 12px;
  color: var(--secondary);
  font-size: 2.9rem;
  line-height: 1;
}

.search-container input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 1.14rem;
  color: var(--heading-color);
  min-width: 0;
}

.search-container input::placeholder {
  color: var(--heading-color);
  opacity: .75;
}

.navbar .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.85rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}

.navbar .logo-mark {
  color: var(--secondary);
  font-weight: 900;
  letter-spacing: 0;
}

.navbar .actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  justify-content: flex-end;
}

.lang-switch {
  width: 90px;
  min-height: 46px;
  border: 0;
  border-radius: 5px;
  padding: 0 34px 0 18px;
  background: var(--secondary);
  color: #fff;
  font: 700 1.08rem var(--font-title);
  outline: 0;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fff 50%),
    linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.actions .subscribe-btn,
.site-menu .menu-subscribe,
.feature-bar .portfolio-btn,
.pagination .page-btn,
.pagination .next-btn,
.join-section .join-btn,
.newsletter-form .btn-start,
.reply-form button,
.call-to-action .cta-btn,
.related-header .view-all {
  background-color: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 11px 24px;
  font-size: 1.08rem;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease;
}

.actions .subscribe-btn:hover,
.site-menu .menu-subscribe:hover,
.feature-bar .portfolio-btn:hover,
.pagination .page-btn:hover,
.pagination .next-btn:hover,
.join-section .join-btn:hover,
.newsletter-form .btn-start:hover,
.reply-form button:hover,
.call-to-action .cta-btn:hover,
.related-header .view-all:hover { opacity: .85; }

.actions .menu-btn {
  width: 34px;
  height: 34px;
  padding: 3px;
  background: transparent;
  border: 0;
  color: var(--heading-color);
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-auto-rows: 9px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.actions .menu-btn span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(33, 29, 63, .36);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(425px, 92vw);
  background: #fff;
  border-radius: 18px 0 0 18px;
  box-shadow: -12px 0 34px rgba(33, 29, 63, .18);
  padding: 70px 48px 48px;
  transform: translateX(105%);
  transition: transform .28s ease;
}

.menu-open {
  overflow: hidden;
}

.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

.menu-open .site-menu {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 28px;
  right: 0;
  width: 58px;
  height: 52px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.menu-logo {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading-color);
}

.site-menu p {
  margin: 14px 0 52px;
  color: var(--heading-color);
  font-size: .95rem;
}

.menu-links {
  display: grid;
  gap: 24px;
  margin-bottom: 72px;
}

.menu-links a {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--heading-color);
}

.menu-links a:hover {
  color: var(--secondary);
}

.site-menu .menu-subscribe {
  display: inline-block;
  min-width: 155px;
  text-align: center;
}

.home-hero {
  width: min(96%, 1200px);
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.home-hero h1 {
  margin: 0 0 30px;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--heading-color);
}

.home-hero h1 span {
  color: var(--secondary);
  font-weight: 800;
}

.home-hero p {
  max-width: 650px;
  margin: 0 0 42px;
  font-size: 1.2rem;
  line-height: 1.58;
  color: var(--text-color);
}

.home-hero-form {
  max-width: 560px;
}

.home-hero-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.home-hero-input {
  display: flex;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-small);
}

.home-hero-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px 28px;
  font: 1rem var(--font-body);
  color: var(--heading-color);
}

.home-hero-input button {
  border: 0;
  background: var(--secondary);
  color: #fff;
  padding: 0 32px;
  font: 700 1rem var(--font-title);
  cursor: pointer;
}

.home-hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / .9;
  border-radius: 44% 30% 42% 30% / 34% 36% 45% 46%;
  background: #ffc3d6;
}

.home-hero-visual picture,
.home-hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero-visual img {
  object-fit: cover;
  object-position: center -5px;
}

.category-intro {
  width: min(96%, 980px);
  margin: 0 auto 54px;
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.category-intro-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 48px;
  border-right: 1px solid var(--border-color);
}

.category-intro-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #ffc3d6;
}

.category-intro-avatar picture,
.category-intro-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

.category-intro-avatar img {
  object-fit: cover;
}

.category-intro h2 {
  margin: 0 0 2px;
  font-family: var(--font-title);
  font-size: 2.15rem;
  line-height: 1.05;
  color: var(--heading-color);
  font-weight: 800;
}

.category-intro em {
  display: block;
  font-style: normal;
  color: var(--heading-color);
  font-size: 1rem;
}

.category-intro p {
  margin: 0;
  color: var(--heading-color);
  font-size: 1.05rem;
  line-height: 1.75;
}

.posts-grid {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  scroll-margin-top: 120px;
}

.home-video-head {
  width: min(96%, 1200px);
  margin: 44px auto 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-video-head h2 {
  margin: 6px 0 10px;
  font-family: var(--font-title);
  color: var(--heading-color);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
  font-weight: 900;
}

.home-video-head p {
  max-width: 720px;
  margin: 0;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-video-head .home-video-count {
  margin-top: 8px;
}

.home-video-head strong {
  color: var(--heading-color);
  font-weight: 800;
}

.seo-copy {
  width: min(96vw, 1200px);
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 0 0 28px;
  box-sizing: border-box;
  color: var(--heading-color);
  border-left: 5px solid var(--secondary);
}

.seo-copy.seo-copy-home {
  padding-left: 0;
  border-left: 0;
}

.seo-copy-inner {
  padding: 28px 32px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-small);
}

.seo-copy-home .seo-copy-inner {
  width: 100%;
  border-left: 5px solid var(--secondary);
}

.seo-copy-home .seo-copy-text {
  width: 100%;
}

.seo-copy-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--secondary);
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  font-weight: 900;
}

.seo-copy p {
  margin: 0 0 12px;
  max-width: 820px;
  color: var(--text-color);
  font-size: 1.06rem;
  line-height: 1.58;
}

.seo-copy.seo-copy-home p {
  max-width: none;
}

.seo-copy p:last-child {
  margin-bottom: 0;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f3e7f5;
}

.card .thumb img {
  width: 100%;
  aspect-ratio: 400 / 243;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--heading-color);
  box-shadow: var(--shadow-small);
  transform: translate(-50%, -50%);
}

.play > span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.time {
  position: absolute;
  right: 12px;
  bottom: 14px;
  border-radius: 20px;
  padding: 4px 9px;
  background: rgba(40, 36, 36, .72);
  color: #fff;
  font-size: .864rem;
  font-weight: bold;
}

.card-body { padding: 20px; }

.card .thumb .label,
.article-meta .label {
  display: inline-block;
  color: #fff;
  padding: 9px 22px;
  border-radius: 0 999px 999px 0;
  font-size: .84rem;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 0;
}

.card .thumb .label {
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 3;
}

.article-meta .label {
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.375rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 10px;
  line-height: 1.2;
}

.card-body p {
  font-size: 1.02rem;
  color: var(--text-color);
  margin: 0 0 12px;
}

.card-body .meta {
  font-size: .84rem;
  font-family: var(--font-title);
  color: #888;
  display: flex;
  gap: 10px;
}

.label.inspiration { background-color: var(--primary); }
.label.videos { background-color: var(--primary); }
.label.lifestyle { background-color: var(--blue); }
.label.travel { background-color: var(--secondary); }
.label.music { background-color: var(--purple); }
.label.technology { background-color: var(--blue); }
.label.health { background-color: var(--green); }

.pagination {
  width: 96%;
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.02rem;
  color: var(--text-color);
}

.pagination > span:not(.page-btn) {
  margin: 0 auto;
}

.home-pagination {
  flex-direction: column;
  align-items: stretch;
}

.home-pagination-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-pagination-count {
  display: block;
  text-align: center;
}

.pagination .page-btn.disabled {
  background: rgba(255, 42, 172, .22);
  cursor: default;
  pointer-events: none;
}

.join-section {
  width: 100%;
  max-width: none;
  margin: 70px 0 0;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 40px;
  justify-content: space-between;
  align-items: center;
  padding: 74px max(24px, calc((100vw - 1200px) / 2));
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.join-section h2 {
  font-size: 2.25rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 10px;
}

.join-section p {
  font-size: 1.08rem;
  color: var(--text-color);
  margin: 0 0 15px;
}

.join-section .join-text,
.join-section .join-action {
  position: relative;
  z-index: 2;
}

.join-section .join-text {
  max-width: 640px;
}

.join-section .join-action {
  text-align: center;
}

.join-section .join-btn {
  background-color: var(--heading-color);
  color: #fff;
  border-radius: 4px;
  padding-left: 36px;
  padding-right: 36px;
}

.join-section .left-shape,
.join-section .right-shape {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(84px, 9vw, 150px);
  background-color: var(--secondary);
  opacity: .78;
  pointer-events: none;
  clip-path: polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%, 28% 72%, 0 50%, 28% 28%);
}

.join-section .left-shape { left: 0; }
.join-section .right-shape { right: 0; transform: scaleX(-1); }

footer {
  background-color: var(--card-bg);
  padding: 60px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-columns {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-columns h3 {
  font-size: 1.25rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 10px;
}

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

.footer-columns li {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.footer-columns a {
  color: var(--primary);
  transition: color .2s ease;
}

.footer-columns a:hover { color: var(--secondary); }
.footer-news { max-width: 320px; }
.footer-news p { font-size: 1.02rem; margin-bottom: 10px; }

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  outline: none;
  font-size: 1.02rem;
}

.footer-meta {
  width: 96%;
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
  font-size: .9rem;
  color: #777;
}

.floating-cta {
  display: none;
}

.floating-cta a {
  display: block;
  font-size: 1.02rem;
  font-family: var(--font-title);
  font-weight: bold;
  border-radius: 30px;
  padding: 10px 20px;
  color: #fff;
  text-align: center;
}

.floating-cta a.free { background-color: #000; }
.floating-cta a.purchase { background-color: var(--secondary); }
.floating-cta a:hover { opacity: .85; }

.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 120;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 1.35rem;
  font-family: var(--font-title);
  font-weight: 800;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.header-scrolled .scroll-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  color: #fff;
  transform: translateY(-2px);
}

.page-wrapper {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 40px 0;
}

.sidebar { flex: 0 0 260px; }

.sidebar .sidebar-card,
.related-section,
.reply-form {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow-medium);
  margin-bottom: 30px;
}

.sidebar-card h4,
.reply-form h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-family: var(--font-title);
  color: var(--heading-color);
  font-weight: 800;
}

.sidebar-card ul,
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.sidebar-card li span.icon {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sidebar-card li.inspiration span.icon { background-color: var(--primary); }
.sidebar-card li.lifestyle span.icon { background-color: var(--blue); }
.sidebar-card li.travel span.icon { background-color: var(--secondary); }

.article {
  flex: 1;
  max-width: 100%;
}

.article h1 {
  font-size: 2.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.15;
}

.article .article-meta {
  font-size: 1.02rem;
  color: #888;
  margin-bottom: 20px;
}

.article .article-image {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  background: #f3e7f5;
}

.article .article-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article .article-image .play {
  width: 114px;
  height: 114px;
}

.article .article-image .play > span {
  margin-left: 8px;
  border-top-width: 24px;
  border-bottom-width: 24px;
  border-left-width: 36px;
}

.article h2 {
  font-size: 1.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin-top: 30px;
  margin-bottom: 10px;
}

.article p,
.article-description {
  font-size: 1.08rem;
  margin-bottom: 18px;
}

.article-description {
  line-height: 1.55;
}

.article-description p,
.article-description ul,
.article-description ol {
  margin-top: 0;
  margin-bottom: 18px;
}

.article-description a {
  color: var(--secondary);
  font-weight: 800;
}

.share-section {
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.02rem;
}

.share-section .share-icons {
  display: flex;
  gap: 10px;
}

.share-section .share-icons a {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--primary);
}

.share-section .copy-link {
  margin-left: auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: .96rem;
  color: var(--heading-color);
  cursor: pointer;
}

.call-to-action {
  background-color: #eaf5ff;
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.call-to-action h3 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
}

.call-to-action .cta-btn { background-color: var(--primary); }

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 10px;
}

.related-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary);
  overflow: hidden;
}

.related-header .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-header h3 {
  flex: 1;
  font-size: 1.25rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin: 0;
}

.related-list li {
  padding: 8px 0;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child { border-bottom: none; }

.comments-section { margin: 40px 0; }
.comments-section h3 {
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.comment-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.comment .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--border-color);
}

.comment-body { flex: 1; }
.comment-body .author {
  font-weight: bold;
  font-size: 1.02rem;
  font-family: var(--font-title);
  color: var(--heading-color);
}
.comment-body .date {
  font-size: .9rem;
  color: #888;
  margin-bottom: 5px;
}
.comment-body p { margin: 0; font-size: 1.08rem; }

.comments-empty,
.comment-feedback {
  margin: 0;
  color: var(--text-color);
  font-size: .96rem;
}

.comment-feedback {
  margin-top: 10px;
}

.reply-form textarea,
.reply-form input[type="text"],
.reply-form input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 1.08rem;
  margin-bottom: 10px;
  outline: none;
}

.comment-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reply-form textarea {
  height: 120px;
  resize: vertical;
}

.reply-form label {
  font-size: .96rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.empty {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  padding: 22px;
  background: var(--card-bg);
}

.empty.small {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
}

.page {
  width: min(96%, 1200px);
  margin: 0 auto;
}

.screen {
  padding: 10px 0 70px;
}

.screen-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.screen-head h1,
.login-panel h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--heading-color);
}

.screen-head .lead,
.description {
  color: var(--text-color);
  font-size: 1.08rem;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 42, 172, .12);
  color: var(--secondary);
  font-family: var(--font-title);
  font-size: .86rem;
  font-weight: 800;
}

.eyebrow.green {
  background: rgba(106, 78, 233, .12);
  color: var(--primary);
}

.login-layout,
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 28px;
  align-items: stretch;
}

.dashboard-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.login-panel,
.login-benefits,
.dashboard-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
}

.login-panel,
.login-benefits {
  padding: clamp(26px, 4vw, 46px);
}

.login-panel form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-benefits h2,
.dashboard-card h3 {
  margin: 8px 0 12px;
  font-family: var(--font-title);
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--heading-color);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--heading-color);
}

.field input,
.chat-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0 15px;
  background: #fff;
  color: var(--heading-color);
  font: 1rem var(--font-body);
  outline: 0;
}

.login-panel .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: #f5eef8;
  color: var(--heading-color);
  font-family: var(--font-title);
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--secondary);
  color: #fff;
}

.login-note,
.login-error {
  margin: 18px 0 0;
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(106, 78, 233, .1);
  color: var(--heading-color);
}

.login-error {
  background: rgba(255, 42, 172, .12);
  color: #9c145f;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.benefit-list div,
.benefit-list a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--heading-color);
  background: #fff;
}

.benefit-list a.active,
.benefit-list a:hover {
  color: #fff;
  background: var(--secondary);
  border-color: var(--secondary);
}

.benefit-list strong {
  font-family: var(--font-title);
  color: var(--heading-color);
}

.benefit-list span {
  font-size: .95rem;
  color: var(--text-color);
}

.dashboard-card {
  padding: 22px;
}

.dashboard-sidebar {
  position: sticky;
  top: 110px;
}

.dashboard-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dash-stats.single {
  grid-template-columns: 1fr;
  margin: 18px 0;
}

.dash-stat {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-small);
}

.dash-stat strong {
  display: block;
  color: var(--heading-color);
  font-family: var(--font-title);
  font-size: 1.45rem;
}

.dash-stat span {
  color: var(--text-color);
  font-size: .95rem;
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-section-head h3 {
  margin: 6px 0 0;
}

.console-inline-link {
  color: var(--secondary);
  font-family: var(--font-title);
  font-weight: 800;
}

.compact-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-video-grid .card-body {
  padding: 16px;
}

.compact-video-grid .card-body h3 {
  font-size: 1.05rem;
}

.compact-video-grid .card-body p {
  display: none;
}

.avatar-preview {
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
}

.pricing-card {
  max-width: 680px;
}

.chat-panel {
  display: grid;
  gap: 18px;
}

.chat-thread {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: end;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  background: #fff9fc;
}

.chat-message {
  max-width: 75%;
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--heading-color);
}

.chat-message.system {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: 18px 0 80px;
}

.profile-copy h1 {
  margin: 16px 0 18px;
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  color: var(--heading-color);
}

.profile-copy p {
  max-width: 720px;
  color: var(--text-color);
  font-size: 1.15rem;
  line-height: 1.65;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.profile-visual {
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-medium);
}

.profile-visual picture,
.profile-visual img {
  width: 100%;
  height: 100%;
}

.profile-visual img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 768px) {
  .navbar,
  .header-scrolled .navbar {
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    width: 100%;
    min-height: auto;
    margin: 0 0 34px;
    padding: 14px 18px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .navbar .logo {
    order: 1;
    justify-self: start;
    font-size: 1.65rem;
  }
  .navbar .logo span:not(.logo-mark) {
    display: none;
  }
  .navbar .actions {
    order: 2;
    justify-self: end;
    gap: 10px;
  }
  .navbar .search-container {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
  }
  .actions .subscribe-btn {
    padding: 9px 14px;
    font-size: .95rem;
  }
  .lang-switch {
    width: 68px;
    min-height: 42px;
    padding: 0 28px 0 12px;
    font-size: .95rem;
  }
  .site-menu {
    width: min(390px, 94vw);
    padding: 68px 34px 40px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }
  .home-hero p {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  .home-hero-input {
    flex-direction: column;
  }
  .home-hero-input button {
    min-height: 48px;
  }
  .home-hero-visual {
    max-width: 420px;
    margin: 0 auto;
    transform: translateY(0);
  }
  .category-intro {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 34px;
  }
  .category-intro-heading {
    border-right: 0;
    padding-right: 0;
  }
  .category-intro p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .home-video-head {
    align-items: stretch;
    flex-direction: column;
    margin: 32px auto 22px;
  }
  .home-video-head .page-btn {
    align-self: flex-start;
  }
  .seo-copy {
    margin: 36px auto 52px;
    padding-left: 14px;
  }
  .seo-copy.seo-copy-home {
    width: 96vw;
  }
  .seo-copy-inner {
    padding: 22px 20px;
  }
  .join-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 24px;
    text-align: center;
  }
  .join-section .join-text {
    max-width: none;
  }
  .join-section .join-action {
    text-align: center;
  }
  .join-section .right-shape,
  .join-section .left-shape { display: none; }
  .footer-columns { flex-direction: column; gap: 30px; }
  .page-wrapper { flex-direction: column; }
  .login-layout,
  .dashboard-layout,
  .dash-stats,
  .compact-video-grid,
  .chat-form {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
  .profile-page {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
    flex: 1 1 100%;
  }
  .article { order: 1; }
  .floating-cta { display: none; }
}
