body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #111;
}

h1, h2, h3 {
    text-align: center;
    color: #b30000;
}

a {
    text-decoration: none;
    color: #b30000;
}
a:hover {
    text-decoration: underline;
}

/* Boxed wrapper */
.main-wrapper.boxed {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    padding: 20px;
}
.video-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}
.video-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.thumb-wrapper {
    position: relative;
    overflow: hidden;
}
.thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.thumb-wrapper:hover img {
    transform: scale(1.05);
}

.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: #b30000;
    padding: 10px 12px 4px;
    line-height: 1.3;
}
.video-box .meta {
    font-size: 13px;
    color: #666;
    padding: 0 12px 10px;
}

/* Kategorije */
.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}
.category-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #000;
    transition: background 0.2s ease;
}
.category-box:hover {
    background: #b30000;
    color: #fff;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}
.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a.active {
    background: #b30000;
    color: #fff;
}
.pagination a:hover {
    background: #e60000;
    color: #fff;
}

/* Tagovi */
.tag-cloud {
    text-align: center;
    padding: 30px 10px;
}
.tag-link {
    display: inline-block;
    margin: 6px;
    padding: 6px 12px;
    background: #eee;
    color: #000;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.tag-link:hover {
    background: #b30000;
    color: #fff;
}

/* Footer */
footer {
    font-size: 0.9em;
    padding: 15px;
    background: #f5f5f5;
    color: #333;
    margin-top: 40px;
}

.fancy-logo {
    font-family: 'Segoe UI', sans-serif;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #b30000, #e60000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(179, 0, 0, 0.2);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}
.fancy-logo:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.4);
}

.site-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background: #1a1a1a;
    font-size: 14px;
    color: #f2f2f2;
    border-top: 2px solid #b30000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-footer p {
    margin: 10px 0;
}

.footer-links a {
    color: #ff4d6d;
    margin: 0 10px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff;
}

/* Video section with ads on the right */
.video-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row; /* ensure video left, ads right */
}

.video-player-container {
    flex: 1 1 960px;
    max-width: 960px;
}

.side-ads {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 2; /* ads after video */
}

.ad-slot {
    width: 300px;
    height: 250px;
    background-color: #ffe0ea;
    border: 1px dashed #d63384;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #d63384;
    border-radius: 10px;
}
/* Video player */
.video-player {
    text-align: center;
    margin: 20px auto;
}
.video-player iframe {
    width: 800px;
    height: 600px;
    max-width: 100%;
    border: none;
}
@media screen and (max-width: 768px) {
    .video-player iframe {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
}
/* Video details */
.video-title-left {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #b30000;
    text-align: left;
}

.video-meta-left {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
}

.video-description-left {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    color: #222;
}

/* Buttons */
.btn, .category-box {
    display: inline-block;
    padding: 10px 20px;
    background: #b30000;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
    text-align: center;
}
.btn:hover, .category-box:hover {
    background: #e60000;
    color: #fff;
}

/* Card and shadow utility */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}
.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media screen and (max-width: 991px) {
    .video-section {
        flex-direction: column;
    }
    .side-ads {
        display: none;
    }
    .video-player-container {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .video-box .title {
        font-size: 14px;
    }
    .video-box .meta {
        font-size: 12px;
    }
    .duration {
        font-size: 12px;
        padding: 2px 5px;
    }
}
