/* ============ SHARED STYLES — Personal Blog ============ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f5;
  --accent: #2AABEE;
  --accent-2: #229ED9;
  --text: #1c1c1e;
  --text-soft: #8e8e93;
  --border: #e7e7ea;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 56px;
  --radius: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-soft);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 14px;
}
.topbar .burger {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.topbar .burger:hover { background: #eceef0; }
.topbar .burger svg { width: 20px; height: 20px; stroke: var(--text); }
.topbar .logo {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.topbar .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.topbar nav {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; flex: 1; -ms-overflow-style: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  flex-shrink: 0; font-size: 14px; font-weight: 500;
  color: var(--text-soft); padding: 8px 14px; border-radius: 10px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.topbar nav a.active { color: var(--text); background: var(--bg-soft); font-weight: 600; }
.topbar nav a:hover { color: var(--text); }
.topbar .search-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
}
.topbar .search-btn svg { width: 18px; height: 18px; stroke: var(--text-soft); }

/* ===== LAYOUT ===== */
.layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  width: var(--sidebar-w);
  background: #fff; border-right: 1px solid var(--border);
  flex-shrink: 0; transition: width .22s ease;
  overflow: hidden; z-index: 90;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar-inner {
  padding: 14px 10px; height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-inner::-webkit-scrollbar { width: 0; }
.side-link {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--text); font-size: 14.5px; font-weight: 500;
  white-space: nowrap; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--bg-soft); }
.side-link.active { background: rgba(42,171,238,0.12); color: var(--accent-2); }
.side-link svg {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: var(--text-soft); stroke-width: 1.8;
  fill: none; transition: stroke .15s;
}
.side-link.active svg { stroke: var(--accent-2); }
.side-link span { opacity: 1; transition: opacity .15s; overflow: hidden; }
.sidebar.collapsed .side-link span { opacity: 0; width: 0; }
.sidebar.collapsed .side-link { justify-content: center; padding: 11px 0; }
.side-divider { height: 1px; background: var(--border); margin: 10px 6px; }
.side-section-title {
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 12px 4px; white-space: nowrap;
  transition: opacity .15s;
}
.sidebar.collapsed .side-section-title { opacity: 0; height: 0; padding: 0; overflow: hidden; }

/* ===== AUTHOR CARD in Sidebar ===== */
.sidebar-author {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 12px 16px; text-align: center; gap: 10px;
}
.sidebar.collapsed .sidebar-author { display: none; }
.author-avatar-ring {
  width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--accent), #6dd5fa, var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.author-avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff;
}
.author-name {
  font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.author-bio {
  font-size: 12.5px; color: var(--text-soft); line-height: 1.5;
}
.author-stats {
  display: flex; gap: 16px; margin-top: 4px;
}
.author-stat { display: flex; flex-direction: column; align-items: center; }
.author-stat strong { font-size: 14px; font-weight: 700; color: var(--text); }
.author-stat span { font-size: 11px; color: var(--text-soft); }

/* ===== SIDEBAR SOCIAL ===== */
.sidebar-social {
  display: flex; gap: 8px; padding: 8px 12px 4px; flex-wrap: wrap;
  justify-content: center;
}
.sidebar-social a {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, color .15s;
  color: var(--text-soft);
}
.sidebar-social a:hover { background: var(--accent); color: #fff; }
.sidebar-social a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sidebar.collapsed .sidebar-social { display: none; }

/* ===== MAIN CONTENT ===== */
.content {
  flex: 1; min-width: 0; padding: 16px;
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 26px;
}
.section-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.section-title .badge {
  width: 6px; height: 18px; border-radius: 3px;
  background: var(--accent); display: inline-block;
}
.section-title a.see-all {
  margin-left: auto; font-size: 13px; font-weight: 500;
  color: var(--accent); padding: 4px 10px; border-radius: 8px;
  background: rgba(42,171,238,0.08);
  transition: background .15s;
}
.section-title a.see-all:hover { background: rgba(42,171,238,0.16); }

/* ===== SCROLL ARROWS ===== */
.scroll-row-wrap { position: relative; }
.scroll-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: background .15s, opacity .15s;
}
.scroll-arrow:hover { background: #fff; }
.scroll-arrow svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2.4; }
.scroll-arrow.left { left: -6px; }
.scroll-arrow.right { right: -6px; }
.scroll-arrow.hidden { display: none; }
@media (max-width: 760px) { .scroll-arrow { display: none !important; } }

/* ===== STORIES ===== */
.stories-row {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 4px 0 6px; scrollbar-width: none; scroll-behavior: smooth;
}
.stories-row::-webkit-scrollbar { display: none; }
.story {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; width: 76px; cursor: pointer;
}
.story-ring {
  width: 64px; height: 64px; border-radius: 50%; padding: 2.5px;
  background: linear-gradient(135deg, #2AABEE, #6dd5fa, #2AABEE);
  display: flex; align-items: center; justify-content: center;
}
.story.seen .story-ring { background: var(--border); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; }
.story-name {
  font-size: 12px; font-weight: 500; color: var(--text-soft);
  text-align: center; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 76px;
}

/* ===== CAROUSEL ===== */
.carousel {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 4px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-card {
  flex-shrink: 0; width: 280px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  transition: transform .15s, box-shadow .15s;
}
.carousel-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.carousel-card .thumb { width: 100%; height: 150px; object-fit: cover; background: var(--bg-soft); }
.carousel-card .body { padding: 12px 14px 14px; }
.carousel-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--accent-2); background: rgba(42,171,238,0.1);
  padding: 3px 8px; border-radius: 6px; margin-bottom: 8px;
}
.carousel-card h3 {
  font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.carousel-card .meta { font-size: 12px; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }

/* ===== VIDEO GRID ===== */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video-card {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.video-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-soft); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play svg { width: 42px; height: 42px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.video-thumb .duration {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px;
}
.video-info { padding: 10px 12px 12px; }
.video-info h4 {
  font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-info .meta { font-size: 12px; color: var(--text-soft); }

/* ===== PHOTO GRID ===== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer; position: relative;
  background: var(--bg-soft);
  transition: transform .15s, box-shadow .15s;
}
.photo-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: unset; min-height: 260px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-item .overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  display: flex; align-items: flex-end; padding: 12px;
  transition: background .2s;
}
.photo-item:hover .overlay { background: rgba(0,0,0,0.3); }
.photo-item .caption {
  color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .2s; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.photo-item:hover .caption { opacity: 1; }
.photo-item:hover { transform: scale(1.01); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* ===== ARTICLES LIST ===== */
.articles-list { display: flex; flex-direction: column; gap: 12px; }
.article-row {
  display: flex; gap: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; transition: box-shadow .15s, transform .15s; cursor: pointer;
}
.article-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); transform: translateY(-1px); }
.article-row img { width: 120px; height: 84px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.article-row .info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.article-row h3 {
  font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-row .meta { display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--text-soft); }
.article-row .meta .item { display: flex; align-items: center; gap: 4px; }
.article-row .meta svg { width: 14px; height: 14px; stroke: var(--text-soft); }

/* ===== ADS SLIDER ===== */
.ads-slider {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 4px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.ads-slider::-webkit-scrollbar { display: none; }
.ad-card {
  flex-shrink: 0; width: 240px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border); position: relative;
}
.ad-card img { width: 100%; height: 140px; object-fit: cover; }
.ad-card .ad-label {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
}
.ad-card .body { padding: 10px 12px 12px; }
.ad-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.ad-card p { font-size: 12px; color: var(--text-soft); }

/* ===== FOOTER ===== */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 8px; }
.footer-inner {
  max-width: 1000px; margin: 0 auto; padding: 36px 16px 24px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-soft); margin-bottom: 14px;
}
.footer-col .logo {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
  color: var(--accent); display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.footer-col .logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer-col p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; max-width: 280px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: var(--text); transition: color .15s; }
.footer-col ul a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--border); max-width: 1000px; margin: 0 auto;
  padding: 16px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-soft);
}
.footer-bottom .legal-links { display: flex; gap: 16px; }
.footer-bottom .legal-links a { color: var(--text-soft); transition: color .15s; }
.footer-bottom .legal-links a:hover { color: var(--text); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(42,171,238,0.4); cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity .25s, transform .25s, background .15s; z-index: 150;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-2); }
.back-to-top svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.4; }

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, rgba(42,171,238,0.08) 0%, rgba(109,213,250,0.05) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; margin-bottom: 4px;
}
.page-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-hero p { font-size: 15px; color: var(--text-soft); line-height: 1.6; max-width: 600px; }

/* ===== CARD GRID (generic) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.07); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card .card-body { padding: 14px; }
.card .card-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--accent-2); background: rgba(42,171,238,0.1);
  padding: 3px 8px; border-radius: 6px; margin-bottom: 8px;
}
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.card .card-meta { font-size: 12px; color: var(--text-soft); }

/* ===== ARTICLE PAGE ===== */
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.article-hero img { width: 100%; max-height: 420px; object-fit: cover; }
.article-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.article-content h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.3; }
.article-meta-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-soft); margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.article-meta-bar .tag {
  font-size: 11px; font-weight: 700; color: var(--accent-2);
  background: rgba(42,171,238,0.1); padding: 3px 8px; border-radius: 6px;
}
.article-body { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.article-body blockquote {
  border-left: 4px solid var(--accent); padding: 12px 20px;
  background: rgba(42,171,238,0.05); border-radius: 0 10px 10px 0;
  margin: 20px 0; font-style: italic; color: var(--text-soft);
}
.article-body img { border-radius: 10px; margin: 20px 0; width: 100%; }

/* ===== CONTACT FORM ===== */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  font-size: 14px; color: var(--text); font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(42,171,238,0.08); }

/* ===== INFO BOXES ===== */
.info-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.info-box + .info-box { margin-top: 16px; }

/* ===== TERMS / ABOUT PROSE ===== */
.prose { font-size: 15px; line-height: 1.8; color: var(--text); }
.prose h2 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar.collapsed { width: var(--sidebar-w); }
  .sidebar.collapsed .side-link span { opacity: 1; width: auto; }
  .sidebar.collapsed .side-section-title { opacity: 1; height: auto; padding: 10px 12px 4px; }
  .sidebar.collapsed .side-link { justify-content: flex-start; padding: 11px 12px; }
  .overlay {
    position: fixed; inset: 0; top: var(--topbar-h);
    background: rgba(0,0,0,0.3); z-index: 80;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .overlay.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item:first-child { grid-column: span 2; }
  .article-row img { width: 96px; height: 72px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .carousel-card { width: 240px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item:first-child { grid-column: span 1; }
  .topbar .logo span.text { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
