:root{
  /* matte, darker base */
  --bg:#0c0f14;
  --bg2:#0a0d12;

  /* flatter surfaces */
  --panel:#11151c;
  --panel2:#0f131a;
  --card:#11151c;

  /* subtle separators */
  --line:#222a36;
  --line2:#2b3545;

  --text:#e7ebf2;
  --muted:#a3adbb;

  /* calmer accents */
  --accent:#6ea6ff;
  --accent2:#9aa6b5; /* mostly unused now */

  --good:#068818;

  /* much less “pill/rounded” */
  --radius: 10px;
  --radius2: 12px;

  /* flatter shadows */
  --shadow: 0 10px 30px rgba(0,0,0,.35);

}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  color:var(--text);
}

a{ color:inherit; }
.wrap{ max-width:1200px; margin:0 auto; padding:18px; }

.row{ display:flex; align-items:center; gap:12px; }
.between{ justify-content:space-between; }
.gap{ gap:10px; }
.stack{ display:flex; flex-direction:column; gap:10px; }

.muted{ color:var(--muted); }
.small{ font-size:13px; }
.kicker{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }

.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(7,10,16,.72);
  border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(5px);
}

.brand{
  text-decoration:none;
  font-size: 28px;
  font-weight:920;
  letter-spacing:.16em;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .dot{
  width:10px; height:10px; border-radius:999px;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(78,161,255,.12);
}

.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{ color:var(--text); background:rgba(255,255,255,.04); }

.auth a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
}
.auth a:hover{ color:var(--text); background:rgba(255,255,255,.04); }

.btn{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding:9px 12px;
  border-radius: 10px;
  font-weight: 900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow:none;
}
.btn:hover{
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.14);
  transform: none;
}
.btn:active{ transform:none; }

.btn.ghost{
  background: transparent;
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
}
.btn.ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.btn.primary{
  border-color: rgba(110,166,255,.30);
  background: rgba(0, 0, 0, 0.1);
}
.btn.primary:hover{
  background: rgba(0, 0, 0, 0.14);
  border-color: rgba(110,166,255,.38);
}

/* Green primary action button */
.btn.green{
  background: rgba(58, 208, 124, .16);   /* matte green */
  border: 1px solid rgba(58, 208, 124, .40);
  color: var(--text);
}
.btn.green:hover{
  background: rgba(58, 208, 124, .22);
  border-color: rgba(58, 208, 124, .52);
}


.panel{
  background: rgba(17,21,28,.92);
  border:1px solid rgba(255,255,255,.07);
  border-radius: var(--radius2);
  padding:16px;
  box-shadow: var(--shadow);
}

.flashes{ margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.flash{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(13,21,36,.7);
}
.flash.ok{ border-color:rgba(34,197,94,.35); }
.flash.error{ border-color:rgba(239,68,68,.35); }
.flash.warn{ border-color:rgba(234,179,8,.35); }

.footer{
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:32px;
  padding-top:18px;
  color:var(--muted);
}

/* --- layout: sidebar + content --- */
.layout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* sidebar */
.side{
  position:logical;
  top:92px;
}
.side .panel{ padding:14px; }
.field label{
  display:block;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin:12px 0 6px;
}
.field input, .field select, textarea{
  width:100%;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding:11px 12px;
  color:var(--text);
  outline:none;
}
.field input:focus, .field select:focus, textarea:focus{
  border-color: rgba(255,255,255,.18);
  box-shadow:none;
}
.actions{ display:flex; gap:10px; margin-top:14px; }
.actions .btn{ flex:1; justify-content:center; }

/* subnav pills (sort tabs) */
.pills{ display:flex; flex-wrap:wrap; gap:10px; }
.pilltab{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius: 10px; /* not full pill */
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight:800;
  font-size:13px;
}
.pilltab:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}
.pilltab.active{
  color:var(--text);
  border-color: rgba(110,166,255,.35);
  background: rgba(110,166,255,.10);
}

/* grid like posters */
.postergrid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap:14px;
}

.poster{
  text-decoration:none;
  border-radius: 12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  background: rgba(17,21,28,.65);
  transition: border-color .12s ease, background .12s ease;
}
.poster:hover{
  border-color: rgba(255,255,255,.12);
  background: rgba(17,21,28,.78);
  transform:none;
  box-shadow:none;
}

.poster_art{
  position:relative;
  height:240px;
  background:
    radial-gradient(220px 140px at 30% 25%, rgba(78,161,255,.18), rgba(0,0,0,0)),
    radial-gradient(220px 140px at 70% 15%, rgba(139,92,246,.14), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.30));
}

.poster_img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;     /* IMPORTANT: shows full image */
  background: rgba(0,0,0,.20);
}

.poster_fallback{
  position:absolute;
  inset:0;
  background:
    radial-gradient(240px 180px at 35% 25%, rgba(78,161,255,.22), rgba(0,0,0,0)),
    radial-gradient(240px 180px at 70% 35%, rgba(139,92,246,.18), rgba(0,0,0,0)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.32));
}

.poster_badges{
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.badge{
  font-size:12px;
  font-weight:900;
  border-radius:999px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,10,16,.50);
  color:var(--text);
}
.badge.muted{ color:var(--muted); }
.badge.good{ border-color: rgba(34,197,94,.35); background:rgba(34,197,94,.10); }

.poster_meta{
  padding:12px 12px 14px;
}
.poster_title{
  font-weight:950;
  line-height:1.15;
  margin-bottom:6px;
}


.showhero,
.profile_hero{
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.07);
}

.showhero.hasbanner::before,
.profile_hero::before{
  opacity: .14;      /* lower */
  filter: blur(6px); /* if you still want softness */
}

.showhero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.60));
}

.showhero_inner{
  position:relative;
  z-index:1;
  padding:18px;
  display:grid;
  grid-template-columns: 1fr 360px; /* right column for rating */
  gap:18px;
  align-items:center;         /* middle-right placement */
}

@media (max-width: 980px){
  .showhero_inner{ grid-template-columns: 1fr; }
}

.showleft{
  display:flex;
  gap:16px;
  align-items:center;
}

.showposter{
  width:180px;
  height:250px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  flex: 0 0 auto;
  max-width: 200px;
  max-height: 300px;
  object-fit: contain;
}

.showposter img{
  width:100%;
  height:100%;
  object-fit: contain;       /* IMPORTANT: fit full picture */
  background: rgba(0,0,0,.25);
}

.showmeta{ min-width:0; }

.showright{
  display:flex;
  justify-content:flex-end;  /* right side */
  align-items:center;        /* middle vertically */
}

.poster_art{ position:relative; height:240px; overflow:hidden; }
.poster_img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; }


/* existing half-star widget styles (kept) */
.starwrap{ display:flex; align-items:center; gap:14px; margin-top:8px; }
.stars{ position:relative; display:inline-block; font-size:32px; line-height:1; cursor:pointer; user-select:none; outline:none; }
.stars-base{ opacity:.25; }
.stars-fill{ position:absolute; left:0; top:0; width:0%; overflow:hidden; white-space:nowrap; }
.stars:focus{ box-shadow:0 0 0 4px rgba(78,161,255,.18); border-radius:12px; }



/* Make banner/gradient overlays click-through */
.showhero.hasbanner::before,
.showhero::after{
  pointer-events: none;
}

/* Ensure the actual content sits above overlays */
.showhero_inner{
  position: relative;
  z-index: 2;
}



.showhero { position: relative; }

/* Make sure left-side meta (incl. Edit show) is above any overlays/panels */
.showleft,
.showmeta{
  position: relative;
  z-index: 10;
}

/* In case the right panel is overlapping the left column */
.showright{
  position: relative;
  z-index: 5;
}


/* Prevent poster block from covering the meta row */
.showposter{
  position: relative;
  z-index: 1;
}
.showmeta{
  z-index: 20;
}


/* --- Home tile: rating/year/count layout --- */

/* Make sure the art area is a positioning context */
.poster_art{
  position:relative;
}

/* Big rating at bottom-left INSIDE image area */
.tile_rating{
  position:absolute;
  left:12px;
  bottom:12px;
  font-weight:950;
  font-size:19px;          /* bigger */
  letter-spacing:.01em;
  color: rgba(237, 200, 90, 0.95);   /* warm gold */
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}

/* Optional styling for the "Unrated" label */
.tile_rating.tile_unrated{
  font-size:16px;
  font-weight:900;
  color: var(--muted);
}

/* Year at bottom-right INSIDE image area, plain text */
.tile_year{
  position:absolute;
  right:12px;
  bottom:12px;
  font-weight:900;
  font-size:13px;
  color: rgba(230,234,242,.85);
  background: transparent;   /* no background */
  border: none;              /* no border */
  padding: 0;                /* no pill padding */
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}

/* Count at bottom-left of FULL tile (meta area), smaller */
.tile_count{
  margin-top:10px;
  font-size:12px;            /* smaller */
  color: var(--muted);
  z-index: 10;
}



.reviewlist{ display:flex; flex-direction:column; gap:12px; }
.reviewcard{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(7,10,16,.35);
  border-radius: 18px;
  padding:12px 14px;
}
.reviewuser{
  color: var(--text);
  text-decoration:none;
  font-weight:900;
}
.reviewuser:hover{ text-decoration:underline; }
.reviewtext{
  margin-top:10px;
  white-space: pre-wrap;
  line-height:1.45;
  color: rgba(230,234,242,.92);
}


.profile_layout{
  display:grid;
  grid-template-columns: 220px 1fr;  /* small left, big right */
  gap:18px;
  align-items:start;
}

@media (max-width: 980px){
  .profile_layout{ grid-template-columns: 1fr; }
}

.profile_side{
  position: sticky;
  top: 86px;
}

.profile_stats{
  padding: 12px;           /* smaller panel */
  border-radius: 18px;
}



/* --- avatars --- */
.avatar_sm{
  width:24px; height:24px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.avatar_sm img{ width:100%; height:100%; object-fit:cover; display:block; }
.avatar_lg{
  width:72px; height:72px;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.avatar_lg img{ width:100%; height:100%; object-fit:cover; display:block; }
.avatar_fallback{
  width:100%; height:100%;
  background: radial-gradient(18px 18px at 40% 35%, rgba(78,161,255,.22), rgba(0,0,0,0)),
              radial-gradient(20px 20px at 70% 65%, rgba(139,92,246,.18), rgba(0,0,0,0)),
              rgba(255,255,255,.06);
}

/* clickable user in topbar */
.nav_user{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 8px;
  border-radius:14px;
}
.nav_user:hover{ background:rgba(255,255,255,.04); }

/* --- profile hero banner + theme --- */
.profile_hero{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(10,16,28,.55);
  box-shadow: var(--shadow);
}

.profile_hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background-image: var(--pBanner);
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.05);
  opacity: .18;
  transform: scale(1.08);
  pointer-events:none;
}

.profile_hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.60));
  pointer-events:none;
}

.profile_hero_inner{
  position:relative;
  z-index:2;
  padding:16px;
  /* theme accent */
  --pAccent: var(--accent);
}

.profile_hero_inner .btn{
  background: linear-gradient(135deg, var(--pAccent), rgba(139,92,246,.9));
}
.profile_hero_inner .btn.ghost:hover{
  border-color: color-mix(in srgb, var(--pAccent) 45%, rgba(255,255,255,.10));
  background: color-mix(in srgb, var(--pAccent) 14%, rgba(78,161,255,.06));
}

.role_tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius: 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}

.role_tag.tiny{
  padding:4px 8px;
  font-size:11px;
  border-radius: 9px;
}



/* =========================================================
   SQUARE MODE — NO CURVED EDGES ANYWHERE
   Put this at the BOTTOM of styles.css
========================================================= */

:root{
  --radius: 0px;
  --radius2: 0px;
}

/* hard override: kill all rounding */
*,
*::before,
*::after{
  border-radius: 0 !important;
}

/* also kill any clip rounding from overflow containers */
.poster,
.panel,
.btn,
.field input,
.field select,
textarea,
.pilltab,
.role_tag,
.flash,
.topbar,
.brand,
.nav_user,
.showhero,
.profile_hero,
.showposter,
.poster_art,
.poster_img,
.reviewcard{
  border-radius: 0 !important;
}

/* avatars become square too */
.avatar_sm,
.avatar_lg,
.avatar_sm img,
.avatar_lg img,
.avatar_fallback{
  border-radius: 0 !important;
}


/* Text outline for home-tile overlays */
.tile_year,
.tile_rating,
.badge.unrated{
  /* real stroke (Chromium/Edge/Safari) */
  -webkit-text-stroke: 0.2px rgba(189, 189, 189, 0.525);

  /* universal fallback outline */
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.50),
     0px -1px 0 rgba(0,0,0,.50),
     1px -1px 0 rgba(0,0,0,.50),
    -1px  0px 0 rgba(0,0,0,.50),
     1px  0px 0 rgba(0,0,0,.50),
    -1px  1px 0 rgba(0,0,0,.50),
     0px  1px 0 rgba(0,0,0,.50),
     1px  1px 0 rgba(0,0,0,.50);
}



/* Bigger star, but keep same color as the rating text */
.tile_star{
  color: inherit !important;
  font-size: 26px;   /* adjust: 20–26 */
  line-height: 1;
  font-weight: 900;
  position: relative;
  top: 1px;
}



/* Unrated badge only: bottom-left overlay inside the poster tile */
.badge.unrated.bottom_left{
  position: absolute;
  left: 10px;
  bottom: 10px;
  top: auto;
  right: auto;
}


/* Make dropdown (select) text readable */
.field select{
  color: var(--text) !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
}

/* The dropdown list items (important on Windows/Chrome) */
.field select option{
  color: #e7ebf2;      /* readable */
  background: #0f131a; /* matte dark */
}


.review_votes{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}

.review_votes form{ margin:0; }

.vote_btn{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  padding: 6px 10px;
  font-weight: 900;
  cursor: pointer;
}

.vote_btn.on{
  background: rgba(110,166,255,.14);
  border-color: rgba(110,166,255,.35);
}

.vote_score{
  min-width: 28px;
  text-align:center;
  font-weight: 900;
}


.top_quote{
  opacity: .92;
  font-style: italic;
}




/* Top Shows: vote score to the left of the quoted review */
.top_review_row{
  display:flex;
  gap: 4px;
  margin-top:-12px;
  align-items:flex-start;
  margin-left:-38px;
}

.vote_signed{
  width:56px; 
  margin-left:-14px;
  margin-top:-11px;    
  text-align:left;
  font-weight:900;
  font-size:18px;
  line-height:1.1;
  opacity:.95;
}

.vote_signed.pos{ color: rgba(120, 255, 140, .95); }  /* positive */
.vote_signed.neg{ color: rgba(255, 120, 120, .95); }  /* negative */
.vote_signed.zero{ color: rgba(200, 210, 225, .75); } /* zero */


/* highlight active toggle button */
.btn.ghost.on{
  border-color: rgba(255,255,255,.30) !important;
  background: rgba(255,255,255,.06) !important;
  font-weight: 900;
}


/* =========================================================
   Top Shows page isolation
   Prevent shared home-tile styles from leaking in here.
========================================================= */
.topshows_page .ts_card{
  display:flex;
  gap:12px;
  padding:12px;
  border:1px solid rgba(255,255,255,.07);
  align-items:flex-start;
}

.topshows_page .ts_rank{
  width:56px;
  font-weight:900;
  opacity:.9;
}

.topshows_page .ts_thumb{
  width:70px;
  flex:0 0 auto;
}

.topshows_page .ts_thumb img{
  width:70px;
  height:105px;
  object-fit:cover;
  display:block;
}

.topshows_page .ts_thumb_fallback{
  width:70px;
  height:105px;
  background: rgba(255,255,255,.05);
}

.topshows_page .ts_meta{
  flex:1;
  min-width:0;
}

.topshows_page .ts_title{
  font-weight:900;
}

.topshows_page .ts_badges{
  margin-top:8px;
  display:flex;
  gap:10px;
  font-size:10px;
  flex-wrap:wrap;
}

.topshows_page .ts_review{
  width:420px;
  max-width:42vw;
}

/* vote number to left of quote */
.topshows_page .ts_quote_row{
  display:flex;
  gap:14px;
  margin-top:0px;
  align-items:flex-start;
}

.topshows_page .ts_vote{
  width:56px;
  text-align:right;
  font-weight:900;
  font-size:20px;
  margin-top: -24px;
  margin-left: -72px;
  line-height:1;
  opacity:.95;
}

.topshows_page .ts_vote.pos{ color: rgba(120, 255, 140, .95); }
.topshows_page .ts_vote.neg{ color: rgba(255, 120, 120, .95); }
.topshows_page .ts_vote.zero{ color: rgba(200, 210, 225, .75); }

/* quote nudge (adjust if you want) */
.topshows_page .ts_quote{
  margin-left: -82px;
  white-space: pre-wrap;
  line-height: 1.35;
  font-size: 16px;
  margin-top: -22px;
}

/* HARD BLOCK: if any home-page tile overlays accidentally appear on this page, hide them */
.topshows_page .tile_year,
.topshows_page .tile_rating,
.topshows_page .badge.unrated,
.topshows_page .postergrid,
.topshows_page .poster,
.topshows_page .poster_art,
.topshows_page .poster_meta{
  display:none !important;
}



/* Top Shows: big plain average rating (no badge) */
.topshows_page .ts_avg{
  font-weight: 900;
  font-size: 22px;     /* bump to 20–22 if you want */
  line-height: 1.1;
  margin-top: 8px;
}




/* Top Shows: limit displayed review to N lines (does NOT limit actual review length) */
.topshows_page .ts_quote{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;   /* <-- set how many lines you want */
  overflow: hidden;
}



/* Show detail page: make community reviews column wider */
.layout{
  display: grid;
  grid-template-columns: 0.55fr 0.95fr;  /* LEFT wider, RIGHT smaller */
  gap: 16px;
}


.dropzone{
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  padding: 14px;
  cursor: pointer;
  user-select: none;
}

.dropzone.hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.35);
}

.dropzone code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* ===== Clamp poster size on individual show page ===== */
.showhero .showposter{
  width: auto !important;          /* don't stretch */
  max-width: 220px !important;     /* <- change this */
  max-height: 320px !important;    /* <- change this */
}

.showhero .showposter img{
  width: auto !important;          /* key: don't fill container */
  height: auto !important;
  max-width: 100px !important;     /* <- match above */
  max-height: 220px !important;    /* <- match above */
  object-fit: contain !important;
  display: block !important;
  align-items: center !important;
}

/* Individual show page poster clamp */
.poster_img{
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;   /* adjust */
  max-height: 300px !important;  /* adjust */
  object-fit: contain !important;
  display: block !important;
  align-items: center !important;

}

/* Clamp any poster image loaded from /static/posters/ */
img[src^="/static/posters/"]{
  width: auto !important;
  height: auto !important;
  max-width: 220px !important;
  max-height: 360px !important;
  object-fit: contain !important;
  display: block !important;
  align-items: center !important;
}


/* Move only poster + meta down */
.showhero .showleft{
  transform: translateY(14px) !important;
}


/* ===== Top Shows page: lock poster thumbnail size ===== */
.topshows_page .ts_thumb{
  width: 110px;          /* locked poster box width */
  height: 160px;         /* locked poster box height */
  display: block;
  overflow: hidden;
}

.topshows_page .ts_thumb img{
  width: 110px !important;
  height: 160px !important;
  display: block !important;
  object-fit: cover !important;   /* fills box; no stretching */
}


:root{
  --accent: #ffffff;           /* fallback if body doesn't override */
  --accentSoft: color-mix(in srgb, var(--accent) 25%, transparent);
  --accentFaint: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* =========================================================
   ACCENT OUTLINES (site-wide)
   ========================================================= */

/* Major containers / cards / panels */
.panel,
.poster,
.reviewcard,
.ts_card,
.showhero_inner,
.profile_stats,
.dropzone,
.seg,
.nav,
.tablewrap {
  border: 1px solid var(--accentSoft);
}

/* Tiles / show cards on home */
.tile,
.show_tile,
.poster_art,
.ts_thumb {
  border: 1px solid var(--accentFaint);
}

/* Form fields get accent border */
input, select, textarea {
  border: 1px solid var(--accentFaint);
}

/* Focus ring uses accent */
input:focus, select:focus, textarea:focus,
.btn:focus, a:focus {
  outline: 2px solid var(--accentSoft);
  outline-offset: 2px;
}

/* Hover increases accent visibility */
.panel:hover,
.poster:hover,
.reviewcard:hover,
.ts_card:hover,
.dropzone.hover {
  border-color: var(--accentSoft);
  box-shadow: 0 0 0 1px var(--accentFaint);
}

/* Make badges/pills optionally use accent outline too */
.badge,
.role_tag {
  border: 1px solid var(--accentFaint);
}

/* If you want hard “Letterboxd-style” square edges */
.panel, .poster, .reviewcard, .ts_card, .badge, .role_tag, .dropzone {
  border-radius: 0 !important;
}

/* FORCE poster images to fill their existing cell (override everything) */
.showposter{
  position: relative !important;
  overflow: hidden !important;
}

.showposter img,
.showposter .poster_img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}



/* ==== HOME PAGE TILE IMAGE FILL (FORCE) ==== */

/* These are the common wrappers you’ve used in your project.
   We target multiple likely containers so it hits without guessing. */
.poster_art,
.tile_art,
.showtile_art,
.card_art,
.ts_thumb,
.tile_thumb,
.showthumb,
.posterthumb{
  position: relative !important;
  overflow: hidden !important;
}

/* Force any image inside those areas to fill */
.poster_art img,
.tile_art img,
.showtile_art img,
.card_art img,
.ts_thumb img,
.tile_thumb img,
.showthumb img,
.posterthumb img{
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Make sure any fallback/gradient is behind the image */
.poster_fallback,
.ts_thumb_fallback,
.tile_fallback,
.art_fallback{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.poster_art img,
.tile_art img,
.showtile_art img,
.card_art img,
.ts_thumb img,
.tile_thumb img,
.showthumb img,
.posterthumb img{
  position: absolute;
  inset: 0 ;
  z-index: 0 ;
}

.poster_sub{
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
  z-index: 16;
}


.profile_avg_box{
  margin-left:auto;              /* pushes it to the far right */
  text-align:right;
  border:1px solid var(--pAccent, #3b82f6);
  padding:10px 12px;
  border-radius:0;               /* square */
  min-width:160px;
}

.profile_avg_value{
  margin-top:6px;
  font-size:26px;
  font-weight:800;
  line-height:1.0;
}

.profile_avg_star{
  font-size:30px;
  font-weight:900;
  margin-right:6px;
}

:root{
  --accent:#22c55e;           /* fallback if user has none */
  --accent2: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent3: color-mix(in srgb, var(--accent) 25%, transparent);
}