* {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            background: #fff;
            color: #222;
            font-family: Arial, Helvetica, sans-serif;
        }

        header {
            height: 64px;
            border-bottom: 1px solid #ddd;
            display: flex;
            align-items: center;
            padding: 0 24px;
            background: #fff;
            position: sticky;
            top: 0;
            z-index: 1000;
            background-image: -webkit-linear-gradient(top, #fafafa, #f5f5f5);
        }

        header img {
            max-height: 42px;
            max-width: 180px;
            object-fit: contain;
        }

        .header-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        button {
            border: 0;
            border-radius: 4px;
            padding: 10px 16px;
            cursor: pointer;
            font-size: 14px;
        }

        #uploadButton {
            display: none;
            border-top-left-radius: 2px 2px;
            border-top-right-radius:2px 2px;
            border-bottom-right-radius:2px 2px;
            border-bottom-left-radius:2px 2px;
            display:inline-block;
            font-weight:bold;
            height:29px;
            line-height:29px;
            min-width:54px;
            text-align:center;
            font-size:11px;
            background-color:rgb(245, 245, 245);
            background-size:cover;
            background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAAdCAYAAAB2fzjyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAGxJREFUaIHt19EJgEAMBUEV++8237EJQVxmKjhYHkfOmdmD37u+fgDvEDJCyIh71xdZYJERQkYIGSFkhJARQkY4PyIsMkLICCEjhIwQMkLICOdHhEVGCBkhZISQEUJGCBnh/IiwyAghI4SMeAB3/BAUnP9rCgAAAABJRU5ErkJggg==);
            cursor:default;
            text-decoration:none;
            color:rgb(68, 68, 68);
            border-width:1px;
            border-style:solid;
            margin:16px 8px;
            padding:0px 8px;
            border-color:rgba(0, 0, 0, 0.0976562);
        }

        #loginButton {
            background-image: -webkit-linear-gradient(top, #4d90fe, #4787ed);
            color: #fff;
            border: 1px solid #3079ed;
            font-weight: 700;
        }

        #userInfo {
            display: none;
            color: #555;
            font-size: 14px;
        }

        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 24px;
        }

        #status {
            margin-bottom: 20px;
            color: #666;
        }

        #videos {
            display: grid;
            grid-template-columns: repeat(
                auto-fill,
                minmax(280px, 1fr)
            );
            gap: 24px;
        }

        .video-card {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: box-shadow .15s;
        }

        .video-card:hover {
            box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
        }

        .thumbnail {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            background: #eee;
        }

        .video-info {
            padding: 14px;
        }

        .video-title {
            font-size: 17px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .video-desc {
            color: #666;
            font-size: 14px;
            line-height: 1.4;
            margin-bottom: 10px;
        }

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

        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, .75);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 5000;
        }

        .modal.open {
            display: flex;
        }

        .modal-box {
            background: white;
            width: 100%;
            max-width: 900px;
            max-height: 95vh;
            overflow: auto;
            border-radius: 8px;
            padding: 20px;
        }

        .video-modal-box {
            background: #000;
            padding: 0;
            max-width: 1000px;
        }

        .video-js {
            width: 100%;
            aspect-ratio: 16 / 9;
            height: auto;
        }

        .close {
            float: right;
            font-size: 24px;
            cursor: pointer;
            background: transparent;
            padding: 0;
        }

        .form-row {
            margin-bottom: 16px;
        }

        .form-row label {
            display: block;
            margin-bottom: 6px;
            font-weight: bold;
        }

        .form-row input,
        .form-row textarea {
            width: 100%;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 10px;
            font: inherit;
        }

        .form-row textarea {
            min-height: 100px;
            resize: vertical;
        }

        #submitUpload {
            background: #065fd4;
            color: white;
        }

        #uploadStatus {
            margin-top: 12px;
            color: #666;
        }
footer {
    width: 100%;
    margin-top: 3rem;
    padding: 1.25rem 1rem;
    background: #111;
    color: #aaa;
    border-top: 1px solid #2a2a2a;
    box-sizing: border-box;
}

footer section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer b {
    margin: 0 0.6rem;
    color: #555;
    font-weight: normal;
}

@media (max-width: 480px) {
    footer {
        padding: 1rem;
    }

    footer p {
        font-size: 0.85rem;
    }

    footer b {
        margin: 0 0.35rem;
    }
}