/* Structural styles for existing secondary pages and components. Visual tokens live in product.css. */
.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;
}

.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;
}

.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;
    }
}


.mypage-header-actions {
    gap: 8px;
}

.mypage-header-actions .mypage-menu-wrapper {
    flex: 0 0 auto;
}

.mypage-menu-wrapper {
    position: relative;
}

.mypage-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(0, 229, 255, 0.32);
    border-radius: 999px;
    color: var(--app-accent);
    background: rgba(0, 229, 255, 0.08);
    font-weight: 800;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.mypage-menu-button:hover,
.mypage-menu-button:focus {
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    outline: none;
}

.mypage-menu-button .bi {
    font-size: 1.3rem;
    line-height: 1;
}

.mypage-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1040;
    width: min(88vw, 320px);
    padding: 10px;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(17, 24, 45, 0.98), rgba(8, 13, 27, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 28px rgba(0, 229, 255, 0.12);
}

.mypage-menu-section + .mypage-menu-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mypage-menu-title {
    margin: 0 0 6px;
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mypage-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    color: var(--app-ink);
    background: transparent;
    text-align: left;
    font-weight: 700;
}

.mypage-menu-item:hover,
.mypage-menu-item:focus,
.mypage-menu-item.active {
    color: #041018;
    background: linear-gradient(135deg, var(--app-accent), var(--app-neon-green));
    text-decoration: none;
    outline: none;
}

.mypage-tabs {
    max-width: max-content;
}

@media (max-width: 575.98px) {
    .mypage-profile-summary {
        align-items: flex-start !important;
    }

    .mypage-header-actions .mypage-menu-button {
        min-width: 44px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .mypage-header-actions .mypage-menu-button span {
        display: none;
    }

    .mypage-header-actions .mypage-menu-panel {
        position: fixed;
        top: 64px;
        right: 12px;
        left: auto;
        width: min(320px, calc(100vw - 24px));
    }
}

