
#emoji-panel .emoji-btn{all:unset;display:inline-block;cursor:pointer;line-height:1;font-size:1rem;padding:2px 4px;-webkit-tap-highlight-color:transparent}
#emoji-panel .emoji-btn:hover{transform:scale(1.06)}
#emoji-panel .emoji-btn:active{transform:scale(0.96)}
.post{position:relative;background:#fff;padding:1rem;border-radius:10px;box-shadow:0 0 8px rgba(0,0,0,0.05)}
.post h2{margin-top:3rem}
.badge-container{position:absolute;top:10px;right:10px;display:flex;gap:10px}
.badge-nap{background:#ffcc00;color:#333;padding:4px 8px;font-size:.8em;border-radius:4px;font-weight:bold}
.badge-kiemelt{background:#3399ff;color:#fff;padding:4px 8px;font-size:.8em;border-radius:4px;font-weight:bold}
#kommentek{max-width:700px;margin:auto;text-align:left}
.sidebar{display:block!important;flex:1;background:#fff;padding:1rem;border:1px solid #ddd;border-radius:8px;margin-left:1.5rem;box-shadow:0 2px 5px rgba(0,0,0,0.05)}
@media (max-width:1023px){
  .main-wrapper{display:block!important;padding:0;margin:0}
  #kommentek{max-width:100%!important;margin:0!important}
  .sidebar{display:block!important;width:100%!important;margin:0!important;padding:1rem;border:1px solid #ddd;background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,0.05);box-sizing:border-box}
  .sidebar ul{list-style:none;padding:0;margin:0}
  .sidebar li{margin:.5em 0}
  .sidebar a{color:#007bff;text-decoration:none}
  .sidebar a:hover{text-decoration:underline}
}
*,*::before,*::after{box-sizing:border-box}
@media (max-width:768px){.sidebar{width:100%!important}}


/* =========================================
   HANGOS VERS – VIDEO EMBED (YT + FB)
   ÜRES TÉR NÉLKÜL
   ========================================= */

/* ========== KÖZÖS ALAP ========== */
.video-embed{
  width: 100%;
  margin: 1.5rem auto;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-embed iframe{
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* =========================================
   ▶️ YOUTUBE – normál videók (16:9)
   ========================================= */
.video-embed.yt-embed{
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* YouTube SHORTS (9:16) */
.video-embed.yt-shorts{
  aspect-ratio: 9 / 16;
  width: min(420px, 100%);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   🎧 FACEBOOK – hangosvers
   FONTOS: a Facebook Reel pluginje sokszor 16:9-ben jelenik meg,
   ezért így kezeljük, különben üres tér marad.
   ========================================= */

/* Facebook – Reel IS 16:9-ként kezelve (üres tér eltűnik) */
.video-embed.fb-embed.fb-desktop.fb-reel,
.video-embed.fb-embed.fb-android.fb-reel,
.video-embed.fb-embed.fb-desktop.fb-video,
.video-embed.fb-embed.fb-android.fb-video{
  aspect-ratio: 16 / 9;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   📱 Mobil – ne legyen túl nagy
   ========================================= */
@media (max-width: 480px){
  .video-embed.yt-shorts{
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 769px) {
    /* Csak a .sidebar-list blokkokban lévő UL-ekre és linkekre hasson */
    .sidebar .sidebar-list ul {
        list-style: none;
        padding-left: 0;
        margin: 0 0 6px;
    }

    .sidebar .sidebar-list ul li {
        margin: 4px 0;
    }

    .sidebar .sidebar-list ul li a {
        display: inline-block;
        vertical-align: middle;
        padding: 6px 10px;          /* vékonyabb gomb */
        border-radius: 10px;        /* kisebb lekerekítés */
        text-decoration: none;
        font-size: 14px;
        background: linear-gradient(90deg, #eaf8ff, #f0f1ff);
        color: #1a3d6b !important;
        font-weight: 500;
        border: 1px solid rgba(90,120,190,0.15);
        transition: all 0.25s ease;
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }

    .sidebar .sidebar-list ul li a:hover {
        background: linear-gradient(90deg, #d8f1ff, #e7daff);
        transform: translateX(4px);
        box-shadow: 0 3px 8px rgba(90,120,190,0.18);
    }
}


.vers-link-box {
    margin: 12px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vers-link-box label {
    font-weight: 600;
    color: #1b3b8f; /* sötétkék */
}

#versLink {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #cfe1ff;
    border-radius: 10px;
    background: #f5f9ff;          /* világoskék háttér */
    color: #0b3b82;               /* sötétkék szöveg */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: .15s ease;
}

#versLink:hover {
    background: #e8f1ff;
    border-color: #aecdff;
}

#versLink:active,
#versLink:focus {
    outline: none;
    border-color: #7fb3ff;
    box-shadow: 0 0 0 3px rgba(140, 180, 255, .35);
}

/* Másolva jelzés */
.copy-msg {
    display: none;
    color: #0b8d25; /* zöld */
    font-weight: 600;
    margin-top: 4px;
    font-size: .9rem;
}

.copy-msg.show {
    display: inline;
}


/* ================================
   TETSZIK – VERSEK
   (novellához igazított kinézet)
================================ */

.vers-like-box {
  margin-top: 1.5rem;
  text-align: center;
}

/* Gomb – ugyanaz a stílus, mint a régi .like-button */
.vers-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: linear-gradient(135deg, #ff748c, #ff4060);
  color: #fff;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 3px 8px rgba(255, 64, 96, 0.25);
}

.vers-like-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff5773, #ff294d);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 64, 96, 0.35);
}

.vers-like-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.vers-like-btn .like-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.vers-like-btn .like-text {
  white-space: nowrap;
}

.vers-like-btn .like-count {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Liked állapot – finomabb, zöldes */
.vers-like-btn.liked {
  background: #e8f8ee;
  color: #1b7a33;
  box-shadow: 0 0 0 1px #b6e1c6 inset;
}

/* "Már tetszik" + köszönő szöveg blokk */
.vers-like-already {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.like-note {
  font-size: 0.85rem;
  color: #1b7a33;
}

/* Be nem jelentkezett üzenet – vers */
.vers-like-login {
  font-size: 0.95rem;
  color: #444;
  text-align: center;
  margin-top: 1rem;
}

.vers-like-login .heart {
  margin-right: 4px;
}

.vers-like-login a {
  margin-left: 6px;
  font-weight: 600;
  color: #c70042;
  text-decoration: none;
}

.vers-like-login a:hover {
  text-decoration: underline;
}

/* Mobilbarát */
@media (max-width: 480px) {
  .vers-like-box {
    margin-top: 1rem;
  }

  .vers-like-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .like-note {
    font-size: 0.8rem;
  }
}
.post h1 {
    font-family: "Merriweather", "Georgia", serif;
    font-weight: 700;
}
/* Meseoldalon a szerző neve NE legyen nagybetűs */
.post h1 {
    text-transform: none !important;
}

.discover-image{
  position: fixed !important;
  left: -200vw !important;
  top: -200vh !important;
  pointer-events: none;
}

/* ===========================
   KORHATÁR BADGE (16+ / 18+)
   =========================== */

.korhatar-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #cc0000;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 20;
    cursor: help;
    display: inline-block;
}

.korhatar-badge::after {
    content: attr(data-tip);
    position: absolute;
    left: 0;
    top: 52px;
    background: #fff6f6;
    color: #700000;
    border: 1px solid #b80000;
    padding: 8px 12px;
    font-size: 0.85rem;
    line-height: 1.35;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    max-width: min(260px, 90vw);
    display: none;
    z-index: 9999;

    /* >>> EZ A 4 SOR A LÉNYEG <<< */
    white-space: normal !important;    /* normál tördelés */
    overflow-wrap: break-word !important;  /* szavanként tördel */
    word-break: normal !important;     /* NE tördeljen karakterenként */
    word-wrap: break-word !important;  /* mobilbarát tördelés */
}


/* Hover megjelenítés */
.korhatar-badge:hover::after {
    display: block;
}

/* ===========================
   MOBIL OPTIMALIZÁCIÓ
   =========================== */

@media (max-width: 600px) {

    .korhatar-badge {
        font-size: 1rem;
        padding: 5px 8px;
        top: 8px;
        left: 8px;
    }

    .korhatar-badge::after {
        top: 46px;
        font-size: 0.8rem;
        max-width: 85vw;  /* mobilon még kisebb, hogy biztosan beférjen */
    }
}

.korhatar-warning {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 16px 0;       /* ⬅️ alsó margó a gomb előtt */
  padding: 10px 14px;

  border-left: 5px solid #c0392b;
  background: linear-gradient(90deg, #fff5f5, #ffffff);
  color: #7b1e1e;
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.korhatar-age {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 8px;
  background: #c0392b;
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.korhatar-text {
  line-height: 1.4;
}

@media (max-width: 480px) {
  .korhatar-warning {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;   /* ⬅️ mobilon kicsit kisebb térköz */
  }

  .korhatar-age {
    min-width: auto;
  }
}


.similar-box{margin-top:1.5rem}
.similar-title{font-weight:800;margin:0 0 .7rem 0}
.similar-grid{display:flex;flex-direction:column;gap:.55rem;margin:0;padding:0;list-style:none}

.similar-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  padding:.65rem .8rem;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.similar-left{min-width:0;display:flex;flex-direction:column;gap:.2rem}
.similar-author{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  font-weight:800;
  text-decoration:none;
}
.similar-author b{font-weight:800}
.similar-author u{text-decoration-thickness:2px;text-underline-offset:2px}

.similar-work{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-width:0;
  text-decoration:none;
}
.similar-work .title{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:46ch;
}
@media (max-width:560px){
  .similar-work .title{max-width:26ch}
}

.similar-right{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.sim-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.78rem;
  font-weight:800;
  padding:.22rem .55rem;
  border-radius:999px;
  white-space:nowrap;
}
.sim-badge.kiemelt{background:#3399ff;color:#fff}
.sim-badge.age{background:#fff0f0;color:#c0392b;border:1px solid rgba(192,57,43,.25)}
/* ugyanaz az ikon osztály marad, mint nálad */
.kiemelt-szerzo-ikon{margin-left:.1rem}


/* @megszólítás kiemelése */
.komment-mention{
  font-weight: 800;
  color: #c0392b;
  background: rgba(192,57,43,0.08);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Válasz link */
.komment-reply{
  display:inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* @megszólítás kiemelése – visszafogott, irodalmi */
.komment-mention{
  font-weight: 700;     /* félkövér, de nem agresszív */
  color: #111;          /* majdnem fekete */
  background: none;     /* nincs háttér */
  padding: 0;           /* nincs “címke” érzet */
  border-radius: 0;
  white-space: normal; /* ne törje el furán, engedje a sortörést */
  font-style: italic;  /* opcionális irodalmi hangulat */
}


/* A videóblokk biztosan foglaljon helyet és ne zavarja az alatta lévőt */
.video-embed{
  clear: both;
}

/* Biztos távtartás alul is (nehogy ráfeküdjön a következő blokk) */
.video-embed{
  margin-bottom: 2rem;
}

/* Ha a szülő valahol float-os, ez segít a magasság helyes számolásában */
.video-embed::after{
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 600px){
  a.fb-open-btn,
  a.facebook-open,
  a.hangosvers-facebook{
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px){
  .vers-link-box{ text-align:left; }
  .vers-link-box label{ display:block; text-align:left !important; }
}

/* MOBIL: Vers linkje blokk ne legyen középre igazítva */
aside.sidebar .vers-link-box{
  text-align: left !important;
}

aside.sidebar .vers-link-box label{
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: 0 0 .35rem 0 !important;
}

aside.sidebar .vers-link-box input{
  text-align: left !important;
  direction: ltr !important;
}


    .share-modern-inner{
      display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem;
      padding:.85rem .9rem;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;
      box-shadow:0 10px 28px rgba(0,0,0,.06);
    }
    .share-modern-title{font-weight:800;color:#444;margin-right:.25rem}
    .share-pill{
      display:inline-flex;align-items:center;gap:.45rem;
      padding:.45rem .7rem;border-radius:999px;border:1px solid rgba(0,0,0,.10);
      background:#fafafa;color:#222;text-decoration:none;font-weight:800;font-size:.92rem;
      transition:transform .08s ease, box-shadow .08s ease, background .12s ease;
      cursor:pointer;
    }
    .share-pill:hover{background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.08);transform:translateY(-1px)}
    .share-pill:active{transform:translateY(0)}
    .share-pill .sp-ico{
      width:22px;height:22px;border-radius:999px;background:rgba(0,0,0,.08);
      display:inline-flex;align-items:center;justify-content:center;font-weight:900;
      font-size:.9rem;line-height:1;
    }

    /* ✅ Mini like gomb */
    .share-like-btn{
      display:inline-flex;align-items:center;gap:.35rem;
      padding:.42rem .55rem;border-radius:999px;
      border:1px solid rgba(0,0,0,.12);
      background:#fff;color:#222;
      font-weight:900;font-size:.92rem;
      box-shadow:0 6px 16px rgba(0,0,0,.06);
      cursor:pointer;
      transition:transform .08s ease, box-shadow .08s ease;
    }
    .share-like-btn:hover{box-shadow:0 10px 22px rgba(0,0,0,.10);transform:translateY(-1px)}
    .share-like-btn:active{transform:translateY(0)}
    .share-like-btn .sl-heart{font-size:1.0rem;line-height:1}
    .share-like-btn .sl-count{font-weight:900;min-width:1.4rem;text-align:center}

    .share-like-btn.is-liked{
      border-color:rgba(220,20,60,.35);
      box-shadow:0 10px 22px rgba(220,20,60,.12);
    }
    .share-like-btn.is-liked .sl-heart{color:#d12a4a}

    .share-like-msg{display:none;font-weight:800;color:#1b7f3a}

    @media(max-width:520px){
      .share-modern-title{width:100%;text-align:center;margin:0 0 .25rem 0}
      .share-pill{flex:1 1 auto;justify-content:center}
      .share-like-btn{flex:0 0 auto}
    }

.similar-strip-list{
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}
.similar-strip-row{
  padding:.55rem .7rem;
  border-top:1px solid rgba(0,0,0,.06);
  line-height:1.35;
}
.similar-strip-row:first-child{border-top:none}

.sim-title{
  text-decoration:none;
  font-weight:700;
}

.sim-author{
  font-weight:700;
  opacity:.75;
}

.sim-like{
  margin-left:.3rem;
  display:inline-flex;
  align-items:center;
  gap:.18rem;

  border:1px solid rgba(0,0,0,.10);
  background:transparent;
  border-radius:999px;

  padding:0 .35rem; 
  height:1.25em; 
  line-height:1;  

  font-weight:800;
  font-size:.82rem;
  cursor:pointer;
  vertical-align:middle;
}

.sim-like .sim-heart{
  font-size:.95rem;
  line-height:1;
  color:#888;
  transition:color .15s ease, transform .12s ease;
}

.sim-like .js-like-count{
  font-size:.8rem;
  opacity:.7;
}

.sim-like:hover .sim-heart{
  color:#d12a4a;
  transform:scale(1.05);
}

.sim-like.is-liked .sim-heart{
  color:#d12a4a;
}
.sim-like.is-liked .js-like-count{
  opacity:1;
}

.sim-like:focus{
  outline:none;
}
.sim-like:focus-visible{
  outline:2px solid rgba(209,42,74,.25);
  outline-offset:2px;
  border-radius:6px;
}

@media(max-width:560px){
  .similar-strip-row{
    padding:.6rem .65rem;
  }
  .sim-like{
    margin-left:.25rem;
    font-size:.82rem;
  }
  .sim-like .sim-heart{
    font-size:.9rem;
  }
  .sim-like .js-like-count{
    font-size:.78rem;
  }
}


/* HERO – alap */
.hero-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-box {
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16 / 9;            /* MOBIL */
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

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

/* 📱 MOBIL: marad igazi hero */
@media (max-width: 767px) {
  .hero-box {
    aspect-ratio: 16 / 9;
  }
}

/* 💻 LAPTOP / DESKTOP: LAPOSABB HERO (≈ −25–30%) */
@media (min-width: 768px) {
  .hero-box {
    aspect-ratio: 21 / 9;   /* <<< EZ A VARÁZSLAT */
  }
}

.hero-source {
  font-size: .8rem;
  color: #666;
  text-align: center;
  margin: .3rem 0 0 0;
}
