/* Shared composition for the approved four-destination Home. */
.cinema-light .compact-header { max-width: 1100px; margin: 0 auto; padding: 10px 24px 6px; border-bottom: 1px solid var(--home-border); }
.cinema-light .compact-header .browser-user-row { justify-content: space-between; min-height: 44px; }
.cinema-light .app-brand { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 1.15rem; font-weight: 850; color: var(--home-ink); text-decoration: none; }
.cinema-light .app-brand .ui-icon { color: var(--home-accent); }
.cinema-light .account-menu { position: relative; margin-left: auto; }
.cinema-light .account-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border-radius: 12px; color: var(--home-secondary); cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.cinema-light .account-menu[open] > summary { background: var(--home-soft); color: var(--home-accent); }
.cinema-light .account-menu-panel { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: min(300px, calc(100vw - 36px)); padding: 12px; border: 1px solid var(--home-border); border-radius: 16px; background: var(--home-surface); box-shadow: 0 12px 40px #0f172a20; }
.cinema-light .account-menu-panel .browser-identity { display: flex; align-items: center; gap: 8px; padding: 10px; white-space: normal; overflow-wrap: anywhere; }
.cinema-light .account-menu-panel > a, .cinema-light .account-menu-panel button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px; color: var(--home-accent); text-decoration: none; border: 0; border-radius: 8px; background: var(--home-surface); font: inherit; text-align: left; cursor: pointer; }
.cinema-light .account-menu-panel :is(a,button):hover { background: var(--home-soft); }
.cinema-light .compact-header .browser-library-row { gap: 12px; align-items: center; justify-content: space-between; }
.library-context-label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.cinema-light .library-context-label small { color: var(--home-secondary); font-size: .75rem; }
.cinema-light .compact-header .browser-library-name { min-height: 24px; font-size: .8rem; min-width: 0; overflow-wrap: anywhere; }
.cinema-light .compact-header .browser-nav-link { font-size: .8rem; }
.cinema-light .page.home-hub { max-width: 940px; padding-top: 36px; }
.cinema-light .hub-heading { margin-bottom: 26px; }
.cinema-light .hub-heading h1 { margin: 6px 0 10px; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -.045em; }
.cinema-light .hub-heading p { color: var(--home-secondary); }
.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cinema-light .home-tile { display: flex; align-items: center; gap: 16px; min-height: 144px; padding: 24px; border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-surface); color: var(--home-ink); text-decoration: none; box-shadow: 0 3px 10px #0f172a03; }
.home-tile > span:nth-child(2) { flex: 1; min-width: 0; }
.home-tile strong, .home-tile small { display: block; }
.home-tile strong { font-size: 1.15rem; line-height: 1.25; }
.cinema-light .home-tile small { margin-top: 8px; color: var(--home-secondary); line-height: 1.45; }
.cinema-light .tile-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--home-soft); color: var(--home-accent); }
.cinema-light .home-tile:hover { border-color: var(--home-accent); background: var(--home-alt); }
.cinema-light .home-tile.primary-tile { background: var(--home-accent); color: white; border-color: var(--home-accent); }
.cinema-light .primary-tile small { color: white; }
.cinema-light .primary-tile .tile-icon { background: #ffffff24; color: white; }
.cinema-light .primary-tile:hover { background: var(--home-hover); }
.cinema-light .app-footer { text-align: center; color: var(--home-secondary); font-size: .8rem; padding: 24px 16px 28px; }
.app-footer span { display: block; margin-top: 6px; font-size: .7rem; }
.cinema-light .section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 0; }
.cinema-light .section-title h1 { margin: 0; font-size: 1.8rem; }
.cinema-light .home-content { padding-top: 22px; }
.cinema-light .movie-card { color: var(--home-ink); text-decoration: none; }
.cinema-light .movie-card:hover { border-color: var(--home-accent); }
/* Do not derive toggle appearance from whether JS has created a class attribute. */
.cinema-light .medium-buttons button:not(:disabled) { background: var(--home-surface); border: 1px solid var(--home-border); color: var(--home-secondary); min-height: 44px; padding: 10px 14px; border-radius: 12px; }
.cinema-light .medium-buttons button:not(:disabled):hover { background: var(--home-soft); color: var(--home-hover); border-color: var(--home-accent); }
.cinema-light .medium-buttons button.selected:not(:disabled) { background: var(--home-soft); border-color: var(--home-accent); color: var(--home-hover); }
.cinema-light .library-search { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(3, auto); align-items: end; gap: 12px; margin: 20px 0; }
.library-search label { display: grid; gap: 8px; min-width: 0; }
.report-type-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-block: 12px; }
.report-type-filter label { display: grid; gap: 8px; }
.library-search-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cinema-light .copy-gallery { display: block; width: min(100%, 330px); margin: 16px auto; border-radius: 14px; background: var(--home-alt); touch-action: pan-y pinch-zoom; cursor: grab; overflow: hidden; }
.copy-gallery:active { cursor: grabbing; }
.copy-gallery img { display: block; width: 100%; height: 360px; object-fit: contain; user-select: none; -webkit-user-select: none; }
.copy-gallery img[hidden] { display: none; }
.cinema-light .movie-detail-hero { display: block; }
.cinema-light .movie-detail-summary .detail-list { margin-top: 14px; }
.cinema-light .copy-editor { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--home-border); }
.cinema-light .copy-editor > summary { color: var(--home-accent); min-height: 44px; padding: 12px 0; cursor: pointer; }
.copy-edit-form { display: grid; gap: 14px; margin-top: 12px; }
.copy-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.copy-edit-fields label { display: grid; gap: 8px; min-width: 0; }
.cinema-light .copy-edit-form button { min-height: 44px; }
.copy-edit-status { min-height: 1.3em; margin: 0; }
.copy-edit-status.error { color: var(--home-danger); }
.copy-edit-status.success { color: var(--home-success); }
.cinema-light .duplicate-edit-warning { padding: 16px; border: 1px solid var(--home-warning); border-radius: 12px; background: #fffbeb; color: #92400e; }
.copy-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cinema-light .source-details { margin-top: 16px; color: var(--home-secondary); }
.source-details summary { padding: 10px 0; cursor: pointer; min-height: 44px; }
.cinema-light .settings-card > .home-style-menu { position: relative; display: inline-block; }
@media (max-width: 640px) {
  .cinema-light .compact-header { padding: 8px 18px 4px; }
  .cinema-light .compact-header .browser-library-row { flex-wrap: nowrap; }
  .compact-header .browser-library-row > a { flex-shrink: 0; }
  .cinema-light .page.home-hub { padding-top: 26px; }
  .home-tiles { grid-template-columns: 1fr; gap: 12px; }
  .cinema-light .home-tile { padding: 18px; min-height: 102px; gap: 12px; border-radius: 18px; }
  .home-tile strong { font-size: 1.03rem; }
  .home-tile small { font-size: .8rem; }
  .cinema-light .hub-heading { margin-bottom: 22px; }
  .cinema-light .hub-heading h1 { font-size: 2rem; }
  .cinema-light .library-search { grid-template-columns: 1fr; }
  .copy-edit-fields { grid-template-columns: 1fr; }
  .copy-gallery img { height: 330px; }
  .cinema-light .movie-detail-topbar { flex-direction: column; }
}
.copy-fallback-poster { display: block; max-width: 100%; max-height: 300px; margin: 16px auto; border-radius: 12px; }
.cinema-light .compact-header .account-menu { padding: 0; border: 0; background: transparent; }
.cinema-light .compact-header .browser-user-row { align-items: center; }
.cinema-light .compact-header .library-context-label .browser-library-name { flex: 0 1 auto; }
.cinema-light .settings-card .home-style-menu > summary { width: auto; padding: 10px 14px; }
.cinema-light .settings-card .home-style-picker { position: static; width: min(100%, 280px); margin-top: 10px; box-shadow: none; }
.cinema-light .genre-movie-card { text-decoration: none; }
@media (max-width: 640px) {
  .cinema-light .library-search { grid-template-columns: minmax(0, 1fr) auto; }
  .library-search > label:first-child { grid-column: 1 / -1; }
}
.cinema-light .compact-header { width: min(100%, 940px); }
.cinema-light .medium-buttons button:disabled { background: #e2e8f0; border-color: var(--home-border); color: #526176; cursor: not-allowed; }
.cinema-light .medium-buttons button.selected:disabled { background: var(--home-soft); border-color: var(--home-accent); color: var(--home-hover); }
.cinema-light .copy-danger, .cinema-light .copy-danger-secondary { min-height: 44px; padding: 10px 14px; border: 1px solid #b42318; border-radius: 12px; font: inherit; cursor: pointer; }
.cinema-light .copy-danger { background: #b42318; color: #fff; }
.cinema-light .copy-danger:hover { background: #912018; }
.cinema-light .copy-danger-secondary { background: var(--home-surface); color: #b42318; }
.cinema-light .copy-danger-secondary:hover { background: #fef3f2; }
.copy-delete-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--home-border); display: flex; justify-content: flex-end; }
.cinema-light .copy-delete-icon { width: 44px; height: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; }
.cinema-light .copy-delete-icon:disabled { background: #e2e8f0; border-color: var(--home-border); color: #526176; cursor: not-allowed; }
.copy-removal-card { max-width: 640px; margin-inline: auto; }
.copy-removal-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.removal-cover { display: block; max-width: 100%; max-height: 220px; margin-block: 16px; border-radius: 12px; }
.cinema-light .copy-success { padding: 14px; border: 1px solid var(--home-success); border-radius: 12px; color: var(--home-success); background: #ecfdf3; }

/* Direct settings picker and compact provider statuses share the card hierarchy. */
.cinema-light .home-style-picker.appearance-inline { position: static; width: min(100%, 320px); padding: 0; border: 0; box-shadow: none; margin-top: 16px; }
.login-provider-badge { display: inline-flex; margin: 4px 4px 4px 0; padding: 5px 10px; border: 1px solid var(--home-border); border-radius: 999px; color: var(--home-ink); background: var(--home-alt); }
.cinema-light .account-menu-panel .home-style-menu { width: 100%; }
.cinema-light .account-menu-panel .home-style-menu > summary { display: flex; width: 100%; border: 0; gap: 8px; padding: 10px; }
.cinema-light .account-menu-panel .home-style-picker { position: static; width: 100%; box-shadow: none; }

@media (max-width: 640px) { .library-search > label:nth-child(2) { grid-column: 1 / -1; } }

.copy-photo-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--home-border); }
.copy-photo-field { display: grid; gap: 8px; min-width: 0; }
.copy-photo-field input[type=file] { width: 100%; max-width: 100%; min-width: 0; }
.copy-image-card .copy-photo-preview { max-height: 180px; width: 100%; object-fit: contain; }
.copy-photo-remove { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.cinema-light .appearance-header { flex-wrap: wrap; }
.cinema-light .appearance-header .language-switch { flex: 1 0 100%; }
.cinema-light .language-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem; font-size: .85rem; }
.cinema-light .account-menu-panel .language-switch { padding: 10px; }
.cinema-light .language-switch-actions { display: flex; gap: .25rem; }
.cinema-light .language-switch-actions button { display: inline-flex; width: auto; min-height: 44px; align-items: center; padding: .35rem .6rem; border: 1px solid transparent; border-radius: .5rem; background: var(--home-surface); color: var(--home-accent); font: inherit; cursor: pointer; }
.cinema-light .language-switch-actions button[aria-pressed="true"] { border-color: currentColor; font-weight: 700; }
