#youtubescreen {
    width: 1320px;
    height: 900px;
    flex-direction: column;
    background: rgba(18, 22, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(8, 155, 155, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(8, 155, 155, 0.15);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

#youtubescreen.maximized {
    width: 100%;
    height: calc(100vh - 70px);
    top: 0;
    left: 0;
    border-radius: 0;
}

#youtubescreen.maximized .youtube-app {
    padding: 16px 0; 
}

#youtubescreen.maximized .yt-search-bar {
    padding: 0 16px;
}

#youtubescreen.maximized .yt-player-container {
    width: 100%;
    max-height: 100%; 
    border-radius: 0;
    border-left: none;
    border-right: none;
}

#youtubescreen.maximized .yt-results-container {
    padding: 0 16px;
}

#youtubescreenheader .window-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#maximizeyoutubescreen {
    cursor: pointer;
    color: #888888;
    stroke: #888888;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
}

#maximizeyoutubescreen:hover {
    color: #089b9b;
    stroke: #089b9b;
}

.youtube-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
    overflow-y: auto;
    box-sizing: border-box;
}

.yt-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.yt-search-input {
    flex: 1;
    background: rgba(10, 14, 20, 0.7);
    color: #ffffff;
    border: 1px solid rgba(8, 155, 155, 0.3);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.yt-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.yt-search-input:focus {
    border-color: #089b9b;
    box-shadow: 0 0 10px rgba(8, 155, 155, 0.3);
    background: rgba(10, 14, 20, 0.9);
}

.yt-search-btn {
    flex-shrink: 0;
    background: #089b9b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(8, 155, 155, 0.2);
}

.yt-search-btn:hover {
    background: #00bcd4;
    box-shadow: 0 0 15px rgba(8, 155, 155, 0.5);
    transform: translateY(-1px);
}

.yt-search-btn:active {
    transform: translateY(0);
}

.yt-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    min-height: calc(width * 9 / 16);
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(8, 155, 155, 0.3);
    background: #0c1017;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.yt-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#yt-logo::maximized {
    width: 1920px;
    height: 1080px;
}

.yt-player {
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2; 
}

.yt-results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.yt-card {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #089b9b;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.yt-card:hover {
    background: rgba(8, 155, 155, 0.1);
    border-color: rgba(8, 155, 155, 0.3);
    transform: translateY(-1px);
}

.yt-card-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.yt-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.yt-card-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-author {
    color: #b0bec5;
    font-size: 11px;
}

.yt-msg-info {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 16px 0;
    font-size: 12px;
    font-style: italic;
}

.yt-msg-error {
    color: #ff6b6b;
    text-align: center;
    margin: 16px 0;
    font-size: 12px;
}