:root {
    --bg-color: #f9f9f9;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --border-color: #e5e5e5;
}

body {
    font-family: 'Roboto', 'Noto Sans JP', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 20px;
}

.editor-panel {
    flex: 1;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.editor-panel h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

.btn {
    background-color: #065fd4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    margin-top: 24px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

.preview-panel {
    flex: 1.5;
    background: white;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Capture Area - YouTube Comment Style */
#captureArea {
    background: white;
    padding: 0;
    width: 100%;
    max-width: 650px;
    position: relative;
}

.pinned-header {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 12px;
    padding-left: 28px;
}

.pin-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

.more-icon {
    width: 24px;
    height: 24px;
    margin-left: auto;
    color: var(--text-primary);
}

.comment-main {
    display: flex;
    position: relative;
}

.avatar-col {
    margin-right: 16px;
    position: relative;
    z-index: 2;
    padding-top: 2px;
}

.avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.content-col {
    flex: 1;
}

.author-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.author-name {
    font-weight: 500;
    margin-right: 4px;
    color: var(--text-primary);
}

.badge {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.time-text {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 2px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.super-thanks-pill {
    display: inline-flex;
    align-items: center;
    background-color: #00e5ff;
    padding: 2px 8px;
    border-radius: 16px;
    font-weight: 500;
    margin-right: 6px;
    font-size: 13px;
    color: #0f0f0f;
    vertical-align: middle;
}

.pill-icon {
    display: inline-flex;
    margin-right: 4px;
    align-items: center;
}

.action-row {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 12px;
}

.action-item {
    display: flex;
    align-items: center;
}

.action-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.likes-count {
    color: var(--text-secondary);
    margin-left: 2px;
    margin-right: 16px;
}

.creator-heart-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.heart-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.reply-text {
    font-weight: 500;
    cursor: pointer;
    font-size: 12px;
}

.replies-section {
    display: flex;
    align-items: center;
    margin-top: 12px;
    margin-left: 56px;
    position: relative;
}

.replies-section::before {
    content: '';
    position: absolute;
    left: -36px;
    top: -24px;
    bottom: 12px;
    width: 24px;
    border-left: 2px solid transparent; /* Used to have a visible border, but the image shows no explicit line or maybe a very faint one */
    /* Let's remove the line to strictly match the provided screenshot where a line isn't very visible or needed. Wait, in modern Youtube there's no line for the first reply indicator, or sometimes there is. Let's make it transparent to be safe. */
}

.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.replies-dot {
    margin: 0 6px;
    color: var(--text-primary);
    font-size: 14px;
}

.replies-text {
    font-weight: 500;
    color: #065fd4;
    font-size: 14px;
    cursor: pointer;
}

.chevron-down {
    width: 20px;
    height: 20px;
    color: #065fd4;
    margin-left: 4px;
}

.fake-logo-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.15);
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: 10;
    user-select: none;
    font-family: 'Arial Black', sans-serif;
}

/* Tabs Styles */
.tabs-container {
    width: 100%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.tabs {
    display: flex;
    gap: 16px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}
.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    color: var(--text-primary);
    border-bottom: 3px solid #065fd4;
}

/* Live Super Chat Styles */
#captureAreaLive {
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.live-superchat-block {
    border-radius: 12px;
    overflow: hidden;
    color: #0f0f0f;
    background-color: #00e5ff;
    width: 100%;
    max-width: 400px;
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2);
}
.live-header {
    display: flex;
    align-items: center;
    padding: 10px 16px 2px;
    background-color: transparent;
}
.live-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    background-color: #f0f0f0;
}
.live-header-content {
    flex: 1;
    display: flex;
    align-items: center;
}
.live-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: inherit;
}
.live-name {
    font-weight: 500;
}
.live-amount {
    font-weight: 500;
}
.live-body {
    padding: 4px 16px 12px;
    font-size: 14px;
    word-break: break-word;
    color: inherit;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
}
