:root {
    --app-bg: #070a12;
    --app-surface: rgba(13, 18, 34, 0.88);
    --app-surface-strong: #11182d;
    --app-ink: #edf7ff;
    --app-muted: #91a4bc;
    --app-border: rgba(117, 235, 255, 0.20);
    --app-accent: #00e5ff;
    --app-accent-dark: #00a9c7;
    --app-gold: #ff3df2;
    --app-neon-green: #57ff9a;
    --app-shadow: 0 18px 48px rgba(0, 229, 255, 0.16);
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(117, 235, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 235, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 12% 12%, rgba(0, 229, 255, 0.24), transparent 270px),
        radial-gradient(circle at 88% 8%, rgba(255, 61, 242, 0.18), transparent 320px),
        linear-gradient(180deg, rgba(8, 12, 24, 0.36), rgba(7, 10, 18, 0.96) 360px),
        var(--app-bg);
    background-size: 36px 36px, 36px 36px, auto, auto, auto, auto;
    color: var(--app-ink);
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    ointer-events: none;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), transparent 38%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 70%);
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1180px;
}

header {
    position: sticky;
    top: 0;
    margin: 0 -12px 18px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(7, 10, 18, 0.82);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

header h1,
header h1 a {
    margin-bottom: 0;
    color: var(--app-ink) !important;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

header h1::before {
    content: "🎬";
    display: inline-block;
    width: auto;
    height: auto;
    margin-right: 8px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.65));
}

h2,
h3 {
    font-weight: 800;
    letter-spacing: 0;
}

section > h2,
section h2 {
    font-size: 1.35rem;
}

.btn-primary {
    border-color: var(--app-accent);
    background: var(--app-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--app-accent-dark);
    background: var(--app-accent-dark);
}

.btn-outline-primary {
    border-color: var(--app-accent);
    color: var(--app-accent);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.btn-active {
    border-color: var(--app-accent);
    background: var(--app-accent);
    color: #fff;
}

.form-control {
    border-color: var(--app-border);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.92);
}

.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 2px;
    cursor: pointer;
}

.profile-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.profile-edit-preview {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: #f8f9fa;
    object-fit: cover;
}

.notification-area {
    position: relative;
}

.notification-button {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    color: var(--app-ink);
    background: var(--app-surface);
    cursor: pointer;
}

.notification-button:hover,
.notification-button:focus {
    border-color: rgba(200, 63, 49, 0.45);
    outline: 0;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--app-bg);
    border-radius: 999px;
    background: var(--app-accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 14px;
}

.notification-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    z-index: 1200;
}

.notification-menu-title {
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border);
    font-weight: 800;
}

.notification-rows {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    color: var(--app-ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(200, 63, 49, 0.07);
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: transparent;
}

.notification-unread .notification-dot {
    background: var(--app-accent);
}

.notification-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-copy span {
    font-size: 0.9rem;
    line-height: 1.35;
}

.notification-copy small,
.notification-empty {
    color: var(--app-muted);
    font-size: 0.78rem;
}

.notification-empty {
    padding: 14px;
}

.profile-menu {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 180px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.profile-menu button {
    width: 100%;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.profile-menu button:hover {
    background: #f8f9fa;
}

.buttons {
    width: 100%;
    cursor: pointer;
}

.buttons div {
    opacity: 0.5;
    background-color: coral;
}

.buttons .rating-action {
    background-color: white;
    opacity: 1;
}

.movie-action {
    position: relative;
}

.watched-menu {
    position: absolute;
    left: 50%;
    bottom: 100%;
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    transform: translateX(-50%);
    z-index: 900;
}

.watched-menu button {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.watched-menu button:hover {
    background: #f8f9fa;
}

.watched-neutral {
    display: inline-block;
    font-weight: 700;
    line-height: 1;
}

.watched-review-panel {
    width: min(520px, 100%);
}

.watched-status-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.watched-status-options button {
    display: grid;
    gap: 6px;
    place-items: center;
    min-height: 72px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    cursor: pointer;
}

.watched-status-options button.is-selected {
    border-color: var(--app-accent);
    color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(200, 63, 49, 0.12);
}

.watched-status-options span {
    font-size: 0.8rem;
    font-weight: 700;
}

.card-body {
    padding: 0;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--app-surface);
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow);
}

.movie-poster-empty {
    display: block;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 61, 242, 0.12)),
        rgba(17, 24, 45, 0.92);
}

.btn-active {
    opacity: 1 !important;
}

.menu-open {
    opacity: 1 !important;
}

.movie-detail-poster,
.person-detail-img {
    border-radius: 4px;
}

.movie-credits dd {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.person-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-radius: 999px;
    color: #343a40;
    background: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
}

.person-badge:hover {
    color: #0056b3;
    border-color: #80bdff;
    background: #fff;
    text-decoration: none;
}

.person-badge.person-badge-favorite {
    border-color: var(--app-gold);
    color: #8a6a2f;
    background: rgba(214, 168, 79, 0.18);
}

.person-badge.person-badge-favorite:hover {
    border-color: var(--app-gold);
    color: #6f541f;
    background: rgba(214, 168, 79, 0.28);
}

.cast-cards-row {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    padding: 2px 2px 8px;
    width: calc(100vw - 1em);
}

.cast-card {
    flex: 0 0 150px;
    border: 1px solid #d7dbe0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    color: #212529;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cast-card:hover {
    color: #212529;
    text-decoration: none;
    transform: translateY(-2px);
}

.cast-card.is-favorite {
    border: 2px solid #ff8a00;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.14);
}

.person-card.is-favorite {
    border: 2px solid #ff8a00;
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.14);
}

.cast-card-image-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #e9ecef;
}

.cast-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cast-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2.2rem;
}

.cast-card-body {
    padding: 10px 10px 12px;
}

.cast-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cast-card-character {
    margin-top: 4px;
    font-size: 0.95rem;
    color: #495057;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.person-card-link {
    display: block;
    color: #212529;
    text-decoration: none;
}

.person-card-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.person-card-img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.person-card-placeholder,
.person-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #6c757d;
}

.person-card-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    font-size: 3rem;
}

.person-detail-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
    font-size: 5rem;
}

.person-card-name {
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.person-favorite-button,
.person-detail-favorite {
    border: 1px solid #ced4da;
    color: #adb5bd;
    background: #fff;
    cursor: pointer;
}

.person-favorite-button {
    width: 100%;
    height: 34px;
}

.person-detail-favorite {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
}

.person-favorite-button.btn-active,
.person-detail-favorite.btn-active {
    color: #e83e8c;
    border-color: #e83e8c;
}

.mypage-rank,
.person-fan-rank {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    font-weight: 600;
}

.mypage-rank:empty,
.person-fan-rank:empty {
    display: none;
}

.mypage-toolbar {
    min-height: 32px;
}

.mypage-profile-summary {
    gap: 12px;
}

.mypage-profile-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: #f8f9fa;
    object-fit: cover;
}

.mypage-account-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.mypage-count {
    font-weight: 600;
}

.ranking-genre-select {
    max-width: 220px;
}

.movie-strip {
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
}

.trending-movie-grid .card {
    margin-right: 0 !important;
}

.recommendation-card {
    flex: 0 0 9rem;
    width: 9rem;
}

.recommendation-card .card {
    margin-right: 0 !important;
}

.recommendation-reason {
    display: flex;
    align-items: center;
    min-height: 38px;
    margin-bottom: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(200, 63, 49, 0.22);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    color: var(--app-accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    text-wrap: balance;
}

.search-results-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.search-results-grid .card {
    margin-right: 0 !important;
}

.search-pagination {
    margin-top: 20px;
}

.search-pagination .pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.search-pagination .page-link {
    min-width: 36px;
    padding: 7px 11px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-accent);
    background: rgba(255, 253, 248, 0.86);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 5px 14px rgba(20, 20, 20, 0.05);
}

.search-pagination .page-link:hover,
.search-pagination .page-link:focus {
    border-color: rgba(200, 63, 49, 0.42);
    color: var(--app-accent-dark);
    background: var(--app-surface);
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.08);
}

.search-pagination .page-item.active .page-link {
    border-color: var(--app-accent);
    color: #fff;
    background: var(--app-accent);
    box-shadow: 0 8px 18px rgba(200, 63, 49, 0.22);
}

.search-pagination .page-item.disabled .page-link {
    border-color: rgba(23, 23, 23, 0.08);
    color: var(--app-muted);
    background: rgba(255, 253, 248, 0.58);
    box-shadow: none;
    opacity: 0.7;
}

.inline-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: min(520px, 100%);
    min-height: 94px;
    padding: 0 16px;
}

.inline-loading-label {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: calc(100% - 24px);
    transform: translateX(-50%);
    color: var(--app-ink);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    z-index: 10;
}

.search-result-section {
    min-width: 0;
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title-row h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.section-title-row span {
    color: var(--app-muted);
    font-size: 0.9rem;
}

.app-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
}

.app-modal-panel {
    width: min(920px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.search-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-modal-pane {
    min-width: 0;
}

.analysis-card {
    height: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.analysis-card h4 {
    font-size: 1rem;
}

.analysis-card ol {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.analysis-card li,
.movie-search-result,
.list-movie-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.movie-search-result {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.movie-search-result-with-poster {
    justify-content: flex-start;
}

.movie-search-poster {
    flex: 0 0 auto;
    width: 2.2em;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: #e9ecef;
}

.movie-search-poster-empty {
    display: inline-block;
}

.psychology-diagnosis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 10px 8px;
}

.psychology-diagnosis-flow {
    position: relative;
    width: min(360px, 100%);
    height: 84px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0.75), rgba(255, 239, 237, 0.85));
    border: 1px solid rgba(200, 63, 49, 0.2);
}

.psychology-movie-chip,
.psychology-ai-core {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.psychology-movie-chip {
    left: -2.6rem;
    font-size: 1.15rem;
    background: #fff;
    box-shadow: 0 6px 16px rgba(25, 25, 25, 0.12);
    border: 1px solid rgba(200, 63, 49, 0.2);
    animation: psychologyMovieToAi 2.8s linear infinite;
}

.psychology-movie-chip:nth-child(1) { animation-delay: 0s; }
.psychology-movie-chip:nth-child(2) { animation-delay: 0.45s; }
.psychology-movie-chip:nth-child(3) { animation-delay: 0.9s; }
.psychology-movie-chip:nth-child(4) { animation-delay: 1.35s; }
.psychology-movie-chip:nth-child(5) { animation-delay: 1.8s; }

.psychology-ai-core {
    right: 10px;
    z-index: 2;
    font-size: 1.25rem;
    background: radial-gradient(circle at 35% 30%, #fff 8%, #ffddd8 45%, #f4b4ab 100%);
    border: 1px solid rgba(200, 63, 49, 0.32);
    box-shadow: 0 0 0 0 rgba(200, 63, 49, 0.3);
    animation: psychologyAiPulse 1.7s ease-in-out infinite;
}

.psychology-diagnosis-label {
    color: var(--app-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

@keyframes psychologyMovieToAi {
    0% {
        left: -2.6rem;
        opacity: 0;
        transform: translateY(-50%) scale(0.75);
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    78% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    100% {
        left: calc(100% - 2.8rem);
        opacity: 0;
        transform: translateY(-50%) scale(0.2);
    }
}

@keyframes psychologyAiPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(200, 63, 49, 0.3);
    }
    55% {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 0 0 12px rgba(200, 63, 49, 0);
    }
}

.draggable-list-row {
    cursor: grab;
}

.draggable-list-row.is-dragging {
    opacity: 0.5;
}

.drag-handle {
    flex: 0 0 auto;
    color: var(--app-muted);
    font-weight: 700;
}

.list-row-title {
    min-width: 0;
    flex: 1;
}

.analysis-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
}

.movie-list-card {
    display: block;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-ink);
    background: var(--app-surface);
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.06);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.movie-list-card:hover {
    color: var(--app-ink);
    border-color: rgba(200, 63, 49, 0.38);
    box-shadow: var(--app-shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.movie-list-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #6c757d;
    font-size: 0.85rem;
}

.movie-list-badge {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid var(--app-accent);
    border-radius: 999px;
    color: var(--app-accent);
    background: rgba(200, 63, 49, 0.08);
    font-size: 0.75rem;
    line-height: 1.2;
}

.movie-list-badge-liked {
    border-color: var(--app-gold);
    color: #8a641c;
    background: rgba(214, 168, 79, 0.14);
}

.list-strip {
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
}

.list-strip-item {
    flex: 0 0 100%;
    width: 100%;
}

.list-card-modern {
    position: relative;
    overflow: hidden;
    min-height: 170px;
}

.review-card,
.discussion-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
}

.review-card::before,
.discussion-card::before {
    grid-column: 1 / -1;
}

.review-card .feed-card-poster,
.discussion-card .feed-card-poster {
    grid-row: 2 / span 4;
}

.review-card .list-card-topline,
.review-card h3,
.review-card p,
.review-card .movie-list-meta,
.discussion-card .list-card-topline,
.discussion-card h3,
.discussion-card p,
.discussion-card .movie-list-meta {
    grid-column: 2;
}

.feed-card-poster {
    width: 78px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid rgba(237, 247, 255, 0.16);
    border-radius: 7px;
    background: rgba(237, 247, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.feed-card-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card-poster-empty {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 61, 242, 0.16)),
        rgba(7, 10, 18, 0.84);
}

.list-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 88px;
    height: 100%;
    opacity: 0.08;
    background:
        linear-gradient(#171717 50%, transparent 0) 0 0 / 100% 18px,
        linear-gradient(90deg, transparent 0 18px, #171717 18px 28px, transparent 28px 44px);
    pointer-events: none;
}

.list-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.list-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.list-type-person .list-type-pill {
    background: #171717;
}

.list-type-movie .list-type-pill {
    background: #171717;
}

.discussion-card .list-type-pill {
    background: #171717;
}

.review-card .list-type-pill {
    background: #171717;
}

.review-card h3,
.discussion-card h3 {
    display: -webkit-box;
    /* min-height: 2.6em; */
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.review-card p,
.discussion-card p {
    display: -webkit-box;
    /* min-height: 3em; */
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.discussion-card-date {
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    .list-strip-item {
        width: 100%;
    }

    .review-card,
    .discussion-card {
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 12px;
    }

    .feed-card-poster {
        width: 68px;
    }
}

.movie-list-like-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
}

.movie-list-comment {
    display: flex;
    gap: 10px;
    margin-left: calc(var(--comment-depth, 0) * 24px);
    padding: 12px 0 12px 12px;
    border-bottom: 1px solid #e9ecef;
}

.movie-list-comment[data-depth]:not([data-depth="0"]) {
    border-left: 2px solid rgba(15, 23, 42, 0.1);
}

.movie-detail-card {
    display: flex;
    justify-content: center;
}

.movie-detail-card .card {
    width: min(14rem, 100%) !important;
    flex: 0 0 min(14rem, 100%) !important;
}

.movie-list-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f3f5;
    color: #6c757d;
}

.movie-list-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-list-comment-name {
    font-weight: 600;
}

.movie-list-comment-body {
    min-width: 0;
    flex: 1;
}

.movie-list-comment p {
    margin-bottom: 0;
}

.movie-list-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.comment-reply-button,
.comment-like-button {
    padding: 0;
    border: 0;
    color: #64748b;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
}

.comment-like-count {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
}

.comment-like-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-like-button.is-liked {
    color: var(--app-accent);
}

.comment-delete-button {
    color: #dc3545;
}

.comment-edited-label {
    margin-left: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.comment-reply-button:hover,
.comment-like-button:hover {
    color: #111827;
    text-decoration: underline;
}

.comment-reply-form {
    display: grid;
    gap: 8px;
}

.comment-reply-actions {
    display: flex;
    gap: 8px;
}

.mention-input-wrap {
    position: relative;
}

.mention-suggestions {
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 4px);
    z-index: 20;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface-strong);
    box-shadow: var(--app-shadow);
}

.mention-suggestions button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    color: var(--app-ink);
    background: transparent;
    text-align: left;
}

.mention-suggestions button:hover {
    background: rgba(0, 229, 255, 0.09);
}

.mention-suggestions img,
.mention-suggestions i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.mention-suggestions img {
    object-fit: cover;
}

.app-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 0;
    margin-bottom: 10px;
    padding: 7px 11px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
    box-shadow: 0 6px 18px rgba(20, 20, 20, 0.05);
}

.app-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 8px;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 8px;
    color: rgba(23, 23, 23, 0.28);
    content: "/";
}

.app-breadcrumb .breadcrumb-item a {
    color: var(--app-accent);
    text-decoration: none;
}

.app-breadcrumb .breadcrumb-item a:hover,
.app-breadcrumb .breadcrumb-item a:focus {
    color: var(--app-accent-dark);
    text-decoration: underline;
}

.app-breadcrumb .breadcrumb-item.active {
    color: var(--app-ink);
}

.movie-overview-text {
    white-space: pre-line;
}

.movie-overview-text.is-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.link-button {
    padding: 0;
    border: 0;
    color: #007bff;
    background: transparent;
    cursor: pointer;
}

.link-button:hover {
    color: #0056b3;
    text-decoration: underline;
}

.movie-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-title-row h2 {
    margin-bottom: 0;
}

.movie-genre-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.movie-genre-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid #ced4da;
    border-radius: 999px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.8rem;
    text-decoration: none;
}

.movie-genre-badge:hover,
.movie-genre-badge:focus {
    color: #0056b3;
    text-decoration: none;
}

.trailer-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.trailer-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.header-search {
    position: relative;
}

header > .header-search {
    margin-left: auto;
}

.header-search-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid var(--app-border);
    border-radius: 50%;
    background: var(--app-surface);
    cursor: pointer;
}

.header-search-panel {
    position: absolute;
    top: 40px;
    left: -12em;
    width: min(320px, 80vw);
    padding: 8px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    z-index: 1100;
}

.header-search-suggest {
    margin-top: 6px;
}

.header-search-item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 8px;
    border: 0;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.header-search-item:hover {
    background: #f8f9fa;
}

.header-search-empty {
    padding: 8px;
    color: #6c757d;
}

.app-footer {
    margin-top: 48px;
    border-top: 1px solid #dee2e6;
    background: #fff;
}

.app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 0.9rem;
}

.legal-page {
    max-width: 920px;
}

.legal-page h2 {
    margin-top: 24px;
}

.legal-page h3 {
    margin-top: 18px;
    font-size: 1.15rem;
}

.legal-page table {
    width: 100%;
    margin: 12px 0 18px;
    border-collapse: collapse;
}

.legal-page th,
.legal-page td {
    padding: 10px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

.legal-page th {
    background: #f8f9fa;
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(246, 244, 239, 0.82);
    backdrop-filter: blur(2px);
    z-index: 5000;
}

.film-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 26px;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    color: var(--app-ink);
}

.film-loader-reel {
    position: relative;
    width: 58px;
    height: 58px;
    border: 6px solid var(--app-ink);
    border-radius: 50%;
    animation: film-reel-spin 1s linear infinite;
}

.film-loader-reel::before {
    content: "";
    position: absolute;
    inset: 17px;
    border-radius: 50%;
    background: var(--app-accent);
}

.film-loader-reel span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.film-loader-reel span:nth-child(1) {
    top: 8px;
    left: 23px;
}

.film-loader-reel span:nth-child(2) {
    top: 23px;
    right: 8px;
}

.film-loader-reel span:nth-child(3) {
    bottom: 8px;
    left: 23px;
}

.film-loader-reel span:nth-child(4) {
    top: 23px;
    left: 8px;
}

.film-loader-strip {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-top: 4px solid var(--app-ink);
    border-bottom: 4px solid var(--app-ink);
    overflow: hidden;
}

.film-loader-strip span {
    width: 10px;
    height: 18px;
    background: var(--app-ink);
    animation: film-strip-move 0.8s ease-in-out infinite alternate;
}

.film-loader-strip span:nth-child(2) {
    animation-delay: 0.08s;
}

.film-loader-strip span:nth-child(3) {
    animation-delay: 0.16s;
}

.film-loader-strip span:nth-child(4) {
    animation-delay: 0.24s;
}

.film-loader-strip span:nth-child(5) {
    animation-delay: 0.32s;
}

.film-loader p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

body.app-is-loading {
    cursor: wait;
}

@keyframes film-reel-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes film-strip-move {
    from {
        transform: translateY(-2px);
        opacity: 0.55;
    }

    to {
        transform: translateY(2px);
        opacity: 1;
    }
}


.filmatch-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(214, 168, 79, 0.22), transparent 300px),
        rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(8px);
}

.filmatch-loading-screen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 70vw);
    min-height: 240px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 253, 248, 0.2);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 253, 248, 0.16), rgba(255, 253, 248, 0.06)),
        rgba(16, 16, 16, 0.72);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.filmatch-loading-screen::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        conic-gradient(from 0deg, transparent, rgba(200, 63, 49, 0.38), transparent 34%, rgba(214, 168, 79, 0.42), transparent 68%);
    animation: loaderPanelSweep 3.8s linear infinite;
}

.filmatch-loading-screen::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 100% 7px,
        radial-gradient(circle at center, transparent 0 54%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.modern-loader,
.modern-loader-label {
    position: relative;
    z-index: 1;
}

.modern-loader {
    width: 116px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(214, 168, 79, 0.35));
}

.modern-loader-inline {
    width: 62px;
}

.modern-loader::before,
.modern-loader::after,
.modern-loader-orbit,
.modern-loader-core {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.modern-loader::before {
    inset: 0;
    border: 1px solid rgba(255, 253, 248, 0.24);
    background:
        radial-gradient(circle at center, rgba(255, 253, 248, 0.08), transparent 42%),
        conic-gradient(from 90deg, rgba(200, 63, 49, 0), rgba(200, 63, 49, 0.95), rgba(214, 168, 79, 0), rgba(214, 168, 79, 0.86), rgba(200, 63, 49, 0));
    -webkit-mask: radial-gradient(circle, transparent 0 57%, #000 59%);
    mask: radial-gradient(circle, transparent 0 57%, #000 59%);
    animation: loaderSpin 1.25s linear infinite;
}

.modern-loader::after {
    inset: 18%;
    border: 1px solid rgba(214, 168, 79, 0.36);
    animation: loaderPulse 1.6s ease-in-out infinite;
}

.modern-loader-orbit {
    inset: var(--orbit-inset);
    border: 1px solid rgba(255, 253, 248, 0.2);
    border-top-color: var(--orbit-color);
    border-right-color: transparent;
    animation: loaderSpin var(--orbit-speed) linear infinite;
}

.orbit-1 {
    --orbit-inset: 10%;
    --orbit-color: rgba(214, 168, 79, 0.95);
    --orbit-speed: 1.9s;
}

.orbit-2 {
    --orbit-inset: 23%;
    --orbit-color: rgba(200, 63, 49, 0.92);
    --orbit-speed: 1.35s;
    animation-direction: reverse;
}

.orbit-3 {
    --orbit-inset: 35%;
    --orbit-color: rgba(255, 253, 248, 0.86);
    --orbit-speed: 0.9s;
}

.modern-loader-core {
    inset: 40%;
    background: var(--app-surface);
    box-shadow:
        0 0 0 6px rgba(255, 253, 248, 0.1),
        0 0 24px rgba(214, 168, 79, 0.8),
        0 0 42px rgba(200, 63, 49, 0.45);
    animation: loaderCoreBeat 1.25s ease-in-out infinite;
}

.modern-loader-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 82%;
    transform: translate(-50%, -50%);
    color: #fffdf8;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.86),
        0 0 18px rgba(214, 168, 79, 0.64);
    pointer-events: none;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.54;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes loaderCoreBeat {
    0%, 100% {
        transform: scale(0.86);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes loaderPanelSweep {
    to {
        transform: rotate(360deg);
    }
}


.discovery-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.discovery-chip i {
    margin-right: 4px;
}

/* Cyber neon theme layer */
a {
    color: var(--app-accent);
}

a:hover,
a:focus {
    color: #7af5ff;
}

body,
.text-dark {
    color: var(--app-ink) !important;
}

.text-muted,
small {
    color: var(--app-muted) !important;
}

h2,
h3,
h4,
h5 {
    color: var(--app-ink);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

main > .d-flex h2::before,
section > h2::before,
.section-title-row h3::before {
    margin-right: 8px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.7));
}

.btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0;
}

.btn-primary {
    border-color: rgba(0, 229, 255, 0.72);
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.28);
}

.btn-primary::before {
    margin-right: 6px;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--app-gold);
    color: #fff;
    background: linear-gradient(135deg, var(--app-gold), var(--app-accent-dark));
    box-shadow: 0 0 24px rgba(255, 61, 242, 0.32);
}

.btn-outline-primary,
.btn-outline-secondary {
    border-color: var(--app-border);
    color: var(--app-accent);
    background: rgba(10, 15, 30, 0.48);
}

.btn-outline-primary::before {
    margin-right: 6px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.btn-active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--app-accent);
    color: #041018;
    background: var(--app-accent);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.24);
}

.btn-outline-danger {
    border-color: rgba(255, 61, 242, 0.44);
    color: #ff8df8;
    background: rgba(255, 61, 242, 0.08);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    border-color: var(--app-gold);
    color: #fff;
    background: rgba(255, 61, 242, 0.2);
}

.form-control,
select.form-control,
textarea.form-control,
input.form-control {
    border-color: var(--app-border);
    color: var(--app-ink);
    background: rgba(5, 10, 22, 0.78);
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.03);
}

.form-control:focus {
    border-color: var(--app-accent);
    color: var(--app-ink);
    background: rgba(5, 10, 22, 0.92);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

.form-control::placeholder {
    color: rgba(145, 164, 188, 0.72);
}

.card,
.movie-list-card,
.app-modal-panel,
.notification-menu,
.profile-menu,
.watched-menu,
.analysis-card,
.header-search-panel,
.mypage-rank,
.person-fan-rank,
.cast-card {
    border-color: var(--app-border);
    color: var(--app-ink);
    background:
        linear-gradient(180deg, rgba(17, 24, 45, 0.92), rgba(8, 13, 27, 0.92)),
        var(--app-surface-strong);
    box-shadow: var(--app-shadow);
}

.card:hover,
.movie-list-card:hover,
.cast-card:hover {
    border-color: rgba(0, 229, 255, 0.5);
    color: var(--app-ink);
    box-shadow: 0 18px 44px rgba(0, 229, 255, 0.2), 0 0 0 1px rgba(255, 61, 242, 0.12);
}

.card::before,
.movie-list-card::before,
.cast-card::before {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--app-accent), var(--app-gold), var(--app-neon-green));
}

.profile-menu button,
.watched-menu button,
.header-search-item,
.movie-search-result,
.list-movie-row,
.analysis-card li,
.notification-item {
    color: var(--app-ink);
    border-color: rgba(117, 235, 255, 0.12);
}

.profile-menu button:hover,
.watched-menu button:hover,
.header-search-item:hover,
.movie-search-result:hover,
.notification-item:hover {
    background: rgba(0, 229, 255, 0.09);
}

.notification-button,
.header-search-toggle,
.person-favorite-button,
.person-detail-favorite,
.watched-status-options button {
    border-color: var(--app-border);
    color: var(--app-ink);
    background: rgba(13, 18, 34, 0.86);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.10);
}

.notification-button:hover,
.notification-button:focus,
.header-search-toggle:hover,
.header-search-toggle:focus,
.watched-status-options button.is-selected {
    border-color: var(--app-accent);
    color: var(--app-accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 0 22px rgba(0, 229, 255, 0.18);
}

.notification-badge {
    border-color: var(--app-bg);
    background: var(--app-neon-green);
}

.person-badge,
.movie-genre-badge,
.movie-list-badge,
.list-type-pill,
.badge {
    border-color: #171717;
    color: white;
    background: rgba(0, 229, 255, 0.09);
}

.person-badge::before,
.movie-genre-badge::before,
.movie-list-badge::before {
    content: "🏷️";
    margin-right: 5px;
}

.person-badge:hover,
.movie-list-card:hover .movie-list-badge {
    border-color: var(--app-gold);
    color: #ffd8fb;
    background: rgba(255, 61, 242, 0.12);
}

.person-badge.person-badge-favorite,
.movie-list-badge-liked,
.person-favorite-button.btn-active,
.person-detail-favorite.btn-active {
    border-color: var(--app-gold);
    color: #ffd8fb;
    background: rgba(255, 61, 242, 0.14);
    box-shadow: 0 0 18px rgba(255, 61, 242, 0.18);
}

.person-card-link,
.movie-list-card {
    color: var(--app-ink);
}

.person-card-link:hover {
    color: var(--app-accent);
}

.person-card-placeholder,
.person-detail-placeholder,
.cast-card-image-wrap,
.movie-search-poster,
.movie-detail-placeholder,
.profile-edit-preview {
    color: var(--app-muted);
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(255, 61, 242, 0.08)),
        #0c1325;
}

.recommendation-reason {
    border-color: rgba(87, 255, 154, 0.28);
    color: #b9ffd6;
    background: rgba(87, 255, 154, 0.08);
}

.app-breadcrumb {
    border-color: var(--app-border);
    background: rgba(9, 14, 29, 0.72);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.10);
}

.app-breadcrumb .breadcrumb-item::before {
    color: rgba(117, 235, 255, 0.38);
}

.app-breadcrumb .breadcrumb-item:first-child a::before {
    content: "🏠";
    margin-right: 5px;
}

.app-breadcrumb .breadcrumb-item.active::before {
    content: "🧭";
    margin-right: 5px;
    color: inherit;
}

.search-pagination .page-link {
    border-color: var(--app-border);
    color: var(--app-accent);
    background: rgba(9, 14, 29, 0.86);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.10);
}

.search-pagination .page-link:hover,
.search-pagination .page-link:focus {
    border-color: var(--app-gold);
    color: #fff;
    background: rgba(255, 61, 242, 0.16);
    box-shadow: 0 0 24px rgba(255, 61, 242, 0.20);
}

.search-pagination .page-item.active .page-link {
    border-color: var(--app-accent);
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.26);
}

.search-pagination .page-item.disabled .page-link {
    border-color: rgba(117, 235, 255, 0.12);
    color: rgba(145, 164, 188, 0.58);
    background: rgba(9, 14, 29, 0.48);
}

.app-footer {
    color: var(--app-muted);
    background: rgba(7, 10, 18, 0.86);
}

.modal-open .app-modal,
.app-modal {
    background: rgba(2, 5, 13, 0.76);
    backdrop-filter: blur(10px);
}

.buttons div {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.34), rgba(255, 61, 242, 0.28));
}

.buttons .rating-action {
    background: rgba(87, 255, 154, 0.18);
}

.analysis-section {
    position: relative;
}

.analysis-toggle {
    position: relative;
    overflow: hidden;
    padding: 13px 16px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: 10px;
    color: var(--app-ink);
    background:
        linear-gradient(135deg, rgba(0, 229, 255, 0.13), rgba(255, 61, 242, 0.08)),
        rgba(9, 14, 29, 0.92);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.analysis-toggle::before {
    content: "📊";
    margin-right: 9px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.62));
}

.analysis-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

.analysis-toggle:hover,
.analysis-toggle:focus {
    border-color: var(--app-accent);
    color: var(--app-accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12), 0 0 28px rgba(0, 229, 255, 0.18);
}

.analysis-toggle:hover::after,
.analysis-toggle:focus::after {
    transform: translateX(100%);
}

.analysis-toggle span {
    margin-right: auto;
}

.analysis-toggle i {
    color: var(--app-gold);
    text-shadow: 0 0 12px rgba(255, 61, 242, 0.52);
}

.analysis-card {
    border-radius: 10px;
}

.analysis-card h4::before {
    content: "💠";
    margin-right: 6px;
}

.nav-tabs {
    gap: 8px;
    padding: 6px;
    border-bottom: 0;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.56);
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.05);
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--app-muted);
    background: transparent;
    font-weight: 800;
}

.mypage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-bottom: 0;
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.56);
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.05);
}

.mypage-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--app-muted);
    background: transparent;
    font-weight: 800;
}

.mypage-tabs .nav-link:hover,
.mypage-tabs .nav-link:focus {
    border-color: rgba(0, 229, 255, 0.32);
    color: var(--app-accent);
    background: rgba(0, 229, 255, 0.08);
}

.mypage-tabs .nav-link.active,
.mypage-tabs .nav-item.show .nav-link {
    border-color: rgba(0, 229, 255, 0.62);
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.24);
}

.nav-tabs .nav-link::before {
    margin-right: 6px;
}

#watchlistTab::before {
    content: "🎞️";
}

#watchedTab::before {
    content: "✅";
}

#peopleTab::before {
    content: "🧑";
}

#movieListsTab::before {
    content: "🗂️";
}

#personListsTab::before {
    content: "👥";
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: rgba(0, 229, 255, 0.32);
    color: var(--app-accent);
    background: rgba(0, 229, 255, 0.08);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    border-color: rgba(0, 229, 255, 0.62);
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.24);
}

.mypage-toolbar > div {
    gap: 10px;
}

.mypage-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid rgba(87, 255, 154, 0.24);
    border-radius: 999px;
    color: #b9ffd6;
    background: rgba(87, 255, 154, 0.08);
    font-size: 0.9rem;
}

.mypage-count::before {
    content: "🧮";
    margin-right: 6px;
}

.modal-content,
.modal-header,
.modal-body,
.modal-footer {
    border-color: var(--app-border);
    color: var(--app-ink);
    background:
        linear-gradient(180deg, rgba(17, 24, 45, 0.96), rgba(8, 13, 27, 0.96)),
        var(--app-surface-strong);
}

.modal-content {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: var(--app-shadow);
}

main .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(0, 229, 255, 0.16);
    border-bottom: 0;
    border-radius: 12px;
    background: rgba(5, 10, 22, 0.56);
    box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.05);
}

main .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--app-muted);
    background: transparent;
    font-weight: 800;
}

main .nav-tabs .nav-link::before {
    font-family: "bootstrap-icons";
    font-weight: 400;
    line-height: 1;
}

#watchlistTab::before {
    content: "\F4CB";
}

#watchedTab::before {
    content: "\F33E";
}

#myReviewsTab::before {
    content: "\F4CA";
}

#peopleTab::before {
    content: "\F4D7";
}

#movieListsTab::before {
    content: "\F479";
}

#personListsTab::before {
    content: "\F4D0";
}

main .nav-tabs .nav-link:hover,
main .nav-tabs .nav-link:focus {
    border-color: rgba(0, 229, 255, 0.32);
    color: var(--app-accent);
    background: rgba(0, 229, 255, 0.08);
}

main .nav-tabs .nav-link.active,
main .nav-tabs .nav-item.show .nav-link {
    border-color: rgba(0, 229, 255, 0.62);
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.24);
}

.modal-header .close {
    color: var(--app-ink);
    text-shadow: none;
    opacity: 0.82;
}

.modal-header .close:hover {
    color: var(--app-accent);
    opacity: 1;
}

/* Trailer shorts */
body.trailers-body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden !important;
    background: #02040a;
}

body.trailers-body .container {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    padding-right: 0;
    padding-left: 0;
}

body.trailers-body .app-footer {
    display: none !important;
}

body.trailers-body header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 66px;
    margin: 0;
    padding: 12px 18px;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(2, 4, 10, 0.86), rgba(2, 4, 10, 0));
    backdrop-filter: none;
    z-index: 1300;
}

.trailers-main {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    border: 0;
    background: #02040a;
    z-index: 1;
}

.trailers-feed {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    background: #02040a;
}

.trailers-feed::-webkit-scrollbar {
    display: none;
}

.trailer-reel {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #02040a;
}

.trailer-reel-bg,
.trailer-reel-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.trailer-reel-bg {
    background-image: var(--trailer-backdrop);
    background-position: center;
    background-size: cover;
    filter: blur(30px) saturate(1.18);
    opacity: 0.45;
    transform: scale(1.08);
    z-index: 0;
}

.trailer-reel-shade {
    background:
        linear-gradient(180deg, rgba(2, 4, 10, 0.62), transparent 22%, transparent 52%, rgba(2, 4, 10, 0.82)),
        linear-gradient(90deg, rgba(2, 4, 10, 0.52), transparent 38%, rgba(2, 4, 10, 0.58));
    z-index: 2;
}

.trailer-video-stage {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    z-index: 1;
}

.trailer-video-shell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
}

.trailer-video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(2, 4, 10, 0.08), rgba(2, 4, 10, 0.58)),
        var(--trailer-placeholder, transparent);
    background-position: center;
    background-size: cover;
}

.trailer-video-shell iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: max(100vw, 177.78vh);
    height: max(100vh, 56.25vw);
    border: 0;
    transform: translate(-50%, -50%);
}

.trailer-play-button {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #041018;
    background: rgba(237, 247, 255, 0.9);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.34);
    cursor: pointer;
}

.trailer-play-button i {
    margin-left: 4px;
    font-size: 2.2rem;
    line-height: 1;
}

.trailer-play-button:hover,
.trailer-play-button:focus {
    border-color: var(--app-accent);
    outline: 0;
    background: var(--app-accent);
}

.trailer-copy {
    position: absolute;
    left: max(20px, calc((100vw - 1180px) / 2 + 22px));
    bottom: 34px;
    z-index: 4;
    width: min(720px, calc(100vw - 148px));
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.trailer-reason {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 6px 10px;
    overflow: hidden;
    border: 1px solid rgba(87, 255, 154, 0.28);
    border-radius: 999px;
    color: #b9ffd6;
    background: rgba(2, 4, 10, 0.58);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trailer-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(1.72rem, 4.5vw, 3.55rem);
    line-height: 1.08;
}

.trailer-copy p {
    max-width: 100%;
    margin: 8px 0 0;
    color: rgba(237, 247, 255, 0.86);
    font-size: 0.98rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trailer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 22px;
    color: rgba(237, 247, 255, 0.78);
    font-size: 0.92rem;
    font-weight: 700;
}

.trailer-meta > span {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 9px;
    border-radius: 50%;
    background: rgba(117, 235, 255, 0.72);
}

.trailer-actions {
    position: absolute;
    right: max(18px, calc((100vw - 1180px) / 2 + 24px));
    bottom: 40px;
    z-index: 5;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.trailer-action-button {
    display: grid;
    justify-items: center;
    gap: 4px;
    width: 66px;
    min-height: 78px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.76);
    cursor: pointer;
}

.trailer-action-button:hover,
.trailer-action-button:focus {
    color: var(--app-accent);
    outline: 0;
    text-decoration: none;
}

.trailer-action-button i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(117, 235, 255, 0.3);
    border-radius: 50%;
    color: #edf7ff;
    background: rgba(8, 13, 27, 0.74);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.16);
    font-size: 1.35rem;
    text-shadow: none;
}

.trailer-action-button:hover i,
.trailer-action-button:focus i {
    border-color: var(--app-accent);
    color: #041018;
    background: var(--app-accent);
}

.trailer-action-button.is-active i {
    border-color: rgba(87, 255, 154, 0.74);
    color: #041018;
    background: var(--app-neon-green);
}

.trailer-action-count {
    color: rgba(237, 247, 255, 0.82);
    font-size: 0.78rem;
}

.trailer-action-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.trailers-status {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 4;
    padding: 6px 10px;
    border: 1px solid rgba(117, 235, 255, 0.18);
    border-radius: 999px;
    color: var(--app-muted);
    background: rgba(2, 4, 10, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
    transform: translateX(-50%);
}

.trailer-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    min-height: 100%;
    scroll-snap-align: start;
    color: var(--app-muted);
    text-align: center;
}

.trailer-empty i {
    color: var(--app-accent);
    font-size: 3rem;
}

.trailer-empty h2 {
    font-size: 1.25rem;
}

.trailer-sentinel {
    width: 1px;
    height: 1px;
    scroll-snap-align: none;
}

@media (max-width: 767.98px) {
    body.trailers-body header {
        height: 62px;
        padding: 10px 12px;
    }

    body.trailers-body header h1,
    body.trailers-body header h1 a {
        font-size: 1.22rem;
    }

    .trailer-video-shell iframe {
        width: max(100vw, 177.78vh);
        height: max(100vh, 56.25vw);
    }

    .trailer-copy {
        left: 16px;
        right: 78px;
        bottom: 24px;
        width: auto;
    }

    .trailer-copy h2 {
        font-size: clamp(1.45rem, 8.8vw, 2.6rem);
        line-height: 1.08;
    }

    .trailer-copy p {
        font-size: 0.9rem;
        white-space: normal;
    }

    .trailer-reason {
        font-size: 0.76rem;
    }

    .trailer-actions {
        right: 10px;
        bottom: 22px;
        gap: 10px;
    }

    .trailer-action-button {
        width: 60px;
        min-height: 72px;
        font-size: 0.68rem;
    }

    .trailer-action-button i {
        width: 46px;
        height: 46px;
        font-size: 1.18rem;
    }
}

.home-tabs-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-tabs {
    flex-wrap: nowrap !important;
    width: max-content;
    min-width: 100%;
}

.home-tabs .nav-item {
    flex: 0 0 auto;
}

.home-tabs .nav-link {
    white-space: nowrap;
}

.list-feed-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-feed-row {
    width: 100%;
}

.list-card-wide {
    width: 100%;
}

.list-card-description {
    display: -webkit-box;
    margin-bottom: 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.list-card-posters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.list-card-poster-thumb {
    width: 48px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--app-border);
    flex: 0 0 auto;
}

.ranking-vertical-list {
    display: block;
}

.ranking-card-grid {
    row-gap: 22px;
}

.ranking-grid-item {
    position: relative;
    padding-top: 12px;
}

.ranking-grid-item .card {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.ranking-badge {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -28%);
    z-index: 2;
    min-width: 42px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(237, 247, 255, 0.24);
    background:
        linear-gradient(135deg, rgba(237, 247, 255, 0.20), rgba(237, 247, 255, 0.04)),
        rgba(7, 10, 18, 0.78);
    color: var(--app-ink);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.32),
        0 0 18px rgba(0, 229, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.ranking-badge::before {
    content: "#";
    color: var(--app-accent);
    font-size: 0.72em;
    font-weight: 900;
    transform: translateY(-1px);
}

.ranking-card-grid > .col-4:nth-child(1) .ranking-badge {
    border-color: rgba(255, 61, 242, 0.44);
    background:
        linear-gradient(135deg, rgba(255, 61, 242, 0.40), rgba(0, 229, 255, 0.16)),
        rgba(7, 10, 18, 0.86);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(255, 61, 242, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

@media (max-width: 576px) {
    .ranking-card-grid {
        row-gap: 18px;
    }

    .ranking-badge {
        min-width: 38px;
        height: 28px;
        padding: 0 9px;
        font-size: 0.88rem;
    }
}
