:root {
    color: #f5f5f7;
    background: #07080d;
    font-family: "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(89, 73, 180, 0.26), transparent 34%),
        radial-gradient(circle at 90% 18%, rgba(37, 126, 160, 0.2), transparent 30%),
        radial-gradient(circle at 45% 100%, rgba(162, 46, 93, 0.18), transparent 38%),
        #07080d;
    background-attachment: fixed;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 100% 5px;
    content: "";
    pointer-events: none;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 92px;
}

.narrow-page {
    width: min(760px, calc(100% - 32px));
    padding-top: 36px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 9px 13px;
    border-radius: 15px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-link {
    font-weight: 800;
    text-decoration: none;
}

.history-link {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #d7def7;
    background: rgba(116, 140, 220, 0.12);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.history-link:hover,
.history-link.active {
    border-color: rgba(190, 206, 255, 0.4);
    background: rgba(137, 162, 245, 0.24);
}

.user-area {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 5px 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(4, 5, 10, 0.28);
}

.account-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #93e6b6;
    box-shadow: 0 0 9px rgba(147, 230, 182, 0.75);
}

.account-name {
    font-size: 12px;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #bfc2ce;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 9px;
    cursor: pointer;
}

.logout-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 46px);
    border-radius: 26px;
}

.hero::after {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(170, 203, 255, 0.14);
    filter: blur(4px);
    content: "";
}

.eyebrow {
    margin: 0 0 8px;
    color: #b9c9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

h1 {
    margin: 0;
    font-size: clamp(31px, 7vw, 52px);
    letter-spacing: -0.045em;
}

.hero p:not(.eyebrow) {
    color: #c9cad4;
}

.primary-link,
.back-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.primary-link,
.submit-button {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #10111a;
    background: linear-gradient(135deg, #ffffff, #cbd8ff);
    box-shadow: 0 10px 28px rgba(116, 145, 238, 0.28);
    font-weight: 800;
    cursor: pointer;
}

.back-link {
    margin-bottom: 18px;
    color: #c9d5ff;
}

.filter-panel {
    display: grid;
    gap: 8px;
    margin: 8px 0 20px;
    padding: 11px 12px;
    border-radius: 15px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.rating-row,
.period-row {
    width: 100%;
}

.filter-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.filter-item label,
.filter-panel > label,
.filter-row > label {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
}

.filter-panel input,
.filter-panel select {
    height: 38px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.search-field {
    width: 100%;
}

.search-field input {
    flex: 1;
    min-width: 0;
}

.person-filter select {
    width: 82px;
}

.rating-range-field {
    flex: 1 1 auto;
    min-width: 0;
}

.date-filter {
    flex: 1 1 auto;
    min-width: 0;
}

.date-filter select {
    flex: 1 1 0;
    min-width: 0;
}

.period-range-selects {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.period-range-selects select {
    min-width: 0;
}

.period-range-selects .year-select {
    flex: 1.25 1 0;
}

.period-range-selects .month-select {
    flex: 1 1 0;
}

.period-range-selects span {
    flex: 0 0 auto;
    color: #9b9da9;
    font-size: 11px;
}

.period-range-selects .period-divider {
    color: #d5d8e5;
}

.filter-panel label,
.editor-card label,
.login-card label {
    display: block;
    margin: 0 0 7px;
    color: #b8b9c4;
    font-size: 13px;
    font-weight: 700;
}

.filter-row label {
    margin: 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    outline: none;
    color: #f7f7fa;
    background: rgba(4, 5, 10, 0.46);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(167, 190, 255, 0.74);
    box-shadow: 0 0 0 4px rgba(111, 139, 231, 0.16);
}

.year-group {
    overflow: hidden;
    margin-top: 14px;
    border-radius: 19px;
}

.year-summary {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.year-summary::-webkit-details-marker {
    display: none;
}

.year-summary-title {
    font-size: 19px;
    font-weight: 800;
}

.year-summary-count {
    margin-left: auto;
    color: #aeb5cb;
    font-size: 11px;
}

.year-summary-arrow {
    margin-left: 10px;
    color: #dce4ff;
    font-size: 20px;
    transition: transform 180ms ease;
}

.year-group[open] .year-summary-arrow {
    transform: rotate(180deg);
}

.year-months {
    padding: 0 12px 16px;
}

.period-group {
    margin-top: 16px;
}

.period-title {
    margin: 0 0 10px 4px;
    color: #dedee7;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.history-page {
    max-width: 940px;
}

.history-intro {
    margin-top: 14px;
    padding: clamp(22px, 5vw, 40px);
    border-radius: 26px;
}

.history-intro h1 {
    font-size: clamp(32px, 7vw, 50px);
}

.history-intro > p:last-child {
    margin-bottom: 0;
    color: #b8bac7;
}

.history-year {
    margin-top: 16px;
    padding: 20px;
    border-radius: 24px;
}

.history-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.history-year-header h2 {
    margin: 0;
    font-size: 28px;
}

.history-total {
    color: #dce4ff;
    font-size: 13px;
}

.history-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.history-count {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: rgba(5, 6, 12, 0.24);
}

.history-count span,
.history-count strong {
    display: block;
}

.history-count span {
    color: #999cab;
    font-size: 11px;
}

.history-count strong {
    margin-top: 4px;
    font-size: 19px;
}

.history-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.history-person {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    background: rgba(5, 6, 12, 0.22);
}

.history-person h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.history-pick {
    position: relative;
    padding: 11px 12px;
    border-radius: 13px;
}

.history-pick + .history-pick {
    margin-top: 8px;
}

.history-pick.best {
    background: linear-gradient(135deg, rgba(201, 161, 55, 0.2), rgba(255, 255, 255, 0.04));
}

.history-pick.worst {
    background: linear-gradient(135deg, rgba(107, 113, 145, 0.18), rgba(255, 255, 255, 0.035));
}

.history-pick-label {
    display: block;
    margin-bottom: 5px;
    color: #aeb2c2;
    font-size: 9px;
    font-weight: 800;
}

.history-pick-links a {
    display: block;
    overflow: hidden;
    color: #f6f6f8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-pick-links a:hover {
    text-decoration: underline;
}

.history-no-pick {
    color: #818492;
    font-size: 12px;
}

.pick-editor {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pick-editor > summary {
    padding: 11px 2px 2px;
    color: #b9c9ff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.pick-editor-body > p {
    margin: 9px 0;
    color: #898d9e;
    font-size: 10px;
}

.pick-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
}

.pick-choice-group legend {
    width: 100%;
    margin-bottom: 4px;
    color: #d6d9e6;
    font-size: 11px;
    font-weight: 800;
}

.pick-choice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #b9bbc7;
    background: rgba(255, 255, 255, 0.04);
    font-size: 10px;
    cursor: pointer;
}

.pick-choice:has(input:checked) {
    border-color: rgba(255, 214, 107, 0.45);
    color: #fff0c1;
    background: rgba(173, 128, 34, 0.2);
}

.pick-choice input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: #ffd66b;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.content-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border-radius: 17px;
    color: inherit;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(205, 217, 255, 0.34);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.46);
}

.card-poster {
    width: 92px;
    height: 138px;
    object-fit: cover;
    background: #141621;
}

.placeholder-poster {
    display: grid;
    place-items: center;
    color: rgba(231, 235, 255, 0.68);
    background:
        radial-gradient(circle at 25% 20%, rgba(138, 161, 255, 0.5), transparent 32%),
        linear-gradient(145deg, #272a42, #11131d 70%);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.card-body {
    min-width: 0;
    padding: 10px;
}

.card-body h3 {
    margin: 6px 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.card-original-title,
.original-title {
    margin: 2px 0 7px;
    overflow: hidden;
    color: #90919d;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-badge {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid rgba(183, 199, 255, 0.22);
    border-radius: 999px;
    color: #dce4ff;
    background: rgba(124, 148, 232, 0.16);
    font-size: 9px;
    font-weight: 800;
}

.compact-rating {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    margin: 4px 0;
    font-size: 10px;
}

.compact-rating strong,
.large-stars {
    color: #ffd66b;
    letter-spacing: 0.04em;
}

.rating-slider-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
}

.rating-slider-row label {
    margin: 0;
}

.rating-slider-row output,
#my-review-rating-value {
    color: #ffd66b;
    font-size: 13px;
    font-weight: 800;
}

.rating-slider {
    height: 24px;
    padding: 0;
    border: 0;
    accent-color: #ffd66b;
    background: transparent;
    cursor: pointer;
}

.dual-range {
    --range-left: 0%;
    --range-right: 0%;
    position: relative;
    flex: 1 1 auto;
    min-width: 100px;
    height: 26px;
}

.dual-range-track {
    position: absolute;
    top: 11px;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 999px;
    background: #3c3e48;
}

.dual-range-fill {
    position: absolute;
    top: 0;
    right: var(--range-right);
    bottom: 0;
    left: var(--range-left);
    border-radius: inherit;
    background: #ffd66b;
}

.dual-range .rating-slider {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 26px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    background: transparent;
    pointer-events: none;
}

.dual-range .rating-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.dual-range .rating-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 2px solid #171923;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #ffd66b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    cursor: grab;
}

.dual-range .rating-slider::-moz-range-track {
    height: 4px;
    background: transparent;
}

.dual-range .rating-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #171923;
    border-radius: 50%;
    background: #ffd66b;
    pointer-events: auto;
    cursor: grab;
}

#rating-range-value {
    min-width: 50px;
    color: #ffd66b;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.unrated-notice {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -10px 0 18px;
    padding: 11px 14px;
    border-radius: 13px;
    color: #dfe5ff;
    background:
        radial-gradient(circle at 8% 0%, rgba(173, 196, 255, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(104, 126, 198, 0.07));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 14px 36px rgba(0, 0, 0, 0.28);
    text-align: left;
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    cursor: pointer;
}

.unrated-notice[hidden] {
    display: none;
}

.unrated-notice:hover,
.unrated-notice.active {
    border-color: rgba(174, 194, 255, 0.42);
    background:
        radial-gradient(circle at 8% 0%, rgba(185, 205, 255, 0.27), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(104, 126, 198, 0.1));
}

.unrated-notice-text {
    font-size: 13px;
    font-weight: 700;
}

.unrated-notice-action {
    flex: 0 0 auto;
    color: #b9c9ff;
    font-size: 12px;
}

.floating-add-link {
    position: fixed;
    right: max(20px, calc((100vw - 1180px) / 2 + 20px));
    bottom: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 17px 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #11131c;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(199, 215, 255, 0.94));
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.42), 0 6px 20px rgba(114, 143, 234, 0.25);
    font-size: 13px;
    text-decoration: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.floating-add-link span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.floating-add-link:hover {
    transform: translateY(-2px);
}

.star-display {
    --rating: 0;
    position: relative;
    display: inline-block;
    color: #484a55;
    white-space: nowrap;
}

.star-display::before {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: calc(var(--rating) * 20%);
    color: #ffd66b;
    content: "★★★★★";
    white-space: nowrap;
}

.rating-visual {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rating-visual small {
    color: #c4c5cf;
    font-size: 10px;
    letter-spacing: 0;
}

.compact-stars {
    font-size: 12px;
}

.rating-with-number {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-with-number strong {
    color: #d9dae2;
    font-size: 14px;
}

.large-stars {
    font-size: 25px;
}

.rating-empty {
    color: #92949f;
    font-weight: 700;
}

.star-picker {
    --rating: 0;
    position: relative;
    width: fit-content;
    margin: 2px 0 4px;
    color: #4a4c57;
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1;
    letter-spacing: 0.03em;
}

.star-picker-base,
.star-picker-fill {
    display: block;
    white-space: nowrap;
}

.star-picker-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    width: calc(var(--rating) * 20%);
    color: #ffd66b;
    pointer-events: none;
}

.star-picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.star-picker:focus-within {
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(111, 139, 231, 0.22);
}

#my-review-rating-value {
    display: block;
    min-height: 20px;
    margin-bottom: 8px;
}

.waiting-rating {
    min-height: 30px;
    margin: 8px 0 0;
    color: #9b9ca7;
    font-size: 10px;
    line-height: 1.5;
}

.watched-date,
.muted {
    color: #898a95;
    font-size: 12px;
}

.watched-date {
    margin: 7px 0 0;
    font-size: 9px;
}

.range-control {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.range-control span {
    color: #91939f;
    font-size: 11px;
}

.date-label-row,
.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-label-row {
    justify-content: space-between;
}

.date-range-inputs input {
    min-width: 0;
}

.date-range-inputs span {
    color: #838590;
}

.small-text-button,
.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #bfc5d9;
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
}

.small-text-button {
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 10px;
}

.secondary-button {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 11px;
}

.manual-content {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(4, 5, 10, 0.24);
}

.manual-content[hidden] {
    display: none;
}

.manual-content h2 {
    margin-bottom: 8px;
}

.empty-message {
    padding: 42px 20px;
    border-radius: 22px;
    color: #aaaab5;
    text-align: center;
}

.detail-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
    padding: 26px;
    border-radius: 30px;
}

.detail-poster {
    width: 230px;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.detail-content h1 {
    margin-top: 10px;
    font-size: clamp(30px, 6vw, 48px);
}

.content-info {
    margin-bottom: 0;
}

.content-info div {
    margin-top: 18px;
}

.content-info dt {
    color: #b9c9ff;
    font-weight: 800;
}

.content-info dd {
    margin: 5px 0 0;
    color: #c6c6d0;
    line-height: 1.6;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.person-review,
.editor-card {
    padding: 24px;
    border-radius: 24px;
}

.person-review h2,
.editor-card h2 {
    margin-top: 0;
}

.editor-card {
    margin-top: 18px;
}

.editor-card h1 {
    margin-bottom: 28px;
    font-size: clamp(30px, 7vw, 48px);
}

.form-help {
    margin: -16px 0 26px;
    color: #a9aab5;
    line-height: 1.6;
}

.autocomplete-wrap {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 10;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(430px, 62vh);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(15, 17, 27, 0.96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
}

.autocomplete-results:empty {
    display: none;
}

.search-result {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
    outline: none;
    background: rgba(154, 179, 255, 0.16);
}

.result-poster {
    width: 54px;
    height: 81px;
    border-radius: 8px;
    object-fit: cover;
}

.result-copy {
    align-self: center;
    min-width: 0;
}

.result-copy strong,
.result-copy small {
    display: block;
}

.result-copy strong {
    margin-bottom: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-copy small {
    color: #a7a8b4;
    line-height: 1.45;
}

.form-message {
    min-height: 20px;
    margin: 8px 2px 0;
    color: #aebddd;
    font-size: 13px;
}

.selected-content {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid rgba(190, 206, 255, 0.24);
    border-radius: 20px;
    background: rgba(122, 145, 220, 0.1);
}

.selected-content[hidden] {
    display: none;
}

.selected-poster {
    width: 120px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
}

.selected-poster[hidden] {
    display: none;
}

.selected-copy {
    min-width: 0;
}

.selected-copy h2 {
    margin: 10px 0 3px;
}

.selected-info,
.selected-overview {
    color: #b9bac5;
    font-size: 13px;
    line-height: 1.55;
}

.selected-overview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.submit-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.tmdb-credit {
    margin: 24px auto 0;
    color: #777985;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.tmdb-credit a {
    color: #9eabd1;
}

.delete-area {
    margin-top: 22px;
    text-align: center;
}

.delete-button {
    padding: 10px 14px;
    border: 1px solid rgba(255, 114, 139, 0.32);
    border-radius: 999px;
    color: #ff9baf;
    background: rgba(129, 27, 49, 0.18);
    cursor: pointer;
}

.delete-button:hover {
    background: rgba(162, 35, 63, 0.3);
}

.delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.editor-card label {
    margin-top: 17px;
}

.form-error {
    color: #ff9baf;
}

.form-success {
    color: #9ee6bf;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-shell {
    width: min(440px, 100%);
}

.login-card {
    padding: 34px;
    border-radius: 32px;
}

.login-card h1 {
    font-size: 46px;
}

.account-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0 20px;
}

.account-choice {
    padding: 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #e9e9ef;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
    cursor: pointer;
}

.account-choice.selected {
    border-color: rgba(190, 206, 255, 0.68);
    background: linear-gradient(145deg, rgba(154, 179, 255, 0.35), rgba(255, 255, 255, 0.1));
    box-shadow: 0 12px 30px rgba(72, 100, 194, 0.28);
}

.login-card .submit-button {
    width: 100%;
}

@media (max-width: 720px) {
    .page {
        padding: 14px 0 88px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        margin-bottom: 14px;
    }

    .filter-row {
        gap: 9px;
    }

    .date-filter {
        width: 100%;
    }

    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-people {
        grid-template-columns: 1fr;
    }

    .hero {
        border-radius: 28px;
    }

    .detail-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
    }

    .detail-poster {
        width: 112px;
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .page,
    .narrow-page {
        width: min(100% - 20px, 1040px);
    }

    .top-bar {
        font-size: 12px;
    }

    .top-actions {
        gap: 5px;
    }

    .history-link {
        padding: 5px 7px;
        font-size: 9px;
    }

    .user-area {
        gap: 5px;
    }

    .account-name {
        font-size: 11px;
    }

    .logout-button {
        padding: 4px 6px;
        font-size: 9px;
    }

    .date-filter {
        gap: 5px;
    }

    .date-filter select {
        height: 34px;
        padding: 5px 2px;
        font-size: 11px;
        text-align: center;
    }

    .period-range-selects {
        gap: 3px;
    }

    .period-range-selects span {
        font-size: 10px;
    }

    .rating-row {
        gap: 6px;
    }

    .rating-range-field {
        gap: 5px;
    }

    .rating-range-field label {
        font-size: 11px;
    }

    .person-filter select {
        width: 66px;
        padding-right: 4px;
    }

    .dual-range {
        min-width: 55px;
    }

    .floating-add-link {
        right: 12px;
        bottom: 14px;
        padding: 11px 15px 11px 12px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .year-months {
        padding: 0 8px 12px;
    }

    .history-year {
        padding: 15px;
    }

    .content-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .card-poster {
        width: 82px;
        height: 123px;
    }

    .detail-card {
        display: block;
    }

    .detail-poster {
        width: 100%;
        max-height: 420px;
        margin-bottom: 22px;
    }

    .login-card {
        padding: 24px;
    }

    .selected-content {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
        padding: 12px;
    }

    .selected-poster {
        width: 82px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
