:root {
    --bg-color: #0f171e; /* Prime Video deep dark blue/black */
    --surface-color: #1a242f;
    --hover-color: #252e39;
    --accent-color: #00a8e1; /* Prime Video blue */
    --accent-hover: #0087b3;
    --text-primary: #ffffff;
    --text-secondary: #8197a4;
    --header-bg: rgba(15, 23, 30, 0.95);
    --border-color: #334354;
    --sidebar-width: 250px;
    --header-height: 70px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo .prime {
    color: var(--accent-color);
}

.logo .video {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px 3px 0 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

#search-input {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px 8px 35px;
    border-radius: 4px;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.profile-img:hover {
    border-color: var(--accent-color);
}

/* Main Layout */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-menu li i {
    color: var(--text-secondary);
    width: 20px;
    text-align: center;
    font-size: 18px;
    transition: color 0.2s;
}

.sidebar-menu li:hover {
    background-color: var(--hover-color);
}

.sidebar-menu li:hover i {
    color: var(--text-primary);
}

.sidebar-menu li.active {
    background-color: rgba(0, 168, 225, 0.1);
    color: var(--accent-color);
    border-right: 3px solid var(--accent-color);
}

.sidebar-menu li.active i {
    color: var(--accent-color);
}

/* Content Area */
.content-area {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding-bottom: 60px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    padding: 50px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 0%, rgba(15, 23, 30, 0.4) 50%, transparent 100%),
                linear-gradient(to right, var(--bg-color) 0%, rgba(15, 23, 30, 0.2) 50%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.play-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 14px 32px;
}

.play-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.info-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 32px;
    backdrop-filter: blur(5px);
}

.info-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Video Section */
.video-section {
    padding: 40px 50px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--surface-color);
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.video-info {
    padding: 15px;
    background: linear-gradient(to top, var(--surface-color) 80%, transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.video-card:hover .video-info {
    transform: translateY(0);
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prime-tag {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 12px;
}

/* Video Player Modal */
#video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#video-player-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-container {
    width: 90%;
    max-width: 1200px;
    background-color: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(1);
    transition: transform 0.3s ease;
}

#video-player-modal.hidden .player-container {
    transform: scale(0.95);
}

#close-player {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    font-size: 20px;
}

#close-player:hover {
    background: var(--accent-color);
}

.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-info {
    padding: 30px;
}

.player-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.player-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

.action-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.action-btn.active {
    background-color: var(--accent-color);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    .content-area {
        margin-left: 0;
        width: 100%;
    }
    .nav-links {
        display: none;
    }
}
