  a:hover { color: inherit; text-decoration: none; }
  
  .fa-3xs{
	font-size: 0.325em;
    line-height: 1.6em;
    vertical-align: 0.725em;
}

.back-to-top {
    position: fixed;
    display: none;
    background: linear-gradient(45deg, #ff6b4a, #ff6b4a);
    color: #fff;
    padding: 8px 20px 8px 20px;
    font-size: 16px;
    border-radius: 4px 0 0 4px;
    right: 0px;
    bottom: 135px;
    transition: none;
	z-index:10;
}

.back-to-top:hover {
	color: white;
}

.filter-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.subpage  h2{
	padding-left: 30px;
}

/* ============ DESIGN TOKENS ============ */
  :root {
    --bg: #FAFAF8;
    --bg-elevated: #FFFFFF;
    --bg-subtle: #F1EFEA;
    --text: #15171A;
    --text-muted: #6B7280;
    --text-faint: #9A9C9F;
    --border: #E8E6E1;
    --accent: #D6391E;
    --accent-soft: #FBE8E3;
    --shadow: rgba(20, 18, 14, 0.07);
    --shadow-strong: rgba(20, 18, 14, 0.14);
 
    /* rovat-színkódok (világos mód) */
    --cat-belfold: #2A6B4F;
    --cat-belfold-bg: #E4F0EA;
    --cat-kulfold: #1E5FA8;
    --cat-kulfold-bg: #E3EDF8;
    --cat-politika: #8B2A6B;
    --cat-politika-bg: #F3E4EF;
    --cat-gazdasag: #A8731E;
    --cat-gazdasag-bg: #F7EEE0;
    --cat-kultura: #5B4B9E;
    --cat-kultura-bg: #ECE9F7;
    --cat-sport: #1E7A8C;
    --cat-sport-bg: #E1F0F3;
    --cat-default: #6B7280;
    --cat-default-bg: #EDEDED;
  }
 
  html[data-theme="dark"] {
    --bg: #14151A;
    --bg-elevated: #1D1F26;
    --bg-subtle: #20222A;
    --text: #F0F0ED;
    --text-muted: #A0A2A8;
    --text-faint: #6C6E76;
    --border: #2C2E36;
    --accent: #FF6B4A;
    --accent-soft: #3A2420;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-strong: rgba(0, 0, 0, 0.5);
 
    --cat-belfold: #5FCB9A;
    --cat-belfold-bg: #1B3329;
    --cat-kulfold: #6FA8E8;
    --cat-kulfold-bg: #1B2A3D;
    --cat-politika: #D98FC2;
    --cat-politika-bg: #34202D;
    --cat-gazdasag: #E0B45C;
    --cat-gazdasag-bg: #332A18;
    --cat-kultura: #ABA0E8;
    --cat-kultura-bg: #28243D;
    --cat-sport: #6FCBDC;
    --cat-sport-bg: #1A2E33;
    --cat-default: #A0A2A8;
    --cat-default-bg: #2A2C33;
  }
 
  * { box-sizing: border-box; }
 
  html { color-scheme: light; }
  html[data-theme="dark"] { color-scheme: dark; }
 
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
  }
 
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
 
  a { color: inherit; text-decoration: none; }
 
  /* ============ HEADER ============ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
 
  .header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
 
  .logo {
    font-family: "Source Serif 4", serif;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 2px;
  }
  .logo .dot { color: var(--accent); }
 
  .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }
 
  .weather-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elevated);
  }
  .weather-pill .weather-icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
    flex-shrink: 0;
  }
  .weather-pill .weather-text {
    white-space: nowrap;
  }
 
  .live-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
  }
  .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(214, 57, 30, 0.5);
    animation: pulse 2s infinite;
  }
  .live-logo {
    box-shadow: 0 0 0 0 rgba(214, 57, 30, 0.5);
    animation: pulse 2s infinite;
  }  
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(214, 57, 30, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(214, 57, 30, 0); }
    100% { box-shadow: 0 0 0 0 rgba(214, 57, 30, 0); }
  }
  
  .button {
    height: 40px;
	width: fit-content;
	padding:0 20px;
	border-radius: 25px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
  }
  .button:hover { border-color: var(--accent); transform: translateY(-1px); }
  .button:active { transform: translateY(0); }
 
  .theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
  }
  .theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
  .theme-toggle:active { transform: translateY(0); }
  .theme-toggle svg { width: 18px; height: 18px; }
  .theme-toggle .sun-icon { display: none; }
  html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
  html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
 
   .button.admin_mod i{
	margin-right:10px;
   }
 
  /* category filter bar */
  .filter-bar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
 
  .filter-chip {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
  }
  .filter-chip:hover { border-color: var(--accent); color: var(--text); }
  .filter-chip.active {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }
  html[data-theme="dark"] .filter-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #14151A;
  }
 
  /* ============ MAIN GRID ============ */
  .main-wrap {
    max-width: 4800px;
    margin: 0 auto;
    padding: 0px 24px 80px;
  }
 
  .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .section-heading h1 {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
  }
  .section-heading .count {
    font-size: 0.85rem;
    color: var(--text-faint);
    font-weight: 500;
  }
 
  .news-grid,  .news-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
	grid-auto-flow: dense;
  }
 
  /* Szélesebb képernyőn egyre több oszlop, max. 12-ig */
  @media (min-width: 3200px) {
    .news-grid { grid-template-columns: repeat(12, 1fr); }
  }
  @media (min-width: 2500px) and (max-width: 3199px) {
    .news-grid { grid-template-columns: repeat(10, 1fr); }
  }  
  @media (min-width: 2000px) and (max-width: 2499px) {
    .news-grid { grid-template-columns: repeat(7, 1fr); }
  }
  @media (min-width: 1820px) and (max-width: 1999px) {
    .news-grid { grid-template-columns: repeat(5, 1fr); }
  }
  @media (min-width: 1640px) and (max-width: 1819px) {
    .news-grid { grid-template-columns: repeat(5, 1fr); }
  }
  @media (min-width: 1460px) and (max-width: 1639px) {
    .news-grid { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 1280px) and (max-width: 1459px) {
    .news-grid { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 1100px) and (max-width: 1279px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 920px) and (max-width: 1099px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 740px) and (max-width: 919px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 480px) and (max-width: 739px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 479px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
  }
  
  /**/
  
    /* Szélesebb képernyőn egyre több oszlop, max. 12-ig */
  @media (min-width: 3200px) {
    .news-grid2 { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 2500px) and (max-width: 3199px) {
    .news-grid2 { grid-template-columns: repeat(4, 1fr); }
  }  
  @media (min-width: 2000px) and (max-width: 2499px) {
    .news-grid2 { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 1820px) and (max-width: 1999px) {
    .news-grid2 { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 1640px) and (max-width: 1819px) {
    .news-grid2 { grid-template-columns: repeat(4, 1fr); }
  }
  @media (min-width: 1460px) and (max-width: 1639px) {
    .news-grid2 { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 1280px) and (max-width: 1459px) {
    .news-grid2 { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 1100px) and (max-width: 1279px) {
    .news-grid2 { grid-template-columns: repeat(3, 1fr); }
  }
  @media (min-width: 920px) and (max-width: 1099px) {
    .news-grid2 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 740px) and (max-width: 919px) {
    .news-grid2 { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 480px) and (max-width: 739px) {
    .news-grid2 { grid-template-columns: repeat(1, 1fr); }
  }
  @media (max-width: 479px) {
    .news-grid2 { grid-template-columns: repeat(1, 1fr); }
  }

 
  /* ============ CARD ============ */
  .card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px var(--shadow);
    border-color: var(--border);
  }
 
  .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
  }
 
  .card-media-link {
    display: block;
    width: 100%;
    height: 100%;
  }
 
  .card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-subtle);
  }
  .card-media-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  .card:hover .card-media-link img { transform: scale(1.05); }
 
  .card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
  }
  .card-cat .cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }
 
  /* ============ LIKE / DISLIKE GOMBOK ============ */
  .vote-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
  }
 
  .vote-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: none;
    border-radius: 999px;
    background: rgba(20, 18, 14, 0.55);
    color: #fff;
    backdrop-filter: blur(6px);
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.12s ease;
  }
  .vote-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .vote-btn:hover {
    background: rgba(20, 18, 14, 0.78);
    transform: translateY(-1px);
  }
  .vote-btn:active {
    transform: translateY(0);
  }
 
   .vote-btn.vote-funny.voted {
    background: #1f911d;
    color: #fff;
  } 
   .vote-btn.vote-love.voted {
    background: red;
    color: #fff;
  }
 
  .vote-btn.vote-like.voted {
    background: var(--accent);
    color: #fff;
  }
  .vote-btn.vote-dislike.voted {
    background: #000;
    color: #fff;
  }
 
  .vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
  }
 
  .vote-count {
    min-width: 0.9em;
    text-align: left;
  }
 
  /* rovat szín variánsok */
  .cat-belfold  { background: color-mix(in srgb, var(--cat-belfold-bg) 88%, transparent); color: var(--cat-belfold); }
  .cat-belfold .cat-dot { background: var(--cat-belfold); }
  .cat-kulfold  { background: color-mix(in srgb, var(--cat-kulfold-bg) 88%, transparent); color: var(--cat-kulfold); }
  .cat-kulfold .cat-dot { background: var(--cat-kulfold); }
  .cat-politika { background: color-mix(in srgb, var(--cat-politika-bg) 88%, transparent); color: var(--cat-politika); }
  .cat-politika .cat-dot { background: var(--cat-politika); }
  .cat-gazdasag { background: color-mix(in srgb, var(--cat-gazdasag-bg) 88%, transparent); color: var(--cat-gazdasag); }
  .cat-gazdasag .cat-dot { background: var(--cat-gazdasag); }
  .cat-kultura  { background: color-mix(in srgb, var(--cat-kultura-bg) 88%, transparent); color: var(--cat-kultura); }
  .cat-kultura .cat-dot { background: var(--cat-kultura); }
  .cat-sport    { background: color-mix(in srgb, var(--cat-sport-bg) 88%, transparent); color: var(--cat-sport); }
  .cat-sport .cat-dot { background: var(--cat-sport); }
  .cat-default  { background: color-mix(in srgb, var(--cat-default-bg) 88%, transparent); color: var(--cat-default); }
  .cat-default .cat-dot { background: var(--cat-default); }
 
  .card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }
 
  .card-title {
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.32;
    margin: 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
 
  .card-desc {
    font-size: 0.89rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
 
  .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-faint);
  }
  .card-meta .author { font-weight: 600; color: var(--text-muted); }
 
 /* ============ HIRDETÉS KÁRTYA (Google AdSense) ============ */
  .ad-card {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--bg-subtle);
  }
  .ad-card .ad-label {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    background: var(--bg-elevated);
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    z-index: 1;
  }
  .ad-card .adsbygoogle {
    margin-top: 8px;
  }
  /* A hirdetés-kártya sosem kap hover-emelkedést, mint a hírkártyák */
  .ad-card:hover {
    transform: none;
    box-shadow: none;
  }
 
  /* ============ FEATURED (2 oszlop széles) KÁRTYA ============ */
  .card--featured {
    grid-column: span 2;
    flex-direction: row;
  }
  .card--featured .card-media {
    width: 46%;
    flex-shrink: 0;
    aspect-ratio: auto;
    height: auto;
  }
  .card--featured .card-link {
    flex: 1;
  }
  .card--featured .card-body {
    padding: 22px 26px 22px 24px;
    justify-content: center;
  }
  .card--featured .card-title {
    font-size: 1.55rem;
    line-height: 1.26;
    -webkit-line-clamp: 3;
  }
  .card--featured .card-desc {
    font-size: 0.96rem;
    -webkit-line-clamp: 3;
  }
  .card--featured .card-cat {
    font-size: 0.76rem;
    padding: 6px 13px;
  }
 
  /* Szűk képernyőn a featured kártya visszavált 1 oszlopra, normál elrendezésre */
  @media (max-width: 739px) {
    .card--featured {
      grid-column: span 1;
      flex-direction: column;
    }
    .card--featured .card-media {
      width: 100%;
      aspect-ratio: 16 / 10;
      height: auto;
    }
    .card--featured .card-body {
      padding: 16px 18px 18px;
    }
    .card--featured .card-title {
      font-size: 1.12rem;
    }
  }
 
  /* ============ FOOTER ============ */
  .site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-faint);
  }
 
  /* ============ RESPONSIVE ============ */
  @media (max-width: 640px) {
    .header-inner { padding: 14px 18px; }
    .logo { font-size: 1.4rem; }
    .main-wrap { padding: 20px 18px 60px; }
    .news-grid { grid-template-columns: 1fr; gap: 18px; }
    .live-pill span.label-text { display: none; }
    .weather-pill { padding: 6px 10px; font-size: 0.76rem; }
  }
 
  @media (max-width: 420px) {
    .weather-pill { display: none; }
  }
 
  /* focus visibility */
  a:focus-visible, .theme-toggle:focus-visible, .filter-chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  
  .zoom-ticker-wrap{
	  font-family:'IBM Plex Mono','SFMono-Regular',Consolas,monospace;
    background:linear-gradient(180deg,var(--bg-raised),var(--bg));
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    overflow:hidden;
    position:relative;
    width:100%;
	margin-bottom:20px;
  }
  .zoom-ticker-wrap::before,
  .zoom-ticker-wrap::after{
    content:"";
    position:absolute;
    top:0; bottom:0;
    width:48px;
    z-index:3;
    pointer-events:none;
  }
  .zoom-ticker-wrap::before{
    left:0;
    background:linear-gradient(90deg,var(--bg) 0%, transparent 100%);
  }
  .zoom-ticker-wrap::after{
    right:0;
    background:linear-gradient(270deg,var(--bg) 0%, transparent 100%);
  }
  .zoom-ticker-label{
    position:relative;
    z-index:4;
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:var(--gold);
    color:var(--text);
    font-weight:700;
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    padding:0 14px;
    height:34px;
    float:left;
  }
  .zoom-ticker-label .dot{
    width:6px;height:6px;border-radius:50%;
    background:var(--text);
    animation:zoom-pulse 1.6s ease-in-out infinite;
  }
  @keyframes zoom-pulse{
    0%,100%{opacity:1;}
    50%{opacity:.25;}
  }
  .zoom-ticker-track-outer{
    height:34px;
    overflow:hidden;
    margin-left:0;
  }
  .zoom-ticker-track{
    display:flex;
    align-items:center;
    height:34px;
    width:max-content;
    animation:zoom-scroll 55s linear infinite;
  }
  .zoom-ticker-wrap:hover .zoom-ticker-track{
    animation-play-state:paused;
  }
  @keyframes zoom-scroll{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }
  .zoom-item{
    display:inline-flex;
    align-items:baseline;
    gap:8px;
    padding:0 20px;
    border-right:1px solid var(--line);
    white-space:nowrap;
    font-size:13px;
  }
  .zoom-item .sym{
    font-weight:700;
    color:var(--text);
    letter-spacing:.02em;
  }
  .zoom-item .sym .full{
    font-weight:400;
    color:var(--text-dim);
    margin-left:5px;
    font-size:11px;
  }
  .zoom-item .price{
    color:var(--text);
  }
  .zoom-item .chg{
    font-size:12px;
    padding:1px 5px;
    border-radius:3px;
  }
  .zoom-item .chg.up{ color:var(--up); background:rgba(107,207,95,.12); }
  .zoom-item .chg.down{ color:var(--down); background:rgba(226,88,74,.12); }
  .zoom-item .chg.up::before{ content:"▲ "; }
  .zoom-item .chg.down::before{ content:"▼ "; }
  .zoom-item.fx .sym{ color:var(--gold); }
 
  .zoom-updated{
    position:relative;
    z-index:4;
    float:right;
    font-size:10px;
    color:var(--text-dim);
    padding:0 14px;
    height:34px;
    display:none;
    align-items:center;
  }
  @media(min-width:720px){
    .zoom-updated{ display:inline-flex; }
  }
 
  @media(prefers-reduced-motion: reduce){
    .zoom-ticker-track{ animation:none; overflow-x:auto; }
  }