:root {
    --wheel-red: #E50914;
    --wheel-red-rgb: 229, 9, 20;
    --wheel-red-dark: #B81D24;
    --wheel-red-light: #F40612;
    --wheel-black: #0A0A0A;
    --wheel-dark: #141414;
    --wheel-gray-dark: #181818;
    --wheel-gray: #333333;
    --wheel-white: #FFFFFF;
    --wheel-light-gray: #E5E5E5;
    --wheel-border-radius: 8px;
    --wheel-border-radius-lg: 12px;
    --wheel-shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);
    --wheel-shadow-large: 0 15px 60px rgba(0, 0, 0, 0.5);
    --wheel-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wheel-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes wheel-fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes wheel-spotlight {
    0%, 100% { opacity: 0.05; transform: rotate(-15deg) translateY(0); }
    50% { opacity: 0.1; transform: rotate(-25deg) translateY(-50px); }
}

@keyframes wheel-title-glow {
    0%, 100% { text-shadow: 0 0 15px rgba(var(--wheel-red-rgb), 0.1); }
    50% { text-shadow: 0 0 30px rgba(var(--wheel-red-rgb), 0.3), 0 0 50px rgba(var(--wheel-red-rgb), 0.2); }
}

@keyframes wheel-spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wheel-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.wheel-universe {
    position: relative;
    margin: 0;
    padding: 60px 0 100px;
    font-family: var(--wheel-font-primary);
    color: var(--wheel-white);
    overflow: hidden;
    min-height: calc(100vh - 200px);
}

.wheel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.wheel-spotlight {
    position: absolute;
    top: -100px;
    width: 300px;
    height: 800px;
    filter: blur(80px);
    opacity: 0.05;
    z-index: 0;
    animation: wheel-spotlight 20s ease-in-out infinite;
    background: linear-gradient(rgba(var(--wheel-red-rgb), 0.7), rgba(var(--wheel-red-rgb), 0.05) 70%);
}

.wheel-spotlight-left {
    left: 10%;
    animation-delay: -10s;
}

.wheel-spotlight-right {
    right: 10%;
    animation-delay: -5s;
}

.wheel-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0) 50%,
        rgba(10, 10, 10, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.wheel-header {
    position: relative;
    margin: 0 0 60px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: wheel-fade-in 0.5s forwards;
    z-index: 2;
}

.wheel-title-container {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 800px;
}

.wheel-title {
    position: relative;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--wheel-white);
    text-transform: uppercase;
    margin: 0 0 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: wheel-title-glow 4s ease-in-out infinite;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.wheel-title-highlight {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    height: 5px;
    width: 180px;
    background: var(--wheel-red);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(var(--wheel-red-rgb), 0.6);
}

.wheel-tagline {
    margin: 30px auto 0;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--wheel-light-gray);
    max-width: 700px;
    text-align: center;
}

.wheel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: wheel-fade-in 0.5s forwards;
    animation-delay: 0.2s;
    z-index: 2;
}

.wheel-frame {
    position: relative;
    border-radius: var(--wheel-border-radius-lg);
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(229, 9, 20, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    box-shadow: var(--wheel-shadow-large);
    margin-bottom: 40px;
}

.wheel-frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--wheel-border-radius-lg);
    background-color: var(--wheel-gray-dark);
    overflow: hidden;
}

.wheel-carousel {
    position: relative;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wheel-item {
    position: absolute;
    width: 250px;
    height: 375px;
    border-radius: var(--wheel-border-radius);
    overflow: hidden;
    box-shadow: var(--wheel-shadow-medium);
    transition: all var(--wheel-transition);
    opacity: 0;
    z-index: 1;
    transform: translateX(-1000px) scale(0.8);
}

.wheel-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 0 40px rgba(var(--wheel-red-rgb), 0.3);
    border: 2px solid var(--wheel-red);
}

.wheel-item.prev {
    transform: translateX(-300px) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

.wheel-item.next {
    transform: translateX(300px) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

.wheel-item.far-left {
    transform: translateX(-450px) scale(0.6);
    opacity: 0.3;
    z-index: 3;
}

.wheel-item.far-right {
    transform: translateX(450px) scale(0.6);
    opacity: 0.3;
    z-index: 3;
}

.wheel-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wheel-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wheel-item.active .wheel-item-image {
    transform: scale(1.05);
}

.wheel-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    transition: all 0.5s ease;
}

.wheel-item.active .wheel-item-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.wheel-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
}

.wheel-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.wheel-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.wheel-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wheel-item-rating i {
    color: #ffcc00;
}

.wheel-selector {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.wheel-selector-line {
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, 
        rgba(229, 9, 20, 0.2) 0%,
        rgba(229, 9, 20, 0.8) 50%,
        rgba(229, 9, 20, 0.2) 100%
    );
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(var(--wheel-red-rgb), 0.4);
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.wheel-spin-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--wheel-red);
    color: var(--wheel-white);
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(var(--wheel-red-rgb), 0.4);
    overflow: hidden;
    z-index: 2;
}

.wheel-spin-button:hover {
    transform: translateY(-3px);
    background: var(--wheel-red-light);
    box-shadow: 0 12px 40px rgba(var(--wheel-red-rgb), 0.6);
}

.wheel-spin-button:active {
    transform: translateY(1px);
}

.wheel-spin-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wheel-spin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.wheel-result {
    margin-top: 50px;
    width: 100%;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.wheel-result.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wheel-result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wheel-result-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--wheel-red);
    border-radius: 50%;
    margin-bottom: 20px;
    animation: wheel-spinner-rotate 1s infinite linear;
}

.wheel-result-content {
    text-align: center;
}

.wheel-result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.wheel-result-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--wheel-red);
    color: var(--wheel-white);
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 0 20px rgba(var(--wheel-red-rgb), 0.4);
}

.wheel-result-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wheel-white);
    margin: 0;
}

.wheel-result-movie {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.8), rgba(20, 20, 20, 0.8));
    border-radius: var(--wheel-border-radius-lg);
    padding: 35px;
    box-shadow: var(--wheel-shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.wheel-result-movie::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(229, 9, 20, 0.5), 
        transparent
    );
}

.wheel-result-movie-image {
    position: relative;
    width: 200px;
    height: 300px;
    margin-bottom: 30px;
    border-radius: var(--wheel-border-radius);
    overflow: hidden;
    box-shadow: var(--wheel-shadow-medium), 0 0 30px rgba(var(--wheel-red-rgb), 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wheel-result-movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wheel-result-movie-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wheel-result-movie-info h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    color: var(--wheel-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wheel-result-movie-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.wheel-result-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.wheel-result-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--wheel-red);
    color: var(--wheel-white);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(var(--wheel-red-rgb), 0.4);
}

.wheel-result-button:hover {
    transform: translateY(-3px);
    background: var(--wheel-red-light);
    box-shadow: 0 12px 30px rgba(var(--wheel-red-rgb), 0.5);
}

.wheel-result-button-alt {
    background: rgba(255, 255, 255, 0.05);
    color: var(--wheel-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-result-button-alt:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.wheel-spinning .wheel-item {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.wheel-final-spin .wheel-item {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
    .wheel-result-movie {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .wheel-result-movie-image {
        margin-right: 40px;
        margin-bottom: 0;
    }
    
    .wheel-result-movie-info {
        align-items: flex-start;
    }
    
    .wheel-result-movie-info h4 {
        text-align: left;
    }
    
    .wheel-result-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .wheel-title {
        font-size: 3rem;
    }
    
    .wheel-item {
        width: 220px;
        height: 330px;
    }
    
    .wheel-item.prev {
        transform: translateX(-250px) scale(0.8);
    }
    
    .wheel-item.next {
        transform: translateX(250px) scale(0.8);
    }
    
    .wheel-item.far-left {
        transform: translateX(-400px) scale(0.6);
    }
    
    .wheel-item.far-right {
        transform: translateX(400px) scale(0.6);
    }
}

@media (max-width: 768px) {
    .wheel-title {
        font-size: 2.5rem;
    }
    
    .wheel-tagline {
        font-size: 1rem;
    }
    
    .wheel-item {
        width: 200px;
        height: 300px;
    }
    
    .wheel-item.prev {
        transform: translateX(-220px) scale(0.8);
    }
    
    .wheel-item.next {
        transform: translateX(220px) scale(0.8);
    }
    
    .wheel-item.far-left,
    .wheel-item.far-right {
        display: none;
    }
    
    .wheel-item-title {
        font-size: 1.1rem;
    }
    
    .wheel-spin-button {
        padding: 16px 30px;
        font-size: 1.2rem;
    }
    
    .wheel-result-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .wheel-title {
        font-size: 2rem;
    }
    
    .wheel-carousel {
        height: 400px;
    }
    
    .wheel-item {
        width: 180px;
        height: 270px;
    }
    
    .wheel-item.prev {
        transform: translateX(-180px) scale(0.8);
    }
    
    .wheel-item.next {
        transform: translateX(180px) scale(0.8);
    }
    
    .wheel-item-content {
        padding: 15px;
    }
    
    .wheel-item-title {
        font-size: 1rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: auto;
    }
    
    .wheel-item-meta {
        font-size: 0.8rem;
    }
    
    .wheel-spin-button {
        padding: 14px 26px;
        font-size: 1.1rem;
    }
    
    .wheel-result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .wheel-result-title {
        font-size: 1.5rem;
    }
    
    .wheel-result-movie-image {
        width: 160px;
        height: 240px;
    }
    
    .wheel-result-movie-info h4 {
        font-size: 1.4rem;
    }
    
    .wheel-result-button {
        padding: 12px 22px;
        font-size: 1rem;
    }
}