@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans:wght@400;600;700&display=swap');
:root {
  --black: #0d0d0d;
  --dark: #1a1a2e;
  --mid: #16213e;
  --accent: #e94560;
  --accent2: #f5a623;
  --text: #f0f0f0;
  --text-muted: #aaa;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Noto Sans', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ct-layout {
  position: relative;
  z-index: 1;
}

.ct-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 69, 96, 0.3);
  padding: 10px 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ct-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.ct-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}

.ct-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ct-brand-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ct-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-nav a.ct-link {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.ct-nav a.ct-link:hover {
  border-color: rgba(233, 69, 96, 0.45);
  color: var(--text);
  background: rgba(233, 69, 96, 0.08);
}

.ct-nav a.ct-link-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(233, 69, 96, 0.14);
}

.ct-nav button.ct-link {
  font-family: inherit;
  cursor: pointer;
}

.ct-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.ct-setup-banner {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: #fcd34d;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
}

.ct-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ct-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.ct-tab:hover {
  border-color: rgba(233, 69, 96, 0.4);
  color: var(--text);
}

.ct-tab[data-active='1'] {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.15);
  color: var(--text);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.ct-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: ctSlideUp 0.35s ease both;
}

@keyframes ctSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ct-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 69, 96, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.ct-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--mid), #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: rgba(255, 255, 255, 0.2);
}

.ct-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-meta {
  padding: 14px 16px 16px;
}

.ct-meta h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ct-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.ct-watch {
  max-width: 960px;
  margin: 0 auto;
}

.ct-player-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #000;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.ct-player-wrap video {
  width: 100%;
  display: block;
  vertical-align: top;
}

.ct-player-wrap.ct-embed {
  position: relative;
  aspect-ratio: 16 / 9;
}

.ct-player-wrap.ct-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.ct-author-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ct-watch h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ct-watch .ct-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ct-upload {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.ct-form-group {
  margin-bottom: 18px;
}

.ct-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ct-form-group input,
.ct-form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}

.ct-form-group input:focus,
.ct-form-group textarea:focus {
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.ct-form-group textarea {
  min-height: 90px;
  resize: vertical;
}

.ct-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}

.ct-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.15s linear;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ct-alert-error {
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  color: #ff8a9a;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
}

.ct-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.ct-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ctSpin 0.7s linear infinite;
}

@keyframes ctSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {
  .ct-brand-title {
    font-size: 1.15rem;
  }

  .ct-main {
    padding: 18px 12px 48px;
  }
}
