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

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-card: #1a1a1a;
  --bg-hover: #222;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent: #c62828;
  --accent-hover: #e53935;
  --accent-glow: rgba(198, 40, 40, 0.15);
  --accent2: #4682B4;
  --accent2-hover: #5a9fd6;
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 10px;
  --radius-sm: 6px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--accent2); transition: color 0.2s; }
a:hover { color: var(--accent2-hover); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 8px; z-index: 200;
  padding: 8px 16px; background: var(--accent); color: var(--bg-primary);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; gap: 16px;
}

.logo { flex-shrink: 0; }
.logo a {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.logo a:hover { color: var(--accent-hover); }
.logo-img { height: 36px; width: auto; display: block; }
.logo-text {
  font-size: 1.2rem; font-family: 'Segoe Script','Brush Script MT',cursive; font-style: italic;
}

header nav {
  display: flex; gap: 4px; flex-wrap: wrap;
}

header nav a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
header nav a.active { background: var(--accent); color: #fff; }

.header-social { display: flex; gap: 12px; flex-shrink: 0; }
.header-social a {
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500; text-decoration: none;
  transition: color 0.2s;
}
.header-social a:hover { color: var(--accent2); }

footer {
  text-align: center; padding: 20px 24px;
  color: var(--text-muted); font-size: 0.85rem;
  border-top: 1px solid var(--border); margin-top: 40px;
}

.banner-main {
  display: block; background: #830303; color: #fefeff;
  text-align: center; padding: 8px 16px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.banner-main:hover { background: #a30404; color: #fefeff; }

main {
  max-width: 1400px; margin: 0 auto; padding: 24px;
  min-height: calc(100vh - 160px);
}

.welcome-section {
  margin-bottom: 32px;
}
.welcome-section h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.welcome-section p {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; max-width: 700px;
}

.section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px;
}

.wft-news-grid {
  display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding: 12px 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}

.wft-news-card {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.wft-news-card:hover {
  transform: translateY(-4px); box-shadow: 0 6px 20px var(--accent-glow);
  border-color: var(--accent);
}
.wft-news-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.wft-news-card .news-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.wft-news-card p { font-size: 0.825rem; color: var(--text-secondary); line-height: 1.5; }

.wft-featured-grid {
  display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; padding: 12px 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}

.wft-featured-music-card {
  flex: 0 0 160px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.wft-featured-music-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.wft-featured-music-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.wft-featured-music-genre {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); padding: 6px 8px 0;
}
.wft-featured-music-title {
  font-size: 0.8rem; font-weight: 500; color: var(--text-primary);
  padding: 4px 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.about-section {
  display: flex; gap: 24px; padding: 16px 0; align-items: flex-start;
}
.about-photo {
  width: 160px; height: 160px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.about-text p {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 12px;
}

.books-grid {
  display: flex; gap: 16px; padding: 16px 0; flex-wrap: wrap;
}

.wft-book-card {
  flex: 1 1 280px; max-width: 360px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.wft-book-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px var(--accent-glow);
  border-color: var(--accent);
}
.wft-book-cover {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.wft-book-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.wft-book-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }

.wft-download-btn {
  display: inline-block; padding: 6px 16px; margin: 4px 4px 4px 0;
  background: var(--accent); color: var(--bg-primary); font-size: 0.8rem;
  font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.2s;
}
.wft-download-btn:hover { background: var(--accent-hover); color: var(--bg-primary); }

.wft-book-amazon { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.wft-book-amazon a { color: var(--accent2); font-weight: 600; }

.wft-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; padding: 16px 0;
}

.wft-tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.wft-tool-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px var(--accent-glow);
  border-color: var(--accent);
}
.wft-tool-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.wft-tool-desc {
  font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 12px; flex: 1;
}
.wft-launch-btn {
  display: inline-block; padding: 6px 16px;
  background: var(--accent); color: var(--bg-primary); font-size: 0.8rem;
  font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
  align-self: flex-start; transition: background 0.2s;
}
.wft-launch-btn:hover { background: var(--accent-hover); color: var(--bg-primary); }

.wft-feedback-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  max-width: 500px; margin: 16px 0;
}
.wft-feedback-card p {
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 16px; line-height: 1.6;
}

.feedback-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 4px; margin-top: 14px;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-primary); color: var(--text-primary);
  font-size: 0.875rem; font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.feedback-form textarea { min-height: 120px; resize: vertical; }
.feedback-form .submit-btn {
  margin-top: 16px; padding: 10px 24px; border: none;
  background: var(--accent); color: var(--bg-primary);
  font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.feedback-form .submit-btn:hover { background: var(--accent-hover); }

.feedback-success {
  background: #1a3a1a; border: 1px solid #2a5a2a;
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px;
  color: #8bc34a;
}
.feedback-error {
  background: #3a1a1a; border: 1px solid #5a2a2a;
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px;
  color: #ef5350;
}

@media (max-width: 900px) {
  .about-section { flex-direction: column; align-items: center; text-align: center; }
  .about-photo { width: 120px; height: 120px; }
  .header-inner { flex-wrap: wrap; justify-content: center; }
  header nav { order: 3; width: 100%; justify-content: center; }
  main { padding: 16px; }
  .wft-news-card { flex: 0 0 240px; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1rem; }
  header nav a { padding: 4px 10px; font-size: 0.8rem; }
}
