:root {
  --bg: #fbf6ed;
  --surface: #fffdf9;
  --surface-raised: #f4eee5;
  --surface-soft: #eee7f3;
  --text: #30283b;
  --muted: #776f7c;
  --muted-strong: #554b5f;
  --accent: #d69b52;
  --accent-light: #efbd78;
  --accent-ink: #35230f;
  --lavender: #e6def2;
  --sage: #dce9df;
  --line: #e8ded3;
  --shadow: 0 18px 45px rgba(88,66,76,.12);
  --radius: 18px;
  --content: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% -8%, rgba(230,222,242,.75), transparent 28rem), radial-gradient(circle at -8% 48%, rgba(220,233,223,.7), transparent 27rem), radial-gradient(circle at 70% 100%, rgba(244,220,224,.4), transparent 24rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; min-height: 76px; padding: 0 2rem; border-bottom: 1px solid rgba(232,222,211,.9); background: rgba(251,246,237,.88); backdrop-filter: blur(18px); }
.site-header > * { flex-shrink: 0; }
.logo { display: inline-flex; align-items: center; gap: .85rem; font: 700 1.02rem/1 "Space Grotesk", sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark, .auth-icon { display: grid; place-items: center; color: transparent; background: url("logommc.png") center/cover no-repeat; border-radius: 0; box-shadow: none; }
.logo-mark { width: 56px; height: 56px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: .92; }
.logo-text strong { color: var(--text); font-size: 1.02rem; letter-spacing: .02em; text-transform: uppercase; }
.logo-text span { color: var(--muted); font-size: .72rem; font-weight: 500; letter-spacing: .01em; text-transform: none; }
.main-nav { display: flex; align-items: center; gap: 1.7rem; margin: 0 auto; color: var(--muted); font-size: .9rem; }
.main-nav a { position: relative; padding: 1.65rem 0; transition: color .2s ease; }
.main-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--accent); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { transform: scaleX(1); }
.login-link { padding: .58rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-strong); font-size: .86rem; transition: border-color .2s, color .2s, background .2s; }
.login-link:hover { border-color: var(--accent); color: var(--accent-ink); background: #faecd8; }
.user-greeting { color: var(--muted-strong); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.container { width: min(var(--content), calc(100% - 4rem)); min-height: calc(100vh - 76px); margin: 0 auto; padding: 4.2rem 0 6rem; }
.home-hero { position: relative; display: flex; align-items: center; min-height: 460px; margin: -4.2rem calc((var(--content) - 100vw) / 2) 4rem; padding: 3.6rem max(2rem, calc((100vw - var(--content)) / 2)); overflow: hidden; }
.home-hero-backdrop { position: absolute; inset: 0; background-position: center; background-size: cover; }
.home-hero-backdrop::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,246,237,.94) 0%, rgba(251,246,237,.86) 40%, rgba(251,246,237,.5) 68%, rgba(251,246,237,.22) 100%); content: ""; pointer-events: none; }
.home-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 2.6rem; width: 100%; }
.home-hero-poster { flex-shrink: 0; width: 220px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-hero-copy { width: min(620px, 100%); }
.home-hero-availability { margin: 0 0 1.4rem; }
.eyebrow { margin: 0 0 1rem; color: #b47737; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; }
h1 em { color: #bd8140; font-style: normal; }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { letter-spacing: -.02em; }
.home-hero-copy h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.home-hero-copy .detail-meta { margin: .9rem 0 0; }
.home-hero-copy .pill-row { margin: .8rem 0 0; }
.hero-copy { max-width: 610px; margin: 1.1rem 0 1.9rem; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 44px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 999px; color: var(--accent-ink); background: var(--accent); font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { background: var(--accent-light); transform: translateY(-2px); }
.button-secondary { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.72); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-light); }
.full-button { width: 100%; margin: 1.2rem 0; }
.movie-section { margin: 0 0 4.2rem; }
.site-footer { display: flex; justify-content: center; padding: 1.6rem 2rem; border-top: 1px solid var(--line); background: rgba(251,246,237,.88); }
.tmdb-attribution { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .78rem; }
.tmdb-attribution img { display: block; height: 12px; width: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.4rem; }
.section-heading .eyebrow { margin-bottom: .45rem; }
.text-link, .back-link { color: #ad7538; font-weight: 700; }
.text-link { white-space: nowrap; }
.movie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem; }
.movie-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(88,66,76,.06); transition: transform .25s, border-color .25s, box-shadow .25s; }
.movie-card:hover { border-color: #d4ad78; box-shadow: var(--shadow); transform: translateY(-6px); }
.movie-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface-raised); }
.bookmark-button { position: absolute; z-index: 2; top: .55rem; right: .55rem; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; border-radius: 50%; color: #fff; background: rgba(48,40,59,.62); transition: background .2s, transform .2s; }
.bookmark-button:hover { background: var(--accent, #d69b52); transform: scale(1.08); }
.movie-info { padding: .85rem .9rem 1rem; }
.movie-info h3 { overflow: hidden; margin: 0 0 .35rem; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.movie-info p { margin: 0; color: var(--muted); font-size: .78rem; }
.movie-info span { color: #b47737; }
.movie-info .original-title { display: block; overflow: hidden; margin: .15rem 0 0; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.page-heading { margin-bottom: 2.5rem; }
.page-heading h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.search-form { display: flex; align-items: center; max-width: 780px; gap: .7rem; margin-top: 1.8rem; }
.search-form input { flex: 1; min-width: 0; height: 50px; padding: 0 1.15rem; border: 1px solid var(--line); border-radius: 999px; outline: none; color: var(--text); background: var(--surface); }
.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,155,82,.15); }
.clear-search { color: var(--muted); font-size: .86rem; }
.search-results-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; color: var(--muted); font-size: .86rem; }
.result-label { margin: 0; }
.search-prompt, .empty-state { border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); }
.search-prompt { padding: 2rem; color: var(--muted); }
.suggestion { border: 0; color: #ad7538; background: none; font-weight: 700; }
.empty-state { padding: 5rem 1.5rem; color: var(--muted); text-align: center; }
.empty-state h2 { color: var(--text); }
.movie-detail-hero { position: relative; margin: -4.2rem calc((var(--content) - 100vw) / 2) 3rem; background-position: center; background-size: cover; }
.detail-backdrop-overlay { padding: 5rem max(2rem, calc((100vw - var(--content)) / 2)); background: linear-gradient(90deg, rgba(251,246,237,.98), rgba(251,246,237,.88) 48%, rgba(251,246,237,.38)); }
.detail-layout { display: grid; grid-template-columns: 280px minmax(0, 760px); align-items: start; gap: 2.5rem; }
.detail-poster { display: block; width: 100%; margin-top: 2.08rem; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-content { display: flex; flex-direction: column; }
.detail-content h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.detail-original-title { margin: .25rem 0 0; color: var(--muted); font-size: 1rem; }
.detail-meta { margin: 1.1rem 0; color: #ad7538; font-weight: 700; }
.overview { max-width: 680px; margin: 1.2rem 0; color: var(--muted-strong); line-height: 1.8; }
.pill-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.2rem; }
.pill { display: inline-flex; padding: .42rem .75rem; border: 1px solid #d9cee5; border-radius: 999px; color: #665574; background: var(--surface-soft); font-size: .76rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.detail-card { padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-card h3 { margin: 0 0 .8rem; }
.detail-card ul { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.9; }
.detail-card-wide { grid-column: 1 / -1; }
.detail-watch-options { margin-top: 1.4rem; }
.detail-watch-options h3 { margin: 0 0 .7rem; font-size: 1rem; }
.theatre-watch-options { margin-top: .9rem; }
.theatre-watch-options h4 { margin: 0 0 .45rem; color: var(--muted-strong); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.detail-tmdb-link { align-self: flex-end; margin-top: 1rem; font-size: .84rem; }
.ott-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.ott-link { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .9rem; border: 1px solid #c9ddcf; border-radius: 999px; color: #557560; background: var(--sage); }
.ott-link.release-today-pill { border-color: #f4c95d; color: #6b4b0a; background: #fdf1cf; font-weight: 700; animation: glow 1.6s ease-in-out infinite alternate; }
.platform-icon { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.release-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem; }
.release-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(88,66,76,.06); transition: transform .25s, border-color .25s, box-shadow .25s; }
.release-card:hover { border-color: #d4ad78; box-shadow: var(--shadow); transform: translateY(-6px); }
.release-card img:not(.platform-icon) { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--surface-raised); }
.release-card .movie-info h3 { overflow: hidden; margin: 0 0 .35rem; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.release-platform { display: flex; align-items: center; gap: .4rem; margin: 0 0 .2rem; color: var(--muted); font-size: .78rem; }
.release-platform-list { padding-top: 0; }
.release-platform-link:hover { color: var(--accent); }
.release-not-announced { font-style: italic; }
.announcement-status { color: #8c6636 !important; }
.announcement-status::before { display: inline-block; width: .72rem; height: .72rem; margin-right: .15rem; border: 1.5px solid currentColor; border-radius: 50%; content: ""; box-shadow: 0 0 0 0 rgba(140,102,54,.3); animation: announcement-pulse 2.4s ease-out infinite; vertical-align: -.05rem; }
@keyframes announcement-pulse { 65%, 100% { box-shadow: 0 0 0 .35rem rgba(140,102,54,0); } }
.release-today { border-color: #f4c95d; box-shadow: 0 0 0 2px #f4c95d, var(--shadow); animation: glow 1.6s ease-in-out infinite alternate; }
.release-badge { position: absolute; z-index: 2; top: .55rem; left: .55rem; padding: .3rem .6rem; border-radius: 999px; color: #6b4b0a; background: #f4c95d; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(244,201,93,.55); }
@keyframes glow { from { box-shadow: 0 0 0 2px rgba(244,201,93,.55), var(--shadow); } to { box-shadow: 0 0 0 5px rgba(244,201,93,.15), var(--shadow); } }
.muted { color: var(--muted); }
.auth-card { width: min(500px, 100%); margin: 2rem auto; padding: 3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 1.7rem; border-radius: 16px; font-size: 0; }
.auth-card h1 { font-size: 3rem; }
.auth-card p:not(.eyebrow), .auth-card small { color: var(--muted); }
.loading { display: flex; justify-content: center; gap: .4rem; padding: 5rem; }
.loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: bounce 1s infinite alternate; }
.loading span:nth-child(2) { animation-delay: .2s; }
.loading span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { to { opacity: .35; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .announcement-status::before, .release-today, .ott-link.release-today-pill, .loading span { animation: none; } }
.watchlist-form { display: flex; flex-wrap: wrap; align-items: center; max-width: 780px; gap: .9rem; margin: 1.8rem 0; }
.watchlist-form[hidden] { display: none; }
.watchlist-form input[type="text"], .watchlist-form input:not([type]) { min-width: 220px; height: 50px; padding: 0 1.15rem; border: 1px solid var(--line); border-radius: 999px; outline: none; color: var(--text); background: var(--surface); }
.watchlist-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,155,82,.15); }
.watchlist-form-compact { margin: .8rem 0 0; gap: .6rem; }
.watchlist-form-compact input { min-width: 0; flex: 1; height: 42px; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; color: var(--muted-strong); font-size: .88rem; }
.checkbox-row input { width: 16px; height: 16px; }
.form-status { margin: 0 0 1rem; color: var(--muted); font-size: .86rem; }
.form-status a { color: #ad7538; font-weight: 700; word-break: break-all; }
.watchlist-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.15rem; }
.watchlist-card { position: relative; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 20px rgba(88,66,76,.06); transition: transform .25s, border-color .25s, box-shadow .25s; }
.watchlist-card:hover { border-color: #d4ad78; box-shadow: var(--shadow); transform: translateY(-4px); }
.watchlist-card h3 { margin: 0 0 .4rem; }
.watchlist-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.badge { position: absolute; top: 1rem; right: 1rem; padding: .3rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge-public { color: #557560; background: var(--sage); }
.badge-private { color: #665574; background: var(--surface-soft); }
.watchlist-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.watchlist-title-block { max-width: 100%; }
.watchlist-title-block h1[hidden] { display: none; }
.watchlist-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.button-danger { color: #a3392e; border: 1px solid #e3b7ae; background: #fbe9e6; }
.button-danger:hover { color: #fff; background: #a3392e; }
.share-url-box { display: flex; align-items: center; max-width: 780px; gap: .7rem; margin: 0 0 1.8rem; padding: .7rem .9rem; border: 1px dashed #d4ad78; border-radius: 12px; background: var(--surface-soft); }
.share-url-text { overflow: hidden; flex: 1; min-width: 0; color: #ad7538; font-family: "SFMono-Regular", Consolas, monospace; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.copy-share-button { flex-shrink: 0; }
.watchlist-movie-card { position: relative; }
.remove-movie-button { position: absolute; top: .5rem; right: .5rem; width: 30px; height: 30px; border: none; border-radius: 50%; color: #fff; background: rgba(48,40,59,.72); font-size: .85rem; line-height: 1; }
.remove-movie-button:hover { background: rgba(48,40,59,.92); }
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(23,20,37,.55); }
.modal-overlay[hidden] { display: none; }
.modal-card { width: min(360px, 100%); max-height: 80vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.modal-close { width: 28px; height: 28px; border: none; border-radius: 50%; color: var(--muted); background: var(--surface-soft); }
.modal-close:hover { color: var(--text); background: var(--surface-raised); }
.modal-body { padding: 1.1rem 1.3rem 1.3rem; }
@media (max-width: 1000px) { .movie-grid, .release-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .detail-layout { grid-template-columns: 230px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 1rem; min-height: 68px; padding: .7rem 1rem 0; }
  .logo { font-size: .95rem; }.logo-mark { width: 46px; height: 46px; }.logo > span:last-child { display: none; }
  .main-nav { order: 3; width: 100%; justify-content: space-around; gap: .5rem; margin: 0; }.main-nav a { padding: .8rem .25rem; }.login-link { margin-left: auto; }
  .container { width: min(100% - 2rem, 600px); padding-top: 3rem; }
  .home-hero { min-height: auto; margin: -3rem -1rem 3rem; padding: 2rem 1rem 2.4rem; }.home-hero-backdrop::after { background: linear-gradient(180deg, rgba(251,246,237,.35) 0%, rgba(251,246,237,.9) 55%, rgba(251,246,237,.98) 100%); }.home-hero-inner { flex-direction: column; gap: 1.3rem; text-align: center; }.home-hero-poster { width: min(52%, 210px); }.home-hero-copy .pill-row, .home-hero-availability { justify-content: center; }
  .movie-grid, .release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }.movie-section { margin-bottom: 3rem; }.section-heading { align-items: center; }.section-heading h2 { font-size: 1.4rem; }
  .search-form { flex-wrap: wrap; }.search-form input { flex-basis: 100%; }.search-form .button { flex: 1; }
  .movie-detail-hero { margin: -3rem -1rem 2rem; }.detail-backdrop-overlay { padding: 3rem 1rem; background: linear-gradient(0deg, rgba(251,246,237,.98) 8%, rgba(251,246,237,.9) 65%, rgba(251,246,237,.45)); }
  .detail-layout { grid-template-columns: 1fr; gap: 1.6rem; }.detail-poster { width: min(70%, 240px); margin: 0 auto; }.detail-content { text-align: center; }.pill-row, .cta-row { justify-content: center; }.detail-grid { grid-template-columns: 1fr; }.detail-card-wide { grid-column: auto; }
  .auth-card { padding: 2rem 1.25rem; }.auth-card h1 { font-size: 2.5rem; }
}
@media (max-width: 400px) { .movie-info { padding: .7rem; }.movie-info h3 { font-size: .83rem; }.hero-actions .button, .cta-row .button { width: 100%; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2rem 0; color: var(--muted); }
