.article-page {
  background: var(--bg-color);
  color: var(--text-color);
}

.permalink-hero {
  border-radius: 1.75rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  background: var(--card-bg, #fff);
}

@media (max-width: 992px) {
  .permalink-hero {
    grid-template-columns: 1fr;
  }
}

.permalink-hero-media {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #0d6efd, #764ba2);
}

.permalink-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.permalink-hero-media.no-image::after {
  display: none;
}

.permalink-hero-media img,
.permalink-hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.permalink-hero-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.25rem;
}

.permalink-hero-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.permalink-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(13, 110, 253, 0.12);
  color: var(--primary-color);
}

.permalink-chip.secondary {
  background: rgba(120, 120, 255, 0.12);
  color: #6b21a8;
}

[data-theme="dark"] .permalink-chip,
[data-theme="dark"] .permalink-chip.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #e0e7ff;
}

.permalink-hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

.permalink-hero-summary {
  font-size: 1.05rem;
  max-width: 840px;
}

.permalink-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.08);
}

.permalink-author-avatar.placeholder {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.6);
}

.permalink-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-color);
}

.permalink-meta-pill i {
  font-size: 0.85rem;
}

[data-theme="dark"] .permalink-hero-body {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
}

[data-theme="dark"] .permalink-meta-pill {
  background: rgba(255, 255, 255, 0.08);
}

.article-card,
.article-main,
.article-aside-card {
  border-radius: 1.5rem;
  background: var(--card-bg, #fff);
}

.article-card {
  padding: 2rem;
}

.article-main {
  padding: 2rem;
}

.article-aside-card {
  padding: 1.5rem;
}

[data-theme="dark"] .article-card,
[data-theme="dark"] .article-main,
[data-theme="dark"] .article-aside-card {
  background: #111827;
}

.article-layout .card {
  border: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.article-layout {
  margin-top: 1rem;
}

.article-category {
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}

.article-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.2;
}

.article-meta {
  font-size: 0.95rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.article-hero {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.article-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li + li {
  margin-top: 0.35rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color, #0d6efd);
  margin: 1.5rem 0;
  padding-left: 1rem;
  font-style: italic;
  color: var(--text-muted, #475569);
}

.article-body .permalink-keypoint {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem 1.5rem 3.25rem;
  border-radius: 1.5rem;
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.25);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 18px 35px rgba(13, 110, 253, 0.08);
}

.article-body .permalink-keypoint::before {
  content: "\201C";
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  font-size: 3rem;
  line-height: 1;
  color: var(--primary-color, #0d6efd);
  font-family: 'Georgia', 'Times New Roman', serif;
  opacity: 0.45;
}

.article-body .permalink-keypoint p {
  margin-bottom: 0;
  color: inherit;
}

[data-theme="dark"] .article-body .permalink-keypoint {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #f8fafc;
}

[data-theme="dark"] .article-body .permalink-keypoint::before {
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.6;
}

.article-body img,
.article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.5rem 0;
  display: block;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.article-body pre {
  background: rgba(15, 23, 42, 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
}

.article-share .btn,
.article-tags .badge {
  border-radius: 999px;
}

.related-news .news-card {
  height: 100%;
}

.article-share button.copied {
  pointer-events: none;
}

.permalink-share-card {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: rgba(13, 110, 253, 0.04);
}

[data-theme="dark"] .permalink-share-card {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.permalink-share-btn {
  border-radius: 0.85rem;
}

.related-card {
  position: relative;
  border: none;
  border-radius: 1.3rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.related-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-card-media img,
.related-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card-placeholder {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.35);
  font-size: 1.8rem;
}

.related-card-body {
  padding: 1.5rem;
}

.related-card-top {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-card-index {
  font-weight: 700;
  color: var(--primary-color);
}

.related-card-pill {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: var(--primary-color);
  font-weight: 600;
}

.related-card-date {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.related-card-summary {
  font-size: 0.95rem;
}

.related-card-icon {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.related-card:hover .related-card-icon {
  transform: translate(3px, -3px);
}

[data-theme="dark"] .related-card {
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="dark"] .related-card-placeholder {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.permalink-top-news-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #fff);
}

.permalink-top-news-list {
  width: 100%;
}

.permalink-top-news-item {
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.permalink-top-news-item:hover {
  transform: translateX(4px);
  border-color: rgba(13, 110, 253, 0.35);
}

.permalink-top-news-thumb {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.permalink-top-news-placeholder {
  width: 100%;
  height: 100%;
  color: rgba(15, 23, 42, 0.4);
  font-size: 1.25rem;
}

.permalink-top-news-index {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.15rem;
}

.permalink-top-news-title {
  font-weight: 600;
  color: var(--text-color);
}

.permalink-top-news-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.permalink-top-news-icon {
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.permalink-top-news-item:hover .permalink-top-news-icon {
  opacity: 1;
}

[data-theme="dark"] .permalink-top-news-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.85));
}

[data-theme="dark"] .permalink-top-news-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .permalink-top-news-placeholder {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .permalink-top-news-title {
  color: #f8fafc;
}

[data-theme="dark"] .permalink-top-news-meta {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
  .article-card {
    padding: 1.5rem;
  }
  .article-main {
    padding: 1.5rem;
  }
  .article-hero img {
    height: 260px;
  }
  .permalink-hero-body {
    padding: 1.75rem;
  }
  .related-card-body {
    padding: 1.25rem;
  }
}

.mobile-floating-actions {
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-floating-actions {
    position: fixed;
    top: 45%;
    right: max(12px, env(safe-area-inset-right));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 1070;
    pointer-events: none;
  }

  .mobile-floating-actions__btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    pointer-events: auto;
  }

  .mobile-floating-actions__btn i {
    font-size: 1.2rem;
    color: currentColor;
  }

  .mobile-floating-actions__btn:active {
    transform: scale(0.92);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  }
}

.mobile-floating-actions__btn--heart i {
  color: #e11d48;
}

.mobile-floating-actions__btn--share i {
  color: #2563eb;
}

[data-theme="dark"] .mobile-floating-actions__btn {
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.65);
}

[data-theme="dark"] .mobile-floating-actions__btn--heart i {
  color: #fb7185;
}

[data-theme="dark"] .mobile-floating-actions__btn--share i {
  color: #60a5fa;
}

.follow-modal .modal-content {
  border-radius: 1.5rem;
  border: none;
  padding: 0.5rem 0.75rem 1.25rem;
  background: var(--card-bg, #fff);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.follow-modal .modal-header {
  align-items: flex-start;
}

.follow-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.follow-modal-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.follow-modal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(15, 23, 42, 0.02);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.follow-modal-link:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.1);
}

.follow-modal-link-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
}

.follow-modal-link-copy {
  flex-grow: 1;
}

.follow-modal-link-label {
  display: block;
  font-weight: 700;
}

.follow-modal-link-copy small {
  font-size: 0.8rem;
  color: var(--text-muted, #6b7280);
}

.follow-modal-link-caret {
  color: var(--primary-color);
}

.follow-modal-link--instagram .follow-modal-link-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.follow-modal-link--twitter .follow-modal-link-icon {
  background: #111;
}

.follow-modal-link--telegram .follow-modal-link-icon {
  background: #229ED9;
}

[data-theme="dark"] .follow-modal .modal-content {
  background: rgba(17, 24, 39, 0.95);
  color: #f8fafc;
}

[data-theme="dark"] .follow-modal-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .follow-modal-link-copy small {
  color: rgba(248, 250, 252, 0.7);
}

@media (max-width: 480px) {
  .mobile-floating-actions__btn {
    width: 48px;
    height: 48px;
  }

  .mobile-floating-actions__btn i {
    font-size: 1.1rem;
  }
}

.article-share-bubbles {
  border-radius: 1.35rem;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.9), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.article-share-bubbles__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.article-share-bubbles__chip i {
  font-size: 1rem;
}

.article-share-bubbles__chip--share {
  background: linear-gradient(120deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.article-share-bubbles__chip--copy {
  background: rgba(15, 23, 42, 0.08);
}

.article-share-bubbles__chip--telegram {
  background: rgba(34, 158, 217, 0.12);
  color: #0f172a;
}

.article-share-bubbles__chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.article-share-bubbles__chip:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.4);
  outline-offset: 2px;
}

[data-theme="dark"] .article-share-bubbles {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

[data-theme="dark"] .article-share-bubbles__chip {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  box-shadow: none;
}

[data-theme="dark"] .article-share-bubbles__chip--share {
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .article-share-bubbles__chip--telegram {
  background: rgba(34, 158, 217, 0.18);
  color: #e0f2ff;
}

