body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.video-input {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.video-input input {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
}

.video-input button {
    padding: 12px 24px;
    background: #ff3b3b;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-input button:hover {
    transform: scale(1.05);
}

#playerContainer {
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 16px;
    border: 2px solid #444;
    overflow: hidden;
}

#playerContainer iframe {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sidebar {
    background: #202020;
    padding: 20px;
    width: 100%;
}

.recommended-video {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    background: #333;
    border-radius: 8px;
    padding: 12px;
}

.recommended-video:hover {
    background: #444;
}

.recommended-video img {
    width: 120px;
    height: 68px;
    border-radius: 4px;
}

.recommended-video p {
    margin: 0;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 2rem 2rem;
    background: #202020;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ff0000;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #373737;
}

.watch-history {
    margin-top: 2rem;
    border-top: 1px solid #373737;
    padding-top: 1rem;
}

.history-item {
    display: flex;
    gap: 1rem;
    padding: 8px;
    border-radius: 8px;
    background: #333;
}

.history-item:hover {
    background: #444;
}

.dynamic-island {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 24px;
    border-radius: 30px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    display: none;
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 500px;
}

.dynamic-island.visible {
    display: block;
}

.dynamic-island.tapped {
    background: rgba(0, 0, 0, 0.95);
}

.media-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 8px 0;
}

.control-button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control-button:hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.control-button:active {
    transform: scale(0.9);
}

.play-pause {
    width: 24px;
    height: 24px;
}

.play-pause path {
    fill: white;
}

.previous {
    width: 24px;
    height: 24px;
}

.previous path {
    fill: white;
    stroke: white;
    stroke-width: 1;
}

.next {
    width: 24px;
    height: 24px;
}

.next path {
    fill: white;
    stroke: white;
    stroke-width: 1;
}

.volume {
    width: 24px;
    height: 24px;
}

.volume path {
    fill: white;
}

#mediaTitle {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0 16px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.console {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    padding: 16px;
    max-width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.console-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console-content {
    font-size: 14px;
    line-height: 1.5;
}

.error {
    color: #ff3b3b;
}

.success {
    color: #00ff00;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #00ff00;
    width: 0;
    transition: width 0.3s ease;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
    
    .sidebar {
        width: 360px;
        overflow-y: auto;
        height: 100vh;
        padding: 20px 20px 20px 0;
    }

    .dynamic-island {
        top: 40px;
    }
}

@media (max-width: 768px) {
    .dynamic-island {
        top: 24px;
    }
}