
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 15px;
    background: #f4f5f7;
    color: #222;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 950px;
    margin: auto;
    padding: 25px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 20px rgba(0,0,0,.04);
}

header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.logo {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #e53935;
    color: white;
    border-radius: 12px;
    font-size: 23px;
}

h1 {
    font-size: 23px;
    margin: 0 0 6px;
}

header p {
    color: #777;
    margin: 0;
    font-size: 13px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.search-box input:focus {
    border-color: #e53935;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 12px 17px;
    background: #333;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

button:hover {
    opacity: .85;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#analyzeBtn,
.primary {
    background: #e53935;
}

.status {
    margin: 18px 0;
    font-size: 14px;
    color: #666;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
    margin: 15px 0;
}

.summary-card img {
    width: 140px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 7px;
}

.summary-card h2 {
    font-size: 17px;
    margin: 8px 0;
}

.summary-card p {
    color: #777;
    font-size: 13px;
}

.type-badge {
    color: #d93025;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.toolbar span {
    color: #888;
    font-size: 12px;
    margin-left: 5px;
}

.toolbar-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.video-item input {
    width: 17px;
    height: 17px;
    accent-color: #e53935;
    flex-shrink: 0;
}

.video-item img {
    width: 145px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 7px;
    background: #eee;
}

.video-info {
    flex: 1;
    min-width: 0;
}

.video-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 7px;
}

.video-info a {
    display: block;
    font-size: 12px;
    color: #777;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.video-info a:hover {
    color: #d93025;
}

.copy-one {
    padding: 9px 12px;
    background: #eee;
    color: #333;
    flex-shrink: 0;
}

.load-more-wrap {
    text-align: center;
    padding: 22px 0;
}

#loadMoreBtn {
    background: #333;
    min-width: 180px;
}

@media(max-width: 600px) {
    body {
        padding: 12px 8px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 19px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        height: 44px;
    }

    .summary-card img {
        width: 105px;
    }

    .video-item {
        gap: 8px;
    }

    .video-item img {
        width: 105px;
    }

    .video-info strong {
        font-size: 12px;
    }

    .video-info a {
        font-size: 10px;
    }

    .copy-one {
        padding: 8px;
        font-size: 11px;
    }

    .toolbar-actions button {
        padding: 9px;
        font-size: 11px;
    }
}
