/* =====================================================================
   KADAR - dark cinematic
   Signature: amber "projektorsko svetlo" (#e6b450) na hladnoj tami,
   Bebas Neue marquee naslovi, poster-zid sa hover podizanjem.
   ===================================================================== */

:root {
    --bg:        #0e1014;
    --surface:   #161a21;
    --surface-2: #1f242d;
    --line:      #2b313c;
    --text:      #eef1f5;
    --dim:       #8b95a3;
    --accent:    #e6b450;
    --accent-2:  #f0c878;
    --star:      #e6b450;
    --danger:    #ff6b6b;
    --green:     #3fb950;

    --maxw:   1200px;
    --radius: 10px;
    --shadow: 0 14px 34px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* suptilna atmosfera: tamniji rubovi ekrana */
    background-image: radial-gradient(120% 80% at 50% -10%, #161b24 0%, var(--bg) 60%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ------------------------------ Tipografija ------------------------- */
.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

/* ------------------------------ Dugmad ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #15110a; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--dim); background: rgba(255,255,255,.04); }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------ Header ------------------------------ */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14,16,20,.72);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(14,16,20,.92); }

.head-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 64px;
}

.brand {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 30px;
    letter-spacing: .14em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    color: var(--text);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    margin-right: 11px;
    filter: drop-shadow(0 0 9px rgba(230, 180, 80, .45));
}
.brand-mark svg { display: block; }
.brand-text { display: inline-block; }

.search {
    position: relative;
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
}
.search-ico {
    position: absolute;
    left: 12px;
    color: var(--dim);
    pointer-events: none;
}
.search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--accent); }

.head-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-user { color: var(--text); font-weight: 600; font-size: 14px; }

/* ------------------------------ Flash / notice ---------------------- */
.flash {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    padding: 12px 20px;
    background: rgba(34,38,46,.97);
    border: 1px solid rgba(230,180,80,.45);
    border-radius: 12px;
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 14px 36px rgba(0,0,0,.5);
    backdrop-filter: blur(8px);
    max-width: 90vw;
    text-align: center;
    animation: flash-in .3s ease;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.notice {
    margin: 22px 0 0;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dim);
}
.notice strong { color: var(--text); }
.notice code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; color: var(--accent-2); }

/* ------------------------------ Page wrap --------------------------- */
.page { padding-top: 0; padding-bottom: 60px; }

.page-head { margin: 6px 0 22px; }
.page-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 44px;
    letter-spacing: .04em;
    margin: 0;
    line-height: 1;
}
.page-sub { color: var(--dim); margin: 6px 0 0; }

.empty {
    color: var(--dim);
    padding: 40px 0;
    text-align: center;
    font-size: 15px;
}

/* ------------------------------ Hero -------------------------------- */
.hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin: 4px 0 38px;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--surface);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center 22%;
    transform: scale(1.03);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14,16,20,.10) 0%, rgba(14,16,20,.55) 55%, rgba(14,16,20,.96) 100%),
        linear-gradient(90deg, rgba(14,16,20,.85) 0%, rgba(14,16,20,.20) 60%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 36px;
    max-width: 640px;
}
.hero-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: clamp(40px, 7vw, 76px);
    line-height: .95;
    letter-spacing: .02em;
    margin: 10px 0 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dim);
    font-size: 15px;
    margin: 0 0 14px;
    font-weight: 500;
}
.hero-meta .dot { opacity: .5; }
.star { color: var(--star); font-weight: 600; }
.hero-overview { color: #cdd3db; margin: 0 0 22px; max-width: 540px; }

/* ------------------------------ Redovi / sekcije -------------------- */
.row { margin: 0 0 44px; }
.row-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.row-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 30px;
    letter-spacing: .05em;
    margin: 0;
    line-height: 1;
}
.row-sub { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; }

/* ------------------------------ Poster zid -------------------------- */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px 18px;
}
.poster { display: flex; flex-direction: column; gap: 9px; }
.poster-img {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster:hover .poster-img {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 16px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(230,180,80,.35);
}
.poster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    text-align: center;
    color: var(--dim);
    font-size: 13px;
}
.poster-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(14,16,20,.85);
    color: var(--star);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.poster-info { display: flex; flex-direction: column; gap: 1px; }
.poster-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.poster-year { font-size: 12px; color: var(--dim); }

/* ------------------------------ Stranica filma ---------------------- */
.film { position: relative; }
.film-backdrop {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 460px;
    z-index: 0;
    background-image: var(--bd);
    background-size: cover;
    background-position: center 20%;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 92%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 92%);
    opacity: .5;
}
.film-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    padding-top: 60px;
}
.film-poster {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    background: var(--surface-2);
}
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
.film-poster-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; padding: 16px; text-align: center; color: var(--dim);
}
.film-head { padding-top: 6px; }
.film-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: clamp(38px, 5.5vw, 60px);
    line-height: 1;
    letter-spacing: .02em;
    margin: 0 0 6px;
}
.film-year { color: var(--dim); font-weight: 400; }
.film-orig { color: var(--dim); font-style: italic; margin: 0 0 14px; }
.film-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    color: var(--dim);
    margin: 8px 0 16px;
    font-size: 14px;
}
.film-meta strong { color: var(--text); font-weight: 600; }
.film-genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip {
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--dim);
}
.film-overview { color: #cdd3db; max-width: 680px; margin: 0 0 24px; line-height: 1.7; }
.film-overview.muted { color: var(--dim); font-style: italic; }
.film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soon { color: var(--dim); font-size: 13px; }

/* ------------------------------ Glumačka ekipa ---------------------- */
.film-cast { margin-top: 48px; }
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px;
}
.cast { text-align: center; }
.cast-img {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    margin: 0 auto 9px;
    width: 88px;
    height: 88px;
}
.cast-img img { width: 100%; height: 100%; object-fit: cover; }
.cast-initials {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 30px; color: var(--dim);
}
.cast-name { display: block; font-size: 13px; font-weight: 600; }
.cast-char { display: block; font-size: 12px; color: var(--dim); }

/* ------------------------------ Auth forme -------------------------- */
.auth {
    max-width: 380px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px 30px;
    box-shadow: var(--shadow);
}
.auth-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 38px;
    letter-spacing: .04em;
    margin: 0 0 4px;
    line-height: 1;
}
.auth-sub { color: var(--dim); margin: 0 0 22px; font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--dim);
    font-weight: 500;
}
.auth-form input {
    padding: 11px 13px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 15px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-form .btn { margin-top: 6px; }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--dim); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }

.form-errors {
    background: rgba(255,107,107,.1);
    border: 1px solid rgba(255,107,107,.4);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0 0 18px;
}
.form-errors p { margin: 3px 0; color: #ff9b9b; font-size: 13.5px; }

/* ------------------------------ Footer ------------------------------ */
.site-foot {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding: 26px 0;
}
.foot-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 22px;
    letter-spacing: .12em;
    color: var(--text);
}
.foot-note { color: var(--dim); font-size: 12.5px; }

/* ------------------------------ Responsive -------------------------- */
@media (max-width: 760px) {
    .head-inner { flex-wrap: wrap; height: auto; padding: 12px 22px; gap: 12px; }
    .brand { font-size: 26px; }
    .search { order: 3; max-width: none; flex-basis: 100%; }
    .head-nav { margin-left: auto; }
    .hero { min-height: 340px; }
    .hero-content { padding: 24px; }
    .film-top { grid-template-columns: 130px 1fr; gap: 18px; padding-top: 40px; }
    .film-backdrop { height: 320px; }
    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 14px; }
}

@media (max-width: 460px) {
    .film-top { grid-template-columns: 1fr; }
    .film-poster { max-width: 200px; }
}

/* ------------------------------ Pristupačnost ----------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .hero::before { transform: none; }
}

/* =====================================================================
   DAN 2 - korisničke akcije, ocena (pola-zvezdice), zajednica
   ===================================================================== */

.userbox {
    margin: 4px 0 8px;
    padding: 18px;
    background: rgba(22,26,33,.7);
    border: 1px solid var(--line);
    border-radius: 12px;
    max-width: 520px;
    backdrop-filter: blur(4px);
}
.userbox-guest p { margin: 0 0 12px; color: var(--dim); font-size: 14px; }

.ub-toggles { display: flex; gap: 10px; margin-bottom: 16px; }
.ub-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--dim);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s, transform .1s;
}
.ub-btn:hover { color: var(--text); border-color: var(--dim); }
.ub-btn:active { transform: scale(.97); }
.ub-btn.on.js-watched { color: #0e1014; background: var(--green); border-color: var(--green); }
.ub-btn.on.js-liked   { color: #0e1014; background: #ff5b7f; border-color: #ff5b7f; }

/* Rating: 5 zvezdica, klik po pola */
.rating-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rating-label { font-size: 13px; color: var(--dim); font-weight: 500; }
.rating { display: inline-flex; align-items: center; gap: 8px; }
.rating-stars {
    position: relative;
    display: inline-block;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 3px;
    cursor: pointer;
    user-select: none;
}
.rating-base { color: #3b434f; }
.rating-fill {
    position: absolute;
    top: 0; left: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--star);
    pointer-events: none;
    transition: width .06s linear;
}
.rating-hit {
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.rating-clear {
    border: 0;
    background: transparent;
    color: var(--dim);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.rating-clear:hover { color: var(--danger); }

.review-input {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 64px;
}
.review-input:focus { outline: none; border-color: var(--accent); }
.review-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.review-status { font-size: 13px; color: var(--green); opacity: 0; transition: opacity .2s; }
.review-status.show { opacity: 1; }

.meta-src { font-size: 11px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-left: -4px; }

/* Zajednica */
.community { margin-top: 44px; }
.community-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-bottom: 22px;
}
.cs-avg { display: inline-flex; align-items: baseline; gap: 10px; }
.cs-avg .star { font-size: 22px; }
.cs-sub { color: var(--dim); font-size: 13px; }
.cs-pill {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--dim);
}
.cs-pill strong { color: var(--text); }

.reviews { display: grid; gap: 14px; }
.review {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.review-user { font-weight: 600; font-size: 14px; }
.review-stars { font-size: 13px; }
.review-like { color: #ff5b7f; font-size: 13px; }
.review-text { margin: 0; color: #cdd3db; font-size: 14px; line-height: 1.6; }

@media (max-width: 760px) {
    .userbox { padding: 14px; }
    .ub-toggles { flex-wrap: wrap; }
}

/* =====================================================================
   DAN 3 - profil + dnevnik
   ===================================================================== */

.btn-sm { padding: 6px 12px; font-size: 13px; }

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), #9c6f1f);
    color: #15110a;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 400;
    flex-shrink: 0;
}
.avatar-lg { width: 96px; height: 96px; font-size: 46px; letter-spacing: .02em; }

.profile-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 8px 0 28px;
}
.profile-name {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 44px;
    letter-spacing: .03em;
    line-height: 1;
    margin: 0 0 4px;
}
.profile-handle { color: var(--dim); margin: 0 0 10px; font-size: 14px; }
.profile-bio { color: #cdd3db; margin: 0 0 12px; max-width: 560px; }

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}
.stat {
    flex: 1;
    min-width: 92px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 32px;
    line-height: 1;
    color: var(--accent);
}
.stat-lbl { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

/* Dnevnik */
.diary { display: flex; flex-direction: column; gap: 2px; }
.diary-row {
    display: flex;
    gap: 16px;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
}
.diary-row:hover { background: rgba(255,255,255,.03); }
.diary-poster {
    flex-shrink: 0;
    width: 52px;
    height: 78px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.diary-poster img { width: 100%; height: 100%; object-fit: cover; }
.diary-poster-empty {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--dim);
}
.diary-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.diary-title { font-weight: 600; font-size: 15px; }
.diary-year { color: var(--dim); font-weight: 400; margin-left: 4px; }
.diary-sub { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }
.diary-like { color: #ff5b7f; }
.diary-date { color: var(--dim); }
.diary-review { color: #aeb6c0; font-size: 13.5px; line-height: 1.5; }

/* Mini zvezdice (statične) */
.stars-mini {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}
.sm-base { color: #3b434f; }
.sm-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--star);
}

@media (max-width: 760px) {
    .profile-head { gap: 16px; }
    .avatar-lg { width: 72px; height: 72px; font-size: 34px; }
    .profile-name { font-size: 34px; }
    .stat { min-width: 72px; padding: 11px 8px; }
    .stat-num { font-size: 26px; }
}

/* =====================================================================
   DAN 4 - watchlist, popover za liste, stranice listi
   ===================================================================== */

.ub-btn.on.js-watchlist { color: #0e1014; background: #4aa3d8; border-color: #4aa3d8; }
.ub-toggles { flex-wrap: wrap; }

/* "Dodaj u listu" popover */
.addlist { position: relative; }
.addlist-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
}
.addlist-items { max-height: 220px; overflow-y: auto; margin-bottom: 8px; }
.addlist-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.addlist-item:hover { background: rgba(255,255,255,.04); }
.addlist-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.addlist-empty { color: var(--dim); font-size: 13px; padding: 6px 8px; margin: 0; }
.addlist-new { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 9px; }
.addlist-new input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
}
.addlist-new input:focus { outline: none; border-color: var(--accent); }

/* Kartice listi */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.list-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s, border-color .15s;
}
.list-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.list-thumbs { display: flex; height: 120px; background: var(--surface-2); }
.list-thumb {
    flex: 1;
    background-size: cover;
    background-position: center;
    border-right: 1px solid var(--bg);
}
.list-thumb:last-child { border-right: 0; }
.list-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    color: var(--dim); font-size: 22px;
}
.list-card-body { display: block; padding: 12px 14px; }
.list-card-title { display: block; font-weight: 600; font-size: 15px; }
.list-card-count { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; }

.row-link { color: var(--accent); font-size: 13px; font-weight: 600; margin-left: auto; }

/* Forma za novu listu */
.newlist-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.newlist-form input {
    flex: 1;
    min-width: 180px;
    padding: 10px 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
}
.newlist-form input:focus { outline: none; border-color: var(--accent); }

/* Stranica liste */
.list-head { margin: 4px 0 26px; }
.list-owner { color: var(--accent); }
.list-desc { color: #cdd3db; max-width: 640px; margin: 8px 0; }
.list-owner-tools { display: flex; gap: 10px; margin-top: 12px; }
.btn-danger { color: #ff8585; }
.btn-danger:hover { border-color: #ff8585; }
.inline { display: inline; }
.list-edit-form {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    margin-top: 14px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.list-edit-form input {
    padding: 9px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
}
.list-edit-form input:focus { outline: none; border-color: var(--accent); }

.list-film { position: relative; }
.list-film-remove { position: absolute; top: 6px; right: 6px; z-index: 3; }
.list-film-remove button {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 0;
    background: rgba(14,16,20,.85);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(3px);
}
.list-film-remove button:hover { background: #ff5b5b; }

/* =====================================================================
   DAN 5 - social: feed, praćenje, komentari
   ===================================================================== */

.nav-link { color: var(--dim); font-weight: 600; font-size: 14px; padding: 0 4px; }
.nav-link:hover { color: var(--text); }

.avatar-sm { width: 40px; height: 40px; font-size: 20px; }

.profile-follow-counts { color: var(--dim); font-size: 14px; margin: 0 0 10px; }
.profile-follow-counts strong { color: var(--text); }
.profile-actions { display: flex; gap: 10px; }

/* Feed */
.feed { display: flex; flex-direction: column; }
.activity {
    display: flex;
    gap: 14px;
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
}
.activity-main { flex: 1; min-width: 0; }
.activity-text { margin: 0 0 5px; font-size: 14.5px; }
.activity-user { font-weight: 600; }
.activity-user:hover { color: var(--accent); }
.activity-verb { color: var(--dim); }
.activity-film { font-weight: 600; }
.activity-film:hover { color: var(--accent); }
.activity-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.activity-like { color: #ff5b7f; }
.activity-review { margin: 8px 0 0; color: #aeb6c0; font-size: 13.5px; line-height: 1.55; }
.activity-poster { flex-shrink: 0; width: 48px; }
.activity-poster img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }

/* Komentari */
.comments-row { margin-top: 44px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; max-width: 600px; margin-bottom: 24px; }
.comment-form .btn { align-self: flex-start; }
.empty-inline { color: var(--dim); font-size: 14px; margin: 0 0 20px; }
.empty-inline a { color: var(--accent); font-weight: 600; }

.comments { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.comment { display: flex; gap: 12px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.comment-user { font-weight: 600; font-size: 14px; }
.comment-user:hover { color: var(--accent); }
.comment-time { color: var(--dim); font-size: 12.5px; }
.comment-del {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--dim);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.comment-del:hover { color: var(--danger); }
.comment-body { margin: 0; color: #cdd3db; font-size: 14px; line-height: 1.55; word-wrap: break-word; }

@media (max-width: 760px) {
    .activity-poster { width: 40px; }
}

/* =====================================================================
   DAN 6 - polish: 404 + mobilni
   ===================================================================== */

.notfound { text-align: center; padding: 70px 20px; }
.nf-code {
    display: block;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 120px;
    line-height: 1;
    color: var(--accent);
    letter-spacing: .04em;
}
.nf-msg { color: var(--dim); margin: 8px 0 24px; font-size: 16px; }

@media (max-width: 640px) {
    .head-nav { gap: 8px; }
    .nav-link { font-size: 13px; padding: 0 2px; }
    .activity { gap: 10px; padding: 14px 4px; }
    .activity-poster { display: none; }
    .comment-form { max-width: none; }
    .profile-stats { gap: 8px; }
    .stat { min-width: 60px; padding: 10px 6px; }
    .stat-num { font-size: 22px; }
    .stat-lbl { font-size: 11px; }
    .list-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .list-thumbs { height: 90px; }
    .nf-code { font-size: 86px; }
    .addlist-pop { width: 220px; }
}

/* =====================================================================
   DAN 7 - dugme Pogledano (hover Ukloni), osobe, slug linkovi
   ===================================================================== */

.ub-label-remove { display: none; }
.ub-btn.on.js-watched:hover { background: #e0524f; border-color: #e0524f; color: #fff; }
.ub-btn.on.js-watched:hover .ub-label { display: none; }
.ub-btn.on.js-watched:hover .ub-label-remove { display: inline; }

.meta-link:hover strong { color: var(--accent); }
a.cast { text-decoration: none; }
a.cast:hover .cast-name { color: var(--accent); }

/* Stranica osobe */
.person-head { display: flex; gap: 26px; margin: 8px 0 30px; align-items: flex-start; }
.person-photo {
    flex-shrink: 0;
    width: 150px;
    height: 225px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo-empty {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 64px; color: var(--dim);
}
.person-id { flex: 1; min-width: 0; }
.person-bio { color: #cdd3db; line-height: 1.65; margin: 12px 0 0; max-width: 720px; }

@media (max-width: 640px) {
    .person-head { gap: 16px; }
    .person-photo { width: 100px; height: 150px; }
}

/* =====================================================================
   DAN 9 - pretraga osoba (sekcija Ljudi)
   ===================================================================== */

.person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px 16px;
}
.person-card { text-align: center; }
.person-card-img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 9px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.person-card:hover .person-card-img {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(230,180,80,.35);
}
.person-card-img img { width: 100%; height: 100%; object-fit: cover; }
.person-card-initial {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 40px; color: var(--dim);
}
.person-card-name { display: block; font-size: 13.5px; font-weight: 600; }
.person-card:hover .person-card-name { color: var(--accent); }
.person-card-dept { display: block; font-size: 12px; color: var(--dim); }

@media (max-width: 640px) {
    .person-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .person-card-img { width: 80px; height: 80px; }
}

/* =====================================================================
   DAN 10 - notifikacije
   ===================================================================== */

.nav-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--dim);
    padding: 0 4px;
}
.nav-bell:hover { color: var(--text); }
.bell-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent);
    color: #15110a;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.notifs { display: flex; flex-direction: column; max-width: 640px; }
.notif {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 8px;
}
.notif.unread { background: rgba(230,180,80,.07); }
.notif-main { flex: 1; min-width: 0; }
.notif-text { margin: 0; font-size: 14.5px; color: #cdd3db; }
.notif-actor { font-weight: 600; color: var(--text); }
.notif-actor:hover { color: var(--accent); }
.notif-film { font-weight: 600; color: var(--text); }
.notif-film:hover { color: var(--accent); }
.notif-time { font-size: 12.5px; color: var(--dim); }

/* =====================================================================
   DAN 11 - izbor roda (obraćanje)
   ===================================================================== */

.gender-field { display: flex; flex-direction: column; gap: 8px; }
.gender-title { font-size: 13px; color: var(--dim); font-weight: 500; }
.gender-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.gender-opt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}
.gender-opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.gender-hint { font-size: 12px; color: var(--dim); }

/* === Avatari (slike) === */
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.avatar-xs { width: 26px; height: 26px; font-size: 13px; }

.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-user .avatar-xs { border-radius: 50%; }
@media (max-width: 560px) {
    .nav-user-name { display: none; } /* na mobilnom samo krug */
}

/* Settings: izbor avatara */
.avatar-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 2px 0 6px;
}
.avatar-edit .avatar-lg { width: 80px; height: 80px; font-size: 38px; }
.avatar-edit-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.avatar-pick { cursor: pointer; margin: 0; }
.avatar-hint { font-size: 12px; color: var(--muted); }
.avatar-remove {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}
.avatar-remove input { accent-color: var(--accent); }

/* Brisanje sopstvene recenzije */
.review-del {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--dim);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.review-del:hover { color: var(--danger); }

/* === Custom confirm modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 7, 10, .66);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .17s ease;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px 22px 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    transform: translateY(10px) scale(.97);
    transition: transform .17s cubic-bezier(.2, .8, .2, 1);
}
.modal-overlay.show .modal-card { transform: none; }
.modal-msg {
    margin: 0 0 20px;
    font-size: 15.5px;
    line-height: 1.45;
    color: var(--text);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.modal-confirm {
    background: var(--danger);
    color: #1a0e0e;
    border: 1px solid transparent;
    font-weight: 600;
}
.modal-confirm:hover { filter: brightness(1.06); }

/* === Popular on KADAR - tabovi === */
.page-sub { color: var(--dim); margin: -6px 0 18px; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.tab {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--dim);
    font-size: 14px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.tab:hover { color: var(--text); border-color: var(--dim); }
.tab.active { background: var(--accent); color: #15110a; border-color: transparent; font-weight: 600; }

/* === Profil: Taste (statistika) === */
.taste-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 640px) { .taste-grid { grid-template-columns: 1fr; } }
.taste-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px 14px;
}
.taste-h {
    margin: 0 0 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dim);
    font-weight: 600;
}
.rating-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
}
.rbar {
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}
.rbar-fill {
    display: block;
    width: 100%;
    background: var(--accent);
    border-radius: 4px 4px 0 0;
    transition: height .3s ease;
}
.rating-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 11px;
    color: var(--dim);
}
.genre-list { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 8px 6px 13px;
    font-size: 13px;
    color: var(--text);
}
.genre-count {
    background: var(--accent);
    color: #15110a;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* === Social discovery: lista korisnika === */
.avatar-md { width: 44px; height: 44px; font-size: 20px; }
.user-card .avatar-md { border-radius: 50%; }
.people-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
}
.user-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.user-card-id { display: flex; flex-direction: column; min-width: 0; }
.user-card-name {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-card-handle { font-size: 13px; color: var(--dim); }
.profile-follow-counts a { color: inherit; text-decoration: none; }
.profile-follow-counts a:hover { color: var(--accent); }

/* === Browse: filteri === */
.browse-filters { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
    font-weight: 600;
    min-width: 52px;
}
.sort-tabs { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--dim);
    font-size: 13px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--dim); }
.chip.active { background: var(--accent); color: #15110a; border-color: transparent; font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.pager-info { font-size: 13px; color: var(--dim); }
@media (max-width: 560px) { .sort-tabs { margin-left: 0; } }

/* === Lajk recenzije === */
.review-like-btn, .review-like-static {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--dim);
}
.review-like-btn { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; transition: color .15s ease; }
.review-like-btn:hover,
.review-like-btn.liked { color: var(--danger); }
.rl-heart { font-size: 14px; line-height: 1; }

/* === Recent reviews feed === */
.review-feed { display: flex; flex-direction: column; gap: 14px; }
.rev-card {
    display: flex;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}
.rev-poster {
    flex-shrink: 0;
    width: 72px;
    height: 108px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-2);
    display: block;
}
.rev-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rev-poster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px;
    font-size: 11px;
    color: var(--dim);
    text-align: center;
}
.rev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rev-top { display: flex; align-items: center; gap: 10px; }
.rev-user { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.rev-user-name { font-weight: 600; font-size: 14px; }
.rev-stars { font-size: 13px; }
.rev-film { font-size: 13px; color: var(--dim); text-decoration: none; }
.rev-film:hover { color: var(--accent); }
.rev-text { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.rev-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rev-foot .review-like-btn, .rev-foot .review-like-static { margin-left: 0; }
.rev-time { font-size: 12px; color: var(--dim); margin-left: auto; }

/* === Lajk komentara === */
.comment-like-btn, .comment-like-static {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--dim);
}
.comment-like-btn { border: 0; background: transparent; cursor: pointer; padding: 1px 4px; transition: color .15s ease; }
.comment-like-btn:hover,
.comment-like-btn.liked { color: var(--danger); }
.comment-like-btn .rl-heart, .comment-like-static .rl-heart { font-size: 13px; line-height: 1; }

/* === Notifikacije dropdown === */
.nav-notif { position: relative; display: inline-flex; }
.nav-bell { border: 0; background: transparent; cursor: pointer; font: inherit; }
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 88vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 54px rgba(0, 0, 0, .55);
    z-index: 200;
    overflow: hidden;
}
.notif-dd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--dim);
    font-weight: 600;
}
.notif-dd-all { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; }
.notif-dd-list { max-height: 62vh; overflow-y: auto; }
.notif-dd-list .notif { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); margin: 0; }
.notif-dd-list .notif:last-child { border-bottom: 0; }
.notif-dd-empty { padding: 22px 14px; color: var(--dim); font-size: 14px; text-align: center; margin: 0; }

/* === Trailer === */
.trailer-btn { margin: 6px 0 2px; }
.trailer-play { color: var(--accent); font-size: 11px; margin-right: 3px; }
.trailer-overlay .trailer-box {
    position: relative;
    width: 880px;
    max-width: 92vw;
    transform: translateY(10px) scale(.98);
    transition: transform .17s ease;
}
.modal-overlay.show .trailer-box { transform: none; }
.trailer-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-close {
    position: absolute;
    top: -40px;
    right: -2px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 600px) { .trailer-close { top: -36px; } }

/* === Where to watch === */
.wp-group { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.wp-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
    font-weight: 600;
    min-width: 56px;
}
.wp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-prov {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: transform .12s ease, border-color .12s ease;
}
.wp-prov:hover { transform: translateY(-2px); border-color: var(--accent); }
.wp-prov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-prov-name { font-size: 10px; padding: 2px; text-align: center; color: var(--dim); }
.wp-note { font-size: 11px; color: var(--dim); margin: 6px 0 0; }

/* === Akcije ispod postera + Where-to-watch popup === */
.poster-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.poster-actions .btn-block { width: 100%; justify-content: center; }

.watch-overlay .watch-modal {
    position: relative;
    width: 440px;
    max-width: 92vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 22px 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    transform: translateY(10px) scale(.97);
    transition: transform .17s ease;
}
.modal-overlay.show .watch-modal { transform: none; }
.watch-modal-title { margin: 0 0 18px; font-size: 17px; color: var(--text); }
.watch-region { color: var(--dim); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; }
.watch-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    color: var(--dim);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.watch-close:hover { color: var(--text); }
.watch-modal-body .wp-group:last-of-type { margin-bottom: 6px; }

/* Leva kolona filma: poster + dugmad ispod */
.film-aside { display: flex; flex-direction: column; }
@media (max-width: 760px) { .film-aside { max-width: 260px; } }

/* Raspodela ocena u "On KADAR" */
.cs-dist { max-width: 360px; margin: 14px 0 4px; }
.cs-dist .rating-bars { height: 84px; }

/* === Lepši grafikon + recenzije u "On KADAR" === */
.cs-dist {
    max-width: 380px;
    margin: 16px 0 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px 12px;
}
.cs-dist-title {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--dim);
    font-weight: 600;
    margin-bottom: 12px;
}
.cs-dist .rating-bars { height: 80px; }

.review { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.review-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.review-user { font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; }
.review-user:hover { color: var(--accent); }
.review-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.review-sub .review-stars { font-size: 12px; }
.review-time { font-size: 12px; color: var(--dim); }
.review-text { margin: 0; color: #cdd3db; font-size: 14px; line-height: 1.6; }

/* "Like review" tekst na dugmetu */
.rl-label { font-size: 13px; }
.review-like-btn .rl-count:not(:empty)::before { content: ""; }

/* "Liked" belim, ne crvenim */
.review-like-btn.liked { color: var(--text); }

/* === Komentari na recenzijama === */
.rc-wrap { margin-top: 10px; }
.rc-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0; cursor: pointer;
    color: var(--dim); font-size: 13px; padding: 2px 0;
}
.rc-toggle:hover { color: var(--text); }
.rc-toggle svg { opacity: .8; }
.rc-thread { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.rc-list { display: flex; flex-direction: column; gap: 12px; }
.rc-list:empty { display: none; }
.rc-item { display: flex; align-items: flex-start; gap: 10px; }
.rc-main { flex: 1; min-width: 0; }
.rc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.rc-user { font-weight: 600; font-size: 13px; color: var(--text); text-decoration: none; }
.rc-user:hover { color: var(--accent); }
.rc-time { font-size: 12px; color: var(--dim); }
.rc-text { margin: 0; font-size: 14px; line-height: 1.5; color: #cdd3db; word-wrap: break-word; }
.rc-del { background: transparent; border: 0; color: var(--dim); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rc-del:hover { color: var(--danger); }
.rc-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rc-input {
    width: 100%; resize: vertical; min-height: 44px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
    color: var(--text); padding: 9px 11px; font: inherit; font-size: 14px;
}
.rc-input:focus { outline: none; border-color: var(--accent); }
.rc-form .btn { align-self: flex-start; }
.rc-login { font-size: 13px; color: var(--dim); margin: 8px 0 0; }
.rc-login a { color: var(--accent); }
.rc-loading { font-size: 13px; color: var(--dim); margin: 0; }

/* === Akcije na komentaru (Edit/Report/Delete) + editor === */
.rc-text { white-space: pre-wrap; }
.rc-actions { display: flex; gap: 8px; margin-top: 8px; }
.rc-act { background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 6px; cursor: pointer; color: var(--dim); font-size: 12px; font-weight: 600; transition: color .15s, border-color .15s; }
.rc-act:hover { color: var(--text); border-color: var(--dim); }
.rc-act-danger:hover { color: var(--danger); }
.rc-act-reported { color: var(--dim); font-size: 12px; font-weight: 600; }
.rc-editor { margin-top: 8px; }
.rc-editor-btns { display: flex; gap: 8px; margin-top: 8px; }

/* Admin: prijave */
.rep-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.rep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rep-count { background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.rep-body { margin: 0 0 10px; white-space: pre-wrap; color: #cdd3db; }
.rep-meta { font-size: 13px; color: var(--dim); }

/* === Crew + Details (Letterboxd stil) === */
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
@media (max-width: 760px) { .fx-grid { grid-template-columns: 1fr; gap: 24px; } }
.fx-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: 0 0 8px; font-weight: 700; }
.fx-list { margin: 0; }
.fx-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fx-row:last-child { border-bottom: 0; }
.fx-dt { color: var(--dim); }
.fx-dd { color: var(--text); margin: 0; }
.fx-dd a { color: var(--text); text-decoration: none; }
.fx-dd a:hover { color: var(--accent); }

/* === Profil: tabovi === */
.profile-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin: 26px 0 22px;
}
.ptab {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--dim);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ptab:hover { color: var(--text); }
.ptab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.ptab-c { font-size: 12px; color: var(--dim); font-weight: 700; }
.ptab.is-active .ptab-c { color: var(--accent); }
.profile-panel { display: none; }
.profile-panel.is-active { display: block; }
.panel-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* Network panel (followers + following) */
.net-section { margin-bottom: 30px; }
.net-section:last-child { margin-bottom: 0; }


/* === Arial: normalan font, manji naslovi/brojevi === */
.brand, .page-title, .hero-title, .row-title, .film-title, .auth-title, .foot-brand, .profile-name, .stat-num {
    font-weight: 700;
    letter-spacing: normal;
}
.brand { font-weight: 800; }
.page-title  { font-size: 26px; }
.row-title   { font-size: 20px; }
.film-title  { font-size: 32px; }
.profile-name{ font-size: 28px; }
.auth-title  { font-size: 24px; }
.stat-num    { font-size: 22px; }
.stat-lbl    { font-size: 11px; }
/* Taste deo malo kompaktniji */
.taste .rating-bars { height: 90px; }

/* === Lists discovery === */
.list-card-user { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.sort-toggle { display: flex; gap: 4px; }
.sort-toggle a { font-size: 13px; color: var(--dim); padding: 4px 11px; border-radius: 7px; text-decoration: none; }
.sort-toggle a:hover { color: var(--text); }
.sort-toggle a.is-active { color: var(--text); background: var(--surface-2); }


/* Lista: izmena forma toggle, private badge, public checkbox */
.list-edit-form.is-open { display: flex; }
.list-private {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dim);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 7px;
    vertical-align: middle;
}
.list-public-toggle { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); cursor: pointer; }
.list-public-toggle input { margin-top: 3px; }
.list-public-toggle small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* === Add to list: select + dugme === */
.addlist-pick { display: flex; gap: 8px; margin-bottom: 10px; }
.addlist-select {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
}
.addlist-select:focus { outline: none; border-color: var(--accent); }
.addlist-pick .btn { white-space: nowrap; }
.addlist-msg { font-size: 12px; color: var(--green); margin: 8px 0 0; }

/* Saved lists podnaslov na profilu */
.lists-subhead {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
    font-weight: 700;
    margin: 28px 0 14px;
}

/* === Header: profil dropdown meni === */
.user-menu { position: relative; }
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    padding: 4px 8px 4px 4px;
    border-radius: 9px;
}
.user-menu-toggle:hover { background: var(--surface-2); }
.user-menu-toggle .nav-user-name { font-size: 14px; font-weight: 600; }
.user-caret { color: var(--dim); transition: transform .15s ease; flex-shrink: 0; }
.user-menu-toggle.is-open .user-caret { transform: rotate(180deg); }
.user-menu-dd {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 192px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    z-index: 60;
}
.user-menu-dd a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.user-menu-dd a:hover { background: var(--surface-2); color: var(--accent); }
.user-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* === Profil: Films tab === */
.films-sort { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.films-sort .js-films-sort {
    font-size: 13px;
    color: var(--dim);
    padding: 5px 12px;
    border-radius: 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.films-sort .js-films-sort:hover { color: var(--text); }
.films-sort .js-films-sort.is-active { color: var(--text); background: var(--surface-2); }
.film-cell { display: flex; flex-direction: column; }
.film-cell-rating { margin-top: 5px; }

/* === Profil: omiljeni (Favorite films) === */
.profile-favs { margin: 4px 0 26px; }
.favs-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--dim);
    font-weight: 700;
    margin: 0 0 12px;
}
.favs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 560px;
}
.fav-cell { position: relative; }
.fav-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: rgba(14, 16, 20, .8);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.fav-cell:hover .fav-remove { display: flex; }
.fav-remove:hover { background: var(--danger); }
@media (max-width: 560px) { .favs-grid { gap: 10px; } }

/* Favorite dugme aktivno (zlatna zvezda) */
.ub-btn.on.js-favorite { color: #0e1014; background: var(--accent); border-color: var(--accent); }

/* Favorites: čist zid postera (bez naslova ispod) */
.profile-favs { margin: 6px 0 28px; }
.favs-title { font-size: 14px; }
.favs-grid { gap: 14px; max-width: 600px; }
.favs-grid .poster-info { display: none; }
.favs-grid .poster-img { border-radius: 10px; }
.fav-cell .poster { transition: transform .14s ease; }
.fav-cell:hover .poster { transform: translateY(-3px); }

/* === Favorites: čist, uredan red od 4 postera === */
.profile-favs { margin: 12px 0 40px; }
.favs-title { font-size: 13px; }
.favs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 460px;
}
.favs-grid .poster { gap: 0; }
.favs-grid .poster-info { display: none; }
.favs-grid .poster-rating { display: none; }
.favs-grid .poster-img { aspect-ratio: 2 / 3; border-radius: 10px; margin: 0; }
.fav-cell:hover .poster-img { border-color: var(--accent); }
@media (max-width: 520px) { .favs-grid { max-width: none; gap: 10px; } }

/* === Favorites: veći posteri + centrirano === */
.profile-favs { text-align: center; margin: 18px 0 46px; }
.favs-title { text-align: center; margin-bottom: 16px; }
.favs-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 760px) { .favs-grid { max-width: 460px; gap: 12px; } }

/* Favorites: prazna mesta (placeholder okvir) */
.fav-empty-box {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    border: 1.5px dashed rgba(255,255,255,.13);
    background: rgba(255,255,255,.015);
}
.fav-empty { cursor: default; }

/* === Favorites desno od profila (gornji red) === */
.profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 44px;
    flex-wrap: wrap;
    margin: 8px 0 28px;
}
.profile-top .profile-head { margin: 0; flex: 0 1 auto; }
.profile-top .profile-favs { margin: 0; text-align: left; flex: 0 0 auto; }
.profile-top .favs-title { text-align: left; margin: 4px 0 12px; }
.profile-top .favs-grid {
    grid-template-columns: repeat(4, 112px);
    gap: 14px;
    max-width: none;
    margin: 0;
}
@media (max-width: 920px) {
    .profile-top .profile-favs { width: 100%; }
    .profile-top .favs-title { text-align: center; }
    .profile-top .favs-grid { grid-template-columns: repeat(4, 1fr); max-width: 460px; margin: 0 auto; }
}


/* === Recent activity (Profile tab): kartice jedno pored drugog === */
.recent-activity { margin-bottom: 40px; }
.act-list { display: flex; flex-wrap: wrap; gap: 12px; }
.act-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 460px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.act-poster { flex: 0 0 auto; width: 46px; height: 69px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: block; }
.act-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-poster-ph { display: block; width: 100%; height: 100%; background: var(--surface-2); }
.act-poster-icon { display: flex; align-items: center; justify-content: center; color: var(--dim); }
.act-body { min-width: 0; flex: 1 1 auto; }
.act-line { margin: 0 0 4px; font-size: 14px; line-height: 1.3; }
.act-verb { color: var(--dim); }
.act-title { font-weight: 700; color: var(--text); }
.act-title:hover { color: var(--accent); }
.act-year { color: var(--dim); font-size: 13px; }
.act-meta { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 12px; color: var(--dim); }
.act-meta .stars-mini { font-size: 13px; }
.act-heart { color: #ff5b7f; }
.act-private { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 520px) { .act-item { flex: 1 1 100%; max-width: none; } }

/* Custom logo slika (preko SITE_LOGO) */
.brand-img { height: 28px; width: auto; display: block; }

/* === Profil cover / banner === */
.profile-cover {
    width: 100%;
    height: clamp(140px, 24vw, 260px);
    border-radius: 14px;
    overflow: hidden;
    margin: 4px 0 22px;
    background: var(--surface-2);
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Settings: cover preview */
.cover-edit { margin: 6px 0 18px; }
.cover-edit-label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.cover-preview {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-empty { color: var(--dim); font-size: 13px; }

/* === Profil backdrop (cover iza profila, kao filmovi) === */
.profile-hero { position: relative; }
.profile-backdrop {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 420px;
    z-index: 0;
    background-image: var(--bd);
    background-size: cover;
    background-position: center 25%;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.62) 0%, transparent 92%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,.62) 0%, transparent 92%);
    opacity: .5;
    pointer-events: none;
}
.profile-hero .profile-top { position: relative; z-index: 1; padding-top: 14px; }
@media (max-width: 760px) { .profile-backdrop { height: 300px; } }

/* === Tagovi na recenzijama === */
.review-tags-input {
    width: 100%;
    margin: 8px 0 0;
    padding: 9px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
}
.review-tags-input::placeholder { color: var(--dim); }
.review-tags-input:focus { outline: none; border-color: var(--accent); }

.rev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.rev-tag, .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(230, 180, 80, .10);
    border: 1px solid rgba(230, 180, 80, .25);
    border-radius: 999px;
    padding: 3px 10px;
    line-height: 1.4;
}
.rev-tag:hover, .tag-pill:hover { background: rgba(230, 180, 80, .18); }

/* Tag cloud (discovery na reviews stranici) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tag-pill { font-size: 13px; padding: 5px 12px; }
.tag-n { color: var(--dim); font-weight: 500; }

/* Tagovi: hint/brojač */
.tags-hint { display: block; margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.tags-hint.over { color: #ff8f6b; font-weight: 600; }

/* === Watching stats === */
.watch-stats { margin-bottom: 30px; }
.ws-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 380px;
    margin-bottom: 16px;
}
.ws-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}
.ws-num { display: block; font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1; }
.ws-lbl { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.ws-split { display: flex; gap: 22px; margin-bottom: 22px; color: var(--dim); font-size: 14px; }
.ws-split strong { color: var(--text); font-size: 16px; }
.ws-years .taste-h { margin: 0 0 14px; }
.ws-bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.ws-bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.ws-bar-n { font-size: 12px; color: var(--dim); }
.ws-bar-fill {
    width: 100%;
    max-width: 46px;
    background: linear-gradient(180deg, var(--accent), rgba(230,180,80,.55));
    border-radius: 6px 6px 0 0;
    min-height: 6px;
}
.ws-bar-y { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
    .ws-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* === Compare taste === */
.cmp-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 10px 0 28px;
    flex-wrap: wrap;
}
.cmp-user { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cmp-user-name { font-weight: 700; color: var(--text); }
a.cmp-user-name:hover { color: var(--accent); }
.cmp-score { display: flex; flex-direction: column; align-items: center; min-width: 130px; }
.cmp-pct { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; }
.cmp-pct-na { color: var(--dim); }
.cmp-pct-lbl { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.cmp-stats { display: flex; gap: 12px; justify-content: center; max-width: 380px; margin: 0 auto 30px; }
.cmp-stats .stat { flex: 1 1 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center; }

.cmp-list { display: flex; flex-direction: column; gap: 8px; }
.cmp-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 10px;
}
.cmp-row.cmp-agree { border-left-color: #4caf6e; }
.cmp-row.cmp-close { border-left-color: var(--accent); }
.cmp-row.cmp-apart { border-left-color: #e0524f; }
.cmp-poster { flex: 0 0 auto; width: 40px; height: 60px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.cmp-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-title { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--text); }
.cmp-title:hover { color: var(--accent); }
.cmp-year { color: var(--dim); font-weight: 400; font-size: 13px; }
.cmp-ratings { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.cmp-vs { font-size: 11px; color: var(--dim); text-transform: uppercase; }
@media (max-width: 520px) {
    .cmp-ratings { gap: 6px; }
    .cmp-ratings .stars-mini { font-size: 13px; }
}

/* === Spojleri na recenzijama === */
.spoiler-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); cursor: pointer; user-select: none; }
.spoiler-check input {
    appearance: none; -webkit-appearance: none; margin: 0;
    width: 18px; height: 18px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2);
    cursor: pointer; position: relative; transition: background .15s ease, border-color .15s ease;
}
.spoiler-check input:hover { border-color: var(--accent); }
.spoiler-check input:checked { background: var(--accent); border-color: var(--accent); }
.spoiler-check input:checked::after {
    content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
    border: solid #14171c; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.spoiler-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(230,180,80,.3); }

.spoiler-wrap { position: relative; }
.spoiler-wrap.has-spoiler > .rev-text,
.spoiler-wrap.has-spoiler > .review-text {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
    min-height: 1.4em;
}
.spoiler-reveal {
    position: absolute;
    inset: 0;
    margin: auto;
    width: max-content;
    height: max-content;
    background: rgba(20, 22, 28, .92);
    border: 1px solid var(--line);
    color: var(--accent);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.spoiler-reveal:hover { border-color: var(--accent); }
.spoiler-wrap:not(.has-spoiler) > .spoiler-reveal { display: none; }

/* === Vise recenzija po filmu (Letterboxd logs) === */
.review-form[hidden] { display: none; }
.review-form { margin-top: 4px; }
.js-review-again { margin-bottom: 6px; }
.review-edit {
    margin-left: auto;
    border: 0; background: transparent;
    color: var(--dim); font-size: 12px; cursor: pointer;
    padding: 2px 6px; border-radius: 6px;
}
.review-edit:hover { color: var(--accent); }
.review-del { margin-left: 6px; }
/* Edit/Delete na karticama recenzija (profil, /reviews, /tag) */
.rev-foot .rev-edit { margin-left: auto; }
.rev-edit {
    color: var(--dim); font-size: 12px; text-decoration: none;
    padding: 0 4px; cursor: pointer;
}
.rev-edit:hover { color: var(--accent); }
.rev-del {
    border: 0; background: transparent; color: var(--dim);
    font-size: 12px; cursor: pointer; padding: 0 4px;
}
.rev-del:hover { color: var(--danger); }
.review-rating-wrap { margin-bottom: 8px; }

/* === Review footer: komentari levo, akcije desno === */
.review-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.review-foot > .rc-wrap { flex: 1 1 auto; min-width: 0; }
.review-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.rev-foot { display: flex; align-items: center; gap: 10px; }
.rev-foot .review-actions { margin-left: auto; }

/* Mali akcioni dugmići na recenziji (u stilu gornjih ub-btn) */
.rev-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--dim);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s, transform .1s;
}
.rev-act-btn:hover { color: var(--text); border-color: var(--dim); }
.rev-act-btn:active { transform: scale(.97); }
.rev-act-btn .rl-heart { color: #ff5b7f; font-size: 14px; }
.rev-act-btn.liked { color: #0e1014; background: #ff5b7f; border-color: #ff5b7f; }
.rev-act-btn.liked .rl-heart { color: #0e1014; }
.rev-act-btn .rl-count { opacity: .85; }
.rev-like-static { cursor: default; }
.rev-like-static:hover { color: var(--dim); border-color: var(--line); background: var(--surface-2); }
.rev-act-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* Lajk gore desno na recenziji */
.review-head-like { margin-left: auto; flex-shrink: 0; }
.rev-top-like { margin-left: auto; display: inline-flex; }
.rev-foot .rev-time { margin-left: 0; }
.review-head { align-items: flex-start; }

/* === Owner panel === */
.owner { max-width: 1000px; }
.owner-title { font-size: 26px; margin: 0 0 18px; }
.owner-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.owner-tab { padding: 9px 16px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.owner-tab:hover { color: var(--text); }
.owner-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.owner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 760px) { .owner-grid { grid-template-columns: repeat(2, 1fr); } }
.owner-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.owner-stat-n { font-size: 24px; font-weight: 700; color: var(--text); }
.owner-stat-l { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.owner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .owner-cols { grid-template-columns: 1fr; } }
.owner-h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); margin: 0 0 12px; }
.owner-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.owner-row:last-child { border-bottom: 0; }
.owner-row a { color: var(--text); text-decoration: none; }
.owner-row a:hover { color: var(--accent); }
.owner-muted { color: var(--dim); font-size: 12px; }
.owner-snip { color: #cdd3db; font-size: 13px; flex: 1 1 100%; }
.owner-search { display: flex; gap: 8px; margin-bottom: 16px; }
.owner-search input[type="text"] { flex: 1; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.owner-tablewrap { overflow-x: auto; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.owner-table th { text-align: left; padding: 8px 10px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.owner-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.owner-table a { color: var(--text); text-decoration: none; }
.owner-table a:hover { color: var(--accent); }
.owner-list { display: flex; flex-direction: column; gap: 10px; }
.owner-item { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.owner-item-main { flex: 1; min-width: 0; }
.owner-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.owner-item-head a { text-decoration: none; }
.owner-item-head a:hover { color: var(--accent); }
.owner-item-body { margin: 0; color: #cdd3db; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.owner-flag { background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.owner-inline { margin: 0; }
.owner-del-btn { background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: color .15s, background .15s, border-color .15s; }
.owner-del-btn:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.owner-tool { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.owner-tool-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.owner-tool-form input, .owner-tool-form select { padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.owner-note { margin-top: 12px; }
.owner-note a { color: var(--accent); text-decoration: none; }

/* === Settings (Letterboxd-stil) === */
.settings { max-width: 640px; margin: 0 auto; }
.settings-title { font-size: 26px; margin: 0 0 2px; }
.settings-sub { color: var(--dim); margin: 0 0 22px; }
.settings-form { display: flex; flex-direction: column; gap: 18px; }
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.set-card-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: 0 0 16px; font-weight: 700; }
.set-field { margin-bottom: 16px; }
.set-field:last-child { margin-bottom: 0; }
.set-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.settings-form input[type="text"],
.settings-form textarea,
.settings-form select, .set-panel select {
    width: 100%; padding: 10px 12px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 9px; color: var(--text);
    font: inherit; font-size: 14px;
}
.settings-form textarea { resize: vertical; line-height: 1.5; }
.settings-form input:focus, .settings-form textarea:focus, .settings-form select:focus, .set-panel select:focus {
    outline: none; border-color: var(--accent);
}
.set-username-row { display: flex; align-items: center; gap: 0; }
.set-at { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; color: var(--dim); font-weight: 600; }
.set-username-row input { border-radius: 0 9px 9px 0 !important; }
.set-username-row input:disabled { opacity: .6; cursor: not-allowed; }
.set-select-wrap { position: relative; }
.set-select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.set-select-wrap select option { background: var(--surface-2); color: var(--text); }
.set-select-wrap::after {
    content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--dim); pointer-events: none; font-size: 12px;
}
.set-help { font-size: 12px; color: var(--dim); margin: 6px 0 0; line-height: 1.5; }
.set-help strong { color: var(--text); }
.set-warn { color: #e0b35a; }
.set-warn strong { color: #f0c878; }
.set-help-indent { margin-left: 28px; }
.set-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 2px; }
.set-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.set-check + .set-help { margin-bottom: 14px; }
.settings-back { text-align: center; margin-top: 18px; }
.settings-back a { color: var(--accent); text-decoration: none; }

/* === Settings tabovi === */
.settings { max-width: 880px; }
.settings-layout { display: flex; gap: 24px; align-items: flex-start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; width: 190px; flex-shrink: 0; position: sticky; top: 84px; }
.set-nav-item { text-align: left; padding: 10px 14px; border-radius: 9px; background: transparent; border: 0; color: var(--dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s; }
.set-nav-item:hover { color: var(--text); background: var(--surface-2); }
.set-nav-item.active { color: var(--accent); background: var(--surface); }
.set-panels { flex: 1; min-width: 0; }
.set-panel { display: none; }
.set-panel.active { display: block; animation: setFade .18s ease; }
@keyframes setFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.set-save { margin-top: 18px; }
@media (max-width: 720px) {
    .settings-layout { flex-direction: column; }
    .set-nav { flex-direction: row; flex-wrap: wrap; width: auto; position: static; gap: 6px; margin-bottom: 4px; }
    .set-nav-item { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; }
    .set-nav-item.active { border-color: var(--accent); }
}

/* Remove dugmići pored Choose (crveno) */
.avatar-btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-remove { background: transparent; color: #ff6b6b; border-color: #ff6b6b; }
.btn-remove:hover { background: #ff5b5b; color: #fff; border-color: #ff5b5b; }

/* === Account & security tab === */
.set-panel[data-panel="account"] .set-card { margin-bottom: 16px; }
.set-panel[data-panel="account"] .set-card:last-child { margin-bottom: 0; }
.set-inline-btn { margin-top: 4px; }
.settings-form input[type="email"],
.settings-form input[type="password"],
.set-panel input[type="text"],
.set-panel input[type="email"],
.set-panel input[type="password"] {
    width: 100%; padding: 10px 12px; background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 9px; color: var(--text);
    font: inherit; font-size: 14px;
}
.set-panel input:disabled { opacity: .6; cursor: not-allowed; }
.set-panel input:focus { outline: none; border-color: var(--accent); }
.set-danger { border-color: rgba(255,107,107,.4); }
.set-danger-title { color: #ff6b6b; }
.set-card code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; color: var(--text); }

/* === Blokiranje / privatnost === */
.inline-form { display: inline; margin: 0; }
.btn-block-user { color: var(--dim); }
.btn-block-user:hover { color: #ff6b6b; border-color: #ff6b6b; }
.profile-gate { text-align: center; padding: 44px 20px; font-size: 15px; }
.blocked-list { display: flex; flex-direction: column; gap: 4px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.blocked-row:last-child { border-bottom: 0; }
.blocked-user { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.blocked-user:hover { color: var(--accent); }

/* === Toggle switch redovi (Privacy) === */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.toggle-name { font-size: 14px; font-weight: 600; color: var(--text); }
.toggle-desc { font-size: 12px; color: var(--dim); line-height: 1.45; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; transition: background .2s, border-color .2s; cursor: pointer; }
.slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #8a909c; border-radius: 50%; transition: transform .2s, background .2s; }
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); background: #14171c; }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(230,180,80,.3); }

/* === Follow requests stranica === */
.reqs { max-width: 640px; margin: 0 auto; }
.reqs-title { font-size: 24px; margin: 0 0 18px; }
.reqs-list { display: flex; flex-direction: column; gap: 4px; }
.reqs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reqs-row:last-child { border-bottom: 0; }
.reqs-user { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.reqs-user:hover .reqs-name { color: var(--accent); }
.reqs-user-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reqs-name { font-weight: 600; font-size: 14px; }
.reqs-handle { font-size: 12px; color: var(--dim); }
.reqs-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Flash auto-fade */
.flash { transition: opacity .4s ease, transform .4s ease; }
.flash.flash-hide { opacity: 0; transform: translateX(-50%) translateY(-10px); }

/* === Profile extras: linkovi, lokacija, pinned === */
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 0; font-size: 13px; }
.profile-loc { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); }
.profile-loc svg { opacity: .85; }
.profile-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.profile-link:hover { text-decoration: underline; }
.pinned-row { margin-bottom: 26px; }

/* === Data export === */
.data-export { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.data-sub { font-size: 12px; color: var(--dim); margin: 20px 0 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
