/* Family Picks — one coherent stylesheet in the site palette (cream / brown). */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,sans-serif;background:#faf9f7;color:#1a1a1a;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;letter-spacing:-0.01em;color:#1a1a1a}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
a{color:#6b5a4e}
.app{max-width:820px;margin:0 auto;padding:20px 16px 48px}
.back{display:inline-block;color:#736d64;text-decoration:none;font-size:13px;font-weight:600;margin-bottom:14px}
.back:hover{color:#1a1a1a}
.loading{text-align:center;color:#736d64;padding:80px 20px;font-size:14px}

/* ---- landing ---- */
.landing{text-align:center;padding:48px 16px 20px}
.landing h1{font-size:34px;margin-bottom:6px}
.landing-sub{color:#736d64;font-size:15px;margin-bottom:26px}
.profile-select{width:100%;max-width:300px;padding:13px 40px 13px 18px;border-radius:12px;border:1.5px solid #d4cfc8;font-size:15px;font-weight:600;color:#1a1a1a;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a847b' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none}
.profile-select:focus,.profile-select:hover{border-color:#6b5a4e}
.manage{margin-top:26px;font-size:13px;color:#736d64}
.manage details{display:inline-block;text-align:left}
.manage summary{cursor:pointer;font-weight:600;list-style:none}
.manage summary::-webkit-details-marker{display:none}
.manage-list{margin-top:10px;background:#fff;border-radius:12px;padding:4px 14px;border:1px solid #e8e4de;min-width:240px}
.manage-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #f0ece6;font-weight:600;font-size:13px}
.manage-row:last-child{border-bottom:none}
.link-danger{background:none;border:none;color:#c05a4a;font-size:12px;font-weight:600;padding:2px 6px;border-radius:6px}
.link-danger:hover{background:#fdf0ee}
.card-remove{display:block;margin-top:8px;padding:4px 6px 4px 0;color:#a94536}
.suggestions{max-width:560px;margin:36px auto 0;text-align:left}
.suggestions h3{font-size:16px;margin-bottom:10px}
.suggestion{background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:8px;border:1px solid #e8e4de;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.sg-meta{font-size:11px;color:#736d64;margin-bottom:4px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sg-type{background:#f0ece6;color:#6b5a4e;border-radius:6px;padding:1px 7px;font-weight:600}
.sg-dismiss{margin-left:auto;background:none;border:none;color:#736d64;font-size:11px;font-weight:600}
.sg-dismiss:hover{color:#c05a4a}

/* ---- onboarding ---- */
.onboard{max-width:560px;margin:0 auto}
.onboard-step{background:#fff;border-radius:16px;padding:26px 24px;border:1px solid #e8e4de;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.step-num{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#f0ece6;color:#6b5a4e;margin-bottom:12px;letter-spacing:.3px}
.step-title{font-size:20px;margin-bottom:4px}
.step-sub{font-size:13px;color:#736d64;margin-bottom:16px}
.input{width:100%;padding:12px 14px;border-radius:10px;border:1.5px solid #d4cfc8;font-size:15px;outline:none;background:#fff}
.input:focus{border-color:#6b5a4e}
.fav-group{margin-bottom:18px}
.fav-label{font-size:13px;font-weight:600;margin-bottom:6px}
.fav-row{display:flex;gap:8px}
.fav-row .input{font-size:14px;padding:10px 12px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{padding:4px 6px 4px 12px;border-radius:999px;font-size:12px;font-weight:600;background:#f0ece6;color:#5a544c;display:inline-flex;align-items:center;gap:4px}
.chip button{background:none;border:none;color:#a39a90;font-size:15px;line-height:1;padding:0 4px}
.chip button:hover{color:#c05a4a}
.btn{padding:10px 18px;border-radius:10px;border:none;font-weight:600;font-size:14px;transition:background .15s}
.btn-dark{background:#1a1a1a;color:#faf9f7}.btn-dark:hover{background:#4a4540}
.btn-dark:disabled{background:#d4cfc8;cursor:default}
.btn-light{background:#f0ece6;color:#5a544c}.btn-light:hover{background:#e0dbd4;color:#1a1a1a}
.btn-block{display:block;width:100%;margin-top:16px;padding:13px}
.btn-link{background:none;border:none;color:#736d64;font-size:13px;display:block;margin:10px auto 0;padding:6px}
.btn-link:hover{color:#1a1a1a}
.quiz-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:6px;border-radius:10px;border:1px solid #e8e4de;background:#fff}
.quiz-row.dim{opacity:.6}
.quiz-title{font-weight:600;font-size:13px;flex:1;min-width:0}
.quiz-meta{color:#a39a90;font-size:11px;margin-left:6px;font-weight:400}
.progress{height:6px;background:#ece8e2;border-radius:3px;margin-bottom:6px;overflow:hidden}
.progress>div{height:100%;background:#6b5a4e;border-radius:3px;transition:width .3s}
.progress-txt{font-size:12px;color:#736d64;text-align:center;margin-bottom:14px}

/* ---- top bar ---- */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pill{padding:7px 14px;border-radius:999px;font-size:13px;font-weight:600;border:1.5px solid #e0dbd4;background:#fff;color:#1a1a1a}
.pill:hover{border-color:#6b5a4e}
.watch-label{font-size:11px;color:#736d64;font-weight:600;margin-left:4px}
.watch-pill{padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;border:1.5px solid #e0dbd4;background:#fff;color:#736d64;transition:all .15s}
.watch-add{padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600;border:1.5px dashed #d4cfc8;background:#fff;color:#736d64}
.watch-add:hover{border-color:#6b5a4e;color:#6b5a4e}
.btn-sm{padding:7px 14px;border-radius:999px;font-size:12px;font-weight:600;border:1.5px solid #e0dbd4;background:#fff;color:#5a544c;transition:all .15s}
.btn-sm:hover{border-color:#6b5a4e;color:#1a1a1a}
.btn-accent{border-color:#e6d2a8;background:#fff8ea;color:#9a6b12}
.btn-accent:hover{border-color:#d9b96f;background:#fdf1d6;color:#7a5309}

/* ---- views / tabs / filters ---- */
.views,.tabs{display:flex;gap:4px;background:#f0ece6;border-radius:12px;padding:4px;margin-bottom:12px;flex-wrap:wrap}
.views button,.tabs button{flex:1;padding:9px 12px;border:none;border-radius:9px;background:transparent;color:#6b6560;font-weight:500;font-size:13px;white-space:nowrap;transition:all .15s}
.views button:hover,.tabs button:hover{color:#1a1a1a}
.views button.active,.tabs button.active{background:#fff;color:#1a1a1a;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.tabs{max-width:380px;margin:0 auto 14px}
.search-wrap{position:relative;margin-bottom:12px}
.search{width:100%;padding:11px 16px;border-radius:12px;border:1.5px solid #e0dbd4;font-size:14px;outline:none;background:#fff}
.search:focus{border-color:#6b5a4e}
.search-add{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
/* keep typed text clear of the '+ Add & rate' button, which shows whenever the box has text */
.search-wrap #search:not(:placeholder-shown){padding-right:116px}
.genres{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-bottom:16px}
.gbtn{padding:6px 12px;border-radius:999px;font-size:12px;font-weight:500;border:1.5px solid #e0dbd4;background:#fff;color:#6b6560;transition:all .15s}
.gbtn:hover{border-color:#c4bdb3;color:#1a1a1a}
.gbtn.active{background:#1a1a1a;color:#fff;border-color:#1a1a1a}

/* ---- notice / profile ---- */
.notice{background:#fff8ea;border:1.5px solid #f1dfb8;border-radius:14px;padding:14px 18px;margin-bottom:14px;text-align:center}
.notice b{display:block;font-size:14px;color:#7a5309;margin-bottom:2px}
.notice p{font-size:12px;color:#9a7a2a;margin-bottom:10px}
.profile-box{background:#fff;border-radius:14px;padding:16px 18px;margin-bottom:14px;border:1px solid #e8e4de}
.profile-title{font-weight:600;font-size:14px;margin-bottom:10px}
.bar-row{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.bar-label{font-size:11px;width:130px;color:#5a544c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{flex:1;background:#f0ece6;border-radius:3px;height:8px;overflow:hidden}
.bar-fill{height:100%;border-radius:3px}
.bar-pct{font-size:10px;color:#a39a90;width:30px;text-align:right}
.themes{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
.theme-tag{background:#f0ece6;color:#6b6560;padding:2px 8px;border-radius:8px;font-size:10px}
.theme-tag.hot{background:#e9e0d3;color:#6b5a4e;font-weight:600}

/* ---- cards ---- */
.card{display:flex;gap:14px;align-items:flex-start;background:#fff;border-radius:14px;padding:14px;margin-bottom:10px;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 3px rgba(0,0,0,.04);cursor:pointer;transition:box-shadow .2s}
.card:hover{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.poster{flex:0 0 76px;width:76px;height:112px;border-radius:8px;overflow:hidden;background:#ece8e2;display:flex;align-items:center;justify-content:center;color:#b8b0a6;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.poster img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{flex:1;min-width:0}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.card-info{flex:1;min-width:0}
.card-title{font-weight:600;font-size:15px;line-height:1.3}
.card-toggle{all:unset;cursor:pointer;font:inherit;color:inherit;overflow-wrap:anywhere}
.card-toggle:focus-visible{outline:2px solid #6b5a4e;outline-offset:2px;border-radius:4px}
.card-meta{color:#736d64;font-size:12px;margin-left:5px;font-weight:400}
.badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px;align-items:center}
.badge{font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;white-space:nowrap}
.score{font-size:11px;font-weight:700;padding:2px 7px;border-radius:6px}
.card-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;max-width:150px}
.tag{padding:3px 9px;border-radius:999px;font-size:10px;font-weight:600;white-space:nowrap}
.stream{padding:3px 9px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap;letter-spacing:.3px}
.stars{display:flex;align-items:center;gap:1px;margin-top:8px}
.star{background:none;border:none;font-size:22px;line-height:1;color:#e0dbd4;padding:2px 1px;transition:color .1s}
.star::before{content:"\2605"}
.star.lit{color:#f59e0b}
.stars:hover .star{color:#e0dbd4}
.stars:hover .star.hovered{color:#fbbf24}
.clear{background:none;border:none;color:#736d64;font-size:11px;font-weight:600;padding:2px 8px;margin-left:4px;border-radius:6px}
.clear:hover{color:#c05a4a;background:#fdf0ee}
.hint{font-size:11px;color:#736d64;margin-top:6px}
.reason{margin-top:10px;padding:10px 12px;background:#faf9f7;border-radius:10px;font-size:13px;color:#5a544c;line-height:1.5}
.details{margin-top:10px;font-size:12px;color:#5a544c;line-height:1.5;border-top:1px solid #f0ece6;padding-top:8px}
.details div{margin-bottom:3px}
.details:empty{display:none}
.people{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.person{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600}
.more{display:block;margin:20px auto;padding:11px 28px;border-radius:999px;border:none;background:#1a1a1a;color:#fff;font-weight:600;font-size:13px}
.more:hover{background:#4a4540}
.empty{text-align:center;color:#736d64;padding:40px 20px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.empty .btn{margin-top:12px}
.footer{text-align:center;margin-top:24px;padding:16px 0 0;border-top:1px solid #ece8e2;color:#736d64;font-size:11px}
.footer .btn-sm{margin-top:10px}

/* ---- ratings view ---- */
.sort-bar{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;align-items:center;font-size:11px;color:#736d64;font-weight:600}
.sort-btn{padding:5px 12px;border-radius:999px;border:1.5px solid #e0dbd4;background:#fff;font-size:11px;font-weight:600;color:#6b6560}
.sort-btn.active{background:#1a1a1a;color:#fff;border-color:#1a1a1a}
.summary{display:flex;gap:18px;justify-content:center;padding:6px 0 14px;color:#6b6560;font-size:12px;font-weight:600}
.rated{display:flex;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:10px 12px;margin-bottom:6px;border:1px solid rgba(0,0,0,.05)}
.rated .poster{flex:0 0 44px;width:44px;height:64px;border-radius:6px;font-size:8px}
.rated-info{flex:1;min-width:0}
.rated-title{font-weight:600;font-size:13px}
.rated-meta{font-size:11px;color:#736d64;margin-top:2px}
.rated .stars{margin-top:0;flex-shrink:0}
.rated .star{font-size:18px}

/* ---- overlays ---- */
.overlay{position:fixed;inset:0;background:rgba(26,26,26,.45);z-index:100;display:flex;align-items:center;justify-content:center;padding:16px}
.box{background:#fff;border-radius:16px;padding:22px;width:100%;max-width:420px;box-shadow:0 20px 60px rgba(0,0,0,.2);max-height:90vh;overflow-y:auto}
.box h3{font-size:18px;margin-bottom:4px}
.box p{font-size:13px;color:#736d64;margin-bottom:14px}
.box .input,.box select,.box textarea{width:100%;padding:10px 14px;border-radius:10px;border:1.5px solid #d4cfc8;font-size:14px;outline:none;background:#fff;margin-bottom:10px}
.box textarea{min-height:90px;resize:vertical}
.box .input:focus,.box select:focus,.box textarea:focus{border-color:#6b5a4e}
.big-stars{display:flex;justify-content:center;gap:4px;margin:2px 0}
.big-stars .star{font-size:32px}
.rating-lbl{text-align:center;font-size:12px;color:#736d64;font-weight:600;min-height:18px;margin-bottom:8px}
.box-btns{display:flex;gap:8px;margin-top:8px}
.box-btns .btn{flex:1;padding:12px}

@media(max-width:600px){
  .app{padding:16px 12px 40px}
  .views button{flex:1 1 40%}
  .card{gap:10px;padding:12px}
  .poster{flex-basis:64px;width:64px;height:94px}
  .card-right{max-width:110px}
  .bar-label{width:100px}
  .topbar-right{width:100%}
}
