@import url('https://fonts.googleapis.com/css2?family=Netflix+Sans:wght@400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --netflix-red: #e50914;
    --netflix-black: #141414;
    --netflix-dark: #181818;
    --netflix-gray: #808080;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
}

body {
    font-family: 'Netflix Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--netflix-black);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Profile Selection Screen */
.profile-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--netflix-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.5s ease-out;
}

.profile-selection.hidden {
    animation: fadeOut 0.5s ease-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.profile-selection-content {
    text-align: center;
    max-width: 1200px;
    padding: 40px;
}

.profile-selection-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--text-white);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.profile-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }
.profile-card:nth-child(5) { animation-delay: 0.5s; }
.profile-card:nth-child(6) { animation-delay: 0.6s; }

.profile-card:hover {
    transform: scale(1.1) translateY(-10px);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 50%, #05bfdb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border: 4px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.profile-card:hover .profile-avatar {
    border-color: var(--text-white);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.profile-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-gray);
    transition: color 0.3s;
}

.profile-card:hover .profile-name {
    color: var(--text-white);
}

.manage-profiles-btn {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-gray);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.manage-profiles-btn:hover {
    border-color: var(--text-white);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Navigation */
/* Contract Address Banner */
.contract-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(8px);
    padding: 8px 0;
    text-align: center;
    z-index: 2000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contract-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.contract-label {
    color: var(--text-gray);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    font-family: 'Netflix Sans', sans-serif;
    opacity: 0.8;
}

.contract-address {
    color: var(--text-white);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Netflix Sans', 'Courier New', monospace;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.contract-address:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar {
    position: fixed;
    top: 40px; /* Space for contract banner */
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    transition: all 0.3s;
    animation: slideDownNav 0.5s ease-out;
}

@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar.scrolled {
    background: var(--netflix-black);
}

.nav-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whale-icon {
    font-size: 36px;
    animation: whaleFloat 3s ease-in-out infinite;
}

@keyframes whaleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--netflix-red);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--netflix-red);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-gray);
    pointer-events: none;
}

.search-box input {
    background: transparent;
    border: 1px solid var(--text-gray);
    border-radius: 4px;
    padding: 8px 12px 8px 36px;
    color: var(--text-white);
    font-size: 14px;
    width: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:hover input,
.search-box input:focus {
    width: 250px;
    border-color: var(--text-white);
    outline: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.profile-menu {
    position: relative;
    cursor: pointer;
}

.profile-icon {
    width: 32px;
    height: 32px;
    background: var(--netflix-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-menu:hover .profile-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--netflix-dark);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 150px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: slideDownDropdown 0.3s ease-out;
}

@keyframes slideDownDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu:hover .profile-dropdown {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.profile-dropdown a:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 50%, #05bfdb 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
    margin-top: 70px;
    overflow: hidden;
    animation: fadeInHero 0.8s ease-out;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero::before {
    content: '🐋';
    position: absolute;
    font-size: 400px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    animation: whaleFloat 4s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, var(--netflix-black) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-year,
.hero-rating,
.hero-duration {
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-white);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-play {
    background: var(--text-white);
    color: var(--netflix-black);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-play:hover::before {
    width: 300px;
    height: 300px;
}

.btn-play:hover {
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-play:active {
    transform: scale(0.98);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-info:hover::before {
    width: 300px;
    height: 300px;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.9);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-info:active {
    transform: scale(0.98);
}

/* Main Content */
.main-content {
    padding: 40px 60px;
    margin-top: -100px;
    position: relative;
    z-index: 1;
    animation: fadeInContent 1s ease-out;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-row {
    margin-bottom: 40px;
    animation: slideUp 0.6s ease-out both;
}

.content-row:nth-child(1) { animation-delay: 0.1s; }
.content-row:nth-child(2) { animation-delay: 0.2s; }
.content-row:nth-child(3) { animation-delay: 0.3s; }
.content-row:nth-child(4) { animation-delay: 0.4s; }
.content-row:nth-child(5) { animation-delay: 0.5s; }
.content-row:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.row-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.content-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-slider::-webkit-scrollbar {
    display: none;
}

.content-item {
    min-width: 200px;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--netflix-dark);
    animation: scaleInItem 0.5s ease-out both;
}

@keyframes scaleInItem {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.content-item:hover {
    transform: scale(1.15) translateY(-10px);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.content-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a4d68 0%, #088395 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.content-item-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.content-item:hover .content-item-placeholder img {
    transform: scale(1.1);
}

.content-item-placeholder::before {
    content: '🐋';
    font-size: 80px;
    margin-bottom: 10px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.content-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.content-item:hover .content-item-info {
    transform: translateY(0);
}

.content-item-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-item-meta {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    gap: 12px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal-backdrop {
    animation: fadeIn 0.3s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: var(--netflix-black);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10001;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.close-modal:hover {
    background: rgba(0,0,0,0.9);
    transform: rotate(90deg) scale(1.1);
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    cursor: pointer;
}

.info-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--netflix-dark);
    border-radius: 8px;
    padding: 40px;
    z-index: 2001;
    max-height: 90vh;
    overflow-y: auto;
}

.info-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.info-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-content {
        padding: 0 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .main-content {
        padding: 40px 30px;
    }
    
    .content-item {
        min-width: 150px;
        height: 225px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .content-item {
        min-width: 120px;
        height: 180px;
    }
}

