/* Home screen layout */

.home-screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #101c22;
  color: #ffffff;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #111827;
}

.home-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.home-logo-text {
  font-size: 20px;
  font-weight: 600;
}

/* Navigation icons */

.home-nav {
  display: flex;
  gap: 8px;
}

.home-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 8px;
}

.home-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.home-nav-btn-active {
  background: rgba(19, 164, 236, 0.15);
}

.home-nav-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.home-main {
  flex: 1;
  padding: 16px 16px 60px;
  overflow-y: auto;
}

.home-section {
  margin-bottom: 24px;
}

/* URL Section with card style */

.home-section .home-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.home-url-container {
  background: #020617;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #1f2933;
}

.home-url-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  background: #101c22;
  border: 1px solid #1f2933;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 12px;
}

.home-url-input::placeholder {
  color: #6b7280;
}

.home-url-input:focus {
  border-color: #13a4ec;
}

.home-url-button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #13a4ec;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.home-url-button:hover {
  background: #1090d0;
}

.home-url-button:active {
  transform: scale(0.98);
}

/* Player card - simple black container for YouTube iframe */

.home-player-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  position: relative;
}

.home-player-card #youtube-player {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Mark button */

.home-mark-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 999px;
  border: none;
  background: #13a4ec;
  box-shadow: 0 16px 30px rgba(19, 164, 236, 0.35);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 18px;
  color: #ffffff;
  cursor: pointer;
}

.home-mark-icon {
  font-size: 18px;
}

/* Note form */

.home-note-form {
  background: #020617;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #1f2933;
}

.home-form-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

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

.home-form-label {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.home-form-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  background: #101c22;
  border: 1px solid #1f2933;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
}

.home-form-input::placeholder {
  color: #6b7280;
}

.home-form-input:focus {
  border-color: #13a4ec;
}

.home-form-textarea {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 14px;
  background: #101c22;
  border: 1px solid #1f2933;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.home-form-textarea::placeholder {
  color: #6b7280;
}

.home-form-textarea:focus {
  border-color: #13a4ec;
}

.home-form-actions {
  display: flex;
  gap: 8px;
}

.home-form-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.home-form-btn-primary {
  background: #13a4ec;
  color: #ffffff;
}

.home-form-btn-primary:hover {
  background: #1090d0;
}

.home-form-btn-secondary {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #1f2933;
}

.home-form-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Timestamps list */

.home-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.home-timestamp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-timestamp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #020617;
}

.home-timestamp-play {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(19, 164, 236, 0.15);
  color: #13a4ec;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.home-timestamp-text {
  flex: 1;
  min-width: 0;
}

.home-timestamp-time {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.home-timestamp-note {
  font-size: 13px;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-timestamp-edit {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Install footer */

.home-install-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: rgba(16, 28, 34, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid #1f2933;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.home-install-footer-btn {
  background: transparent;
  border: none;
  color: #13a4ec;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
}

.home-install-footer-btn:active {
  opacity: 0.7;
}