@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root { color-scheme: dark; font-family: 'DM Sans', sans-serif; background: #11131b; color: #f5f2ee; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 75% 4%, #28212a 0, transparent 38%), #11131b; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
.hidden { display: none !important; }
.shell { max-width: 1200px; margin: auto; padding: 0 32px 60px; }
.header { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff12; gap: 16px; }
.brand { color: #eabf86; font-size: 25px; text-decoration: none; white-space: nowrap; }
.brand span { color: #f5f2ee; font-family: 'DM Serif Display', serif; font-size: 23px; margin-left: 7px; }
.account { display: flex; align-items: center; gap: 20px; color: #c8c0bc; font-size: 13px; }
.text-button { color: #d3b798; background: none; border: 0; padding: 8px 0; font-size: 13px; }
.text-button:hover, .remove:hover { color: #fff; }
.hero { display: flex; justify-content: space-between; align-items: center; padding: 83px 0 65px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .19em; color: #d1a878; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: 'DM Serif Display', serif; font-weight: 400; }
h1 { font-size: clamp(45px, 6vw, 72px); letter-spacing: -.025em; line-height: 1.1; margin: 15px 0; }
h1 em { color: #eabf86; font-weight: 400; }
.hero p, .login > p { color: #a9a4a6; font-size: 15px; line-height: 1.6; }
.hero-mark { color: #eabf86; font-size: 86px; opacity: .7; padding-right: 60px; }
.search-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid #39343a; background: #1b1b25; border-radius: 12px; padding: 25px 28px; }
.search-panel h2 { font-size: 23px; }
.search-panel p { margin-top: 6px; color: #aaa3a5; font-size: 13px; }
.search-form { display: flex; gap: 8px; width: min(100%, 480px); }
input { width: 100%; min-width: 0; border: 1px solid #47424a; border-radius: 6px; background: #11131b; color: #fff; padding: 13px 15px; outline: none; }
input:focus { border-color: #eabf86; }
.primary { border: 0; border-radius: 6px; background: #eabf86; color: #211a1b; padding: 13px 18px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.primary:hover { background: #f3d4a9; }
.watchlist, #results-section { margin-top: 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { font-size: 31px; margin-top: 8px; }
.count { font: 600 12px 'DM Sans', sans-serif; color: #d2b798; border: 1px solid #5b4b42; border-radius: 20px; padding: 3px 8px; vertical-align: middle; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.card { min-width: 0; background: #1b1c25; border: 1px solid #ffffff0b; border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; }
.poster { width: 100%; aspect-ratio: 2 / 3; background: #302c35; display: grid; place-items: center; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-placeholder { color: #d1a878; font-size: 48px; }
.movie-link { display: block; }
.movie-link:focus-visible, .movie-title-link:focus-visible { outline: 2px solid #eabf86; outline-offset: -2px; }
.movie-link:hover img { opacity: .85; }
.movie-title-link { text-decoration: none; }
.movie-title-link:hover { color: #eabf86; }
.card-info { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.card h3 { font-size: 15px; line-height: 1.35; }
.year { font-size: 12px; color: #a39ca0; margin-top: 6px; }
.overview { font-size: 12px; line-height: 1.5; color: #aaa3a5; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.added-by { color: #dfb78a; font-size: 12px; margin-top: 15px; }
.card-action { background: transparent; color: #eabf86; border: 1px solid #735b4a; border-radius: 5px; padding: 9px; margin-top: auto; padding-top: 9px; font-size: 12px; }
.card-info .card-action { margin-top: 15px; }
.remove { border: 0; background: none; color: #a9a4a6; padding: 12px 0 0; align-self: flex-start; font-size: 12px; }
.empty { text-align: center; border: 1px dashed #3d3940; border-radius: 10px; padding: 55px 20px; color: #aaa3a5; }
.empty span { font-size: 36px; color: #d1a878; }
.empty h3 { color: #eee8e2; margin: 10px 0; }
.empty p { font-size: 13px; }
footer { color: #827e82; font-size: 11px; line-height: 1.6; margin-top: 70px; }
.login { max-width: 430px; margin: 100px auto; }
.login-form { display: grid; gap: 10px; margin-top: 35px; }
.login-form label { font-size: 13px; color: #c8c0bc; margin-top: 10px; }
.login-form .primary { display: flex; justify-content: space-between; margin-top: 15px; }
.detail-screen { padding-top: 40px; }
.detail-back { display: inline-block; text-decoration: none; }
.detail-status { margin-top: 20px; color: #d1a878; line-height: 1.5; }
.detail-status:empty { display: none; }
.detail-layout { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 48px; margin-top: 32px; }
.detail-layout .poster { border-radius: 9px; }
.detail-info h1 { font-size: clamp(36px, 5vw, 58px); }
.detail-info h2 { font-size: 26px; margin-top: 32px; }
.detail-original, .detail-facts, .detail-genres { color: #aaa3a5; line-height: 1.6; margin-top: 12px; }
.detail-genres { color: #d1a878; }
.detail-overview { color: #d0c9c7; line-height: 1.8; margin-top: 12px; white-space: pre-line; }
.message { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; background: #713e42; color: white; border-radius: 7px; box-shadow: 0 5px 25px #0008; font-size: 14px; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .shell { padding: 0 20px 40px; }
  .header { height: 74px; }
  .account { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding: 62px 0 42px; }
  .hero-mark { display: none; }
  .search-panel { align-items: stretch; flex-direction: column; padding: 20px; gap: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-info { padding: 12px; }
  .watchlist, #results-section { margin-top: 42px; }
  .login { margin: 70px auto; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .detail-layout .poster { max-width: 240px; }
}
