/* Classic Minimalist Archive Theme */

:root {
  --bg-body: #f4f4f7;
  --bg-panel: #ffffff;
  --border: #e0e0e5;
  --text-main: #222222;
  --text-muted: #666666;
  --accent: #d9232e; /* Classic red accent for tube sites */
  --link-color: #0b5cff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0d0d10;
    --bg-panel: #16161a;
    --border: #2b2b35;
    --text-main: #e2e2e8;
    --text-muted: #8c8c9e;
    --accent: #ff3b46;
    --link-color: #4b8af7;
  }
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: system-ui, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
  line-height: 1.5;
  font-size: 15px;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  margin-bottom: 25px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none !important;
}

.logo span {
  color: var(--accent);
}

/* Sections */
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 25px;
  overflow: hidden;
}

/* Image Grids */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 15px;
}

.photo-item {
  display: block;
}

.photo-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.avatar-grid .photo-item img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  background-color: transparent;
}

.photo-item:hover img {
  opacity: 0.85;
}

.photo-label {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
  color: var(--text-main);
}

/* Featured Hero */
.hero-feature {
  padding: 15px;
  text-align: center;
}

.hero-feature img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* File Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: rgba(0,0,0,0.03);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .data-table th { background-color: rgba(255,255,255,0.02); }
}

.data-table tr:hover td {
  background-color: rgba(0,0,0,0.02);
}

@media (prefers-color-scheme: dark) {
  .data-table tr:hover td { background-color: rgba(255,255,255,0.03); }
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  background-color: var(--border);
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* Legacy Text Links */
.text-links-cloud {
  padding: 15px;
  line-height: 2;
}

.text-links-cloud a {
  display: inline-block;
  margin-right: 15px;
  font-size: 14px;
}

.text-links-cloud a:before {
  content: '» ';
  color: var(--text-muted);
}

/* Bottom Tags Random */
.seo-tags-block {
  margin: 30px 0;
  padding: 15px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: justify;
}

.seo-tags-block a {
  color: var(--text-muted);
  text-decoration: none;
}

.seo-tags-block a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Video Wrapper */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.video-wrap video {
  width: 100%;
  display: block;
  background-color: #000;
  border-radius: 4px;
}

.related-video-list {
  list-style: none;
  padding: 15px;
}

.related-video-list li {
  margin-bottom: 8px;
}

.related-video-list a {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.related-video-list a:before {
  content: '▶ ';
  color: var(--accent);
  margin-right: 8px;
  font-size: 10px;
}

/* Footer Links List */
.footer-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 15px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border);
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 13px;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}