/* ==========================================================================
   Kinokritiker – Stylesheet (Kino-Rot & Gold)
   Palette als CSS-Variablen unten in :root — Theme an EINER Stelle änderbar.
   ========================================================================== */

:root {
    --c-dark:        #17171b;  /* Anthrazit: Header, Drawer, dunkle Buttons */
    --c-dark2:       #201d22;  /* dunkel: Hero, Footer, Sektionen, Detailseite */
    --c-accent:      #e01e2b;  /* Kino-Rot (Akzent, Links, Buttons) */
    --c-accent-dark: #b3121d;  /* Rot – Hover */
    --c-accent-deep: #a31621;  /* tiefes Rot – Labels */
    --c-gold:        #e8b23a;  /* Gold (Highlights, Logo, Empfehlung) */
    --c-gold2:       #f0c44e;  /* helles Gold */
    --c-tint:        #fdf5f2;  /* heller warmer Tint (Kritik-Box, Ghost-Hover) */
    --c-tint-border: #f0dcd6;  /* warmer Rahmen */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Source Sans Pro", Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.4;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; }
[hidden] { display: none !important; }

.container { max-width: 1300px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.main, .main--full { display: block; min-height: 40vh; }
.muted { color: #8a8a8a; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; border-radius: 8px; padding: 10px 18px; cursor: pointer;
    border: 1px solid transparent; font-size: 15px; line-height: 1;
    transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); }
.btn--ghost { background: transparent; border-color: var(--c-accent); color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-tint); }
.btn--danger { background: #c0202c; color: #fff; border-color: #c0202c; }
.btn--danger:hover { background: #97161f; }
.btn--amazon { background: #ffa41c; color: #0f1111; border-color: #e89211; }
.btn--amazon:hover { background: #f3960c; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--xs { padding: 5px 9px; font-size: 12px; }
.btn--block { width: 100%; }

/* ---- Header ----------------------------------------------------------- */
.site-header { background: var(--c-dark); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.main-nav { display: flex; gap: 20px; }
.main-nav a, .nav-link { color: #fff; font-weight: 600; font-size: 15px; }
.main-nav a:hover, .nav-link:hover { color: var(--c-gold); }
.site-header__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang-badge { border: 1px solid #fff; border-radius: 4px; font-size: 11px; font-weight: 700; padding: 2px 5px; }
.search-toggle { color: var(--c-accent); display: grid; place-items: center; }

/* Hamburger + mobiles Drawer-Menü */
.hamburger { display: none; background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; margin: 0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 286px; max-width: 84vw;
    background: var(--c-dark); color: #fff; z-index: 91;
    transform: translateX(-100%); transition: transform .25s ease;
    overflow-y: auto; box-shadow: 2px 0 22px rgba(0,0,0,.35);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.logo--drawer { font-size: 1.3rem; }
.drawer__close { background: transparent; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 0 16px; }
.drawer__nav a { color: #fff; font-weight: 700; font-size: 1.12rem; padding: 13px 20px; }
.drawer__nav a:hover { background: rgba(255,255,255,.06); color: var(--c-gold); }
.drawer__sep { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 8px 0; }

.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.45rem; letter-spacing: .3px; line-height: 1; }
.logo__main { color: var(--c-gold); }
.logo__pill { margin-left: 3px; padding: 3px 9px; border-radius: 8px; background: var(--c-accent); color: #fff; }

/* ---- Search-Strip ----------------------------------------------------- */
.search-strip { background: #fff; border-bottom: 1px solid #e3e3e3; }
.search-strip__form { display: flex; align-items: center; gap: 10px; height: 46px; }
.search-strip__form input {
    flex: 1; border: 0; outline: 0; font-size: 16px; font-family: inherit;
    color: var(--c-dark); background: transparent;
}
.search-strip__form input::placeholder { color: #b9c0c7; font-style: italic; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; background: var(--c-dark2); color: #fff; overflow: hidden; padding-top: 58px; padding-bottom: 66px; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: linear-gradient(to right, rgba(23,23,27,.86), rgba(23,23,27,.66)), var(--hero-img, none);
    background-size: cover; background-position: center 20%;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { font-size: 3rem; font-weight: 700; margin: 0; }
.hero__subtitle { font-size: 1.7rem; font-weight: 600; margin: .15em 0 1.1em; }
.hero__search { display: flex; max-width: 100%; border-radius: 30px; overflow: hidden; box-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero__search input { flex: 1; border: 0; outline: 0; padding: 15px 24px; font-size: 1.05rem; font-family: inherit; }
.hero__search button {
    border: 0; padding: 0 36px; cursor: pointer; font-weight: 700; font-size: 1.05rem; color: #fff;
    background: var(--c-accent);
}
.hero__search button:hover { background: var(--c-accent-dark); }

/* ---- Sections / Toggles ---------------------------------------------- */
.section { padding: 26px 0; }
.section--dark { background: var(--c-dark2); }
.section__head { display: flex; align-items: center; gap: 22px; margin-bottom: 4px; }
.section__title { font-size: 1.5rem; font-weight: 700; color: #000; margin: 0; }
.section__title--light { color: #fff; }
.section__more { margin-left: auto; color: var(--c-accent); font-weight: 600; }
.section--dark .section__more { color: var(--c-gold); }

.toggle { display: inline-flex; border: 1px solid var(--c-dark); border-radius: 20px; background: #fff; padding: 2px; }
.toggle__btn {
    border: 0; background: transparent; color: var(--c-dark); font-weight: 600; font-size: 14px;
    padding: 7px 16px; cursor: pointer; border-radius: 18px; font-family: inherit;
}
.toggle__btn.is-active { background: var(--c-accent); color: #fff; }
.section--dark .toggle, .toggle--pill { border-color: rgba(255,255,255,.5); background: transparent; }
.section--dark .toggle__btn { color: #fff; }
.section--dark .toggle__btn.is-active { background: var(--c-accent); color: #fff; }

/* ---- Rails (horizontaler Scroll) ------------------------------------- */
.rail-wrap { position: relative; }
.rail {
    display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden;
    padding: 22px 0 18px; scroll-snap-type: x proximity;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #c9d2da; border-radius: 8px; }
.section--dark .rail::-webkit-scrollbar-thumb { background: #3a3640; }

/* dezenter Equalizer hinter Trends */
.trends__rail { position: relative; }
.trends__rail::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 46px; z-index: 0;
    pointer-events: none; opacity: .4;
    background: repeating-linear-gradient(90deg, var(--c-gold) 0 2px, transparent 2px 7px);
    -webkit-mask: linear-gradient(180deg, transparent, #000 75%);
    mask: linear-gradient(180deg, transparent, #000 75%);
}
.trends__rail .rail { position: relative; z-index: 1; }

/* ---- Film-Karte ------------------------------------------------------- */
.card { width: 100%; }
.rail .card { flex: 0 0 150px; width: 150px; }
.card__poster {
    position: relative; display: block; border-radius: 8px; overflow: hidden;
    aspect-ratio: 1 / 1.5; background: #d7d7d7;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__noimg { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font-weight: 700; color: #5a5560; }
.card__badge {
    position: absolute; top: 8px; left: 0; background: var(--c-accent); color: #fff; font-size: 11px;
    font-weight: 700; padding: 3px 8px; border-radius: 0 4px 4px 0;
}
.card__badge--rec { background: var(--c-gold); color: var(--c-dark); }
.card__score { position: relative; z-index: 2; margin: -18px 0 0 8px; }
.card__meta { padding-top: 8px; }
.card__title { font-size: 15px; font-weight: 700; margin: 0; color: #000; line-height: 1.25; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-accent); }
.card__date { color: #9a9a9a; font-size: 13px; }
.card__headline { font-style: italic; color: #6a6a6a; }

/* ---- Bewertungs-Ring (Gold/Orange/Rot) ------------------------------- */
.ring { position: relative; display: inline-grid; place-items: center; border-radius: 50%; background: #0e0e12; }
.ring svg { display: block; }
.ring__track { stroke: #3a2614; }
.ring__bar { stroke: #e08a2e; transition: stroke-dashoffset .8s ease; }
.ring__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; line-height: 1; }
.ring__pct { font-size: .55em; transform: translateY(-.35em); }
.ring--high .ring__bar { stroke: var(--c-gold); } .ring--high .ring__track { stroke: #3b2f12; }
.ring--mid  .ring__bar { stroke: #e08a2e; }       .ring--mid  .ring__track { stroke: #3a2614; }
.ring--low  .ring__bar { stroke: #d63a3a; }       .ring--low  .ring__track { stroke: #3a1818; }
.ring--none .ring__bar { stroke: #666; }          .ring--none .ring__track { stroke: #333; }
.ring--none .ring__label { font-size: 13px !important; color: #d6d6d6; }

/* ---- Trailer-Karten (Neuste Trailer) --------------------------------- */
.rail--trailer .tcard { flex: 0 0 300px; width: 300px; }
.tcard__thumb {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
    background: #1a1820; border-radius: 8px; overflow: hidden; cursor: pointer;
}
.tcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: transform .35s, opacity .2s; }
.tcard__thumb:hover img { transform: scale(1.05); opacity: 1; }
.tcard__play { position: absolute; inset: 0; display: grid; place-items: center; }
.tcard__play svg { filter: drop-shadow(0 2px 7px rgba(0,0,0,.7)); transition: transform .2s; }
.tcard__thumb:hover .tcard__play svg { transform: scale(1.12); }
.tcard__meta { padding: 10px 2px 4px; }
.tcard__title { margin: 0; font-size: 15px; font-weight: 700; }
.tcard__title a { color: #fff; }
.tcard__title a:hover { color: var(--c-gold); }
.tcard__date { color: #b0a8ad; font-size: 13px; }

/* ---- Grid (Suche / Filme) -------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 26px 16px; }
.grid .card__score { margin-top: -20px; }

/* ---- Seiten ----------------------------------------------------------- */
.page { padding-top: 28px; padding-bottom: 54px; }
.page__title { font-size: 1.7rem; margin: 0 0 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page__count { font-size: .9rem; color: #9a9a9a; font-weight: 400; }
.page--center { text-align: center; padding-top: 70px; }
.error-code { font-size: 4.5rem; margin: 0 0 6px; color: var(--c-accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.pager__pos { color: #666; }

/* ---- Sub-Navigation (Detail) ----------------------------------------- */
.subnav { background: #fff; border-bottom: 1px solid #e3e3e3; }
.subnav__inner { display: flex; gap: 28px; justify-content: center; height: 46px; align-items: center; flex-wrap: wrap; }
.subnav__item { color: var(--c-dark); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.subnav__item:hover { color: var(--c-accent); }
.caret { font-size: .7em; opacity: .65; }

/* ---- Detail-Hero ------------------------------------------------------ */
.detail-hero { position: relative; color: #fff; background: var(--c-dark2); }
.detail-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background-image: linear-gradient(to right, rgba(32,29,34,.97) 25%, rgba(32,29,34,.62) 100%), var(--backdrop, none);
    background-size: cover; background-position: center top;
}
.detail-hero__inner { position: relative; z-index: 1; display: flex; gap: 38px; padding-top: 40px; padding-bottom: 40px; }
.detail-hero__poster { flex: 0 0 300px; width: 300px; }
.detail-hero__poster img, .poster-fallback { width: 100%; border-radius: 10px; display: block; }
.poster-fallback { aspect-ratio: 1/1.5; background: #2a2630; display: grid; place-items: center; padding: 20px; text-align: center; font-weight: 700; }
.detail-hero__info { flex: 1; min-width: 0; }
.detail-title { font-size: 2.2rem; font-weight: 700; margin: 0; }
.detail-title__year { font-weight: 400; opacity: .65; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 20px; font-size: 15px; }
.cert { border: 1px solid rgba(255,255,255,.5); border-radius: 3px; padding: 0 5px; font-size: 12px; }
.dot { opacity: .55; }
.detail-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.userscore { display: flex; align-items: center; gap: 9px; }
.userscore__label { font-weight: 700; max-width: 82px; line-height: 1.12; font-size: 14px; }
.trailer-btn { background: transparent; border: 0; color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; gap: 9px; align-items: center; font-family: inherit; font-size: 15px; }
.trailer-btn:hover { color: var(--c-gold); opacity: 1; }
.trailer-btn__play { display: block; flex: 0 0 auto; }
.detail-tagline { font-style: italic; opacity: .68; margin: 0 0 16px; font-size: 1.05rem; }
.detail-h3 { font-size: 1.25rem; margin: 0 0 6px; }
.detail-overview { line-height: 1.62; max-width: 62ch; margin: 0 0 22px; }
.creators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; max-width: 580px; margin: 6px 0 2px; }
.creator__name { display: block; font-weight: 700; color: #fff; }
.creator__name:hover { color: var(--c-gold); }
.creator__job { font-size: 14px; opacity: .85; }

/* ---- Detail-Body ------------------------------------------------------ */
.detail-body { background: #fff; padding: 34px 0 54px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 42px; align-items: start; }
.detail-main { min-width: 0; }
.block-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 16px; }

/* eigene Kritik */
.critic { background: var(--c-tint); border: 1px solid var(--c-tint-border); border-left: 4px solid var(--c-accent); border-radius: 10px; padding: 22px 24px; margin-bottom: 32px; }
.critic__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.critic__head .block-title { margin: 0; }
.critic__body { display: flex; gap: 24px; align-items: flex-start; }
.critic__score { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.critic__score-label { font-size: 12px; font-weight: 700; color: var(--c-accent-deep); text-align: center; max-width: 96px; }
.critic__text { flex: 1; min-width: 0; line-height: 1.62; }
.critic__headline { font-size: 1.3rem; margin: 0 0 12px; }
.critic__text p { margin: 0 0 12px; }
.critic__sig { font-style: italic; color: #7a7a7a; font-size: 14px; margin-top: 14px; }
.rec-badge { display: inline-block; background: var(--c-gold); color: var(--c-dark); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 20px; }
.rec-badge--sm { font-size: 11px; padding: 3px 8px; }
.draft-note { background: #fff4d6; color: #7a5b00; padding: 6px 12px; border-radius: 6px; font-size: 13px; display: inline-block; margin: 0 0 14px; }
.critic__empty { color: #5a5560; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.critic__empty p { margin: 0; }

/* Amazon */
.buybox { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 18px 22px; margin-bottom: 36px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.buybox__icon { color: var(--c-accent); flex: 0 0 auto; }
.buybox__text { flex: 1; min-width: 0; }
.buybox__text h3 { margin: 0 0 3px; font-size: 1.1rem; }
.buybox__text p { margin: 0; color: #666; font-size: 14px; }
.buybox__ad { font-size: 11px; color: #b3b3b3; align-self: flex-start; }

/* Cast */
.cast-section { margin-bottom: 10px; }
.rail--cast .person { flex: 0 0 140px; width: 140px; }
.person { display: block; color: #111; background: #fff; border: 1px solid #e3e3e3; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.07); transition: box-shadow .15s, transform .15s; }
.person:hover { box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: translateY(-2px); }
.person__photo { aspect-ratio: 1 / 1.4; background: #dadada; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person__noimg { display: grid; place-items: center; height: 100%; font-size: 42px; opacity: .35; }
.person__meta { padding: 9px 11px 12px; }
.person__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.25; }
.person__char { display: block; color: #777; font-size: 13px; margin-top: 2px; }

/* Sidebar */
.detail-side .social-row { display: flex; gap: 14px; margin-bottom: 18px; font-size: 22px; min-height: 4px; }
.facts-list { margin: 0; }
.facts-list dt { font-weight: 700; margin-top: 16px; }
.facts-list dt:first-child { margin-top: 0; }
.facts-list dd { margin: 2px 0 0; color: #222; }

/* ---- Meine Kritiken (Liste) ------------------------------------------ */
.review-list { display: flex; flex-direction: column; gap: 18px; }
.review-item { display: flex; gap: 18px; background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; overflow: hidden; color: inherit; }
.review-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.review-item__poster { flex: 0 0 110px; width: 110px; background: #dadada; }
.review-item__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-item__body { padding: 16px 18px; flex: 1; min-width: 0; }
.review-item__top { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.review-item__title { font-size: 1.2rem; margin: 0; }
.review-item__headline { font-size: 1rem; color: var(--c-accent-deep); margin: 8px 0 6px; font-weight: 600; }
.review-item__excerpt { color: #555; margin: 0 0 8px; line-height: 1.5; }

/* ---- Admin ------------------------------------------------------------ */
.admin__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-card { background: #fff; border: 1px solid #e6e6e6; border-radius: 10px; padding: 22px 24px; margin-bottom: 24px; }
.admin-card__title { margin: 0 0 16px; font-size: 1.2rem; }
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.admin-result { display: flex; align-items: center; gap: 11px; border: 1px solid #eee; border-radius: 8px; padding: 8px; }
.admin-result__poster { flex: 0 0 46px; }
.admin-result__poster img { width: 46px; border-radius: 4px; display: block; }
.admin-result__info { flex: 1; min-width: 0; font-size: 14px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 13px; color: #888; border-bottom: 1px solid #eee; padding: 9px 8px; }
.admin-table td { border-bottom: 1px solid #f0f0f0; padding: 9px 8px; vertical-align: middle; }
.admin-table__film { display: flex; align-items: center; gap: 10px; }
.admin-table__thumb { width: 34px; border-radius: 3px; display: block; }
.admin-table__actions { display: flex; gap: 8px; align-items: center; }
.admin-table__actions form { display: inline; margin: 0; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.pill--green { background: #d6f5e6; color: #0a7a45; }
.pill--gray { background: #eee; color: #777; }

/* Felder / Formulare */
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input[type=text], .field input[type=url], .field input[type=password],
.field input[type=number], .field input[type=search], .field textarea,
.admin-search input {
    width: 100%; border: 1px solid #cfd8dc; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px;
}
.field input:focus, .field textarea:focus, .admin-search input:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(224,30,43,.15); }
.field textarea { resize: vertical; line-height: 1.55; }
.field__hint { display: block; color: #8a8a8a; font-size: 12px; margin-top: 6px; }
.field__hint code, .field-group code, .setup-banner code, code { background: #eef2f4; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.field-row { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.field--narrow { max-width: 170px; }
.field--check { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.field--check input { width: auto; }
.field-group { border: 1px solid #e6e6e6; border-radius: 8px; padding: 14px 16px 4px; margin: 6px 0 18px; }
.field-group legend { font-weight: 700; padding: 0 6px; }
.edit-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.edit-movie { position: sticky; top: 20px; }
.edit-movie__poster { width: 100%; border-radius: 8px; display: block; margin-bottom: 12px; }
.edit-movie__title { font-size: 1.15rem; margin: 0 0 12px; }
.edit-form__actions { display: flex; gap: 12px; margin-top: 8px; }
.delete-form { margin-top: 22px; }

.auth-card { max-width: 380px; margin: 30px auto; background: #fff; border: 1px solid #e6e6e6; border-radius: 12px; padding: 30px; }
.auth-card__title { margin: 0 0 4px; }
.auth-error { background: #fde7ee; color: #b81b4f; padding: 10px 12px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.auth-form { margin-top: 18px; }

/* ---- Setup-Banner ----------------------------------------------------- */
.setup-banner { background: #fff8e1; border-bottom: 1px solid #f0e0a8; color: #6b5900; }
.setup-banner .container { padding-top: 12px; padding-bottom: 12px; font-size: 14px; }

/* ---- Trailer-Modal ---------------------------------------------------- */
.trailer-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.trailer-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); }
.trailer-modal__box { position: relative; width: min(92vw, 960px); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; z-index: 1; }
.trailer-modal__frame, .trailer-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-modal__close { position: absolute; top: -42px; right: 0; background: transparent; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; z-index: 2; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--c-dark2); color: #fff; margin-top: 44px; padding: 42px 0; }
.site-footer__inner { display: flex; gap: 44px; align-items: flex-start; flex-wrap: wrap; }
.logo--footer { font-size: 1.6rem; }
.site-footer__cols { display: flex; gap: 54px; flex: 1; flex-wrap: wrap; }
.site-footer__cols h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; opacity: .92; }
.site-footer__cols a { display: block; color: #cfc7cb; margin-bottom: 7px; font-size: 14px; }
.site-footer__cols a:hover { color: #fff; }
.site-footer__about { max-width: 400px; }
.site-footer__tagline { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.site-footer__attr { font-size: 12px; color: #b0a8ad; line-height: 1.55; margin: 0 0 8px; }
.tmdb-attr { display: inline-block; margin: 2px 0 12px; }
.tmdb-attr__logo { width: 100px; height: auto; display: block; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { order: 2; }
}
@media (max-width: 820px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .hero { padding-top: 40px; padding-bottom: 46px; }
    .main-nav { display: none; }
    .hamburger { display: inline-grid; place-items: center; }
    .site-header__inner { gap: 12px; }
    .site-header__right .lang-badge, .site-header__right .nav-link { display: none; }
    .hero__title { font-size: 2.3rem; }
    .hero__subtitle { font-size: 1.3rem; }
    .detail-hero__inner { flex-direction: column; align-items: center; text-align: center; padding-bottom: 46px; }
    .detail-hero__poster { width: 190px; flex-basis: auto; }
    .detail-facts, .detail-actions, .creators { justify-content: center; }
    .creators { grid-template-columns: 1fr 1fr; text-align: center; gap: 22px 16px; margin: 16px 0 4px; }
    .detail-overview { max-width: none; text-align: left; }
    .edit-layout { grid-template-columns: 1fr; }
    .edit-movie { position: static; max-width: 200px; }
    .critic__body { flex-direction: column; }
    .critic__score { flex-direction: row; align-self: flex-start; }
    .site-footer { padding: 30px 0; }
    .site-footer__inner { flex-direction: column; gap: 22px; }
    .site-footer__cols { width: 100%; flex: none; gap: 20px; }
    .site-footer__cols > div { flex: 1 1 0; min-width: 110px; }
    .site-footer__about { max-width: none; }
}
@media (max-width: 540px) {
    .hero__title { font-size: 2rem; }
    .buybox { flex-wrap: wrap; }
    .buybox__text { flex-basis: 60%; }
    .review-item__poster { flex-basis: 84px; width: 84px; }
    .field-row { gap: 14px; }
}

/* ---- Personen-Seite --------------------------------------------------- */
.person-page {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0 44px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 54px;
}
.person-aside { display: flex; flex-direction: column; }
.person-name { font-size: 2.1rem; margin: 0 0 14px; }
.person-facts { margin-top: 24px; }

.person-photo-wrap { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.person-photo-wrap::before { content: ""; position: absolute; inset: 0; background: var(--bg) center/cover; filter: blur(22px); transform: scale(1.15); opacity: .45; }
.person-photo { position: relative; width: 100%; display: block; }
.person-photo--empty { display: grid; place-items: center; aspect-ratio: 1 / 1.5; font-size: 70px; opacity: .4; background: #dadada; border-radius: 10px; }
.person-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--c-dark); color: #fff; display: inline-grid; place-items: center; transition: background .15s, transform .15s; }
.social-icon:hover { background: var(--c-accent); transform: translateY(-1px); }
.social-icon svg { width: 20px; height: 20px; display: block; }
.social-icon--imdb { width: auto; padding: 0 13px; border-radius: 20px; background: #f5c518; color: #000; font-weight: 800; font-size: 13px; letter-spacing: .3px; }
.social-icon--imdb:hover { background: #e0b100; color: #000; transform: translateY(-1px); }
.person-aside__title { font-size: 1.05rem; margin: 0 0 8px; }
.person-info { margin: 0; }
.person-info dt { font-weight: 700; margin-top: 14px; font-size: 14px; }
.person-info dt:first-of-type { margin-top: 0; }
.person-info dd { margin: 2px 0 0; color: #333; }
.aka { display: block; }
.person-bio__text { line-height: 1.66; color: #222; }
.person-bio:not(.is-expanded) .person-bio__text { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.bio-more { background: none; border: 0; color: var(--c-accent); font-weight: 700; cursor: pointer; padding: 8px 0 0; font-size: 15px; font-family: inherit; }
.bio-empty { color: #8a8a8a; }
.known-for { margin: 30px 0 8px; }
.filmo { margin-top: 30px; }
.credits-dept { font-size: 1.15rem; margin: 26px 0 8px; }
.credits-block { border-top: 1px solid #eee; }
.credit-yeargroup { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f2f2f2; }
.credit-year { flex: 0 0 50px; font-weight: 700; color: #6a6a6a; }
.credit-items { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.credit-item { display: block; color: #111; }
.credit-item:hover .credit-title { color: var(--c-accent); }
.credit-title { font-weight: 600; }
.credit-role { display: block; color: #8a8a8a; margin-top: 1px; }

@media (max-width: 820px) {
    .person-page { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 18px; }
    .person-aside, .person-main { display: contents; }
    .person-photo-wrap, .person-photo--empty { order: 1; align-self: center; width: 200px; max-width: 62%; margin: 0 auto; }
    .person-name { order: 2; text-align: center; font-size: 1.7rem; margin: 16px 0 6px; }
    .person-social { order: 3; justify-content: center; margin-bottom: 4px; }
    .person-facts { order: 4; margin: 16px 0 24px; }
    .person-bio-section { order: 5; }
    .known-for { order: 6; }
    .filmo { order: 7; }
}
