/* ========================================================
   ROMANTIC PORN :: NODE-35
   THEME: CLASSIC WAP 2.0 / XHTML-MP MOBILE PORTAL
   ======================================================== */

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

body {
  background-color: #060606;
  background-image: radial-gradient(#151515 1px, transparent 1px);
  background-size: 12px 12px;
  color: #E0E0E0;
  font-family: Tahoma, Verdana, Arial, sans-serif, -apple-system;
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

/* Master WAP Mobile Container (Phone centered on desktop) */
.wap_wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #0E0E0E;
  border-left: 2px solid #2A2A2A;
  border-right: 2px solid #2A2A2A;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

/* 1. Classic WAP Top Status Bar */
.wap_top_bar {
  background: #161616;
  color: #999999;
  padding: 6px 10px;
  font-size: 11px;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #8B0000;
  flex-wrap: wrap;
  gap: 4px;
}

.wap_top_left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wap_pulse {
  color: #00FF66;
  font-weight: bold;
}

.wap_top_right {
  color: #E5A93C;
  font-weight: bold;
}

/* 2. WAP Logo & Header */
.wap_header {
  padding: 14px 10px 10px 10px;
  text-align: center;
  background: linear-gradient(180deg, #1C0A0A 0%, #0E0E0E 100%);
  border-bottom: 1px solid #2C1414;
}

.wap_logo_link {
  display: inline-block;
}

.wap_logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(139, 0, 0, 0.6));
}

.wap_slogan {
  font-size: 10px;
  color: #D4AF37;
  margin-top: 6px;
  font-weight: bold;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wap_stats_line {
  font-size: 10px;
  color: #888888;
  margin-top: 4px;
  font-family: monospace;
}

.wap_nav_tabs {
  display: flex;
  justify-content: space-around;
  background: #181818;
  border: 1px solid #2C2C2C;
  border-radius: 4px;
  margin-top: 10px;
  padding: 6px 2px;
}

.wap_tab_link {
  color: #E5A93C;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.15s;
}

.wap_tab_link:hover {
  color: #FF4444;
}

/* 3. Real-Time WAP Search Box */
.wap_search_block {
  padding: 8px 10px;
  background: #121212;
  border-bottom: 1px solid #242424;
}

.wap_search_row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wap_search_label {
  font-size: 11px;
  font-weight: bold;
  color: #E5A93C;
  white-space: nowrap;
}

.wap_search_input {
  flex: 1;
  background: #000000;
  border: 1px solid #3A3A3A;
  color: #FFFFFF;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 3px;
  outline: none;
  font-family: inherit;
}

.wap_search_input::placeholder {
  color: #555555;
}

.wap_search_btn {
  background: linear-gradient(180deg, #8B0000 0%, #5A0000 100%);
  color: #FFFFFF;
  border: 1px solid #B22222;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.wap_search_btn:hover {
  filter: brightness(1.2);
}

/* 4. Section Title Bar (Classic WAP Gradient Bar) */
.wap_title {
  margin: 0;
  background: linear-gradient(180deg, #8B0000 0%, #500000 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #B22222;
  border-bottom: 1px solid #3A0000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wap_badge_count {
  background: #000000;
  color: #E5A93C;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid rgba(229, 169, 60, 0.4);
  font-family: monospace;
}

/* 5. Category Rows with Zebra Background */
.wap_row {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  text-decoration: none;
  color: #E0E0E0;
  border-bottom: 1px solid #202020;
  transition: background 0.15s;
}

.wap_row:nth-child(odd) {
  background: #111111;
}

.wap_row:nth-child(even) {
  background: #161616;
}

.wap_row:hover {
  background: #251010;
  color: #FFFFFF;
}

.wap_ico_dir {
  margin-right: 8px;
  flex-shrink: 0;
}

.wap_row_content {
  flex: 1;
  min-width: 0;
}

.wap_row_title {
  font-size: 12px;
  color: #F5F5F5;
  line-height: 1.3;
}

.wap_row:hover .wap_row_title {
  color: #FF5555;
}

.wap_row_sub {
  font-size: 10px;
  color: #888888;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap_row_right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

.wap_badge {
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: monospace;
}

.badge_hot {
  background: #C62828;
  color: #FFFFFF;
}

.badge_new {
  background: #2E7D32;
  color: #FFFFFF;
}

.badge_hd {
  background: #0277BD;
  color: #FFFFFF;
}

.badge_vip {
  background: #F57F17;
  color: #000000;
}

.badge_top {
  background: #6A1B9A;
  color: #FFFFFF;
}

.wap_count_tag {
  font-size: 10px;
  color: #E5A93C;
  font-weight: bold;
  font-family: monospace;
}

.wap_arrow {
  color: #666666;
  font-size: 14px;
  font-weight: bold;
}

/* 6. Photo Gallery Grid (4 Columns Micro-Grid) */
.wap_photo_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: #0A0A0A;
}

.wap_photo_cell {
  background: #141414;
  border: 1px solid #282828;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.wap_photo_cell:hover {
  border-color: #8B0000;
  transform: scale(1.02);
}

.wap_thumb_wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000000;
  overflow: hidden;
}

.wap_thumb_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wap_thumb_badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 2px;
  font-family: monospace;
}

.wap_thumb_title {
  font-size: 10px;
  font-weight: bold;
  color: #E0E0E0;
  padding: 4px 3px 2px 3px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 24px;
}

.wap_photo_cell:hover .wap_thumb_title {
  color: #FF5555;
}

.wap_thumb_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px 4px 4px;
  border-top: 1px solid #1F1F1F;
  font-size: 8px;
  margin-top: auto;
}

.wap_thumb_res {
  color: #E5A93C;
  font-weight: bold;
  font-family: monospace;
}

.wap_thumb_btn {
  color: #FF5555;
  font-weight: bold;
}

/* 7. WAP Video Downloads */
.wap_dl_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wap_ico_arrow {
  margin-right: 8px;
  flex-shrink: 0;
}

.wap_dl_info {
  flex: 1;
  min-width: 0;
}

.wap_dl_link {
  color: #F5F5F5;
  font-size: 12px;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}

.wap_dl_link:hover {
  color: #FF5555;
}

.wap_dl_meta {
  font-size: 10px;
  color: #888888;
  margin-top: 2px;
  font-family: monospace;
}

.wap_dl_rating {
  color: #F59E0B;
  font-weight: bold;
}

.wap_btn_download {
  background: linear-gradient(180deg, #2E7D32 0%, #1B5E20 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 9px;
  border-radius: 3px;
  text-decoration: none;
  margin-left: 8px;
  border: 1px solid #4CAF50;
  flex-shrink: 0;
  font-family: monospace;
  letter-spacing: 0.3px;
}

.wap_btn_download:hover {
  filter: brightness(1.2);
}

/* 8. WAP Tag Cloud */
.wap_tags_cloud {
  padding: 8px 10px;
  background: #111111;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wap_tag_item {
  background: #1C1C1C;
  color: #B0B0B0;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid #2C2C2C;
  transition: all 0.15s;
}

.wap_tag_item:hover {
  background: #8B0000;
  color: #FFFFFF;
  border-color: #B22222;
}

/* 9. WAP Partner Links */
.wap_partner_row {
  display: flex;
  align-items: center;
}

.wap_partner_num {
  color: #E5A93C;
  font-family: monospace;
  font-size: 11px;
  margin-right: 8px;
  font-weight: bold;
}

.wap_partner_name {
  color: #FFFFFF;
  font-size: 12px;
  display: block;
}

.wap_partner_desc {
  color: #888888;
  font-size: 10px;
  display: block;
  margin-top: 1px;
}

/* 10. WAP Traffic Trade Box */
.wap_trade_box {
  padding: 12px 10px;
  background: #160A0A;
  border-top: 1px solid #3A1414;
  border-bottom: 1px solid #3A1414;
  text-align: center;
}

.wap_trade_head {
  font-size: 12px;
  font-weight: bold;
  color: #E5A93C;
}

.wap_trade_info {
  font-size: 10px;
  color: #888888;
  margin-top: 4px;
}

.wap_trade_button {
  display: inline-block;
  margin-top: 8px;
  background: linear-gradient(180deg, #8B0000 0%, #500000 100%);
  color: #FFFFFF;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px;
  border: 1px solid #B22222;
  text-decoration: none;
  transition: filter 0.2s;
}

.wap_trade_button:hover {
  filter: brightness(1.25);
}

/* 11. Footer & Counters */
.wap_footer {
  padding: 16px 10px 24px 10px;
  text-align: center;
  background: #080808;
  border-top: 1px solid #222222;
  margin-top: auto;
}

.wap_counters {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-family: 'Courier New', Courier, monospace;
  color: #00FF66;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.wap_counter_badge {
  background: #141414;
  border: 1px solid #282828;
  padding: 2px 6px;
  border-radius: 2px;
}

.wap_compliance {
  font-size: 9px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.wap_copyright {
  font-size: 10px;
  color: #888888;
}

.wap_copyright a {
  color: #E5A93C;
  text-decoration: underline;
}

/* Mobile full-width override */
@media (max-width: 480px) {
  body {
    background-color: #0E0E0E;
    background-image: none;
  }
  .wap_wrapper {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  .wap_photo_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
