
/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    background: #f6f6f6;
    color: #333;
}

/* ===== PAGE WRAPPER (CENTRUM CELÉHO WEBU) ===== */
.page {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
    background: #222;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
}

.site-header,
.site-header a {
    color: #fff;
    text-decoration: none;
}

.site-header a {
    color: #4da3ff;
}

.site-header a:hover {
    text-decoration: underline;
}

.logo {
    font-size: 1.2rem;
}

/* ===== 3-SLOUPCOVÝ LAYOUT ===== */
.layout {
    display: grid;
    grid-template-columns: 0.7fr 2.5fr 1fr;
    gap: 24px;
    padding: 24px 16px;
}

/* ===== SIDEBARY ===== */
.sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 12px;
}

.sidebar p {
    font-size: 0.9rem;
    color: #666;
}

.sidebar .muted {
    color: #999;
    font-style: italic;
}

/* ===== OBSAH ===== */
.content {
    min-width: 0;
}

/* ===== SEZNAM HVĚZD ===== */
.star-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.star-item img {
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

    .header-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-left,
    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .layout {
        padding: 16px 12px;
    }
}
/* ===== HEADER SECTIONS ===== */
.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* střed má prioritu */
.header-center {
    flex: 1;
    justify-content: center;
}

/* levá a pravá strana se drží u okrajů */
.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
    gap: 12px;
}

/* oddělovač | trochu ztišíme */
.header-right span,
.header-left span {
    opacity: 0.6;
}
/* ===== STARS GRID ===== */

.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.star-tile {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.star-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
}

.star-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.star-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5e5, #f5f5f5);
}

.star-name {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

/* jemný hover – žádný cirkus */
.star-tile:hover .star-photo {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.star-meta {
    margin-top: 2px;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.02em;
}
.star-bio {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f6f6f6;
    border-left: 4px solid #999;
    font-size: 14px;
    line-height: 1.6;
}
/* ===== FEED POLISH ===== */

.feed-item {
    transition: background 0.2s ease;
}

.feed-item:hover {
    background: #fafafa;
}

/* jemné objevení při načtení */
.feed-item {
    animation: feedFade 0.25s ease;
}

@keyframes feedFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.feed-item.is-new {
    border-left: 3px solid #d0d0d0;
    padding-left: 9px;
}

/* ======= DM – Ty vlevo, druhý vpravo, viditelné bubliny + inline report ======= */

.dm-message {
  margin: 12px 0;
  max-width: 75%;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;       /* bublina */
  border-radius: 12px;             /* bublina */
  background: #fff;                /* čisté, ne FB */
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ✅ Ty vlevo */
.dm-message.mine {
  margin-right: auto;
  margin-left: 0;
  border-left: 3px solid #d0d0d0;  /* jemné odlišení */
}

/* ✅ Druhý vpravo */
.dm-message.theirs {
  margin-left: auto;
  margin-right: 0;
  border-right: 3px solid #d0d0d0; /* jemné odlišení */
}

/* Meta řádek (čas · jméno 🚩) */
.dm-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;     /* meta je textový řádek */
  gap: 8px;
  font-size: 12px;
  opacity: .65;
  margin-bottom: 6px;
}

/* u pravé strany meta působí vpravo */
.dm-message.theirs .dm-meta {
  justify-content: flex-end;
}

/* řádek "2025... · Devet 🚩" */
.dm-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* text zprávy */
.dm-body {
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
}

/* ===== Inline report za jménem (🚩) ===== */
.dm-report-inline {
  display: inline;
  margin: 0;
}

.dm-report-inline button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 10px;   /* malinké */
  opacity: .12;      /* skoro neviditelné */
}

.dm-message:hover .dm-report-inline button {
  opacity: .55;
}

.dm-report-inline button:hover {
  opacity: 1;
}
 /* === NOTIFIKACE ===*/
.notif-wrap { position: relative; display: inline-block; }

.notif-btn{
  position: relative;
  display: inline-flex;
  align-items:center;
  gap: 6px;
  text-decoration:none;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
}

.notif-badge{
  font-size: 12px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06);
}

.notif-menu{
  display:none;
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  width: 320px;
  max-width: 85vw;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  overflow:hidden;
  z-index:999;
}

.notif-wrap:hover .notif-menu{ display:block; }

.notif-menu-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.notif-menu-link{ font-size: 13px; text-decoration:none; opacity:.85; }

.notif-item{
  display:block;
  padding:10px 12px;
  text-decoration:none;
  color:inherit;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.notif-item:last-child{ border-bottom:none; }
.notif-item.unread{ background: rgba(0,0,0,.03); }

.notif-title{ font-weight: 700; margin-bottom: 3px; }
.notif-body{ font-size: 13px; opacity: .85; }
.notif-time{ font-size: 12px; opacity: .6; margin-top: 6px; }

.notif-empty{ padding: 12px; opacity:.75; }

/* ===== STAR DETAIL LAYOUT (meta vlevo, fotky vpravo) ===== */

.star-header{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* řádek s názvem + mini fotkou */
.star-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.star-title h2{
  margin:0;
  line-height:1.15;
}

/* hlavní řádek: meta vlevo, strip vpravo */
.star-topbar{
  display:grid;
  grid-template-columns: max-content 1px 1fr;  /* META | MEDIA */
  align-items:start;
  column-gap:12px;
}

/* meta vlevo */
.star-meta{
  min-width: 0;
}

/* vertikální oddělovač */
.star-divider{
  width:1px;
  background: rgba(0,0,0,.12);
  align-self:stretch;
}

/* strip vpravo */
.star-media-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-start; /* hned za čárou */
  max-width: 100%;
}

/* thumbnail odkazy */
.star-media-strip .mthumb{
  display:block;
  width:52px;
  height:52px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#f2f2f2;
  text-decoration:none;
}

/* video placeholder */
.video-thumb{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  opacity:.7;
}

/* RESPONSIVE: na mobilu fotky pod meta */
@media (max-width: 700px){
  .star-topbar{
    grid-template-columns: 1fr; /* vše pod sebe */
    row-gap:10px;
  }

  .star-divider{
    display:none;
  }

  .star-media-strip{
    justify-content:flex-start;
  }
}
/* --- FIX: star media strip wrap + clickability --- */
.star-media-strip{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-width:100%;
  position:relative;
  z-index:2;
}

/* override inline-block items inside the strip */
.star-media-strip > div{
  display:block !important;
  margin-right:0 !important;
}

/* keep "Načíst další" clickable */
.star-media-strip .btn{
  position:relative;
  z-index:3;
}
/* star media: "Načíst další" vždy na celý řádek */
.star-media-strip .media-more{
  width:100%;
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
/* comments */
.comment-item{
  border:1px solid #e6e6e6;
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:10px;
  background:#fafafa;
}

.comment-item:last-child{
  margin-bottom:0;
}

/*CSS PRO HLAVIČKU*/

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

.header-tail{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  line-height:1.05;

  margin-left:10px;
  padding-left:10px;
  border-left:1px solid rgba(255,255,255,.25);
}

.header-tail .donate-btn{
  color:#fff;
  text-decoration:none;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  font-size:12px;
}

.header-tail .lang-links{
  display:flex;
  gap:6px;
  font-size:11px;
  opacity:1;              /* ať je to víc vidět */
}

.header-tail .lang-links a{
  color:#fff;
  text-decoration:none;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:999px;
  opacity:.75;
}

.header-tail .lang-links a:hover{
  opacity:1;
}

.header-tail .lang-links a.active{
  font-weight:700;
  opacity:1;
  border-color: rgba(255,255,255,.55);
}

.header-tail .logout-link{
  color:#fff;
  text-decoration:none;
  font-size:11px;
  opacity:.85;
}
.header-tail .logout-link:hover{opacity:1;}


/* ===== Stars: Star profile redesign ===== */
.star-page { max-width: 1100px; margin: 0 auto; padding: 18px; }

.star-hero{
  position:relative; border-radius: 22px; overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background: #0b1220;
}
.star-hero .cover{
  height: 240px;
  background:
    radial-gradient(1200px 320px at 15% 25%, rgba(99,102,241,.38), transparent 60%),
    radial-gradient(900px 260px at 85% 30%, rgba(16,185,129,.28), transparent 55%),
    linear-gradient(180deg, #0b1220, #050712);
  filter:saturate(1.05);
}
.star-hero{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background: #0b1220;
}

.star-hero .hero-inner{
  position: relative;            /* ✅ nebyl absolute */
  padding: 16px;                 /* ✅ spacing */
  margin-top: -78px;             /* ✅ vytáhne kartu do coveru */
  display:flex;
  gap:14px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.star-hero .hero-inner{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.star-hero .avatar{
  width:96px; height:96px; border-radius: 18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
.star-hero .avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.star-hero h1{
  margin:0; color:#fff; font-size: 30px; line-height:1.1; letter-spacing:.2px;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.star-hero .subtitle{
  margin:8px 0 0 0; color: rgba(255,255,255,.86);
  max-width: 760px; line-height:1.45;
}
.star-hero .meta{
  margin-top:10px; display:flex; gap:10px; flex-wrap:wrap;
  color: rgba(255,255,255,.74); font-size: 13px;
}
.star-hero .pill{
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  padding:6px 10px; border-radius:999px;
}

.star-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.star-btn{
  border-radius: 12px; padding:10px 12px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff; text-decoration:none;
  display:inline-flex; gap:8px; align-items:center;
}
.star-btn.primary{
  background: rgba(99,102,241,.28);
  border-color: rgba(99,102,241,.42);
}

.star-grid{ display:grid; gap:16px; grid-template-columns: 1fr 340px; align-items:start; margin-top:16px; }
@media (max-width: 980px){ .star-grid{ grid-template-columns:1fr; } }

.star-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.star-card h3{ margin:0 0 10px 0; font-size: 16px; }
.star-muted{ color:#6b7280; }
.star-divider{ height:1px; background: rgba(0,0,0,.08); margin:12px 0; }

.star-gallery{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; }
@media (max-width: 640px){ .star-gallery{ grid-template-columns: repeat(2, 1fr);} }
.star-thumb{
  aspect-ratio: 4/3; border-radius: 14px; overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#f3f4f6;
  position:relative;
}
.star-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.star-thumb .play{
  position:absolute; inset:auto 10px 10px auto;
  background: rgba(0,0,0,.55); color:#fff;
  border-radius: 999px; padding:6px 10px; font-size: 12px;
}
.star-sidebar{ position: sticky; top: 14px; }

.star-composer textarea{
  width:100%; min-height: 92px;
  border:1px solid rgba(0,0,0,.12); border-radius: 12px;
  padding:10px 12px; resize: vertical;
}
.star-composer .row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; align-items:center; }
.star-composer button{
  border-radius: 12px; padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  background:#111827; color:#fff; cursor:pointer;
}
.star-composer .secondary{ background:#fff; color:#111827; }

.thread-item{
  display:flex; gap:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.thread-item + .thread-item{ margin-top:10px; }
.thread-avatar{
  width:40px; height:40px; border-radius: 12px;
  background:#e5e7eb; flex:0 0 auto;
}
.thread-body{ flex:1; }
.thread-head{ display:flex; justify-content:space-between; gap:10px; }
.thread-name{ font-weight: 800; color:#111827; }
.thread-time{ color:#6b7280; font-size: 12px; white-space:nowrap; }
.thread-text{ margin-top:6px; line-height:1.55; white-space:pre-wrap; }
