* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #ff0000;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.progress {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.card-container {
    position: relative;
    height: 600px;
    margin-bottom: 30px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border: 2px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
    overflow: hidden;
    cursor: grab;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:active {
    cursor: grabbing;
}

.card.next {
    transform: scale(0.95);
    z-index: 1;
}

.card.current {
    z-index: 10;
}

.card-image {
    width: 100%;
    height: 400px;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.swipe-overlay.visible {
    opacity: 1;
}

.swipe-overlay.like {
    background: rgba(255, 0, 0, 0.5);
}

.swipe-overlay.nope {
    background: rgba(0, 0, 0, 0.8);
}

.swipe-text {
    font-size: 4rem;
    font-weight: bold;
    padding: 20px 40px;
    border: 5px solid;
    transform: rotate(12deg);
}

.swipe-overlay.like .swipe-text {
    color: #ff0000;
    border-color: #ff0000;
}

.swipe-overlay.nope .swipe-text {
    color: #ffffff;
    border-color: #ffffff;
}

.card-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #1a1a1a;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff0000;
}

.card-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.rating {
    background: #ff0000;
    color: #000000;
}

.badge.language {
    background: #000000;
    color: #ff0000;
    border: 1px solid #ff0000;
}

.badge.year {
    background: #330000;
    color: #ff0000;
}

.card-overview {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #ff0000;
    background: #000000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.btn:hover {
    transform: scale(1.1);
    background: #1a0000;
}

.btn:active {
    transform: scale(0.95);
}

.btn-undo {
    width: 48px;
    height: 48px;
    background: #1a1a1a;
}

.btn-nope svg {
    color: #ff0000;
}

.btn-like svg {
    color: #ff0000;
}

.btn-undo svg {
    color: #ff0000;
}

.loading, .complete {
    text-align: center;
    color: #ff0000;
}

.loading h2, .complete h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 0, 0, 0.3);
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-restart {
    margin-top: 20px;
    padding: 12px 32px;
    border-radius: 25px;
    border: 2px solid #ff0000;
    background: #000000;
    color: #ff0000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-restart:hover {
    transform: scale(1.05);
    background: #ff0000;
    color: #000000;
}

.hidden {
    display: none;
}

.join-screen {
    text-align: center;
    color: #ff0000;
}

.join-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #ff0000;
    font-size: 1rem;
    text-align: center;
    background-color: #000000;
    color: #ff0000;
}

.input-group input::placeholder {
    color: #660000;
}

.btn-join {
    padding: 15px 40px;
    border-radius: 25px;
    border: 2px solid #ff0000;
    background: #ff0000;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-join:hover {
    transform: scale(1.05);
    background: #000000;
    color: #ff0000;
}

.user-info {
    color: #ff0000;
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.user-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-info {
    background: #000000;
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease 0.3s;
}

.room-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-info h3 {
    color: #ff0000;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.player-tag {
    background: #000000;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.player-tag.you {
    background: #ff0000;
    color: #000000;
}

.match-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #330000 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.match-screen.visible {
    opacity: 1;
    pointer-events: all;
}

.match-content {
    text-align: center;
    color: #ff0000;
    padding: 40px;
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.match-screen.visible .match-content {
    transform: scale(1);
}

.match-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

.match-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.match-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.match-movie {
    background: #ff0000;
    color: #000000;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.info-bubble {
    background: #000000;
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.info-bubble h3 {
    color: #ff0000;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-bubble p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    color: #ff0000;
    font-size: 0.85rem;
    z-index: 100;
}

.footer a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}
