@namespace url(http://www.w3.org/1999/xhtml);

/* å®£ä¼ã‚³ãƒ¡ãƒ³ãƒˆè¦§ã‚’æ¶ˆã™ */
/*
@-moz-document url-prefix("http://www.nicovideo.jp/ranking/"),
               url-prefix("http://nine.nicovideo.jp/ranking/") {
  .thumb_uad_header {
    display : none !important;
  }
}
*/

/* æœŸé–“ãƒ¡ãƒ‹ãƒ¥ãƒ¼ç§»å‹• */
@-moz-document url-prefix("http://www.nicovideo.jp/ranking/"),
               url-prefix("http://nine.nicovideo.jp/ranking/") {
  #PAGEBODY {
    position : relative !important;
  }

  .content_672 {
    width : 100% !important;
  }

  .content_312 > .mb8p4:first-child > p,
  .content_312 > .mb8p4:first-child ~ *,
  .controller_bg > p.font12:first-child,
  .controller_bg > p.font12:first-child + table + div {
    display : none !important;
  }

  .content_312 > .mb8p4:first-child {
    position : absolute !important;
    top : 69px !important;
    right : 0px !important;
    padding : 0px 4px !important;
  }

  .controller_bg {
    background-color : transparent !important;
    background-image : none !important;
    color : #333 !important;
    padding : 0 !important;
  }

  .content_312 > .mb8p4:first-child > .controller_bg > p.font12:first-child + table {
    margin-right : 0 !important;
    line-height : 20px !important;
  }

  .content_312 > .mb8p4:first-child > .controller_bg > p.font12:first-child + table + div ~ * {
    background-image : url("http://res.nimg.jp/img/common/bg_b_a80.png") !important;
    border-right : 2px solid #fff !important;
    border-left : 2px solid #fff !important;
    color : #fff;
  }

  .content_312 > .mb8p4:first-child > .controller_bg > p.font12:first-child + table + div + p {
    border-top : 2px solid #fff !important;
    padding-top : 8px !important;
  }

  .content_312 > .mb8p4:first-child > .controller_bg > p.font12:first-child + table + div ~ *:last-child {
    border-bottom : 2px solid #fff !important;
    padding-bottom : 8px !important;
  }

  .content_312 > .mb8p4:first-child:not(:hover) > .controller_bg > p.font12:first-child + table ~ * {
    display : none !important;
  }

  #calendar_close {
    display : none !important;
  }

  .content_312 > .mb8p4:first-child:hover > .controller_bg > p.font12:first-child + table ~ #calendar_open {
    display : block !important;
  }

  #calendar_open > .cal_txt > a[onclick^="hideOBJ('calendar_open');"] {
    display : none !important;
  }
}

/* åˆ—è¡¨ç¤ºå¤‰æ›´ */
@-moz-document url-prefix("http://www.nicovideo.jp/ranking/"),
               url-prefix("http://nine.nicovideo.jp/ranking/") {
  .content_672 {
    letter-spacing : -1em !important;
  }

  .content_672 > * {
    letter-spacing : normal !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr,
  div[class^="thumb_frm"] > table > tbody > tr > td {
    display : block !important;
    padding : 0 !important;
    width : auto !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td[style="padding:0 8px;"],
  div[class^="thumb_frm"] > table > tbody > tr > td[style="padding: 0pt 8px;"] {
    float : left !important;
    padding : 4px 4px 4px 0 !important;
    width : 100px !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child {
    width : auto !important;
    overflow : visible !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child {
    margin-top : -18px !important;
  }

  .menu_palet {
    z-index : 10 !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > p.font12,
  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > p.num_status {
    font-size : 10px !important;
    line-height : 1.25 !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > div:first-child + p.font12 {
    line-height : 16px !important;
    margin : 1px -64px 3px 104px !important;
    position : relative !important;
    left : -60px !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > div:first-child + p.font12 > strong:first-child,
  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > div:first-child + p.font12 > strong:first-child > span {
    font-size : 12px !important;
  }

  div[class^="thumb_frm"] > table > tbody > tr > td:last-child > div:only-child > div:first-child + p.font12 + div {
    margin : 0 0 0 104px !important;
  }

  .watch {
    font-size : 12px !important;
    line-height : 1.375 !important;
    margin-bottom : 2px !important;
    white-space : normal !important;
  }

  .vinfo_last_res {
    clear : left !important;
    margin : 4px 0 !important;
  }

  .list_count {
    text-align : left !important;
  }

  .list_count > span[style="font-size:40px; line-height:1;"],
  .list_count > span[style="font-size: 40px; line-height: 1;"] {
    font-size : 18px !important;
  }

  .list_count > span[style="font-size:24px; line-height:1;"],
  .list_count > span[style="font-size: 24px; line-height: 1;"] {
    font-size : 18px !important;
  }

  .list_count > span[style="font-size:16px; line-height:1;"],
  .list_count > span[style="font-size: 16px; line-height: 1;"] {
    font-size : 12px !important;
    line-height : 18px !important;
  }

  /* ä»¥ä¸‹AutoPagerizeç”¨ */
  .autopagerize_page_info {
    font-size : 12px;
  }

  .autopagerize_page_separator {
    margin : 4px 0 !important;
  }
}

/* 3åˆ—è¡¨ç¤ºç”¨ */
@-moz-document url-prefix("http://www.nicovideo.jp/ranking/"),
               url-prefix("http://nine.nicovideo.jp/ranking/") {
  .content_672 > table:first-child + div[style="padding:4px;"] ~ div[style="padding:4px;"],
  .content_672 > table:first-child + div[style="padding: 4px;"] ~ div[style="padding: 4px;"] {
    display : inline-block !important;
    vertical-align : top !important;
    width : 320px !important;
  }

  div[class^="thumb_frm"],
  div[class^="thumb_frm"] > table,
  div[class^="thumb_frm"] > table > tbody > tr,
  div[class^="thumb_frm"] > table > tbody > tr > td:last-child {
    width : 304px !important;
  }
}
