/* Trips Point Morocco — Adaptive Cinema V14
   Adds mood-based personalization, profile sync UX and community feedback over the cinema discovery shell. */
:root{
  --t14-accent:#e5b65d;
  --t14-accent2:#c76539;
  --t14-glass:rgba(20,24,20,.78);
  --t14-panel:#151915;
  --t14-border:rgba(255,255,255,.13);
}
.tpm14-home{background:#090b09}
.tpm14-hero{height:min(82svh,840px);min-height:640px}
.tpm14-hero .tpm13-hero__content{bottom:22%;width:min(590px,42vw)}
.tpm14-hero .tpm13-hero__scrim{background:linear-gradient(90deg,rgba(4,5,4,.92) 0%,rgba(4,5,4,.74) 26%,rgba(4,5,4,.34) 50%,rgba(4,5,4,.06) 75%,rgba(4,5,4,.02)),linear-gradient(0deg,rgba(9,11,9,.64),transparent 42%)}
.tpm14-library{margin-top:-40px;background:linear-gradient(transparent,#090b09 42px)}

/* Mood console */
.tpm14-mood-console{position:relative;z-index:30;width:calc(100% - 6.4vw);margin:-92px 3.2vw 30px;padding:20px 22px 18px;border:1px solid var(--t14-border);border-radius:12px;background:linear-gradient(135deg,rgba(30,35,30,.92),rgba(14,17,14,.86));box-shadow:0 26px 80px rgba(0,0,0,.48);backdrop-filter:blur(18px);display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.55fr);gap:28px;align-items:center}
.tpm14-mood-console__copy small,.tpm14-community .tpm13-rail__head small{display:block;color:var(--t14-accent);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.18em}
.tpm14-mood-console__copy h2{margin:5px 0 6px;font-size:clamp(24px,2.5vw,38px);line-height:1.02;letter-spacing:-.035em}
.tpm14-mood-console__copy p{margin:0;max-width:520px;color:#a9a69e;font-size:12px;line-height:1.55}
.tpm14-moods{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:4px 2px 6px}
.tpm14-moods::-webkit-scrollbar{display:none}
.tpm14-mood{flex:0 0 auto;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.05);color:#dedbd2;font:inherit;font-size:12px;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s,transform .18s,color .18s}
.tpm14-mood:hover,.tpm14-mood:focus-visible{border-color:rgba(229,182,93,.72);transform:translateY(-1px);outline:0}
.tpm14-mood.is-active,.tpm14-mood[aria-pressed="true"]{background:var(--t14-accent);border-color:var(--t14-accent);color:#17130c}
.tpm14-mood--reset{color:#8f8c85;border-style:dashed}

/* Mood rail distinction */
.tpm14-mood-rail{padding-top:8px}
.tpm14-mood-rail .tpm13-rail__head h2:after{content:'';display:inline-block;width:7px;height:7px;margin-left:9px;border-radius:50%;background:var(--t14-accent);vertical-align:middle;box-shadow:0 0 0 5px rgba(229,182,93,.09)}

/* Recommendation feedback */
.tpm14-feedback{display:flex;align-items:center;gap:6px;margin-top:9px;padding-top:8px;border-top:1px solid rgba(255,255,255,.08)}
.tpm14-feedback>span{margin-right:auto;color:#817f79;font-size:9px}
.tpm14-feedback button{width:25px;height:25px;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:#202520;color:#d6d2ca;font-weight:900;cursor:pointer}
.tpm14-feedback button.is-active{background:var(--t14-accent);border-color:var(--t14-accent);color:#17130c}
.tpm14-preview-feedback{display:flex;align-items:center;gap:8px;margin-top:17px;padding-top:15px;border-top:1px solid rgba(255,255,255,.08)}
.tpm14-preview-feedback span{margin-right:auto;color:#a8a59d;font-size:12px}
.tpm14-preview-feedback button{min-height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.2);border-radius:5px;background:#202520;color:#e6e2da;font-weight:750;cursor:pointer}
.tpm14-preview-feedback button:hover{border-color:#fff}

/* Community feed */
.tpm14-community{margin:28px 0 14px}
.tpm14-community .tpm13-rail__head{align-items:flex-end}
.tpm14-community .tpm13-rail__head h2{margin:3px 0 0}
.tpm14-community .tpm13-rail__head>span{color:#77756f;font-size:10px}
.tpm14-community__track{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:14px 3.2vw 28px}
.tpm14-community__track::-webkit-scrollbar{display:none}
.tpm14-community-card{flex:0 0 clamp(270px,25vw,390px);min-height:185px;padding:17px;border:1px solid rgba(255,255,255,.09);border-radius:7px;background:linear-gradient(145deg,#171b17,#111411);scroll-snap-align:start}
.tpm14-community-card__top{display:flex;align-items:center;gap:10px}
.tpm14-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#2c342d;color:#f0c872;font-weight:900}
.tpm14-community-card strong{display:block;font-size:12px}
.tpm14-community-card small{display:block;margin-top:3px;color:#d3a94f;font-size:9px}
.tpm14-community-card p{margin:15px 0;color:#c0bdb4;font-size:12px;line-height:1.55}
.tpm14-community-card a{font-size:10px;color:#8d8a83;text-decoration:none}
.tpm14-community-card a:hover{color:#fff}

/* Header profile */
.tpm14-profile-trigger{min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.05);color:#fff;cursor:pointer}
.tpm14-profile-trigger span{font-size:14px}
.tpm14-profile-trigger em{font-style:normal;font-size:11px;font-weight:800}
.tpm14-profile{position:fixed;inset:0;z-index:1650;visibility:hidden;pointer-events:none}
.tpm14-profile.is-open{visibility:visible;pointer-events:auto}
.tpm14-profile__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.66);opacity:0;transition:.2s}
.tpm14-profile.is-open .tpm14-profile__backdrop{opacity:1}
.tpm14-profile__panel{position:absolute;top:0;right:0;width:min(92vw,420px);height:100%;overflow:auto;padding:28px 24px;background:#111411;border-left:1px solid rgba(255,255,255,.08);transform:translateX(100%);transition:.25s}
.tpm14-profile.is-open .tpm14-profile__panel{transform:none}
.tpm14-profile__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.08)}
.tpm14-profile__head small{color:var(--t14-accent);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.16em}
.tpm14-profile__head h2{margin:5px 0 0;font-size:28px;letter-spacing:-.035em}
.tpm14-profile__head button{width:38px;height:38px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:#1a1f1a;color:#fff;font-size:24px}
.tpm14-profile__mood{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.tpm14-profile__mood span{color:#88857e;font-size:11px}
.tpm14-profile__mood strong{color:#f0c872;font-size:12px}
.tpm14-profile__section{padding:18px 0}
.tpm14-profile__section h3{margin:0 0 10px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#aaa79f}
.tpm14-profile__interests{display:flex;flex-wrap:wrap;gap:7px}
.tpm14-profile__interests span{padding:7px 9px;border-radius:999px;background:#1d231e;color:#c6c2ba;font-size:10px}
.tpm14-profile__stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.tpm14-profile__stats>div{padding:15px;border-radius:7px;background:#181d18}
.tpm14-profile__stats strong{display:block;font-size:24px}
.tpm14-profile__stats span{display:block;margin-top:3px;color:#8a8780;font-size:10px}
.tpm14-profile__privacy{margin:18px 0;color:#7f7d76;font-size:10px;line-height:1.55}
.tpm14-profile__reset{width:100%;min-height:42px;border:1px solid rgba(255,255,255,.18);border-radius:5px;background:transparent;color:#ddd9d0;font-weight:800;cursor:pointer}

/* Slightly denser cinema feel */
.tpm14-home .tpm13-card{flex-basis:clamp(230px,21vw,340px)}
.tpm14-home .tpm13-track{gap:6px}
.tpm14-home .tpm13-rail{margin-bottom:4px}
.tpm14-home .tpm13-card:hover .tpm13-card__stage,.tpm14-home .tpm13-card:focus-within .tpm13-card__stage{transform:scale(1.16)}

/* Accessibility */
.tpm14-mood:focus-visible,.tpm14-profile-trigger:focus-visible,.tpm14-profile__reset:focus-visible,.tpm14-feedback button:focus-visible,.tpm14-preview-feedback button:focus-visible{outline:2px solid #fff;outline-offset:2px}

@media(max-width:1040px){
  .tpm14-profile-trigger em{display:none}
  .tpm14-profile-trigger{width:37px;padding:0;justify-content:center}
  .tpm14-mood-console{grid-template-columns:1fr;margin-top:-72px}
}
@media(max-width:782px){
  .tpm14-hero{height:78svh;min-height:570px}
  .tpm14-hero .tpm13-hero__content{bottom:22%;width:auto}
  .tpm14-mood-console{width:calc(100% - 8vw);margin:-58px 4vw 18px;padding:16px;gap:16px}
  .tpm14-mood-console__copy h2{font-size:26px}
  .tpm14-mood-console__copy p{font-size:11px}
  .tpm14-moods{margin-inline:-4px}
  .tpm14-mood{min-height:40px;padding-inline:12px;font-size:11px}
  .tpm14-community__track{padding-inline:4vw}
  .tpm14-community-card{flex-basis:76vw;max-width:330px}
  .tpm14-feedback{display:none}
  .tpm14-preview-feedback{display:grid;grid-template-columns:1fr 1fr}
  .tpm14-preview-feedback span{grid-column:1/-1}
}
@media(max-width:540px){
  .tpm14-hero{min-height:540px}
  .tpm14-mood-console{margin-top:-42px}
  .tpm14-mood-console__copy h2{font-size:23px}
  .tpm14-profile__panel{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .tpm14-mood,.tpm14-profile__panel,.tpm14-profile__backdrop{transition:none!important}
}
