.movies-page {
    max-width: 720px;
}

.movies-page h2 {
    margin-top: 2rem;
}

.movies-page h3 {
    margin-top: 1.25rem;
    font-size: 1rem;
}

.movies-toc ul {
    padding-left: 1.25rem;
}

.movie-youtube {
    text-align: center;
    margin: 1rem 0;
}

.movie-youtube iframe {
    width: min(560px, 100%);
    height: 315px;
}

.movies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 1rem 0;
}

.movies-table th,
.movies-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    text-align: left;
}

.movies-table th {
    font-weight: 600;
    font-size: 0.82rem;
    opacity: 0.7;
}

.movies-table .col-cover {
    width: 90px;
}

.movies-table .col-year {
    width: 3.5rem;
    white-space: nowrap;
}

.movies-table .col-kp {
    width: 2.5rem;
    text-align: center;
}

.movies-table img {
    width: 80px;
    max-width: 80px;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.movies-table .col-en {
    opacity: 0.75;
    font-size: 0.88em;
}

.watch-later {
    padding-left: 1.25rem;
}

/* Roulette */
.movie-roulette {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
}

.movie-roulette h2 {
    margin-top: 0;
}

.roulette-hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

.roulette-stage {
    position: relative;
    width: min(360px, 100%);
    margin: 0 auto 1rem;
    aspect-ratio: 1;
}

#roulette-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #222;
    z-index: 2;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.roulette-spin-btn {
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
    cursor: pointer;
}

.roulette-spin-btn:hover:not(:disabled) {
    background: #444;
}

.roulette-spin-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.roulette-result {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.roulette-result a {
    font-weight: 600;
}

.roulette-result-cover {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.roulette-empty {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    opacity: 0.75;
}

.roulette-collection-select {
    margin: 0 0 1rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.roulette-collection-select select {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    max-width: 100%;
}

.movies-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.movies-kanban-column {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.movies-kanban-column.is-drop-target {
    border-color: #222;
    background: #f2f2f2;
}

.movies-kanban-header {
    padding: 0.9rem 1rem 0.6rem;
    border-bottom: 1px solid #e6e6e6;
}

.movies-kanban-header h3 {
    margin: 0;
    font-size: 1rem;
}

.movies-kanban-meta {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.movies-kanban-list {
    list-style: none;
    padding: 0.75rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 180px;
}

.movies-kanban-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.75rem;
    padding: 0.65rem;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: grab;
}

.movies-kanban-card-body {
    position: relative;
    min-width: 0;
    padding-right: 1.75rem;
}

.movies-kanban-card.is-dragging {
    opacity: 0.45;
}

.movies-kanban-cover {
    width: 52px;
    height: 78px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

.movies-kanban-title {
    font-weight: 600;
    line-height: 1.25;
}

.movies-kanban-delete {
    position: absolute;
    top: -0.1rem;
    right: 0;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #888;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.movies-kanban-delete:hover {
    background: #f3f3f3;
    color: #b42318;
}

.movies-kanban-subtitle {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    opacity: 0.72;
}

.movies-kanban-link {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.86rem;
}

@media (max-width: 520px) {
    .movies-table .col-en,
    .movies-table th.col-en {
        display: none;
    }
}
