/* SteelBoxd · version maquette : styles des écrans corrigés (public/maquette.js). */

.m-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-icon.filled { fill: currentColor; }
.m-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.m-link { border: 0; background: none; padding: 6px 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.m-link.center { align-self: center; color: var(--muted); font-weight: 500; margin: 6px auto 0; display: block; }
.brand { position: relative; }
.m-version { position: absolute; left: 42px; top: 100%; margin-top: 2px; padding: 2px 6px; border-radius: 5px; background: #1b2a36; color: #7fc8ff; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.m-bell { position: relative; }
.m-bell-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #172315; font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* Stars: left half = half star, right half = full star. */
.m-stars { display: inline-flex; }
.m-star { position: relative; display: inline-block; width: 36px; height: 40px; }
.m-star svg { position: absolute; left: 4px; top: 6px; width: 28px; height: 28px; }
.m-star-base { fill: #2a332b; }
.m-star-top { fill: var(--accent); }
.m-star.m-half .m-star-top { clip-path: inset(0 50% 0 0); }
.m-star.m-empty .m-star-top { display: none; }
.m-star-half { position: absolute; top: 0; width: 50%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 1; }
.m-star-half.left { left: 0; }
.m-star-half.right { right: 0; }
.m-star-half:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }
.m-stars-sm .m-star { width: 26px; height: 30px; }
.m-stars-sm .m-star svg { left: 3px; top: 5px; width: 20px; height: 20px; }
.m-stars-md .m-star { width: 40px; height: 44px; }
.m-stars-md .m-star svg { left: 5px; top: 7px; width: 30px; height: 30px; }
.m-stars-lg .m-star { width: 48px; height: 52px; }
.m-stars-lg .m-star svg { left: 5px; top: 7px; width: 38px; height: 38px; }

/* Small labels */
.m-lang { display: inline-block; margin: 0 3px 0 0; padding: 1px 7px; border-radius: 5px; background: #263020; color: var(--accent); font-size: 11px; font-weight: 700; }
.m-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: #c5ccbc; font-size: 11px; font-weight: 600; }
.m-tag.vpn { background: #1b2a36; color: #7fc8ff; }
.m-access { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 12px; }
.m-access .m-icon { width: 15px; height: 15px; }
.m-access.ok { color: var(--accent); }
.m-access.vpn { color: #7fc8ff; }
.m-access.muted { color: var(--muted); }
.m-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.m-pill.warn { background: #2a2a1a; border: 1px solid #4a4626; color: #efce86; }

/* Cards and sections */
.m-section { margin: 26px 0; }
.m-section h2, .m-card h2 { font-size: 18px; margin: 0 0 12px; }
.m-card { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.m-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.m-card-head h2 { margin: 0; }
.m-row-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.m-status { margin: 0 0 18px; color: var(--muted); }

/* Home */
.m-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--radius); background: #1d2418; border: 1px solid #3a4a2a; }
.m-prompt-poster { width: 46px; flex: 0 0 auto; }
.m-prompt-text { flex: 999 1 280px; min-width: 0; }
.m-prompt-text p { margin: 0; }
.m-prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m-progress progress { width: 100%; height: 6px; accent-color: var(--accent); }

/* Home · « Dans ta liste à voir » on one row that scrolls sideways */
.m-rail-section { margin: 4px 0 28px; }
.m-rail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.m-rail-head h2 { margin: 0; font-size: 20px; }
.m-rail-head > .muted { font-size: 12px; }
.m-rail-nav { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.m-rail-nav .m-link { margin-right: 6px; }
.m-rail-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.m-rail-arrow:hover:not(:disabled) { border-color: #c5ed8466; }
.m-rail-arrow:disabled { opacity: .35; cursor: default; }
.m-rail-fits .m-rail-arrow { display: none; }
.m-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 4px 2px 12px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #2b332c transparent; }
.m-rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.m-rail-item { flex: 0 0 150px; min-width: 0; scroll-snap-align: start; }
.m-rail-poster { position: relative; }
.m-rail-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 2 / 3; border-radius: 9px; border: 1px dashed #394438; background: #151a16; color: var(--muted); font-size: 12px; text-align: center; }
.m-rail-more strong { font-size: 28px; letter-spacing: -1px; color: var(--text); }
.m-rail-more:hover { border-color: #c5ed8466; color: var(--accent); }
.m-rail-badge { position: absolute; left: 7px; top: 7px; max-width: calc(100% - 14px); padding: 3px 7px; border-radius: 6px; background: #101811dc; color: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(8px); pointer-events: none; }
.m-rail-badge.vpn { color: #7fc8ff; }
.m-rail-badge.warn { color: #efce86; }
.m-rail-badge.muted { color: #c5ccbc; }
.m-rail-title { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 0 0; background: none; color: var(--text); text-align: left; }
.m-rail-title strong, .m-rail-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-rail-title strong { font-size: 12px; }
.m-rail-where { font-size: 11px; color: #c5ccbc; }
.m-rail-where.ok { color: var(--accent); }
.m-rail-where.warn { color: #efce86; }

/* Home · « Mes demandes » and « Alertes » side by side, same height */
.m-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: stretch; margin: 0 0 22px; }
.m-home-card { display: flex; flex-direction: column; gap: 8px; }
.m-home-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 4px; }
.m-home-head h2 { margin: 0; font-size: 17px; }
.m-home-head > .muted { margin-left: auto; font-size: 12px; }
.m-home-head .m-link { margin-left: auto; }
.m-home-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #263020; color: var(--accent); }
.m-home-icon .m-icon { width: 17px; height: 17px; }
.m-home-foot { margin-top: auto; align-self: flex-start; }
.m-home-group { margin: 8px 0 0; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #8a958b; }
.m-thumb { flex: 0 0 auto; width: 44px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #2b312d; border: 1px solid var(--line); }
.m-thumb.sm { width: 30px; border-radius: 5px; }
.m-thumb img, .m-thumb-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-chip-state { flex: 0 0 auto; padding: 2px 7px; border-radius: 6px; background: #263020; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; }
.m-chip-state.warn { background: #2a2a1a; color: #efce86; }
.m-chip-state.vpn { background: #1b2a36; color: #7fc8ff; }
.m-chip-state.new { background: var(--accent); color: #172315; }
.m-request { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: var(--panel2); color: var(--text); text-align: left; cursor: pointer; }
.m-request:hover, .m-alert-row:hover { background: #262e27; }
.m-request-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.m-request-top { display: flex; align-items: center; gap: 8px; }
.m-request-top strong { min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-request-top .m-chip-state { margin-left: auto; }
.m-request-state { font-size: 11px; color: var(--muted); }
.m-request progress { width: 100%; height: 5px; accent-color: var(--accent); }
.m-alert-today { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: #1d2418; }
.m-alert-today.arrival { background: #15202a; }
.m-alert-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: #c5ccbc; }
.m-alert-body strong { color: var(--text); }
.m-alert-today .m-alert-body strong { font-size: 13px; }
.m-alert-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-alert-type { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--accent); }
.m-alert-type.arrival, .m-alert-type.jellyfin { color: #7fc8ff; }
.m-alert-type.leaving { color: #f3aaa0; }
.m-alert-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; }
.m-alert-when { flex: 0 0 auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.m-alert-when.leaving { color: #f3aaa0; font-weight: 700; }
.m-alert-when.ok { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
  .m-rail-arrow { display: none; }
  .m-rail { gap: 12px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scroll-padding: 0 18px; }
  .m-rail-item { flex-basis: 124px; }
  .m-home-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Watchlist */
.m-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-selects { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.m-select { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.m-select select { min-height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.m-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.m-banner p { margin: 0; flex: 999 1 300px; }
.m-watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.m-watch-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.m-watch-poster { position: relative; }
.m-watch-badge { position: absolute; top: 8px; left: 8px; z-index: 2; pointer-events: none; }
.m-watch-badge .m-tag { background: #101311e6; color: var(--text); }
.m-watch-title { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.m-watch-title .muted { font-size: 11px; }
.m-watch-access { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }

/* Film page */
.m-film-head { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.m-film-poster { flex: 0 0 200px; display: flex; flex-direction: column; gap: 10px; }
.m-film-info { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.m-film-info h1 { margin: 0; }
.m-film-info p { margin: 0; }
.m-overview { color: #c5ccbc; max-width: 640px; }
.m-seerr { margin-top: 4px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.m-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.m-seerr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-progress { flex: 0 1 380px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 10px; background: var(--panel2); }
.m-request-form { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.m-choice { display: flex; gap: 6px; }
.m-panel { flex: 1 1 240px; max-width: 300px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.m-panel-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 4px; }
.m-action { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; cursor: pointer; }
.m-action .m-icon { width: 28px; height: 28px; fill: none; }
.m-action.on.m-seen { color: var(--accent); }
.m-action.on.m-fav { color: #f3aaa0; }
.m-action.on.m-list { color: #7fc8ff; }
.m-action.on .m-icon.filled { fill: currentColor; }
.m-action.on.m-seen .m-icon circle { fill: var(--panel); }
.m-panel-rate { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-top: 1px solid var(--line); font-size: 11px; }
.m-panel-link { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); text-align: left; text-decoration: none; font-size: 13px; cursor: pointer; }
.m-panel-link.muted { color: var(--muted); }
.m-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.m-verdict > div { flex: 999 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.m-verdict p { margin: 0; }
.m-verdict.ok { background: #1d2418; border-color: #3a4a2a; }
.m-verdict.vpn { background: #15202a; border-color: #2a4458; }
.m-verdict-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: #263020; color: var(--accent); }
.m-verdict.vpn .m-verdict-icon { background: #1b2a36; color: #7fc8ff; }
.m-verdict-icon .m-icon, .m-verdict-icon svg { width: 22px; height: 22px; }
.m-verdict-title { font-size: 17px; font-weight: 800; }
.m-vpn-country { color: #7fc8ff; }
.m-details { margin-top: 10px; }
.m-details summary { cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); color: #c5ccbc; font-weight: 600; }
.m-options { list-style: none; margin: 10px 0; padding: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.m-options li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.m-options li:last-child { border-bottom: 0; }
.m-history-marks { display: inline-flex; align-items: center; gap: 8px; }
.m-history-marks .m-icon { width: 15px; height: 15px; }
.m-history-marks .m-fav { color: #f3aaa0; }
.m-history-marks .m-seen { color: var(--accent); }

/* Series */
.m-season-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 12px 16px; border-radius: var(--radius) var(--radius) 0 0; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; }
.m-episodes { border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--panel); }
.m-episode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 16px; border-top: 1px solid var(--line); }
.m-episode-name { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.m-episode-name .muted { font-size: 12px; }
.m-jf { color: #7fc8ff; }
.m-check { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; border: 1.5px solid #4b5a3a; background: transparent; cursor: pointer; position: relative; }
.m-check.on { background: var(--accent); border-color: var(--accent); }
.m-check.on::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #172315; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.m-next-season { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 12px 16px; border-radius: var(--radius); border: 1px dashed var(--line); }
.m-switch-row { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; }
.m-switch-row.big { margin: 0 0 14px; display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); }
.m-switch-row.big p { margin: 0; }
.m-switch { flex: 0 0 auto; width: 48px; height: 28px; padding: 3px; border: 0; border-radius: 14px; background: #2b332c; cursor: pointer; position: relative; }
.m-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #919b92; transition: left .15s; }
.m-switch[aria-checked="true"] { background: var(--accent); }
.m-switch[aria-checked="true"]::after { left: 23px; background: #172315; }

/* SteelBook « À confirmer » */
.m-confirm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.m-confirm-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.m-confirm-card h3, .m-confirm-card p { margin: 0; }
.m-confirm-visual { height: 170px; border-radius: 10px; background: #e6eadf; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.m-confirm-visual img { max-height: 150px; max-width: 90%; object-fit: contain; }

/* Settings */
.m-settings { margin: 0 0 20px; }
.m-settings h3 { font-size: 15px; margin: 6px 0 10px; }
.m-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.m-langs li { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-radius: 10px; background: var(--panel2); }
.m-langs li > span:not(.m-rank) { flex: 1; font-weight: 600; }
.m-langs .m-lang-off { background: transparent; border: 1px dashed var(--line); }
.m-langs .m-lang-off > span { color: var(--muted); font-weight: 500; }
.m-rank { width: 22px; height: 22px; border-radius: 6px; background: #263020; color: var(--accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.m-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 12px; }
.m-channels > div { padding: 10px 12px; border-radius: 10px; background: var(--panel2); }
.m-channels p { margin: 4px 0 0; }
.m-table-wrap { overflow-x: auto; }
.m-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.m-table th, .m-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.m-table thead th { font-size: 11px; color: var(--muted); }
.m-table tbody th { text-align: left; font-weight: 500; }
.m-table td { text-align: center; }
.m-services { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.m-service { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.m-service .m-tag { margin-left: auto; }
.m-service-letter { width: 28px; height: 28px; border-radius: 8px; background: var(--panel2); display: grid; place-items: center; font-weight: 800; color: #c5ccbc; }

/* Rating sheet, inspired by Letterboxd's log screen */
dialog.m-sheet-modal { width: min(460px, 100vw); max-height: min(92vh, 860px); padding: 0; border-radius: 18px; }
.m-sheet { display: flex; flex-direction: column; max-height: inherit; }
.m-sheet-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 8px; border-bottom: 1px solid #222a23; }
.m-sheet-bar h2 { margin: 0; font-size: 16px; }
.m-bar-button { justify-self: start; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #a5afa6; font-size: 15px; cursor: pointer; }
.m-bar-button.save { justify-self: end; color: var(--accent); font-weight: 800; }
.m-sheet-body { overflow: auto; display: flex; flex-direction: column; }
.m-sheet-film { display: flex; align-items: center; gap: 14px; padding: 16px; }
.m-sheet-film > div:last-child { display: flex; flex-direction: column; }
.m-sheet-film strong { font-size: 18px; letter-spacing: -0.4px; }
.m-sheet-poster { width: 46px; flex: 0 0 auto; }
.m-sheet-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-top: 1px solid #222a23; font-size: 15px; }
.m-sheet-row > span { flex: 1; white-space: nowrap; }
.m-sheet-row input, .m-sheet-row select { flex: 0 1 auto; min-width: 0; }
.m-sheet-row input, .m-sheet-row select { border: 0; background: transparent; color: var(--accent); font-weight: 600; text-align: right; color-scheme: dark; }
.m-row-icon { color: var(--muted); }
.m-sheet-rate { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px 18px; border-top: 1px solid #222a23; border-bottom: 1px solid #222a23; }
.m-sheet-rate-row { display: flex; align-items: center; }
.m-divider { width: 1px; height: 30px; background: var(--line); margin: 0 10px; }
.m-heart { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #6f7a70; cursor: pointer; }
.m-heart .m-icon { width: 34px; height: 34px; fill: none; }
.m-heart.on { color: #f3aaa0; }
.m-heart.on .m-icon { fill: currentColor; }
.m-legend { margin: 0; font-size: 13px; color: var(--muted); }
.m-review { min-height: 150px; padding: 16px; border: 0; background: transparent; color: var(--text); resize: vertical; font-size: 15px; line-height: 1.55; }
.m-review:focus { outline: 0; }

@media (max-width: 600px) {
  dialog.m-sheet-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .m-sheet { height: 100%; }
  .m-film-poster { flex-basis: 130px; }
  .m-panel { max-width: none; }
  .m-selects { margin-left: 0; }
  .m-hero { padding: 20px; }
  .m-hero-poster { width: 96px; }
}

/* Home hero: Titouan's « à regarder » card, with the languages added */
.m-hero-langs { display: inline-flex; margin-left: 6px; }
.recommendation-method .m-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }

/* Watchlist filters */
.m-filters { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.m-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.m-kind { display: flex; gap: 6px; }
.m-segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.m-segmented button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #a5afa6; font-size: 13px; font-weight: 600; cursor: pointer; }
.m-segmented button.active { background: #263020; color: var(--accent); }
.m-view-toggle { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.m-view-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #a5afa6; font-size: 12px; font-weight: 600; cursor: pointer; }
.m-view-toggle button.active { background: #263020; color: var(--accent); }
.m-view-toggle .m-icon { width: 15px; height: 15px; }
.m-inline-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.m-switch:disabled { opacity: .4; cursor: not-allowed; }
.m-sort { margin-left: auto; }
.m-filters > .settings-note { margin: 0; }
.m-watch-list { display: flex; flex-direction: column; gap: 10px; }
.m-watch-row { display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.m-watch-row-poster { width: 58px; flex: 0 0 auto; }
.m-watch-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.m-watch-row-access { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m-watch-row-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.m-watch-row-side .button .m-icon { width: 15px; height: 15px; margin-right: 4px; }

/* « Vu » removal */
.button.m-danger { background: #f3aaa0; color: #2a1210; }

/* Language order, drag handles */
.m-drag { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; }
.m-drag:hover { background: var(--panel); color: var(--text); }
.m-drag:active { cursor: grabbing; }
.m-langs li.m-dragging { background: #263020; outline: 1px solid #4b5a3a; }

@media (max-width: 600px) {
  .m-view-toggle, .m-sort { margin-left: 0; }
  .m-segmented button { padding: 0 10px; }
}
.m-hidden { display: none !important; }
