/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
}

/* Header & nav */
header {
    background: #333;
    color: #fff;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}
.logo {
    font-weight: bold;
    font-size: 1.5rem;
}
.category-list {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.category-list li {
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background: #555;
    transition: background 0.3s ease;
}
.category-list li:hover,
.category-list li.active {
    background: #ff6600;
    color: white;
}

/* Banner ad */
.banner-ad {
    background: #ddd;
    color: #333;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.1rem;
}

/* Main grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: ;
}

/* Video card */
.video-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.video-card video {
    width: 100%;
    border-radius: 4px;
    background: black;
}
.video-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tag {
    background: #eee;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Video player page */
.video-player-section {
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}
.video-player-section video {
    width: 100%;
    border-radius: ,8px;
    background: black;
}

.video-info {
    margin-top: 0.5rem;
    display: inline-block;
    gap: 1.5rem;
    align-items: center;
    font-size: 1rem;
}
.video-info button {
    cursor: pointer;
    background: #ff6600;
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.3s ease;
}
.video-info button:hover {
    background: #e65c00;
}
.video-ad {
    margin: 1rem 0;
    background: #ddd;
    padding: 0.8rem;
    text-align: center;
    font-size: 1.2rem;
}
.back-link {
    display: inline-block;
    margin-top: 1rem;
    color: #ff6600;
    font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    nav {
        justify-content: center;
    }
    .category-list {
        justify-content: center;
    }

.watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    font-weight: bold;
    pointer-events: none; /* Allows clicks to pass through */
    user-select: none; /* Prevent text selection */
    text-shadow: 1px 1px 2px black;
}

