body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.tdm-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #cc0000;
    padding: 8px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tdm-top-bar-button {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.tdm-top-bar-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 800px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1,
h2 {
    color: #111;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

h2 {
    margin-top: 30px;
}

p {
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

.url-form {
    display: flex;
    gap: 10px;
}

.url-form input[type="url"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.url-form button {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.url-form button:hover {
    background-color: #a10000;
}

.video-card {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.video-info {
    flex-grow: 1;
}

.video-info h3 {
    margin-top: 0;
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.manual-area {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 5px;
}