/*
 * 全画面共通のスタイル(手書き。ビルド不要)
 * アップロード画面は旧アプリ(Tailwind 3 + @tailwindcss/forms)の表示と同じ値にしてある。
 */

/* ---- 基本(Tailwind の preflight のうち使う部分) ---- */
*, ::before, ::after {
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    margin: 0;
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd {
    margin: 0;
}

h1, h2, h3 {
    font-size: inherit;
    font-weight: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button, input {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, [type=button], [type=submit] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

:disabled {
    cursor: default;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

video {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none !important;
}

/* ---- アップロード画面 ---- */
.upload-body {
    background-color: #000;
}

.upload {
    min-height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 64px 20px 40px;
}

.upload-title {
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    color: #fff;
}

.upload-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.upload-form > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ネイティブのファイル選択。padding はボタンが上下均等に見えるよう調整済みの値 */
.file-input {
    background: #737373;
    border-width: 0;
    border-radius: 0;
    height: 40px;
    padding: 5px 8px 0;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: center;
    color: #fff;
}

.file-input:focus {
    outline: 1px solid ButtonText;
    outline: 1px auto -webkit-focus-ring-color;
}

.upload-button {
    background-color: #737373;
    border-radius: 0;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #fff;
}

.upload-progress {
    width: 100%;
}

.upload-progress > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-weight: 500;
    color: #fff;
}

.progress-text {
    font-size: 16px;
    line-height: 24px;
}

.progress-percent {
    font-size: 14px;
    line-height: 20px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background-color: #404040;
}

.progress-bar {
    width: 0;
    height: 10px;
    background-color: #fff;
}

.received {
    margin-left: auto;
    margin-right: auto;
}

.received-lead {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    color: #fff;
}

.received-list {
    margin-left: auto;
    margin-right: auto;
}

.received-spacer {
    padding: 12px;
}

.received-list p {
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    color: #fff;
}

@media (min-width: 768px) {
    .upload-progress {
        width: 620px;
    }

    .received {
        width: 686px;
    }

    .received-list {
        width: 620px;
    }
}

/* ---- 再生画面 ---- */
.play-title {
    padding: 20px;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    text-align: center;
    color: #002fa7;
}

.play-note {
    padding: 12px;
    text-align: center;
    color: #002fa7;
}

/* ---- ログイン・ダッシュボード・設定 ---- */
.admin-body {
    min-height: 100vh;
    background-color: #f3f4f6;
    color: #111827;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.admin-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-weight: 500;
    color: #6b7280;
}

.admin-nav-links a:hover,
.admin-nav-links a.active {
    color: #111827;
}

.admin-nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6b7280;
}

.admin-nav-user button {
    text-decoration: underline;
}

.admin-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 16px;
}

.admin-heading {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.admin-card {
    padding: 24px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / .1);
}

.admin-note {
    margin-bottom: 16px;
    font-size: 14px;
    color: #4b5563;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.admin-form input[type=email],
.admin-form input[type=password],
.admin-form input[type=number] {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
}

.admin-form input:focus {
    outline: 2px solid #6366f1;
    outline-offset: 0;
}

.admin-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.admin-error {
    margin-top: 6px;
    font-size: 14px;
    color: #dc2626;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-button {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
}

.admin-button:hover {
    background-color: #374151;
}

.admin-saved {
    font-size: 14px;
    color: #4b5563;
}

.admin-stats {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    margin-top: 16px;
    font-size: 14px;
}

.admin-stats dt {
    color: #6b7280;
}
