@font-face {
  font-family: "LINE Seed JP";
  src: url("/fonts/LINESeedJP_OTF_Rg.woff") format('woff');
}

@font-face {
  font-family: "LINE Seed JP";
  src: url("/fonts/LINESeedJP_OTF_Bd.woff") format('woff');
  font-weight: bold;
}

body {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    color: #333;
    font-family: "MS UI Gothic", sans-serif;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background-color: #f0f0f0;
}

.navigation-bar {
    width: 100%;
    height: 38px;
    background-color: #FF008C;
}

.navigation-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 820px;
    margin: 0 auto;
}

.navigation-logo {
    display: flex;
    align-items: center;
}

.navigation-logo img {
    height: 28px;
    vertical-align: middle;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navigation-links a {
    color: white;
    text-decoration: underline;
    font-size: 14px;
}

.container {
    width: 820px;
    margin: 20px auto;
}

.main-content {
    display: flex;
    gap: 15px;
}

.left-section {
    flex: 0 0 520px;
}

.right-section {
    flex: 1;
}

.camera-preview, .video-container {
    margin-bottom: 15px;
    border: 3px solid #FF008C;
    width: 520px;
    height: 295px;
    box-sizing: border-box;
    background-color: #000;
    position: relative;
}

.user-info {
    display: flex;
    gap: 10px;
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 10px;
}

.profile-picture {
    flex-shrink: 0;
}

.profile-box {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border: 2px solid #ccc;
}

.user-details {
    flex: 1;
    padding: 5px;
}

.username {
    font-size: 16px;
    font-weight: bold;
    color: #FF008C;
    margin-bottom: 8px;
}

.live-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.stream-settings {
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 15px;
}

.stream-settings h2, .chat-container h2 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #FF008C;
    border-bottom: 2px solid #FF008C;
    padding-bottom: 5px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.input-field {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #FF008C;
}

textarea.input-field {
    resize: vertical;
}

.start-button-container {
    margin-top: 20px;
    text-align: center;
}

.start-stream-button, .stop-stream-button {
    background: linear-gradient(to bottom, #ff66b3 0%, #FF008C 100%);
    border: 2px solid #cc006f;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    cursor: pointer;
    font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
}

.start-stream-button:hover, .stop-stream-button:hover {
    background: linear-gradient(to bottom, #ff77bb 0%, #ff1a99 100%);
}

.stop-stream-button {
    background: linear-gradient(to bottom, #ff6666 0%, #cc0000 100%);
    border-color: #990000;
}

.stop-stream-button:hover {
    background: linear-gradient(to bottom, #ff7777 0%, #dd0000 100%);
}

/* Chat styles */
.chat-container {
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fafafa;
}

.chat-message {
    margin-bottom: 8px;
    font-size: 13px;
}

.chat-message .chat-username {
    font-weight: bold;
    color: #FF008C;
    margin-right: 5px;
    cursor: pointer;
}

.chat-message .chat-username:hover {
    text-decoration: underline;
}

.chat-message .chat-time {
    color: #999;
    font-size: 11px;
    margin-left: 5px;
}

.chat-input-container {
    display: flex;
    gap: 5px;
}

.chat-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
}

.chat-send-button {
    background: #FF008C;
    border: 1px solid #cc006f;
    color: white;
    padding: 5px 15px;
    cursor: pointer;
    font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
    font-size: 13px;
}

.chat-send-button:hover {
    background: #ff1a99;
}

/* Login/Register styles */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 30px;
}

.auth-container h1 {
    color: #FF008C;
    margin-top: 0;
    border-bottom: 2px solid #FF008C;
    padding-bottom: 10px;
}

.auth-button {
    width: 100%;
    background: linear-gradient(to bottom, #ff66b3 0%, #FF008C 100%);
    border: 2px solid #cc006f;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px;
    cursor: pointer;
    font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
    margin-top: 10px;
}

.auth-button:hover {
    background: linear-gradient(to bottom, #ff77bb 0%, #ff1a99 100%);
}

.error-message {
    background-color: #ffe0e0;
    border: 1px solid #ff0000;
    color: #cc0000;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.auth-link a {
    color: #FF008C;
    text-decoration: underline;
}

/* Stream list */
.stream-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stream-card {
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.stream-card:hover {
    border-color: #FF008C;
}

.stream-thumbnail {
    width: 100%;
    height: 140px;
    background-color: #000;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF008C;
    font-size: 24px;
    font-weight: bold;
}

.stream-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.stream-info .streamer {
    color: #FF008C;
    font-size: 12px;
    margin-bottom: 3px;
}

.stream-info .viewers {
    color: #666;
    font-size: 12px;
}

.live-badge {
    background-color: #ff0000;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}

.viewer-count {
    background-color: #FF008C;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.status-message {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    margin-top: 20px;
    color: #666;
}

/* Profile Popup */
.profile-popup {
    position: fixed;
    background-color: #fff;
    border: 3px solid #FF008C;
    padding: 0;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    display: none;
}

.profile-popup.show {
    display: block;
}

.profile-popup-header {
    background-color: #FF008C;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-popup-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 5px;
}

.profile-popup-close:hover {
    opacity: 0.8;
}

.profile-popup-content {
    padding: 12px;
}

.profile-popup-avatar {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border: 2px solid #ccc;
    margin: 0 auto 10px;
}

.profile-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-popup-username {
    font-size: 16px;
    font-weight: bold;
    color: #FF008C;
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-popup-info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.profile-popup-info div {
    margin-bottom: 4px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-popup-info div:last-child {
    border-bottom: none;
}

.profile-popup-info strong {
    color: #333;
    font-weight: bold;
}
