body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181818;
    color: #fff;
    min-height: 100vh;
}
header {
    background: #232323;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo h1 {
    color: #ff3c00;
    margin-left: 40px;
    font-size: 2.2rem;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    margin-right: 40px;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #ff3c00;
}
nav ul li.dropdown {
    position: relative;
}
nav ul li .dropbtn {
    cursor: pointer;
    position: relative;
}
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    background: #232323;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 2000;
    top: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
}
nav ul li .dropdown-content a {
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    transition: background 0.2s, color 0.2s;
}
nav ul li .dropdown-content a:hover {
    background: #ff3c00;
    color: #fff;
}
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-title {
    display: block;
    padding: 8px 18px 4px 18px;
    color: #ff3c00;
    font-weight: bold;
    font-size: 1rem;
    background: none;
    cursor: default;
    border-bottom: 1px solid #333;
    margin-top: 6px;
    margin-bottom: 2px;
    pointer-events: none;
}
main {
    padding: 40px 0;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    background: #232323;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.video-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255,60,0,0.15);
}

.video-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #111;
    transition: opacity 0.2s;
}

.video-item p {
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff3c00;
    background: #232323;
}
footer {
    background: #232323;
    text-align: center;
    padding: 18px 0;
    color: #aaa;
    font-size: 1rem;
    margin-top: 40px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.92);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    height: 55vw;
    max-height: 70vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #000;
}

.close {
    position: absolute;
    top: 24px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    transition: color 0.2s;
}

.close:hover {
    color: #ff3c00;
}
.form-modal {
    background: #232323;
    padding: 32px 24px 24px 24px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-modal h2 {
    color: #ff3c00;
    margin-bottom: 18px;
}
.form-modal form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-modal input {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #181818;
    color: #fff;
    font-size: 1rem;
}
.form-modal button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #ff3c00;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.form-modal button:hover {
    background: #ff5e26;
}
.modal .form-modal {
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: unset;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.modal .form-modal form {
    margin-top: 0;
}
#ball-trail {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 700px) {
    .modal-content {
        width: 98vw;
        height: 56vw;
        max-width: 100vw;
        max-height: 60vh;
    }
    .logo h1, nav ul {
        margin-left: 10px;
        margin-right: 10px;
    }
    .video-item img {
        height: 120px;
    }
    .form-modal {
        min-width: 90vw;
        max-width: 95vw;
    }
}
