/* Inter ligger lokalt, så skrifttypen virker uden en ekstern font-tjeneste. */
@font-face { font-family: Inter; src: url('/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --bg: #090f1d; --panel: #101a2c; --raised: #16223a; --line: #243149; --text: #eff4ff; --muted: #97a6c1; --accent: #7ea9ff; --danger: #ffaaa8; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, sans-serif; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(32px, 3.5vw, 51px); font-weight: 650; letter-spacing: -.045em; margin-bottom: 17px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 25px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 0; }
h3 { font-size: 17px; font-weight: 600; }
p { color: var(--muted); }
/* Det faste sidepanel er appens navigation. På mobil flyttes det over indholdet. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 245px; background: #0d1627; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 32px 22px 23px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.6px; font-weight: 700; white-space: nowrap; }
.brand-mark { background: #3269d4; color: white; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 22px; }
.brand-dot { color: var(--accent); }
.sidebar-label { margin: 45px 12px 15px; font-size: 9px; letter-spacing: 1.6px; font-weight: 650; color: #71829f; }
.main-nav { display: flex; flex-direction: column; gap: 6px; }
.main-nav a { display: flex; align-items: center; gap: 13px; color: var(--muted); padding: 12px 14px; border-radius: 7px; font-size: 13px; transition: background .15s, color .15s; }
.main-nav a > span { width: 18px; font-size: 21px; line-height: 1; text-align: center; }
.main-nav a:hover { background: #17243b; color: var(--text); }
.main-nav a.active { background: #1a2e50; color: #aec9ff; box-shadow: inset 3px 0 #74a5ff; }
.sidebar-note { margin: auto 10px 30px; padding-top: 55px; }
.sidebar-note > span { color: var(--accent); display: block; font-size: 26px; margin-bottom: 12px; }
.sidebar-note strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; }
.sidebar-note p { font-size: 11px; margin: 8px 0 0; }
.sidebar-account { border-top: 1px solid var(--line); padding-top: 22px; }
.sidebar-account > .button { width: 100%; }
.sidebar-account > p { text-align: center; font-size: 10px; margin: 10px 0 0; }
.account { display: flex; gap: 12px; align-items: center; }
.account strong { font-size: 12px; display: block; }
.account div > span { display: block; font-size: 10px; color: var(--muted); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #263c61; color: #b9d1ff; }
.workspace { margin-left: 245px; flex: 1; min-width: 0; }
.workspace-header { height: 79px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 42px; }
.workspace-header > span { color: #74849f; font-size: 9px; letter-spacing: 1.8px; font-weight: 600; }
.workspace-header a { color: var(--muted); font-size: 12px; }
.workspace-header a span { color: var(--accent); margin-left: 18px; }
.site-main { max-width: 1500px; padding: 0 42px 65px; margin: auto; min-height: calc(100vh - 160px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid #7098eb; border-radius: 7px; padding: 11px 19px; background: #6594f1; color: #071329; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.button:hover { background: #94b8ff; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.secondary { background: transparent; border-color: #344565; color: #dbe6fb; }
.secondary:hover { background: #243957; }
.text-button { border: 0; background: transparent; color: var(--accent); font-size: 12px; padding: 8px 0; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 45px 0 26px; }
.catalog-intro > div > p:last-child { margin-bottom: 0; }
.eyebrow { font-size: 9px; letter-spacing: 1.8px; color: #8293b0; font-weight: 650; margin-bottom: 15px; }
.catalog-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 36px; }
.catalog-summary > div { display: grid; grid-template-columns: 38px auto; column-gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 17px 20px; }
.summary-icon { grid-row: span 2; width: 37px; height: 37px; display: grid; place-items: center; color: #99baff; background: #1c3153; border-radius: 8px; font-size: 21px; align-self: center; }
.catalog-summary strong { font-size: 20px; font-weight: 650; line-height: 1.35; }
.catalog-summary div > span:last-child { font-size: 10px; color: var(--muted); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.count-label { color: var(--muted); font-size: 11px; }
.filter-bar { display: grid; grid-template-columns: 1fr 180px 165px; gap: 15px; background: #0e182a; padding: 19px; border: 1px solid var(--line); border-radius: 8px; }
label { display: block; font-size: 10px; color: #b1c0db; font-weight: 600; margin-bottom: 8px; }
input, select, textarea { width: 100%; color: var(--text); background: #101c31; border: 1px solid #2b3c59; border-radius: 6px; padding: 11px 12px; min-height: 43px; }
input::placeholder, textarea::placeholder { color: #70829f; }
select { cursor: pointer; }
textarea { resize: vertical; }
.search-input { position: relative; }
.search-input input { padding-left: 40px; }
.search-input span { position: absolute; left: 13px; top: 2px; font-size: 24px; color: #92a8cb; }
.result-line { display: flex; justify-content: space-between; align-items: center; color: var(--muted); min-height: 58px; font-size: 11px; }
.source-note { font-size: 11px; padding: 0 0 8px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px 20px; }
.movie-card { min-width: 0; display: flex; flex-direction: column; }
.movie-cover { aspect-ratio: 2 / 3; position: relative; isolation: isolate; overflow: hidden; border-radius: 8px; padding: 18px; display: flex; flex-direction: column; background: #1d3453; border: 1px solid #2b4161; }
.poster-cover { padding: 0; }
.poster-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.cover-label { font-size: 7px; letter-spacing: 1px; font-weight: 600; color: #b9cbe6; }
.cover-title { font-family: Inter, sans-serif; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; font-weight: 750; letter-spacing: -.04em; margin-top: auto; overflow-wrap: anywhere; z-index: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cover-number { position: absolute; top: 43px; right: 17px; font-size: 9px; color: #92a8ca; }
.cover-art { position: absolute; inset: 15% -10% 20%; opacity: .3; z-index: -1; }
.cover-art span { border: 2px solid #9fc5ff; position: absolute; width: 155px; height: 155px; left: calc(50% - 77px); top: 8%; border-radius: 50%; }
.cover-art span:nth-child(2) { transform: translate(22px, 27px); }
.cover-art span:nth-child(3) { transform: translate(-22px, 54px); }
.cover-0 { background: #172d50; }
.cover-1 { background: #223b56; }
.cover-2 { background: #182b44; }
.cover-3 { background: #26334f; }
.cover-4 { background: #1c3a52; }
.cover-5 { background: #23304c; }
.cover-0 .cover-art span, .cover-2 .cover-art span, .cover-5 .cover-art span { border-radius: 12px; transform: rotate(35deg); }
.movie-info { padding: 14px 0 11px; flex: 1; }
.movie-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #889bb9; margin-bottom: 7px; }
.movie-meta span:first-child { color: #9ebdf6; }
.movie-info h3 { margin-bottom: 8px; font-size: 15px; overflow-wrap: anywhere; }
.movie-info p { font-size: 11px; line-height: 1.7; margin-bottom: 0; }
.movie-facts { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; font-size: 10px; color: var(--muted); }
.rating { color: #ffd67d; font-size: 13px; }
.rating small { color: var(--muted); font-size: 9px; margin-left: 4px; }
.imdb-link { display: inline-block; font-size: 10px; color: #95b6f7; margin-top: 8px; }
.favorite-button { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 39px; width: 100%; color: #b3c3df; background: #101a2b; border: 1px solid #2a3b58; border-radius: 6px; font-size: 10px; transition: background .18s; }
.favorite-button span { font-size: 18px; }
.favorite-button:hover, .favorite-button.is-favorite { color: #b6d0ff; background: #20375c; border-color: #4872b6; }
.page-heading { padding: 43px 0 33px; }
.page-heading p:last-child { margin: 0; }
.empty-state { padding: 50px 24px; border: 1px dashed #334967; border-radius: 9px; text-align: center; background: #0e182a; }
.empty-state h2, .empty-state h3 { margin-bottom: 14px; }
.empty-icon { display: block; font-size: 45px; color: var(--accent); margin-bottom: 16px; }
.login-intro { text-align: center; padding: 65px 0 33px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 790px; gap: 20px; margin: auto; }
.profile-card { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 30px 20px 20px; display: flex; flex-direction: column; align-items: center; transition: transform .2s, border-color .2s; }
.profile-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.profile-avatar { display: grid; place-items: center; width: 75px; height: 75px; background: #2a487b; color: #bdd4ff; border-radius: 50%; font-size: 30px; font-weight: 600; margin-bottom: 24px; }
.profile-2 { background: #304866; }
.profile-3 { background: #2d3e70; }
.profile-card strong { font-size: 16px; }
.role-label { font-size: 11px; color: var(--muted); margin: 5px 0 25px; }
.profile-action { border-top: 1px solid var(--line); width: 100%; padding-top: 14px; font-size: 11px; color: var(--accent); }
.demo-note { font-size: 11px; max-width: 590px; text-align: center; margin: 30px auto 0; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: 30px; align-items: start; }
.editor-panel { padding: 25px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.editor-panel h2 { margin-bottom: 25px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.editor-panel label { margin-top: 18px; }
.editor-panel label:first-child { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-top: 18px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-help { font-size: 10px; margin: 9px 0 21px; }
.validation-message, .validation-errors { color: var(--danger); font-size: 11px; }
.invalid { border-color: var(--danger); }
.admin-list .section-heading { padding: 7px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.admin-list h2 { font-size: 22px; }
.admin-movie { padding: 18px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.admin-movie h3 { font-size: 14px; margin: 0 0 5px; overflow-wrap: anywhere; }
.admin-movie p { font-size: 10px; margin: 0; }
.row-actions { display: flex; gap: 15px; }
.danger { color: var(--danger); }
.delete-confirm { flex-basis: 100%; background: #342533; border: 1px solid #654557; padding: 16px; border-radius: 7px; }
.delete-confirm .button { margin: 0 5px 5px 0; }
.danger-button { background: #f5a3a4; border-color: #f5a3a4; }
.notice { background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 16px 20px; }
.notice p { margin: 9px 0 0; }
.success { color: #a5d9c1; border-color: #3b665d; }
.error { color: var(--danger); border-color: #754754; }
.discover-search { display: flex; align-items: flex-end; gap: 16px; max-width: 850px; margin-bottom: 25px; }
.discover-search > div { flex: 1; }
.film-detail { background: var(--panel); border: 1px solid #3c5e96; border-radius: 9px; padding: 28px; margin-top: 35px; }
.film-detail h2 { margin-bottom: 14px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 42px; padding: 23px 0; border-top: 1px solid var(--line); font-size: 10px; color: #71819c; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--accent); color: var(--bg); padding: 10px; z-index: 100; }
.skip-link:focus { top: 10px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; background: #562c39; color: white; padding: 15px; width: 100%; z-index: 1000; }
#blazor-error-ui a { text-decoration: underline; }
#blazor-error-ui .dismiss { float: right; border: 0; background: transparent; color: white; }
/* Responsivt layout: færre filmkolonner, derefter navigation over indholdet. */
@media (min-width: 1600px) { .movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .sidebar { width: 215px; padding: 28px 16px; } .workspace { margin-left: 215px; } .brand { font-size: 15px; } .site-main { padding: 0 28px 55px; } .workspace-header { padding: 0 28px; } .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .catalog-intro { align-items: flex-start; } .catalog-summary > div { padding: 15px; } .filter-bar { grid-template-columns: 1fr 150px 150px; } .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .sidebar { width: 185px; padding: 25px 12px; } .workspace { margin-left: 185px; } .brand { font-size: 13px; gap: 7px; } .brand-mark { width: 27px; height: 27px; font-size: 18px; } .main-nav a { padding: 11px 10px; font-size: 11px; gap: 8px; } .catalog-intro { flex-direction: column; gap: 18px; } .catalog-summary { grid-template-columns: 1fr 1fr; } .summary-source { grid-column: 1 / -1; } .filter-bar { grid-template-columns: 1fr 1fr; } .search-field { grid-column: 1 / -1; } .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-grid { grid-template-columns: 1fr; max-width: 400px; } .profile-card { display: grid; grid-template-columns: 60px 1fr; text-align: left; column-gap: 18px; padding: 22px; } .profile-avatar { width: 60px; height: 60px; grid-row: span 3; margin: 0; } .role-label { margin: 4px 0 10px; } .profile-action { padding: 7px 0 0; } }
@media (max-width: 620px) { .app-shell { display: block; } .sidebar { position: static; width: 100%; padding: 18px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 15px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { font-size: 17px; } .sidebar-label, .sidebar-note, .workspace-header { display: none; } .sidebar-account { margin-left: auto; border: 0; padding: 0; } .sidebar-account > p, .account, .sidebar-account .text-button { font-size: 11px; } .sidebar-account > p, .account div > span { display: none; } .sidebar-account .button { padding: 7px 12px; } .sidebar-account:has(.account) { display: flex; align-items: center; gap: 12px; } .avatar { display: none; } .main-nav { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 3px; } .main-nav a { padding: 9px 10px; white-space: nowrap; font-size: 11px; } .main-nav a > span { font-size: 17px; width: 14px; } .main-nav a.active { box-shadow: inset 0 -2px #74a5ff; } .workspace { margin-left: 0; } .site-main { padding: 0 20px 45px; } .catalog-intro { padding-top: 32px; } h1 { font-size: 36px; } .catalog-summary { gap: 10px; } .catalog-summary > div { padding: 13px; grid-template-columns: 28px auto; gap: 9px; } .summary-icon { width: 28px; height: 28px; font-size: 17px; } .catalog-summary strong { font-size: 17px; } .summary-source { grid-column: auto; } .catalog-summary { grid-template-columns: 1fr; } .catalog-summary > div { grid-template-columns: 30px 65px auto; align-items: center; } .summary-icon { grid-row: auto; } .section-heading h2 { font-size: 22px; } .movie-grid { gap: 25px 14px; } .cover-title { font-size: 21px; } .movie-cover { padding: 12px; } .poster-cover { padding: 0; } .cover-label { font-size: 6px; letter-spacing: .4px; } .movie-info h3 { font-size: 14px; } .movie-info p { font-size: 11px; } .filter-bar { padding: 14px; gap: 12px; } .favorite-button { font-size: 9px; } .site-footer { margin: 0 20px; font-size: 9px; } .page-heading { padding-top: 32px; } .editor-panel { padding: 20px; } .discover-search { flex-direction: column; align-items: stretch; } }
@media (max-width: 360px) { .movie-grid { grid-template-columns: 1fr; } .cover-title { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
