/* ── PhantastikCharts – seitenspezifisches CSS für buch.php ───────────────
   Ausgelagert aus dem früheren Inline-<style>-Block (Aufräumaktion 2026-08-22),
   damit der Browser diese Datei über Page-Loads hinweg cachen kann (per <link>
   + asset_url()-Cache-Busting eingebunden, wie assets/style.css). */

.page-wrap { max-width: 860px; margin: 0 auto; padding: 1.5rem 1rem; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Hero ──────────────────────────────────────────────── */
.book-hero {
    background: #fff;
    border: 1px solid #e0e0d8;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.book-cover {
    width: 150px;
    flex-shrink: 0;
}
.book-cover img {
    width: 100%;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.book-cover-empty {
    width: 150px;
    height: 210px;
    background: #e8e8e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}
.book-meta { flex: 1; min-width: 0; }
.book-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.4rem; }
.book-author-link {
    font-size: 1rem; color: #c0392b; font-weight: 600;
    display: inline-block; margin-bottom: 0.75rem;
}
.book-author-link:hover { text-decoration: underline; }

.book-genres { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.genre-chip {
    background: #f0f0e8; border: 1px solid #ddd;
    padding: 0.2rem 0.6rem; border-radius: 20px;
    font-size: 0.75rem; color: #555;
}

.book-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tag-chip {
    background: #fff; border: 1px solid #e0d0ce; color: #888;
    padding: 0.15rem 0.55rem; border-radius: 20px; font-size: 0.72rem;
}

.book-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem; }
.btn-amazon {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #f90; color: #111; font-weight: 700;
    padding: 0.55rem 1.1rem; border-radius: 5px; font-size: 0.88rem;
    border: none; cursor: pointer; text-decoration: none;
}
.btn-amazon:hover { background: #e68a00; }
.btn-amazon svg { width: 16px; height: 16px; }
.affiliate-hint { width: 100%; font-size: 0.72rem; color: #aaa; }

/* Inhaltsangabe */
.description { font-size: 0.92rem; color: #333; line-height: 1.65; }

/* Weitere Titel der Reihe -- gleiches Rang-Badge-Zeilenmuster wie duelle.php/
   blogger-charts.php/voter.php (.chart-row/.row-rank-block/.row-rank-num,
   .row-cover-wrap, .row-info/.row-title/.row-author/.row-genres), hier lokal
   nachgebaut statt aus assets/style.css importiert -- Spaltenbreiten/Farben
   weichen laut CLAUDE.md bewusst je Seite ab, kein echtes Duplikat (gleiche
   Begründung wie bei den anderen Seiten, siehe Kommentare dort). Anders als bei
   einer Chart-Platzierung ist die Zahl hier die Bandnummer, keine Rangfolge --
   deshalb ohne Gold/Silber/Bronze-Einfärbung für 1/2/3.
   .row-title/.row-author/.row-genres/.book-cover-empty kollidieren bewusst NICHT
   mit den gleichnamigen Hero-Klassen weiter oben in dieser Datei -- eigene,
   distinktere Namen (.row-cover-empty statt .book-cover-empty) bzw. gar keine
   Vorbelegung (row-title/-author/-genres traten in dieser Datei bisher gar
   nicht auf, siehe Chat 2026-08-27 zur .book-title/.book-genres-Kollision mit
   dem zunächst versuchten .book-row-Muster). */
.chart-list { background: #fff; border: 1px solid #e0e0d8; border-radius: 6px; overflow: hidden; }
/* Zeilen-Hülle (border/hover/display:grid): .list-row in assets/style.css. */
.chart-row { grid-template-columns: 48px 48px 1fr; min-height: 64px; }
.row-rank-block { display: flex; align-items: center; justify-content: center; padding: 0.5rem 0.25rem; }
.row-rank-num { font-size: 1.1rem; font-weight: 800; color: #ccc; line-height: 1; }
.row-cover-wrap { padding: 0.5rem 0.25rem; }
.row-cover { width: 40px; height: 58px; object-fit: cover; display: block; border-radius: 2px; }
.row-cover-empty { width: 40px; height: 58px; background: #ede8e0; border-radius: 2px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 1.1rem; }
.row-info { padding: 0.6rem 0.75rem; min-width: 0; }
.row-title { font-size: 0.9rem; font-weight: 700; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-author { font-size: 0.78rem; color: #777; margin-top: 0.1rem; }
.row-genres { font-size: 0.68rem; color: #aaa; margin-top: 0.15rem; }

/* Voter-Tabelle */
.voter-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.voter-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #aaa; text-align: left; padding: 0 0.5rem 0.5rem; }
.voter-table th.center, .voter-table td.center { text-align: center; }
.voter-table td { padding: 0.5rem; border-top: 1px solid #f0f0e8; font-size: 0.88rem; vertical-align: middle; }
.voter-table tr:first-child td { border-top: none; }
.voter-table .col-voter  { width: auto; }
.voter-table .col-platz  { width: 70px; }
.voter-table .col-punkte { width: 80px; }
.voter-table .col-rezi   { width: 220px; }
.pts-badge { display: inline-block; background: #f5f5f0; border: 1px solid #ddd; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.review-link { color: #c0392b; font-size: 0.8rem; }
.review-link:hover { text-decoration: underline; }

.voter-review-list { display: flex; flex-direction: column; }
.voter-review-row { padding: 0.7rem 0; border-bottom: 1px solid #eee; }
.voter-review-row:last-child { border-bottom: none; }
.voter-review-line1 { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.voter-review-name { color: #c0392b; font-weight: 600; }
.voter-review-meta { color: #666; font-size: 0.85rem; }
.voter-review-line2 {
    font-style: italic; color: #555; font-size: 0.85rem;
    margin-top: 0.3rem; line-height: 1.4;
}
.review-link-btn {
    display: inline-block; background: #c0392b; color: #fff;
    padding: 0.3rem 0.75rem; border-radius: 4px;
    font-size: 0.78rem; font-weight: 600; text-decoration: none;
    margin-left: auto;
    transition: background 0.15s;
}
.review-link-btn:hover { background: #a93226; }
.platform-icon { font-size: 0.75rem; color: #aaa; }
.report-link-btn {
    background: none; border: none; cursor: pointer;
    font-size: 0.85rem; opacity: 0.35; padding: 0.2rem;
    transition: opacity 0.15s;
}
.report-link-btn:hover { opacity: 1; }

/* Chart-Verlauf */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #aaa; text-align: left; padding: 0 0.5rem 0.5rem; }
.history-table td { padding: 0.45rem 0.5rem; border-top: 1px solid #f0f0e8; font-size: 0.85rem; }
.history-table tr:first-child td { border-top: none; }
.rank-cell { font-weight: 800; color: #c0392b; text-align: center; width: 48px; }
.bar-cell { width: 40%; padding-right: 0.75rem; }
.bar-wrap { background: #f0f0e8; border-radius: 3px; height: 10px; overflow: hidden; }
.bar-fill { background: #c0392b; height: 100%; border-radius: 3px; transition: width 0.3s; }

/* .chart-tabs/.chart-tab: siehe assets/style.css (jetzt auch von voter.php genutzt) */

.duel-stats-line { font-size: 0.9rem; color: #444; margin-bottom: 0.75rem; line-height: 1.6; }
.duel-stats-label { color: #888; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.1rem; margin-bottom: 0.5rem; }
.duel-best-rank { font-size: 0.9rem; color: #444; margin-bottom: 0.25rem; }
.duel-empty-tab { color: #888; font-size: 0.9rem; }

/* Aktueller Hype-Charts-Rang als Badge statt Fließtext-Zahl, gleiche rote Akzentfarbe wie
   .rank-cell in der Blogger-Chart-Tabelle oben, damit sich das Rang-Konzept optisch wiederholt. */
.rank-badges { display: flex; gap: 0.75rem; margin: 0.6rem 0 1rem; flex-wrap: wrap; }
.rank-badge { background: #faf8f0; border: 1px solid #ece4d0; border-radius: 8px; padding: 0.6rem 1.1rem; text-align: center; min-width: 108px; }
.rank-badge-num { font-size: 1.5rem; font-weight: 800; color: #c0392b; line-height: 1.1; }
.rank-badge-label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }
.rank-badge.unranked { background: #f5f5f0; }
.rank-badge.unranked .rank-badge-num { font-size: 1rem; color: #aaa; font-weight: 700; }

/* Hype-Tab: Statistik-Spalte + "Auch gehyped von"-Empfehlung nebeneinander (PC), gestapelt
   auf Mobile (siehe Media Query unten). Zweite Spalte wird von PHP nur gerendert, wenn
   get_duel_also_hyped_by_fans() Treffer liefert -- .hype-stats-col nimmt dann automatisch
   die volle Breite ein (flex: 1 auf beiden, aber ohne Geschwister keine Aufteilung). */
.hype-panel-grid { display: flex; gap: 2rem; align-items: flex-start; }
.hype-stats-col { flex: 1; min-width: 0; }
.hype-fans-col { flex: 1; min-width: 0; border-left: 1px solid #eee; padding-left: 2rem; }
/* 2x2-Cover-Raster (auf Wunsch groessere Cover statt Mini-Cover + Zeilenliste, Autor
   bewusst weggelassen). justify-items nicht noetig -- .hype-fan-row zentriert seinen
   Inhalt selbst per align-items (Column-Flex), auch wenn die Grid-Zelle breiter ist. */
.hype-fan-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.hype-fan-row {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    text-decoration: none; color: inherit;
    padding: 0.4rem; border-radius: 6px;
    transition: background 0.15s;
    /* min-width:0 noetig, sonst reisst ein langer, nowrap gesetzter Titel/Autor (siehe
       .hype-fan-title/-author) die Grid-Spalte ueber ihren intrinsischen Min-Content
       hinaus auf -- exakt der ".landing-card"-Fallstrick aus "Bekannte Fallstricke" in
       CLAUDE.md, hier live reproduziert: Spalten waren 359px/113px statt gleich breit. */
    min-width: 0;
}
.hype-fan-row:hover { background: #faf8f0; }
/* .hype-fan-cover: Basis (object-fit/display/border-radius) siehe .cover-thumb in
   assets/style.css, Größe hier lokal (100x145, deutlich größer als die 34px-Mini-Cover-
   Größe) -- bewusst kein weiterer .cover-thumb-*-Modifier in der geteilten Datei, da diese
   Größe bislang nur hier gebraucht wird. */
.hype-fan-cover { width: 100px; height: 145px; margin-bottom: 0.5rem; }
/* Font/Farbe analog .duel-title/.duel-author (Hype-Duell-Widget, assets/style.css) --
   dort zweizeilig geclampt, hier bewusst einzeilig mit Ellipsis (volle Zeilenbreite pro
   Grid-Spalte, kein fester min-height wie im schmalen Duell-Widget noetig). */
.hype-fan-title {
    width: 100%; font-size: 0.75rem; font-weight: 600; color: #1a1a1a; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hype-fan-author {
    width: 100%; font-size: 0.68rem; color: #666; margin-top: 0.15rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 540px) {
    .book-hero { flex-direction: column; gap: 1.25rem; padding: 1.25rem; }
    .book-cover { width: 120px; }
    .book-title { font-size: 1.25rem; }
    .section { padding: 1rem; }
    .hype-panel-grid { flex-direction: column; gap: 1.5rem; }
    .hype-fans-col { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 1.25rem; }
}
