/* Osnovno podešavanje */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    color: #e6e6e6;
}

/* Zaglavlja */
h1, h2, h3 {
    text-align: center;
    color: #ff3366;
}

a {
    text-decoration: none;
    color: #ff3366;
}

a:hover {
    text-decoration: underline;
}

/* Sekcije */
.section-box {
    padding: 30px 20px;
    background: #2b2b2b;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 1280px;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
}

.section-box.light-bg {
    background: #3a3a3a;
}

/* Video mreža */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.video-box {
    background: #1a1a1a;
    border: 1px solid #ff0066;
    border-radius: 12px;
    padding: 10px;
    text-align: left;
    box-shadow: 0 0 10px #cc0055;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.video-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #ff3366;
}

.thumb-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
}

.video-box .title {
    font-weight: bold;
    font-size: 16px;
    color: #ff99cc;
    margin: 10px 0 5px 0;
    line-height: 1.3;
}

.video-box .meta {
    font-size: 13px;
    color: #ccc;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.category-box {
    background: #cc0055;
    border: 1px solid #ff0066;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-box:hover {
    background: #ff3366;
    color: #fff;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #ff0033;
    color: #fff;
}

.pagination a:hover {
    background: #ff3366;
    color: #fff;
}

/* Dropdown meni */
.dropdown {
    position: relative;
}

.dropbtn {
    background-color: #1a1a1a;
    color: #ff3366;
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #ff3366;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b2b2b;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(255, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow-y: auto;
    max-height: 300px;
}

.dropdown-content.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 20px;
    padding: 10px;
}

.dropdown-content a {
    color: #ff99cc;
    padding: 10px 12px;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #444;
    background-color: #1a1a1a;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #333;
}

/* Responsive video layout */
.video-section {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-player-container {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.video-player iframe,
.video-player embed,
.video-player video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    background: #000;
}

.side-ads {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-slot {
    width: 100%;
    height: 250px;
    background: #330000;
    border: 1px dashed #ff0033;
    color: #ff99cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 10px;
}

@media screen and (max-width: 991px) {
    .video-section {
        flex-direction: column;
        align-items: center;
    }

    .side-ads {
        display: none;
    }

    .video-player-container {
        max-width: 640px;
    }

    .video-player iframe {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
.video-description {
    max-width: 700px;
    margin: 20px auto;
    padding: 15px;
    background: #1e1e1e; /* tamna pozadina */
    border: 1px solid #ff3366; /* vibrant roze-crveni okvir */
    border-radius: 10px;
    color: #f2f2f2; /* svetli tekst */
    line-height: 1.6;
}

.video-description h3 {
    color: #ff4d88;
    margin-bottom: 10px;
    text-align: center;
}
.tag-link {
    display: inline-block;
    margin: 5px;
    padding: 6px 12px;
    background: #f3f3f3;
    border-radius: 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}
.tag-link:hover {
    background: #e91e63;
    color: #fff;
}
/* External link section styling */
.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
}

.external-links li {
    margin: 5px;
}

.external-links a {
    display: inline-block;
    padding: 10px 16px;
    background-color: #f5f5f5;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #ddd;
}

.external-links a:hover {
    background-color: #d63384;
    color: #fff;
    border-color: #d63384;
    text-decoration: none;
    transform: scale(1.03);
}
