/* =============================================================
   Letterboxd Film Card v2 – Stylesheet
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

/* ── Wrapper ─────────────────────────────────────── */
.lfc-card-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 2em 0;
    font-family: 'Titillium Web', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Card ────────────────────────────────────────── */
.lfc-card {
    display: flex;
    align-items: stretch;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    max-width: 560px;
    width: 100%;
    box-shadow:
        0 4px 6px rgba(0,0,0,.4),
        0 1px 3px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    transition:
        transform .25s cubic-bezier(.16,1,.3,1),
        box-shadow .25s cubic-bezier(.16,1,.3,1);
}

.lfc-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 32px rgba(0,0,0,.6),
        0 4px 8px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);
    text-decoration: none !important;
    color: inherit;
}

/* ── Poster ──────────────────────────────────────── */
.lfc-poster-wrap {
    position: relative;
    flex-shrink: 0;
    width: 130px;
    overflow: hidden;
    background: #0d0d0d;
}

.lfc-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .4s cubic-bezier(.16,1,.3,1),
        filter .4s ease;
    filter: brightness(.93);
}

.lfc-card:hover .lfc-poster {
    transform: scale(1.05);
    filter: brightness(.45);
}

/* Fallback wenn kein Poster */
.lfc-poster-fallback {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #111;
    font-size: 12px;
    color: rgba(255,255,255,.3);
    text-align: center;
    font-family: 'Titillium Web', sans-serif;
}

/* ── Hover-Overlay auf Poster ────────────────────── */
.lfc-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.lfc-card:hover .lfc-overlay { opacity: 1; }

.lfc-play-icon {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.7));
}

.lfc-cta {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    text-shadow: 0 1px 4px rgba(0,0,0,.9);
}

/* ── Info-Bereich ────────────────────────────────── */
.lfc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    gap: 7px;
    background: linear-gradient(140deg, #1d1f1f 0%, #181818 100%);
    border-left: 1px solid rgba(255,255,255,.04);
    min-height: 180px;
}

/* ── Letterboxd-Badge ────────────────────────────── */
.lfc-letterboxd-badge {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.lfc-logo {
    display: block;
    width: 110px !important;
    height: auto !important;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity .2s;
}

.lfc-card:hover .lfc-logo {
    opacity: 0.9;
}

.lfc-logo-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* ── Titel ───────────────────────────────────────── */
.lfc-title {
    font-family: 'Titillium Web', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -.01em;
    border: none !important;
    transition: color .2s;
}

.lfc-card:hover .lfc-title { color: #40bcf4 !important; }

/* ── Meta (Jahr · Regie) ─────────────────────────── */
.lfc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

.lfc-dot   { opacity: .28; padding: 0 2px; }
.lfc-year  { font-weight: 600; color: rgba(255,255,255,.55); }

/* ── Sterne ──────────────────────────────────────── */
.lfc-rating { display: flex; align-items: center; }

.lfc-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 15px;
    line-height: 1;
}

.lfc-star--full  { color: #00c030; }
.lfc-star--half  { color: #00c030; opacity: .7; }
.lfc-star--empty { color: rgba(255,255,255,.12); }

/* ── Tagline ─────────────────────────────────────── */
.lfc-tagline {
    font-size: 12px !important;
    color: rgba(255,255,255,.35) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.55 !important;
    font-style: italic;
    border: none !important;
    background: none !important;
}

/* ── Link-Hint ───────────────────────────────────── */
.lfc-link-hint {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(64,188,244,.45);
    transition: color .2s;
}

.lfc-link-hint svg { flex-shrink: 0; }

.lfc-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
}

.lfc-card:hover .lfc-link-hint  { color: #40bcf4; }
.lfc-card:hover .lfc-arrow      { opacity: 1; transform: translateX(0); }

/* ── TMDB Attribution ────────────────────────────── */
.lfc-tmdb-attribution {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    color: rgba(0,0,0,.35) !important;
    font-family: 'Titillium Web', sans-serif;
    line-height: 1.4 !important;
    background: none !important;
    border: none !important;
    max-width: 560px;
}

.lfc-tmdb-attribution a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
}

.lfc-tmdb-logo {
    height: 14px;
    width: auto;
    border-radius: 2px;
    opacity: .55;
    transition: opacity .2s;
}

.lfc-tmdb-attribution a:hover .lfc-tmdb-logo {
    opacity: .85;
}

/* ── Fehlermeldung ───────────────────────────────── */
.lfc-error {
    background: rgba(220,50,50,.08);
    border: 1px solid rgba(220,50,50,.25);
    border-radius: 6px;
    padding: 12px 16px;
    color: #e06060;
    font-size: 13px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    .lfc-card        { max-width: 100%; }
    .lfc-poster-wrap { width: 100px; }
    .lfc-title       { font-size: 15px !important; }
    .lfc-info        { padding: 13px 14px; gap: 5px; min-height: 150px; }
}
