.dn-youtube-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Player Inline Styles */
.dn-player-wrapper-inline {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

.dn-playlist-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
}

.dn-video-item-inline {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dn-video-item-inline:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dn-video-item-inline.active {
    border-color: #0075b8;
    background: #fff;
}

.dn-video-item-inline.hidden {
    display: none;
}

.dn-item-thumb-inline {
    position: relative;
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.dn-item-thumb-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dn-play-overlay-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.dn-video-item-inline:hover .dn-play-overlay-inline {
    opacity: 1;
}

.dn-item-details-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.dn-item-details-inline h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dn-video-item-inline.active .dn-item-details-inline h5 {
    color: #0075b8;
}

.dn-item-date {
    font-size: 12px;
    color: #666;
}

.dn-btn-load {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #0075b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dn-btn-load:hover {
    background: #005a8f;
    transform: translateY(-2px);
}

.dn-search-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dn-search-form input {
    flex: 1;
    min-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.dn-search-form button {
    padding: 12px 24px;
    background: #0075b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.dn-search-form button:hover {
    background: #005a8f;
}

.dn-youtube-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.dn-player-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dn-main-player {
    border-radius: 8px;
    overflow: hidden;
}

.dn-video-info {
    padding: 15px 0;
    background: #f9f9f9;
}

.dn-video-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.dn-video-info p {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dn-playlist-sidebar {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
}

.dn-playlist-sidebar h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #0075b8;
    padding-bottom: 8px;
}

.dn-videos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.dn-video-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dn-video-item:hover {
    border-color: #0075b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dn-video-item.active {
    border-color: #0075b8;
    background: #f0f8ff;
}

.dn-video-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.dn-video-details {
    flex: 1;
    min-width: 0;
}

.dn-video-details h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dn-video-meta {
    font-size: 12px;
    color: #666;
}

.dn-playlist-sidebar button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

#dn-load-more {
    background: #007cba;
    color: white;
}

#dn-load-more:hover {
    background: #005a87;
}

#dn-new-search {
    background: #666;
    color: white;
}

#dn-new-search:hover {
    background: #444;
}

.dn-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dn-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .dn-player-container {
        grid-template-columns: 1fr;
    }
    
    .dn-search-form {
        flex-direction: column;
    }
    
    .dn-search-form input {
        min-width: auto;
    }
    
    .dn-video-item {
        flex-direction: column;
        text-align: center;
    }
    
    .dn-video-thumb {
        align-self: center;
    }
}

/* Seção Home */
.dn-home-section {
    margin: 0;
    padding: 15px 0;
    background: #fff;
}

.dn-home-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
    border-bottom: 3px solid #0075b8;
    padding-bottom: 10px;
}

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

.dn-home-video {
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dn-home-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dn-home-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.dn-home-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dn-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dn-home-video:hover .dn-play-overlay {
    opacity: 1;
}

.dn-home-info {
    padding: 15px;
    background: #fff;
}

.dn-home-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.dn-home-date {
    font-size: 12px;
    color: #666;
}

/* Página Completa - Inspirado no tema */
.dn-page-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.dn-page-header {
    margin-bottom: 40px;
}

.dn-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dn-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dn-youtube-icon {
    display: flex;
    align-items: center;
    color: #0075b8;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.dn-youtube-icon:hover {
    transform: scale(1.1);
}

.dn-page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.dn-subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #0075b8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.dn-subscribe-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.dn-cache-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.dn-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.dn-main-section {
    flex: 1 1 60%;
    min-width: 0;
}

.dn-player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dn-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.dn-video-info {
    padding: 15px 0;
}

.dn-video-info h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-bottom: 10px;
}

.dn-video-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.dn-sidebar {
    flex: 1 1 40%;
    background-color: transparent;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dn-playlist {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dn-playlist::-webkit-scrollbar {
    width: 6px;
}

.dn-playlist::-webkit-scrollbar-track {
    background: transparent;
}

.dn-playlist::-webkit-scrollbar-thumb {
    background: #0075b8;
    border-radius: 3px;
}

.dn-video-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dn-video-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dn-video-item.active {
    border-color: #0075b8;
    background-color: white;
}

.dn-video-item.hidden {
    display: none;
}

.dn-item-thumbnail {
    position: relative;
    flex: 0 0 120px;
    height: 68px;
    overflow: hidden;
    border-radius: 4px;
}

.dn-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dn-video-item:hover .dn-item-thumbnail img {
    transform: scale(1.1);
}

.dn-play-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.dn-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dn-item-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin-bottom: 5px;
}

.dn-video-item.active .dn-item-info h4 {
    color: #0075b8;
}

.dn-item-meta {
    font-size: 11px;
    color: #999;
}

.dn-load-more {
    width: 100%;
    padding: 12px 20px;
    margin-top: 15px;
    background-color: #0075b8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .dn-layout {
        gap: 15px;
    }
    
    .dn-main-section {
        flex: 1 1 65%;
    }
    
    .dn-sidebar {
        flex: 1 1 35%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .dn-player-container {
        grid-template-columns: 1fr;
    }
    
    .dn-search-form {
        flex-direction: column;
    }
    
    .dn-search-form input {
        min-width: auto;
    }
    
    .dn-video-item-inline {
        padding: 6px;
    }
    
    .dn-item-thumb-inline {
        width: 100px;
        height: 56px;
    }
    
    .dn-home-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .dn-header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .dn-subscribe-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .dn-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .dn-main-section {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .dn-sidebar {
        flex: 0 0 100%;
        width: 100%;
        padding: 15px;
    }
    
    .dn-playlist {
        max-height: none;
    }
    
    .dn-video-info h2 {
        font-size: 18px;
    }
    
    .dn-item-thumbnail {
        flex: 0 0 100px;
        height: 56px;
    }
    
    .dn-item-info h4 {
        font-size: 12px;
    }
    
    .dn-load-more {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .dn-cache-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .dn-youtube-container {
        margin: 0;
        padding: 0;
    }
    
    .dn-video-item-inline {
        padding: 5px;
    }
    
    .dn-item-thumb-inline {
        width: 80px;
        height: 45px;
    }
    
    .dn-home-grid {
        grid-template-columns: 1fr;
    }
    
    .dn-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .dn-page-container {
        padding: 0;
    }
    
    .dn-page-header h1 {
        font-size: 24px;
    }
    
    .dn-home-thumb {
        height: 140px;
    }
    
    .dn-grid-thumb {
        height: 160px;
    }
}