:root {
  font-family: "IBM Plex Sans Arabic", "DM Sans", sans-serif;
  color: #24253a;
  background: #f5f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #24253a;
  --muted: #898ba0;
  --purple: #6e5ce6;
  --line: #ececf3;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 4% 4%, #e8e4ff99, transparent 31%),
    radial-gradient(ellipse at 96% 95%, #dff3ef99, transparent 32%),
    #f7f8fc;
}

button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: -1; width: 280px; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .28; pointer-events: none; }
.ambient-one { top: -150px; right: 12%; background: #c5bafa; }
.ambient-two { bottom: -180px; left: 12%; background: #b7e5d7; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(360px, 1fr);
  width: min(1120px, calc(100% - 48px));
  min-height: 690px;
  margin: 6vh auto;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 90px #38365512;
}

.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 72px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.brand-auth { align-self: flex-start; }
.auth-topline { display: flex; align-items: center; justify-content: space-between; }
.language-control { display: inline-flex; align-items: center; }
.language-select { min-height: 34px; padding: 5px 24px 5px 8px; border: 1px solid #e8e8f0; border-radius: 9px; color: #77788d; background: #fff; cursor: pointer; font-size: .75rem; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #8272f2, #5e4bd4); box-shadow: 0 7px 16px #7765df40; font-size: 1.15rem; }
.auth-intro { margin: 52px 0 28px; }
.eyebrow { color: var(--purple); font-size: .79rem; font-weight: 600; }
.auth-intro h1 { margin: 10px 0 12px; font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1.35; letter-spacing: -.04em; }
.auth-intro p, .welcome-row p { margin: 0; color: var(--muted); line-height: 1.9; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #f4f4f9; }
.auth-tab { padding: 10px 8px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: .88rem; }
.auth-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px #29284710; font-weight: 600; }
#auth-form { display: grid; grid-template-columns: 1fr; }
.field-label { margin: 19px 0 7px; color: #55566a; font-size: .86rem; font-weight: 500; }
.text-input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #e8e8f0; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
.text-input::placeholder { color: #b2b3c1; }
.text-input:focus, select:focus, input[type="date"]:focus { border-color: #9c91ef; box-shadow: 0 0 0 3px #8c7af21c; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 600; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; }
.button-primary { color: #fff; background: linear-gradient(110deg, #7868ed, #6855da); box-shadow: 0 7px 15px #7260df2b; }
.button-primary:hover:not(:disabled) { box-shadow: 0 10px 20px #7260df42; }
.auth-submit { width: 100%; margin-top: 23px; }
.password-hint { margin: 6px 0 0; color: #999aac; font-size: .73rem; }
.privacy-notice { margin: 10px 0 0; color: #88899b; text-align: center; font-size: .72rem; line-height: 1.7; }
.auth-footnote { margin: 18px 0 0; color: #999aac; text-align: center; font-size: .78rem; }
.setup-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #6354c9; background: #f0edff; font-size: .8rem; line-height: 1.7; }
.notice { min-height: 0; margin: 0; color: #b43848; font-size: .82rem; line-height: 1.7; }
.notice:not(:empty) { margin-top: 12px; }
.notice.is-error { color: #b43848; }
.notice.is-success { color: #258466; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-topbar-button { padding: 8px 12px; border: 0; border-radius: 9px; color: #6654d4; background: #f0edff; cursor: pointer; font-size: .8rem; }
.admin-topbar-button:hover { background: #e8e4ff; }
.auth-side { position: relative; display: grid; min-height: 100%; overflow: hidden; place-items: center; color: #fff; background: linear-gradient(145deg, #5744c4 0%, #7060d8 50%, #9b8bea 100%); }
.auth-side::before, .auth-side::after { position: absolute; width: 270px; height: 270px; border: 1px solid #ffffff24; border-radius: 45% 55% 61% 39%; content: ""; transform: rotate(38deg); }
.auth-side::before { top: -105px; left: -40px; }
.auth-side::after { right: -120px; bottom: -135px; width: 390px; height: 390px; }
.orbit { position: absolute; width: 430px; height: 430px; border: 1px solid #ffffff1a; border-radius: 50%; }
.orbit-two { width: 530px; height: 530px; }
.side-content { position: relative; z-index: 1; padding: 24px; text-align: center; }
.side-spark { display: inline-grid; width: 72px; height: 72px; place-items: center; border: 1px solid #ffffff66; border-radius: 24px; background: #ffffff1c; font-size: 2rem; }
.side-content p { margin: 26px 0 12px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.55; }
.side-caption { color: #e4dfff; }
.side-bottom { position: absolute; bottom: 30px; color: #e4dfff; font-size: .82rem; }
.side-bottom span { padding: 0 5px; }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 30px 19px 20px; border-left: 1px solid #ececf2; background: #fff; }
.sidebar .brand { padding: 0 8px; }
.sidebar-label { margin: 52px 10px 14px; color: #a0a1b1; font-size: .75rem; font-weight: 600; }
.side-nav { display: grid; gap: 5px; }
.nav-divider { height: 1px; margin: 8px 10px; background: #f0f0f5; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border: 0; border-radius: 10px; color: #77788d; background: transparent; cursor: pointer; text-align: right; transition: background .18s, color .18s; }
.nav-item:hover { background: #f8f7ff; }
.nav-item.is-active { color: #6654d4; background: #f0edff; font-weight: 600; }
.nav-icon { display: grid; width: 22px; place-items: center; font-size: 1.05rem; }
.nav-count { margin-right: auto; color: #a5a2bd; font-size: .78rem; }
.sidebar-bottom { margin-top: auto; }
.account-chip { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 8px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #6452cf; background: #eeebff; font-size: .85rem; font-weight: 700; }
.account-email { overflow: hidden; color: #5e5f72; direction: ltr; text-overflow: ellipsis; white-space: nowrap; font-family: "DM Sans", sans-serif; font-size: .75rem; }
.logout-button, .logout-mobile { width: 100%; padding: 11px; border: 0; border-radius: 9px; color: #89899a; background: transparent; cursor: pointer; text-align: right; font-size: .82rem; }
.logout-button:hover, .logout-mobile:hover { color: #be4f62; background: #fff1f2; }
.logout-button span { float: left; }
.workspace { min-width: 0; }
.topbar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 70px); border-bottom: 1px solid #ececf266; background: #ffffff9c; }
.today-label { color: #85869a; font-size: .82rem; }
.mobile-brand, .logout-mobile { display: none; }
.view-switch-button { display: none; }
.content { width: min(1030px, 100%); margin: 0 auto; padding: 42px clamp(20px, 5vw, 70px) 55px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.welcome-row h1 { margin: 5px 0 7px; font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.wave { color: #e7ae4f; font-size: .75em; }
.date-card { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border: 1px solid #ebebf3; border-radius: 13px; background: #fff; }
.date-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: #6b5bda; background: #f0edff; font-size: 1.15rem; }
.date-card small, .date-card strong { display: block; }
.date-card small { margin-bottom: 3px; color: #a1a1b0; font-size: .7rem; }
.date-card strong { color: #55566b; font-size: .8rem; font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 28px 0; }
.stat-card { position: relative; min-height: 151px; padding: 19px 20px; overflow: hidden; border: 1px solid #eeeef4; border-radius: 16px; background: #fff; }
.stat-icon { display: inline-grid; width: 34px; height: 34px; margin-left: 9px; place-items: center; border-radius: 11px; color: #7261dc; background: #f1efff; }
.stat-label { color: #737488; font-size: .81rem; }
.stat-card strong { display: block; margin-top: 9px; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 1.8rem; line-height: 1.2; }
.stat-card small { color: #a3a4b2; font-size: .72rem; }
.stat-progress .stat-icon { color: #ce9140; background: #fff6e8; }
.stat-complete .stat-icon { color: #258d70; background: #e9f8f2; }
.task-panel { padding: clamp(18px, 3vw, 29px); border: 1px solid #ebebf2; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #31304e08; }
.movies-panel { padding: clamp(18px, 3vw, 29px); border: 1px solid #ebebf2; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #31304e08; }
.movies-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.movies-heading h2 { margin: 5px 0; font-size: 1.4rem; }
.movies-heading p { margin: 0; color: #9293a4; font-size: .84rem; line-height: 1.8; }
.movies-watched-summary { display: flex; min-width: 175px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #eae8f6; border-radius: 13px; background: #fcfbff; }
.movies-watched-summary .stat-icon { flex: 0 0 auto; margin: 0; color: #258d70; background: #e9f8f2; }
.movies-watched-summary small, .movies-watched-summary strong { display: block; }
.movies-watched-summary small { color: #9293a4; font-size: .68rem; }
.movies-watched-summary strong { margin-top: 3px; color: #35364b; font-size: .87rem; }
.movie-add-form { display: flex; gap: 9px; padding: 13px; border: 1px solid #ececf3; border-radius: 12px; background: #fcfcfe; }
.movie-add-form > .text-input:first-of-type { flex: 1; }
.movie-category-input { width: 110px; }
.movie-add-form .button { white-space: nowrap; }
.movie-search-wrap { width: 100%; margin-top: 12px; }
.movie-tabs { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid #eeeeF4; }
.movie-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; color: #898a9d; background: transparent; cursor: pointer; font-size: .83rem; }
.movie-tab.is-active { border-bottom-color: #7261dc; color: #6554ce; font-weight: 600; }
#movie-tab-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 7px; color: #6554ce; background: #f0edff; font-size: .69rem; }
.movie-list { display: grid; }
.movie-item { display: flex; align-items: center; gap: 12px; padding: 14px 3px; border-bottom: 1px solid #f0f0f5; }
.movie-check { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1.5px solid #d6d5e2; border-radius: 7px; color: #fff; background: #fff; cursor: pointer; }
.movie-check:hover { border-color: #7969df; }
.movie-item.is-watched .movie-check { border-color: #6f5cda; background: #6f5cda; }
.movie-item-body { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; }
.movie-name { margin: 0; color: #333449; font-size: .89rem; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.movie-item.is-watched .movie-name { color: #9293a4; text-decoration: line-through; }
.movie-category { flex: 0 0 auto; padding: 4px 8px; border-radius: 7px; color: #6858ce; background: #f0edff; font-size: .68rem; }
.movie-category-foreign { color: #367f70; background: #eaf7f2; }
.movie-actions { display: flex; align-items: center; gap: 8px; }
.movie-status { color: #a0a1b0; font-size: .72rem; white-space: nowrap; }
.movie-item.is-watched .movie-status { color: #258d70; }
.movie-notice { margin-top: 0; }
.movie-notice:not(:empty) { margin-top: 10px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 1.3rem; }
.search-wrap { display: flex; width: min(245px, 45%); align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #ededf3; border-radius: 10px; color: #a1a2b1; }
.search-wrap input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .8rem; }
.search-wrap:focus-within { border-color: #9c91ef; box-shadow: 0 0 0 3px #8c7af21c; }
.task-form { padding: 15px; border: 1px solid #ececf3; border-radius: 13px; background: #fcfcfe; }
.task-form-main { display: grid; gap: 8px; }
.task-title-input { border-color: transparent; background: transparent; font-weight: 600; }
.task-title-input:focus, .task-details-input:focus { background: #fff; }
.task-details-input { min-height: 40px; border-color: transparent; background: transparent; font-size: .83rem; }
.task-form-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 11px; border-top: 1px solid #efeff5; }
.select-wrap, .date-input-wrap { display: flex; min-height: 37px; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #ececf2; border-radius: 8px; color: #8c8d9f; background: #fff; font-size: .75rem; }
.select-wrap select, .date-input-wrap input { max-width: 138px; border: 0; outline: 0; color: #6e6f82; background: transparent; font-size: .74rem; }
.date-input-wrap input { width: 115px; }
.category-input { width: 105px; min-height: 37px; padding: 7px 9px; font-size: .75rem; }
.add-button { min-height: 37px; margin-right: auto; padding: 7px 13px; font-size: .8rem; }
.button-quiet { min-height: 37px; padding: 7px 12px; color: #77788d; background: #f0eff5; font-size: .8rem; }
.app-notice { margin-top: 0; }
.app-notice:not(:empty) { margin-top: 12px; }
.task-list { display: grid; }
.task-item { display: flex; align-items: flex-start; gap: 12px; padding: 17px 3px; border-bottom: 1px solid #f0f0f5; }
.task-check { display: grid; width: 21px; height: 21px; flex: 0 0 auto; margin-top: 2px; place-items: center; border: 1.5px solid #d6d5e2; border-radius: 7px; color: #fff; background: #fff; cursor: pointer; font-size: .75rem; transition: background .18s, border-color .18s; }
.task-check:hover { border-color: #7969df; }
.task-item.is-done .task-check { border-color: #6f5cda; background: #6f5cda; }
.task-body { flex: 1; min-width: 0; }
.task-name { margin: 0; color: #333449; font-size: .91rem; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.is-done .task-name { color: #9d9eae; text-decoration: line-through; }
.task-details { margin: 3px 0 0; color: #9293a4; font-size: .79rem; line-height: 1.7; overflow-wrap: anywhere; }
.task-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; }
.task-tag, .priority, .task-due { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 7px; color: #77788d; background: #f4f4f8; font-size: .68rem; }
.priority-high { color: #c45a64; background: #fff0f1; }
.priority-low { color: #34866d; background: #edf8f3; }
.task-due { color: #8c6b37; background: #fff7e9; }
.task-actions { display: flex; gap: 3px; opacity: 0; transition: opacity .16s; }
.task-item:hover .task-actions, .task-item:focus-within .task-actions { opacity: 1; }
.icon-button { display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 8px; color: #999aaa; background: transparent; cursor: pointer; font-size: 1rem; }
.icon-button:hover { color: #6554ce; background: #f2f0ff; }
.delete-button:hover { color: #ca5867; background: #fff0f1; }
.empty-state { padding: 44px 12px; text-align: center; }
.empty-icon { display: inline-grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: #7868dc; background: #f1efff; font-size: 1.6rem; }
.empty-state h3 { margin: 14px 0 5px; font-size: 1rem; }
.empty-state p { margin: 0; color: #9697a7; font-size: .82rem; }
.panel-footer { display: flex; justify-content: space-between; padding-top: 13px; color: #a0a1b0; font-size: .72rem; }
.panel-footer span:last-child span { color: #d3a54b; }
.admin-panel { padding: clamp(18px, 3vw, 29px); border: 1px solid #ebebf2; border-radius: 18px; background: #fff; box-shadow: 0 10px 32px #31304e08; }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.admin-panel-heading h2 { margin: 4px 0; font-size: 1.3rem; }
.admin-panel-heading p { margin: 0; color: #9293a4; font-size: .8rem; line-height: 1.7; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: right; }
.admin-table th, .admin-table td { padding: 13px 10px; border-bottom: 1px solid #f0f0f5; font-size: .82rem; }
.admin-table th { color: #85869a; font-weight: 500; }
.admin-table td { color: #55566b; }
.admin-table .admin-email { direction: ltr; text-align: right; font-family: "DM Sans", sans-serif; }
.admin-action { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.admin-action:not(:disabled) { color: #a43e4b; }
.admin-action:disabled { cursor: not-allowed; opacity: .65; }
.admin-nav { margin-top: 14px; border-top: 1px solid #f0f0f5; border-radius: 0 0 10px 10px; padding-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

[dir="ltr"] .sidebar { border-right: 1px solid #ececf2; border-left: 0; }
[dir="ltr"] .nav-item { text-align: left; }
[dir="ltr"] .nav-count { margin-right: 0; margin-left: auto; }
[dir="ltr"] .logout-button { text-align: left; }
[dir="ltr"] .logout-button span { float: right; }
[dir="ltr"] .admin-table { text-align: left; }
[dir="ltr"] .admin-table .admin-email { text-align: left; }
[dir="ltr"] .add-button { margin-right: 0; margin-left: auto; }
[dir="ltr"] .movie-add-form .button { margin-right: 0; margin-left: auto; }

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: minmax(320px, 1fr) minmax(280px, .85fr); width: min(760px, calc(100% - 28px)); min-height: 640px; margin: 4vh auto; }
  .auth-card { padding: 36px 30px; }
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .content { padding-right: 25px; padding-left: 25px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 15px 13px; }
}

@media (max-width: 620px) {
  .auth-shell { display: flex; width: min(460px, calc(100% - 24px)); min-height: 0; flex-direction: column; margin: 14px auto; border-radius: 23px; }
  .auth-card { padding: 28px 23px 26px; }
  .auth-intro { margin: 30px 0 20px; }
  .auth-intro h1 { font-size: 2.25rem; }
  .auth-side { display: none; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 60px; padding: 0 18px; }
  .mobile-brand { display: inline-flex; font-size: 1.15rem; }
  .mobile-brand .brand-mark { width: 32px; height: 32px; border-radius: 11px; font-size: 1rem; }
  .today-label { display: none; }
  .logout-mobile { display: block; width: auto; padding: 8px 10px; text-align: center; }
  .topbar-actions { gap: 4px; }
  .admin-topbar-button { padding: 8px; font-size: .72rem; }
  .view-switch-button { display: inline-flex; min-height: 32px; align-items: center; padding: 6px 8px; border: 0; border-radius: 8px; color: #85869a; background: transparent; cursor: pointer; font-size: .7rem; }
  .view-switch-button.is-active { color: #6654d4; background: #f0edff; }
  .content { padding: 27px 16px 38px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row h1 { font-size: 1.85rem; }
  .welcome-row p { max-width: 225px; font-size: .82rem; }
  .date-card { gap: 8px; padding: 8px; }
  .date-icon { width: 32px; height: 32px; }
  .date-card strong { max-width: 105px; font-size: .68rem; line-height: 1.6; }
  .stats-grid { gap: 8px; margin: 21px 0; }
  .stat-card { min-height: 125px; padding: 12px 10px; border-radius: 13px; }
  .stat-icon { width: 29px; height: 29px; margin-left: 5px; border-radius: 9px; }
  .stat-label { font-size: .68rem; }
  .stat-card strong { margin-top: 8px; font-size: 1.5rem; }
  .stat-card small { font-size: .64rem; }
  .task-panel { padding: 16px 13px; border-radius: 15px; }
  .admin-panel { padding: 16px 13px; border-radius: 15px; }
  .movies-panel { padding: 16px 13px; border-radius: 15px; }
  .movies-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .movies-heading h2 { font-size: 1.2rem; }
  .movies-heading p { font-size: .76rem; }
  .movies-watched-summary { min-width: 0; padding: 8px 10px; }
  .movie-add-form { flex-wrap: wrap; padding: 9px; }
  .movie-add-form > .text-input:first-of-type { flex-basis: 100%; }
  .movie-category-input { width: 95px; }
  .movie-add-form .button { margin-right: auto; }
  .movie-item { gap: 9px; padding: 12px 0; }
  .movie-item-body { align-items: flex-start; flex-direction: column; gap: 5px; }
  .movie-actions { gap: 3px; }
  .admin-panel-heading { align-items: flex-start; }
  .admin-panel-heading h2 { font-size: 1.15rem; }
  .admin-panel-heading p { max-width: 230px; font-size: .73rem; }
  .admin-panel-heading .button { flex: 0 0 auto; padding: 8px; font-size: .7rem; }
  .panel-heading { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .panel-heading h2 { font-size: 1.2rem; }
  .search-wrap { width: 100%; }
  .task-form { padding: 10px; }
  .task-form-options { gap: 6px; }
  .select-wrap, .date-input-wrap { min-height: 35px; padding: 0 7px; }
  .select-wrap select { max-width: 104px; font-size: .68rem; }
  .date-input-wrap input { width: 105px; font-size: .68rem; }
  .category-input { width: 84px; min-height: 35px; }
  .add-button { margin-right: 0; }
  .task-item { gap: 9px; padding: 14px 0; }
  .task-actions { opacity: 1; }
  .icon-button { width: 27px; height: 29px; }
  .panel-footer { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
